15 #define PY_SSIZE_T_CLEAN
18 #error Python headers needed to compile C extensions, please install development version of Python.
19 #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
20 #error Cython requires Python 2.6+ or Python 3.3+.
22 #define CYTHON_ABI "0_29_21"
23 #define CYTHON_HEX_VERSION 0x001D15F0
24 #define CYTHON_FUTURE_DIVISION 1
27 #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
29 #if !defined(WIN32) && !defined(MS_WINDOWS)
41 #define DL_IMPORT(t) t
44 #define DL_EXPORT(t) t
47 #ifndef HAVE_LONG_LONG
48 #if PY_VERSION_HEX >= 0x02070000
49 #define HAVE_LONG_LONG
53 #define PY_LONG_LONG LONG_LONG
56 #define Py_HUGE_VAL HUGE_VAL
59 #define CYTHON_COMPILING_IN_PYPY 1
60 #define CYTHON_COMPILING_IN_PYSTON 0
61 #define CYTHON_COMPILING_IN_CPYTHON 0
62 #undef CYTHON_USE_TYPE_SLOTS
63 #define CYTHON_USE_TYPE_SLOTS 0
64 #undef CYTHON_USE_PYTYPE_LOOKUP
65 #define CYTHON_USE_PYTYPE_LOOKUP 0
66 #if PY_VERSION_HEX < 0x03050000
67 #undef CYTHON_USE_ASYNC_SLOTS
68 #define CYTHON_USE_ASYNC_SLOTS 0
69 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
70 #define CYTHON_USE_ASYNC_SLOTS 1
72 #undef CYTHON_USE_PYLIST_INTERNALS
73 #define CYTHON_USE_PYLIST_INTERNALS 0
74 #undef CYTHON_USE_UNICODE_INTERNALS
75 #define CYTHON_USE_UNICODE_INTERNALS 0
76 #undef CYTHON_USE_UNICODE_WRITER
77 #define CYTHON_USE_UNICODE_WRITER 0
78 #undef CYTHON_USE_PYLONG_INTERNALS
79 #define CYTHON_USE_PYLONG_INTERNALS 0
80 #undef CYTHON_AVOID_BORROWED_REFS
81 #define CYTHON_AVOID_BORROWED_REFS 1
82 #undef CYTHON_ASSUME_SAFE_MACROS
83 #define CYTHON_ASSUME_SAFE_MACROS 0
84 #undef CYTHON_UNPACK_METHODS
85 #define CYTHON_UNPACK_METHODS 0
86 #undef CYTHON_FAST_THREAD_STATE
87 #define CYTHON_FAST_THREAD_STATE 0
88 #undef CYTHON_FAST_PYCALL
89 #define CYTHON_FAST_PYCALL 0
90 #undef CYTHON_PEP489_MULTI_PHASE_INIT
91 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
92 #undef CYTHON_USE_TP_FINALIZE
93 #define CYTHON_USE_TP_FINALIZE 0
94 #undef CYTHON_USE_DICT_VERSIONS
95 #define CYTHON_USE_DICT_VERSIONS 0
96 #undef CYTHON_USE_EXC_INFO_STACK
97 #define CYTHON_USE_EXC_INFO_STACK 0
98 #elif defined(PYSTON_VERSION)
99 #define CYTHON_COMPILING_IN_PYPY 0
100 #define CYTHON_COMPILING_IN_PYSTON 1
101 #define CYTHON_COMPILING_IN_CPYTHON 0
102 #ifndef CYTHON_USE_TYPE_SLOTS
103 #define CYTHON_USE_TYPE_SLOTS 1
105 #undef CYTHON_USE_PYTYPE_LOOKUP
106 #define CYTHON_USE_PYTYPE_LOOKUP 0
107 #undef CYTHON_USE_ASYNC_SLOTS
108 #define CYTHON_USE_ASYNC_SLOTS 0
109 #undef CYTHON_USE_PYLIST_INTERNALS
110 #define CYTHON_USE_PYLIST_INTERNALS 0
111 #ifndef CYTHON_USE_UNICODE_INTERNALS
112 #define CYTHON_USE_UNICODE_INTERNALS 1
114 #undef CYTHON_USE_UNICODE_WRITER
115 #define CYTHON_USE_UNICODE_WRITER 0
116 #undef CYTHON_USE_PYLONG_INTERNALS
117 #define CYTHON_USE_PYLONG_INTERNALS 0
118 #ifndef CYTHON_AVOID_BORROWED_REFS
119 #define CYTHON_AVOID_BORROWED_REFS 0
121 #ifndef CYTHON_ASSUME_SAFE_MACROS
122 #define CYTHON_ASSUME_SAFE_MACROS 1
124 #ifndef CYTHON_UNPACK_METHODS
125 #define CYTHON_UNPACK_METHODS 1
127 #undef CYTHON_FAST_THREAD_STATE
128 #define CYTHON_FAST_THREAD_STATE 0
129 #undef CYTHON_FAST_PYCALL
130 #define CYTHON_FAST_PYCALL 0
131 #undef CYTHON_PEP489_MULTI_PHASE_INIT
132 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
133 #undef CYTHON_USE_TP_FINALIZE
134 #define CYTHON_USE_TP_FINALIZE 0
135 #undef CYTHON_USE_DICT_VERSIONS
136 #define CYTHON_USE_DICT_VERSIONS 0
137 #undef CYTHON_USE_EXC_INFO_STACK
138 #define CYTHON_USE_EXC_INFO_STACK 0
140 #define CYTHON_COMPILING_IN_PYPY 0
141 #define CYTHON_COMPILING_IN_PYSTON 0
142 #define CYTHON_COMPILING_IN_CPYTHON 1
143 #ifndef CYTHON_USE_TYPE_SLOTS
144 #define CYTHON_USE_TYPE_SLOTS 1
146 #if PY_VERSION_HEX < 0x02070000
147 #undef CYTHON_USE_PYTYPE_LOOKUP
148 #define CYTHON_USE_PYTYPE_LOOKUP 0
149 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
150 #define CYTHON_USE_PYTYPE_LOOKUP 1
152 #if PY_MAJOR_VERSION < 3
153 #undef CYTHON_USE_ASYNC_SLOTS
154 #define CYTHON_USE_ASYNC_SLOTS 0
155 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
156 #define CYTHON_USE_ASYNC_SLOTS 1
158 #if PY_VERSION_HEX < 0x02070000
159 #undef CYTHON_USE_PYLONG_INTERNALS
160 #define CYTHON_USE_PYLONG_INTERNALS 0
161 #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
162 #define CYTHON_USE_PYLONG_INTERNALS 1
164 #ifndef CYTHON_USE_PYLIST_INTERNALS
165 #define CYTHON_USE_PYLIST_INTERNALS 1
167 #ifndef CYTHON_USE_UNICODE_INTERNALS
168 #define CYTHON_USE_UNICODE_INTERNALS 1
170 #if PY_VERSION_HEX < 0x030300F0
171 #undef CYTHON_USE_UNICODE_WRITER
172 #define CYTHON_USE_UNICODE_WRITER 0
173 #elif !defined(CYTHON_USE_UNICODE_WRITER)
174 #define CYTHON_USE_UNICODE_WRITER 1
176 #ifndef CYTHON_AVOID_BORROWED_REFS
177 #define CYTHON_AVOID_BORROWED_REFS 0
179 #ifndef CYTHON_ASSUME_SAFE_MACROS
180 #define CYTHON_ASSUME_SAFE_MACROS 1
182 #ifndef CYTHON_UNPACK_METHODS
183 #define CYTHON_UNPACK_METHODS 1
185 #ifndef CYTHON_FAST_THREAD_STATE
186 #define CYTHON_FAST_THREAD_STATE 1
188 #ifndef CYTHON_FAST_PYCALL
189 #define CYTHON_FAST_PYCALL 1
191 #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
192 #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
194 #ifndef CYTHON_USE_TP_FINALIZE
195 #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
197 #ifndef CYTHON_USE_DICT_VERSIONS
198 #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
200 #ifndef CYTHON_USE_EXC_INFO_STACK
201 #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
204 #if !defined(CYTHON_FAST_PYCCALL)
205 #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
207 #if CYTHON_USE_PYLONG_INTERNALS
208 #include "longintrepr.h"
213 enum { __pyx_check_sizeof_voidp = 1 / (
int)(SIZEOF_VOID_P ==
sizeof(
void*)) };
216 #ifndef __has_attribute
217 #define __has_attribute(x) 0
219 #ifndef __has_cpp_attribute
220 #define __has_cpp_attribute(x) 0
222 #ifndef CYTHON_RESTRICT
223 #if defined(__GNUC__)
224 #define CYTHON_RESTRICT __restrict__
225 #elif defined(_MSC_VER) && _MSC_VER >= 1400
226 #define CYTHON_RESTRICT __restrict
227 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
228 #define CYTHON_RESTRICT restrict
230 #define CYTHON_RESTRICT
233 #ifndef CYTHON_UNUSED
234 # if defined(__GNUC__)
235 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
236 # define CYTHON_UNUSED __attribute__ ((__unused__))
238 # define CYTHON_UNUSED
240 # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
241 # define CYTHON_UNUSED __attribute__ ((__unused__))
243 # define CYTHON_UNUSED
246 #ifndef CYTHON_MAYBE_UNUSED_VAR
247 # if defined(__cplusplus)
248 template<
class T>
void CYTHON_MAYBE_UNUSED_VAR(
const T& ) { }
250 # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
253 #ifndef CYTHON_NCP_UNUSED
254 # if CYTHON_COMPILING_IN_CPYTHON
255 # define CYTHON_NCP_UNUSED
257 # define CYTHON_NCP_UNUSED CYTHON_UNUSED
260 #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
262 #ifndef _MSC_STDINT_H_
264 typedef unsigned char uint8_t;
265 typedef unsigned int uint32_t;
267 typedef unsigned __int8 uint8_t;
268 typedef unsigned __int32 uint32_t;
274 #ifndef CYTHON_FALLTHROUGH
275 #if defined(__cplusplus) && __cplusplus >= 201103L
276 #if __has_cpp_attribute(fallthrough)
277 #define CYTHON_FALLTHROUGH [[fallthrough]]
278 #elif __has_cpp_attribute(clang::fallthrough)
279 #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
280 #elif __has_cpp_attribute(gnu::fallthrough)
281 #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
284 #ifndef CYTHON_FALLTHROUGH
285 #if __has_attribute(fallthrough)
286 #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
288 #define CYTHON_FALLTHROUGH
291 #if defined(__clang__ ) && defined(__apple_build_version__)
292 #if __apple_build_version__ < 7000000
293 #undef CYTHON_FALLTHROUGH
294 #define CYTHON_FALLTHROUGH
299 #ifndef CYTHON_INLINE
300 #if defined(__clang__)
301 #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
302 #elif defined(__GNUC__)
303 #define CYTHON_INLINE __inline__
304 #elif defined(_MSC_VER)
305 #define CYTHON_INLINE __inline
306 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
307 #define CYTHON_INLINE inline
309 #define CYTHON_INLINE
313 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
314 #define Py_OptimizeFlag 0
316 #define __PYX_BUILD_PY_SSIZE_T "n"
317 #define CYTHON_FORMAT_SSIZE_T "z"
318 #if PY_MAJOR_VERSION < 3
319 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
320 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
321 PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
322 #define __Pyx_DefaultClassType PyClass_Type
324 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
325 #if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2
326 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
327 PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
329 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
330 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
332 #define __Pyx_DefaultClassType PyType_Type
334 #ifndef Py_TPFLAGS_CHECKTYPES
335 #define Py_TPFLAGS_CHECKTYPES 0
337 #ifndef Py_TPFLAGS_HAVE_INDEX
338 #define Py_TPFLAGS_HAVE_INDEX 0
340 #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
341 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
343 #ifndef Py_TPFLAGS_HAVE_FINALIZE
344 #define Py_TPFLAGS_HAVE_FINALIZE 0
346 #ifndef METH_STACKLESS
347 #define METH_STACKLESS 0
349 #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
350 #ifndef METH_FASTCALL
351 #define METH_FASTCALL 0x80
353 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *
self, PyObject *
const *
args, Py_ssize_t
nargs);
354 typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *
self, PyObject *
const *
args,
355 Py_ssize_t
nargs, PyObject *kwnames);
357 #define __Pyx_PyCFunctionFast _PyCFunctionFast
358 #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
360 #if CYTHON_FAST_PYCCALL
361 #define __Pyx_PyFastCFunction_Check(func)\
362 ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
364 #define __Pyx_PyFastCFunction_Check(func) 0
366 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
367 #define PyObject_Malloc(s) PyMem_Malloc(s)
368 #define PyObject_Free(p) PyMem_Free(p)
369 #define PyObject_Realloc(p) PyMem_Realloc(p)
371 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
372 #define PyMem_RawMalloc(n) PyMem_Malloc(n)
373 #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
374 #define PyMem_RawFree(p) PyMem_Free(p)
376 #if CYTHON_COMPILING_IN_PYSTON
377 #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
378 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
380 #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
381 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
383 #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
384 #define __Pyx_PyThreadState_Current PyThreadState_GET()
385 #elif PY_VERSION_HEX >= 0x03060000
386 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
387 #elif PY_VERSION_HEX >= 0x03000000
388 #define __Pyx_PyThreadState_Current PyThreadState_GET()
390 #define __Pyx_PyThreadState_Current _PyThreadState_Current
392 #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
393 #include "pythread.h"
394 #define Py_tss_NEEDS_INIT 0
395 typedef int Py_tss_t;
396 static CYTHON_INLINE
int PyThread_tss_create(Py_tss_t *
key) {
397 *
key = PyThread_create_key();
400 static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(
void) {
401 Py_tss_t *
key = (Py_tss_t *)PyObject_Malloc(
sizeof(Py_tss_t));
402 *
key = Py_tss_NEEDS_INIT;
405 static CYTHON_INLINE
void PyThread_tss_free(Py_tss_t *
key) {
408 static CYTHON_INLINE
int PyThread_tss_is_created(Py_tss_t *
key) {
409 return *
key != Py_tss_NEEDS_INIT;
411 static CYTHON_INLINE
void PyThread_tss_delete(Py_tss_t *
key) {
412 PyThread_delete_key(*
key);
413 *
key = Py_tss_NEEDS_INIT;
415 static CYTHON_INLINE
int PyThread_tss_set(Py_tss_t *
key,
void *
value) {
416 return PyThread_set_key_value(*
key,
value);
418 static CYTHON_INLINE
void * PyThread_tss_get(Py_tss_t *
key) {
419 return PyThread_get_key_value(*
key);
422 #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
423 #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
425 #define __Pyx_PyDict_NewPresized(n) PyDict_New()
427 #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
428 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
429 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
431 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
432 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
434 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
435 #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
437 #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
439 #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
440 #define CYTHON_PEP393_ENABLED 1
441 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
442 0 : _PyUnicode_Ready((PyObject *)(op)))
443 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
444 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
445 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
446 #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
447 #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
448 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
449 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
450 #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
451 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
453 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
456 #define CYTHON_PEP393_ENABLED 0
457 #define PyUnicode_1BYTE_KIND 1
458 #define PyUnicode_2BYTE_KIND 2
459 #define PyUnicode_4BYTE_KIND 4
460 #define __Pyx_PyUnicode_READY(op) (0)
461 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
462 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
463 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
464 #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
465 #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
466 #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
467 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
468 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
470 #if CYTHON_COMPILING_IN_PYPY
471 #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
472 #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
474 #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
475 #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
476 PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
478 #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
479 #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
481 #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
482 #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
484 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
485 #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
487 #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
488 #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
489 #if PY_MAJOR_VERSION >= 3
490 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
492 #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
494 #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
495 #define PyObject_ASCII(o) PyObject_Repr(o)
497 #if PY_MAJOR_VERSION >= 3
498 #define PyBaseString_Type PyUnicode_Type
499 #define PyStringObject PyUnicodeObject
500 #define PyString_Type PyUnicode_Type
501 #define PyString_Check PyUnicode_Check
502 #define PyString_CheckExact PyUnicode_CheckExact
503 #ifndef PyObject_Unicode
504 #define PyObject_Unicode PyObject_Str
507 #if PY_MAJOR_VERSION >= 3
508 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
509 #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
511 #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
512 #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
514 #ifndef PySet_CheckExact
515 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
517 #if PY_VERSION_HEX >= 0x030900A4
518 #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
519 #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
521 #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
522 #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
524 #if CYTHON_ASSUME_SAFE_MACROS
525 #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
527 #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
529 #if PY_MAJOR_VERSION >= 3
530 #define PyIntObject PyLongObject
531 #define PyInt_Type PyLong_Type
532 #define PyInt_Check(op) PyLong_Check(op)
533 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
534 #define PyInt_FromString PyLong_FromString
535 #define PyInt_FromUnicode PyLong_FromUnicode
536 #define PyInt_FromLong PyLong_FromLong
537 #define PyInt_FromSize_t PyLong_FromSize_t
538 #define PyInt_FromSsize_t PyLong_FromSsize_t
539 #define PyInt_AsLong PyLong_AsLong
540 #define PyInt_AS_LONG PyLong_AS_LONG
541 #define PyInt_AsSsize_t PyLong_AsSsize_t
542 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
543 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
544 #define PyNumber_Int PyNumber_Long
546 #if PY_MAJOR_VERSION >= 3
547 #define PyBoolObject PyLongObject
549 #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
550 #ifndef PyUnicode_InternFromString
551 #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
554 #if PY_VERSION_HEX < 0x030200A4
555 typedef long Py_hash_t;
556 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
557 #define __Pyx_PyInt_AsHash_t PyInt_AsLong
559 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
560 #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
562 #if PY_MAJOR_VERSION >= 3
563 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
565 #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
567 #if CYTHON_USE_ASYNC_SLOTS
568 #if PY_VERSION_HEX >= 0x030500B1
569 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
570 #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
572 #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
575 #define __Pyx_PyType_AsAsync(obj) NULL
577 #ifndef __Pyx_PyAsyncMethodsStruct
582 } __Pyx_PyAsyncMethodsStruct;
585 #if defined(WIN32) || defined(MS_WINDOWS)
586 #define _USE_MATH_DEFINES
590 #define __PYX_NAN() ((float) NAN)
592 static CYTHON_INLINE
float __PYX_NAN() {
598 #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
599 #define __Pyx_truncl trunc
601 #define __Pyx_truncl truncl
604 #define __PYX_MARK_ERR_POS(f_index, lineno) \
605 { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
606 #define __PYX_ERR(f_index, lineno, Ln_error) \
607 { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
609 #ifndef __PYX_EXTERN_C
611 #define __PYX_EXTERN_C extern "C"
613 #define __PYX_EXTERN_C extern
617 #define __PYX_HAVE__dtocean
618 #define __PYX_HAVE_API__dtocean
624 #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
625 #define CYTHON_WITHOUT_ASSERTIONS
628 typedef struct {PyObject **
p;
const char *
s;
const Py_ssize_t n;
const char* encoding;
629 const char is_unicode;
const char is_str;
const char intern; } __Pyx_StringTabEntry;
631 #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
632 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
633 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
634 #define __PYX_DEFAULT_STRING_ENCODING ""
635 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
636 #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
637 #define __Pyx_uchar_cast(c) ((unsigned char)c)
638 #define __Pyx_long_cast(x) ((long)x)
639 #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
640 (sizeof(type) < sizeof(Py_ssize_t)) ||\
641 (sizeof(type) > sizeof(Py_ssize_t) &&\
642 likely(v < (type)PY_SSIZE_T_MAX ||\
643 v == (type)PY_SSIZE_T_MAX) &&\
644 (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
645 v == (type)PY_SSIZE_T_MIN))) ||\
646 (sizeof(type) == sizeof(Py_ssize_t) &&\
647 (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
648 v == (type)PY_SSIZE_T_MAX))) )
649 static CYTHON_INLINE
int __Pyx_is_valid_index(Py_ssize_t
i, Py_ssize_t limit) {
650 return (
size_t)
i < (size_t) limit;
652 #if defined (__cplusplus) && __cplusplus >= 201103L
654 #define __Pyx_sst_abs(value) std::abs(value)
655 #elif SIZEOF_INT >= SIZEOF_SIZE_T
656 #define __Pyx_sst_abs(value) abs(value)
657 #elif SIZEOF_LONG >= SIZEOF_SIZE_T
658 #define __Pyx_sst_abs(value) labs(value)
659 #elif defined (_MSC_VER)
660 #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
661 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
662 #define __Pyx_sst_abs(value) llabs(value)
663 #elif defined (__GNUC__)
664 #define __Pyx_sst_abs(value) __builtin_llabs(value)
666 #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
668 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject*);
669 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
670 #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
671 #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
672 #define __Pyx_PyBytes_FromString PyBytes_FromString
673 #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
674 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char*);
675 #if PY_MAJOR_VERSION < 3
676 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
677 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
679 #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
680 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
682 #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
683 #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
684 #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
685 #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
686 #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
687 #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
688 #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
689 #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
690 #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
691 #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
692 #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
693 #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
694 #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
695 #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
696 #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
697 #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
698 static CYTHON_INLINE
size_t __Pyx_Py_UNICODE_strlen(
const Py_UNICODE *
u) {
699 const Py_UNICODE *u_end =
u;
701 return (
size_t)(u_end -
u - 1);
703 #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
704 #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
705 #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
706 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
707 #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
708 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b);
709 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject*);
710 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
711 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject*
x);
712 #define __Pyx_PySequence_Tuple(obj)\
713 (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
714 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
715 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t);
716 #if CYTHON_ASSUME_SAFE_MACROS
717 #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
719 #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
721 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
722 #if PY_MAJOR_VERSION >= 3
723 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
725 #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
727 #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
728 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
729 static int __Pyx_sys_getdefaultencoding_not_ascii;
730 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
732 PyObject* default_encoding =
NULL;
733 PyObject* ascii_chars_u =
NULL;
734 PyObject* ascii_chars_b =
NULL;
735 const char* default_encoding_c;
736 sys = PyImport_ImportModule(
"sys");
738 default_encoding = PyObject_CallMethod(sys, (
char*)
"getdefaultencoding",
NULL);
740 if (!default_encoding)
goto bad;
741 default_encoding_c = PyBytes_AsString(default_encoding);
742 if (!default_encoding_c)
goto bad;
743 if (strcmp(default_encoding_c,
"ascii") == 0) {
744 __Pyx_sys_getdefaultencoding_not_ascii = 0;
746 char ascii_chars[128];
748 for (
c = 0;
c < 128;
c++) {
751 __Pyx_sys_getdefaultencoding_not_ascii = 1;
752 ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128,
NULL);
753 if (!ascii_chars_u)
goto bad;
754 ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c,
NULL);
755 if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
758 "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
762 Py_DECREF(ascii_chars_u);
763 Py_DECREF(ascii_chars_b);
765 Py_DECREF(default_encoding);
768 Py_XDECREF(default_encoding);
769 Py_XDECREF(ascii_chars_u);
770 Py_XDECREF(ascii_chars_b);
774 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
775 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
777 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
778 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
779 static char* __PYX_DEFAULT_STRING_ENCODING;
780 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
782 PyObject* default_encoding =
NULL;
783 char* default_encoding_c;
784 sys = PyImport_ImportModule(
"sys");
786 default_encoding = PyObject_CallMethod(sys, (
char*) (
const char*)
"getdefaultencoding",
NULL);
788 if (!default_encoding)
goto bad;
789 default_encoding_c = PyBytes_AsString(default_encoding);
790 if (!default_encoding_c)
goto bad;
791 __PYX_DEFAULT_STRING_ENCODING = (
char*) malloc(strlen(default_encoding_c) + 1);
792 if (!__PYX_DEFAULT_STRING_ENCODING)
goto bad;
793 strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
794 Py_DECREF(default_encoding);
797 Py_XDECREF(default_encoding);
805 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
806 #define likely(x) __builtin_expect(!!(x), 1)
807 #define unlikely(x) __builtin_expect(!!(x), 0)
809 #define likely(x) (x)
810 #define unlikely(x) (x)
812 static CYTHON_INLINE
void __Pyx_pretend_to_initialize(
void* ptr) { (void)ptr; }
814 static PyObject *__pyx_m =
NULL;
815 static PyObject *__pyx_d;
816 static PyObject *__pyx_b;
817 static PyObject *__pyx_cython_runtime =
NULL;
818 static PyObject *__pyx_empty_tuple;
819 static PyObject *__pyx_empty_bytes;
820 static PyObject *__pyx_empty_unicode;
821 static int __pyx_lineno;
822 static int __pyx_clineno = 0;
823 static const char * __pyx_cfilenm= __FILE__;
824 static const char *__pyx_filename;
827 static const char *__pyx_f[] = {
835 #ifndef CYTHON_REFNANNY
836 #define CYTHON_REFNANNY 0
840 void (*INCREF)(
void*, PyObject*,
int);
841 void (*DECREF)(
void*, PyObject*,
int);
842 void (*GOTREF)(
void*, PyObject*,
int);
843 void (*GIVEREF)(
void*, PyObject*,
int);
844 void* (*SetupContext)(
const char*,
int,
const char*);
845 void (*FinishContext)(
void**);
846 } __Pyx_RefNannyAPIStruct;
847 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny =
NULL;
848 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname);
849 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
851 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
853 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
854 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
855 PyGILState_Release(__pyx_gilstate_save);\
857 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
860 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
861 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
863 #define __Pyx_RefNannyFinishContext()\
864 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
865 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
866 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
867 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
868 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
869 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
870 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
871 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
872 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
874 #define __Pyx_RefNannyDeclarations
875 #define __Pyx_RefNannySetupContext(name, acquire_gil)
876 #define __Pyx_RefNannyFinishContext()
877 #define __Pyx_INCREF(r) Py_INCREF(r)
878 #define __Pyx_DECREF(r) Py_DECREF(r)
879 #define __Pyx_GOTREF(r)
880 #define __Pyx_GIVEREF(r)
881 #define __Pyx_XINCREF(r) Py_XINCREF(r)
882 #define __Pyx_XDECREF(r) Py_XDECREF(r)
883 #define __Pyx_XGOTREF(r)
884 #define __Pyx_XGIVEREF(r)
886 #define __Pyx_XDECREF_SET(r, v) do {\
887 PyObject *tmp = (PyObject *) r;\
888 r = v; __Pyx_XDECREF(tmp);\
890 #define __Pyx_DECREF_SET(r, v) do {\
891 PyObject *tmp = (PyObject *) r;\
892 r = v; __Pyx_DECREF(tmp);\
894 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
895 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
898 #if CYTHON_USE_TYPE_SLOTS
899 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
901 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
905 static PyObject *__Pyx_GetBuiltinName(PyObject *
name);
908 static void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
909 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
912 static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_name);
915 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
916 PyObject *kwds2, PyObject *
values[], Py_ssize_t num_pos_args,\
917 const char* function_name);
920 #if CYTHON_FAST_PYCCALL
921 static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *
func, PyObject **
args, Py_ssize_t
nargs);
923 #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
927 #if CYTHON_FAST_PYCALL
928 #define __Pyx_PyFunction_FastCall(func, args, nargs)\
929 __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
930 #if 1 || PY_VERSION_HEX < 0x030600B1
931 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *
func, PyObject **
args, Py_ssize_t
nargs, PyObject *
kwargs);
933 #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
935 #define __Pyx_BUILD_ASSERT_EXPR(cond)\
936 (sizeof(char [1 - 2*!(cond)]) - 1)
937 #ifndef Py_MEMBER_SIZE
938 #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
940 static size_t __pyx_pyframe_localsplus_offset = 0;
941 #include "frameobject.h"
942 #define __Pxy_PyFrame_Initialize_Offsets()\
943 ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
944 (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
945 #define __Pyx_PyFrame_GetLocalsplus(frame)\
946 (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
950 #if CYTHON_COMPILING_IN_CPYTHON
951 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *
func, PyObject *arg, PyObject *kw);
953 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
957 #if CYTHON_COMPILING_IN_CPYTHON
958 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *
func, PyObject *arg);
962 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *
func, PyObject *arg);
965 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
966 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
967 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
968 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
969 (version_var) = __PYX_GET_DICT_VERSION(dict);\
970 (cache_var) = (value);
971 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
972 static PY_UINT64_T __pyx_dict_version = 0;\
973 static PyObject *__pyx_dict_cached_value = NULL;\
974 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
975 (VAR) = __pyx_dict_cached_value;\
977 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
978 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
981 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
982 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
983 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
985 #define __PYX_GET_DICT_VERSION(dict) (0)
986 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
987 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
991 #if CYTHON_USE_DICT_VERSIONS
992 #define __Pyx_GetModuleGlobalName(var, name) {\
993 static PY_UINT64_T __pyx_dict_version = 0;\
994 static PyObject *__pyx_dict_cached_value = NULL;\
995 (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
996 (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
997 __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
999 #define __Pyx_GetModuleGlobalNameUncached(var, name) {\
1000 PY_UINT64_T __pyx_dict_version;\
1001 PyObject *__pyx_dict_cached_value;\
1002 (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1004 static PyObject *__Pyx__GetModuleGlobalName(PyObject *
name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
1006 #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1007 #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1008 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *
name);
1012 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2);
1015 #if CYTHON_USE_TYPE_SLOTS
1016 #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
1017 static CYTHON_INLINE
int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject*
value);
1019 #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n)
1020 #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
1024 #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
1025 static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject*
key);
1026 #define __Pyx_PyObject_Dict_GetItem(obj, name)\
1027 (likely(PyDict_CheckExact(obj)) ?\
1028 __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
1030 #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
1031 #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name)
1035 #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1036 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1037 __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
1038 (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
1039 __Pyx_GetItemInt_Generic(o, to_py_func(i))))
1040 #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1041 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1042 __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1043 (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
1044 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t
i,
1045 int wraparound,
int boundscheck);
1046 #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1047 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1048 __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1049 (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
1050 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t
i,
1051 int wraparound,
int boundscheck);
1052 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject*
j);
1053 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t
i,
1054 int is_list,
int wraparound,
int boundscheck);
1057 #if CYTHON_USE_TYPE_SLOTS
1058 static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject*
key);
1060 #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key)
1064 #if CYTHON_USE_EXC_INFO_STACK
1065 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
1069 #if CYTHON_FAST_THREAD_STATE
1070 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
1071 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
1072 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
1074 #define __Pyx_PyThreadState_declare
1075 #define __Pyx_PyThreadState_assign
1076 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
1080 #if CYTHON_FAST_THREAD_STATE
1081 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
1082 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb);
1083 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
1084 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *
type, PyObject *
value, PyObject *tb);
1086 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
1087 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
1091 #if CYTHON_FAST_THREAD_STATE
1092 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1093 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject*
err);
1095 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
1099 #if CYTHON_FAST_THREAD_STATE
1100 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
1101 static int __Pyx__GetException(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb);
1103 static int __Pyx_GetException(PyObject **
type, PyObject **
value, PyObject **tb);
1107 #if CYTHON_COMPILING_IN_CPYTHON
1108 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *
func);
1110 #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
1114 #if CYTHON_FAST_THREAD_STATE
1115 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
1116 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
1117 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
1118 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1119 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1120 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *
type, PyObject *
value, PyObject *tb);
1121 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb);
1122 #if CYTHON_COMPILING_IN_CPYTHON
1123 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
1125 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1128 #define __Pyx_PyErr_Clear() PyErr_Clear()
1129 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1130 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
1131 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
1132 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1133 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1134 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
1135 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
1139 #if CYTHON_FAST_THREAD_STATE
1140 #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
1141 static CYTHON_INLINE
void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb);
1143 static CYTHON_INLINE
void __Pyx_ExceptionSwap(PyObject **
type, PyObject **
value, PyObject **tb);
1147 #if !CYTHON_COMPILING_IN_PYPY
1148 static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2,
long intval,
int inplace,
int zerodivision_check);
1150 #define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\
1151 (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
1155 #if !CYTHON_COMPILING_IN_PYPY
1156 static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2,
long intval,
int inplace,
int zerodivision_check);
1158 #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
1159 (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
1163 static CYTHON_INLINE
void __Pyx_RaiseUnboundLocalError(
const char *varname);
1166 #if !CYTHON_COMPILING_IN_PYPY
1167 static PyObject* __Pyx_PyFloat_AddObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check);
1169 #define __Pyx_PyFloat_AddObjC(op1, op2, floatval, inplace, zerodivision_check)\
1170 (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
1174 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
1175 PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
1176 PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
1177 int has_cstart,
int has_cstop,
int wraparound);
1180 #if !CYTHON_COMPILING_IN_PYPY
1181 static PyObject* __Pyx_PyFloat_SubtractCObj(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check);
1183 #define __Pyx_PyFloat_SubtractCObj(op1, op2, floatval, inplace, zerodivision_check)\
1184 (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
1188 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
1191 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t
index);
1194 static CYTHON_INLINE
int __Pyx_IterFinish(
void);
1197 static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);
1200 static PyObject *__Pyx_Import(PyObject *
name, PyObject *from_list,
int level);
1203 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject*
name);
1206 #if !CYTHON_COMPILING_IN_PYPY
1207 static PyObject* __Pyx_PyFloat_TrueDivideObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check);
1209 #define __Pyx_PyFloat_TrueDivideObjC(op1, op2, floatval, inplace, zerodivision_check)\
1210 (inplace ? PyNumber_InPlaceTrueDivide(op1, op2) : PyNumber_TrueDivide(op1, op2))
1214 static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);
1217 static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject*
type);
1220 #define __Pyx_CyFunction_USED 1
1221 #define __Pyx_CYFUNCTION_STATICMETHOD 0x01
1222 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02
1223 #define __Pyx_CYFUNCTION_CCLASS 0x04
1224 #define __Pyx_CyFunction_GetClosure(f)\
1225 (((__pyx_CyFunctionObject *) (f))->func_closure)
1226 #define __Pyx_CyFunction_GetClassObj(f)\
1227 (((__pyx_CyFunctionObject *) (f))->func_classobj)
1228 #define __Pyx_CyFunction_Defaults(type, f)\
1229 ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
1230 #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
1231 ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
1233 PyCFunctionObject
func;
1234 #if PY_VERSION_HEX < 0x030500A0
1235 PyObject *func_weakreflist;
1237 PyObject *func_dict;
1238 PyObject *func_name;
1239 PyObject *func_qualname;
1241 PyObject *func_globals;
1242 PyObject *func_code;
1243 PyObject *func_closure;
1244 PyObject *func_classobj;
1246 int defaults_pyobjects;
1247 size_t defaults_size;
1249 PyObject *defaults_tuple;
1250 PyObject *defaults_kwdict;
1251 PyObject *(*defaults_getter)(PyObject *);
1252 PyObject *func_annotations;
1253 } __pyx_CyFunctionObject;
1254 static PyTypeObject *__pyx_CyFunctionType = 0;
1255 #define __Pyx_CyFunction_Check(obj) (__Pyx_TypeCheck(obj, __pyx_CyFunctionType))
1256 static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *
ml,
1257 int flags, PyObject* qualname,
1259 PyObject *module, PyObject *globals,
1261 static CYTHON_INLINE
void *__Pyx_CyFunction_InitDefaults(PyObject *m,
1264 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
1266 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
1268 static CYTHON_INLINE
void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
1270 static int __pyx_CyFunction_init(
void);
1273 static PyObject *__Pyx_CyFunction_New(PyMethodDef *
ml,
1274 int flags, PyObject* qualname,
1276 PyObject *module, PyObject *globals,
1280 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
1281 #define __Pyx_SetNameInClass(ns, name, value)\
1282 (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
1283 #elif CYTHON_COMPILING_IN_CPYTHON
1284 #define __Pyx_SetNameInClass(ns, name, value)\
1285 (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
1287 #define __Pyx_SetNameInClass(ns, name, value) PyObject_SetItem(ns, name, value)
1291 static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *
name, PyObject *qualname,
1292 PyObject *mkw, PyObject *modname, PyObject *doc);
1293 static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *
name, PyObject *bases, PyObject *dict,
1294 PyObject *mkw,
int calculate_metaclass,
int allow_py2_metaclass);
1300 static CYTHON_INLINE
int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2,
int equals);
1303 static CYTHON_INLINE
int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2,
int equals);
1306 #ifdef CYTHON_CLINE_IN_TRACEBACK
1307 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1309 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line);
1314 PyCodeObject* code_object;
1316 } __Pyx_CodeObjectCacheEntry;
1317 struct __Pyx_CodeObjectCache {
1320 __Pyx_CodeObjectCacheEntry* entries;
1322 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,
NULL};
1323 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line);
1324 static PyCodeObject *__pyx_find_code_object(
int code_line);
1325 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object);
1328 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
1329 int py_line,
const char *
filename);
1332 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value);
1335 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *);
1338 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *);
1341 #if CYTHON_COMPILING_IN_CPYTHON
1342 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1343 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *
a, PyTypeObject *
b);
1344 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *
err, PyObject *
type);
1345 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *
err, PyObject *type1, PyObject *type2);
1347 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1348 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1349 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1351 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1354 static CYTHON_INLINE
int __Pyx_StrEq(
const char *,
const char *);
1357 static int __Pyx_check_binary_version(
void);
1360 static int __Pyx_InitStrings(__Pyx_StringTabEntry *
t);
1364 #define __Pyx_MODULE_NAME "dtocean"
1365 extern int __pyx_module_is_main_dtocean;
1366 int __pyx_module_is_main_dtocean = 0;
1369 static PyObject *__pyx_builtin_object;
1370 static PyObject *__pyx_builtin_print;
1371 static PyObject *__pyx_builtin_range;
1372 static const char __pyx_k_b[] =
"b";
1373 static const char __pyx_k_c[] =
"c";
1374 static const char __pyx_k_g[] =
"g";
1375 static const char __pyx_k_i[] =
"-i";
1376 static const char __pyx_k_k[] =
"k";
1377 static const char __pyx_k_l[] =
"-l";
1378 static const char __pyx_k_m[] =
"-m";
1379 static const char __pyx_k_o[] =
"o";
1380 static const char __pyx_k_p[] =
"-p";
1381 static const char __pyx_k_r[] =
"r";
1382 static const char __pyx_k_s[] =
"s";
1383 static const char __pyx_k_w[] =
"w";
1384 static const char __pyx_k_x[] =
"x";
1385 static const char __pyx_k_y[] =
"y";
1386 static const char __pyx_k_z[] =
"z";
1387 static const char __pyx_k_3d[] =
"3d";
1388 static const char __pyx_k__8[] =
".";
1389 static const char __pyx_k_ax[] =
"ax";
1390 static const char __pyx_k_ds[] =
"ds";
1391 static const char __pyx_k_im[] =
"im";
1392 static const char __pyx_k_ix[] =
"ix";
1393 static const char __pyx_k_iy[] =
"iy";
1394 static const char __pyx_k_lb[] =
"lb";
1395 static const char __pyx_k_ls[] =
"ls";
1396 static const char __pyx_k_np[] =
"np";
1397 static const char __pyx_k_os[] =
"os";
1398 static const char __pyx_k_pi[] =
"pi";
1399 static const char __pyx_k_ts[] =
"ts";
1400 static const char __pyx_k_wl[] =
"wl";
1401 static const char __pyx_k_ws[] =
"ws";
1402 static const char __pyx_k_xb[] =
"xb";
1403 static const char __pyx_k_xm[] =
"xm";
1404 static const char __pyx_k_xp[] =
"xp";
1405 static const char __pyx_k_xr[] =
"xr";
1406 static const char __pyx_k_xs[] =
"xs";
1407 static const char __pyx_k_yb[] =
"yb";
1408 static const char __pyx_k_ym[] =
"ym";
1409 static const char __pyx_k_yp[] =
"yp";
1410 static const char __pyx_k_ys[] =
"ys";
1411 static const char __pyx_k_zb[] =
"zb";
1412 static const char __pyx_k_zm[] =
"zm";
1413 static const char __pyx_k_zp[] =
"zp";
1414 static const char __pyx_k_zs[] =
"zs";
1415 static const char __pyx_k_D2R[] =
"D2R";
1416 static const char __pyx_k_NWL[] =
"NWL";
1417 static const char __pyx_k_NWS[] =
"NWS";
1418 static const char __pyx_k_PHC[] =
"PHC";
1419 static const char __pyx_k__30[] =
"";
1420 static const char __pyx_k__32[] =
"*";
1421 static const char __pyx_k_aot[] =
"aot";
1422 static const char __pyx_k_big[] =
"big";
1423 static const char __pyx_k_cld[] =
"cld";
1424 static const char __pyx_k_clf[] =
"clf";
1425 static const char __pyx_k_col[] =
"col";
1426 static const char __pyx_k_cos[] =
"cos";
1427 static const char __pyx_k_doc[] =
"__doc__";
1428 static const char __pyx_k_dot[] =
"dot";
1429 static const char __pyx_k_dto[] =
"dto";
1430 static const char __pyx_k_end[] =
"end";
1431 static const char __pyx_k_err[] =
"err";
1432 static const char __pyx_k_fig[] =
"fig";
1433 static const char __pyx_k_fmf[] =
"fmf";
1434 static const char __pyx_k_i_2[] =
"i";
1435 static const char __pyx_k_ibm[] =
"ibm";
1436 static const char __pyx_k_iph[] =
"iph";
1437 static const char __pyx_k_ism[] =
"ism";
1438 static const char __pyx_k_isz[] =
"isz";
1439 static const char __pyx_k_ith[] =
"ith";
1440 static const char __pyx_k_iwl[] =
"iwl";
1441 static const char __pyx_k_iwn[] =
"iwn";
1442 static const char __pyx_k_lat[] =
"lat";
1443 static const char __pyx_k_loc[] =
"loc";
1444 static const char __pyx_k_lon[] =
"lon";
1445 static const char __pyx_k_lut[] =
"--lut";
1446 static const char __pyx_k_max[] =
"max";
1447 static const char __pyx_k_min[] =
"min";
1448 static const char __pyx_k_num[] =
"num";
1449 static const char __pyx_k_o_2[] =
"-o";
1450 static const char __pyx_k_plt[] =
"plt";
1451 static const char __pyx_k_pts[] =
"pts";
1452 static const char __pyx_k_raa[] =
"raa";
1453 static const char __pyx_k_rfl[] =
"rfl";
1454 static const char __pyx_k_row[] =
"row";
1455 static const char __pyx_k_rsd[] =
"rsd";
1456 static const char __pyx_k_sb2[] =
"sb2";
1457 static const char __pyx_k_sse[] =
"sse";
1458 static const char __pyx_k_sys[] =
"sys";
1459 static const char __pyx_k_sza[] =
"sza";
1460 static const char __pyx_k_vin[] =
"vin";
1461 static const char __pyx_k_vza[] =
"vza";
1462 static const char __pyx_k_wnd[] =
"wnd";
1463 static const char __pyx_k_xin[] =
"xin";
1464 static const char __pyx_k_xit[] =
"xit";
1465 static const char __pyx_k_Done[] =
" Done!";
1466 static const char __pyx_k_NAOT[] =
"NAOT";
1467 static const char __pyx_k_NBIG[] =
"NBIG";
1468 static const char __pyx_k_NRAA[] =
"NRAA";
1469 static const char __pyx_k_NSZA[] =
"NSZA";
1470 static const char __pyx_k_NVZA[] =
"NVZA";
1471 static const char __pyx_k_THET[] =
"THET";
1472 static const char __pyx_k_W124[] =
"W124";
1473 static const char __pyx_k_W164[] =
"W164";
1474 static const char __pyx_k_W213[] =
"W213";
1475 static const char __pyx_k_W470[] =
"W470";
1476 static const char __pyx_k_W550[] =
"W550";
1477 static const char __pyx_k_W659[] =
"W659";
1478 static const char __pyx_k_W860[] =
"W860";
1479 static const char __pyx_k_WAVE[] =
"WAVE";
1480 static const char __pyx_k_args[] =
"args";
1481 static const char __pyx_k_axis[] =
"axis";
1482 static const char __pyx_k_clip[] =
"clip";
1483 static const char __pyx_k_dims[] =
"dims";
1484 static const char __pyx_k_exit[] =
"exit";
1485 static const char __pyx_k_grid[] =
"grid";
1486 static const char __pyx_k_help[] =
"help";
1487 static const char __pyx_k_init[] =
"__init__";
1488 static const char __pyx_k_inst[] =
"inst";
1489 static const char __pyx_k_itau[] =
"itau";
1490 static const char __pyx_k_main[] =
"__main__";
1491 static const char __pyx_k_math[] =
"math";
1492 static const char __pyx_k_mode[] =
"mode";
1493 static const char __pyx_k_mrfl[] =
"mrfl";
1494 static const char __pyx_k_name[] =
"name";
1495 static const char __pyx_k_plot[] =
"plot";
1496 static const char __pyx_k_rayl[] =
"rayl";
1497 static const char __pyx_k_rbsb[] =
"rbsb";
1498 static const char __pyx_k_self[] =
"self";
1499 static const char __pyx_k_show[] =
"show";
1500 static const char __pyx_k_shpb[] =
"shpb";
1501 static const char __pyx_k_shps[] =
"shps";
1502 static const char __pyx_k_taub[] =
"taub";
1503 static const char __pyx_k_taus[] =
"taus";
1504 static const char __pyx_k_test[] =
"__test__";
1505 static const char __pyx_k_toab[] =
"toab";
1506 static const char __pyx_k_toar[] =
"toar";
1507 static const char __pyx_k_toas[] =
"toas";
1508 static const char __pyx_k_tstr[] =
"tstr";
1509 static const char __pyx_k_type[] =
"type";
1510 static const char __pyx_k_vout[] =
"vout";
1511 static const char __pyx_k_xdim[] =
"xdim";
1512 static const char __pyx_k_ydim[] =
"ydim";
1513 static const char __pyx_k_yout[] =
"yout";
1514 static const char __pyx_k_AINTB[] =
"AINTB";
1515 static const char __pyx_k_AINTS[] =
"AINTS";
1516 static const char __pyx_k_TAUAB[] =
"TAUAB";
1517 static const char __pyx_k_TAUAS[] =
"TAUAS";
1518 static const char __pyx_k_THET0[] =
"THET0";
1519 static const char __pyx_k_array[] =
"array";
1520 static const char __pyx_k_color[] =
"color";
1521 static const char __pyx_k_denom[] =
"denom";
1522 static const char __pyx_k_group[] =
"group";
1523 static const char __pyx_k_ifile[] =
"ifile";
1524 static const char __pyx_k_input[] =
"input";
1525 static const char __pyx_k_label[] =
"label";
1526 static const char __pyx_k_lut_2[] =
"lut";
1527 static const char __pyx_k_mrflb[] =
"mrflb";
1528 static const char __pyx_k_mrflr[] =
"mrflr";
1529 static const char __pyx_k_mrfls[] =
"mrfls";
1530 static const char __pyx_k_numpy[] =
"numpy";
1531 static const char __pyx_k_ofile[] =
"ofile";
1532 static const char __pyx_k_print[] =
"print";
1533 static const char __pyx_k_r_pts[] =
"r_pts";
1534 static const char __pyx_k_range[] =
"range";
1535 static const char __pyx_k_rbdif[] =
"rbdif";
1536 static const char __pyx_k_sbdif[] =
"sbdif";
1537 static const char __pyx_k_shape[] =
"shape";
1538 static const char __pyx_k_small[] =
"small";
1539 static const char __pyx_k_stack[] =
"stack";
1540 static const char __pyx_k_tauxb[] =
"tauxb";
1541 static const char __pyx_k_tauxs[] =
"tauxs";
1542 static const char __pyx_k_tblut[] =
"tblut";
1543 static const char __pyx_k_title[] =
"title";
1544 static const char __pyx_k_toabt[] =
"toabt";
1545 static const char __pyx_k_toast[] =
"toast";
1546 static const char __pyx_k_trflb[] =
"trflb";
1547 static const char __pyx_k_trfls[] =
"trfls";
1548 static const char __pyx_k_tslut[] =
"tslut";
1549 static const char __pyx_k_units[] =
"units";
1550 static const char __pyx_k_write[] =
"write";
1551 static const char __pyx_k_zeros[] =
"zeros";
1552 static const char __pyx_k_Axes3D[] =
"Axes3D";
1553 static const char __pyx_k_NSMALL[] =
"NSMALL";
1554 static const char __pyx_k_append[] =
"append";
1555 static const char __pyx_k_arange[] =
"arange";
1556 static const char __pyx_k_argmin[] =
"argmin";
1557 static const char __pyx_k_astype[] =
"astype";
1558 static const char __pyx_k_bspair[] =
"bspair";
1559 static const char __pyx_k_double[] =
"double";
1560 static const char __pyx_k_figure[] =
"figure";
1561 static const char __pyx_k_format[] =
"format";
1562 static const char __pyx_k_import[] =
"__import__";
1563 static const char __pyx_k_interp[] =
"interp";
1564 static const char __pyx_k_legend[] =
"legend";
1565 static const char __pyx_k_main_2[] =
"main";
1566 static const char __pyx_k_marker[] =
"marker";
1567 static const char __pyx_k_mode_2[] =
"--mode";
1568 static const char __pyx_k_module[] =
"__module__";
1569 static const char __pyx_k_name_2[] =
"__name__";
1570 static const char __pyx_k_object[] =
"object";
1571 static const char __pyx_k_output[] =
"output";
1572 static const char __pyx_k_parser[] =
"parser";
1573 static const char __pyx_k_plot_2[] =
"--plot";
1574 static const char __pyx_k_values[] =
"values";
1575 static const char __pyx_k_wl_pts[] =
"wl_pts";
1576 static const char __pyx_k_xarray[] =
"xarray";
1577 static const char __pyx_k_xlabel[] =
"xlabel";
1578 static const char __pyx_k_ylabel[] =
"ylabel";
1579 static const char __pyx_k_Dataset[] =
"Dataset";
1580 static const char __pyx_k_default[] =
"default";
1581 static const char __pyx_k_dtocean[] =
"dtocean";
1582 static const char __pyx_k_ifile_2[] =
"--ifile";
1583 static const char __pyx_k_interpn[] =
"interpn";
1584 static const char __pyx_k_max_rfl[] =
"max_rfl";
1585 static const char __pyx_k_min_rfl[] =
"min_rfl";
1586 static const char __pyx_k_modeled[] =
"modeled";
1587 static const char __pyx_k_ofile_2[] =
"--ofile";
1588 static const char __pyx_k_prepare[] =
"__prepare__";
1589 static const char __pyx_k_process[] =
"process";
1590 static const char __pyx_k_raa_pts[] =
"raa_pts";
1591 static const char __pyx_k_rfl_pts[] =
"rfl_pts";
1592 static const char __pyx_k_scatter[] =
"scatter";
1593 static const char __pyx_k_sza_pts[] =
"sza_pts";
1594 static const char __pyx_k_tau_pts[] =
"tau_pts";
1595 static const char __pyx_k_vza_pts[] =
"vza_pts";
1596 static const char __pyx_k_wnd_pts[] =
"wnd_pts";
1597 static const char __pyx_k_FileType[] =
"FileType";
1598 static const char __pyx_k_argparse[] =
"argparse";
1599 static const char __pyx_k_datetime[] =
"datetime";
1600 static const char __pyx_k_latitude[] =
"latitude";
1601 static const char __pyx_k_linspace[] =
"linspace";
1602 static const char __pyx_k_measured[] =
"measured";
1603 static const char __pyx_k_meshgrid[] =
"meshgrid";
1604 static const char __pyx_k_qualname[] =
"__qualname__";
1605 static const char __pyx_k_required[] =
"required";
1606 static const char __pyx_k_residual[] =
"residual";
1607 static const char __pyx_k_DataArray[] =
"DataArray";
1608 static const char __pyx_k_ancillary[] =
"/ancillary";
1609 static const char __pyx_k_big_model[] =
"big model";
1610 static const char __pyx_k_longitude[] =
"longitude";
1611 static const char __pyx_k_metaclass[] =
"__metaclass__";
1612 static const char __pyx_k_proc_gran[] =
"proc_gran";
1613 static const char __pyx_k_to_netcdf[] =
"to_netcdf";
1614 static const char __pyx_k_transpose[] =
"transpose";
1615 static const char __pyx_k_REF_RAYALL[] =
"REF_RAYALL";
1616 static const char __pyx_k_cloud_mask[] =
"cloud_mask";
1617 static const char __pyx_k_input_file[] =
"input file";
1618 static const char __pyx_k_matplotlib[] =
"matplotlib";
1619 static const char __pyx_k_parse_args[] =
"parse_args";
1620 static const char __pyx_k_projection[] =
"projection";
1621 static const char __pyx_k_set_xlabel[] =
"set_xlabel";
1622 static const char __pyx_k_set_ylabel[] =
"set_ylabel";
1623 static const char __pyx_k_set_zlabel[] =
"set_zlabel";
1624 static const char __pyx_k_start_line[] =
"start line";
1625 static const char __pyx_k_wind_speed[] =
"wind_speed";
1626 static const char __pyx_k_zeros_like[] =
"zeros_like";
1627 static const char __pyx_k_MaxNLocator[] =
"MaxNLocator";
1628 static const char __pyx_k_add_subplot[] =
"add_subplot";
1629 static const char __pyx_k_dtocean_pyx[] =
"dtocean.pyx";
1630 static const char __pyx_k_geolocation[] =
"/geolocation";
1631 static const char __pyx_k_mode_option[] =
"mode option";
1632 static const char __pyx_k_output_file[] =
"output file";
1633 static const char __pyx_k_plot_points[] =
"plot_points";
1634 static const char __pyx_k_reflectance[] =
"reflectance";
1635 static const char __pyx_k_small_model[] =
"small model";
1636 static const char __pyx_k_square_side[] =
"square side ";
1637 static const char __pyx_k_start_pixel[] =
"start pixel";
1638 static const char __pyx_k_upper_right[] =
"upper right";
1639 static const char __pyx_k_add_argument[] =
"add_argument";
1640 static const char __pyx_k_dtocean_plot[] =
"dtocean.plot";
1641 static const char __pyx_k_input___init[] =
"input.__init__";
1642 static const char __pyx_k_l1b_filepath[] =
"l1b_filepath";
1643 static const char __pyx_k_load_dataset[] =
"load_dataset";
1644 static const char __pyx_k_lut_filepath[] =
"lut_filepath";
1645 static const char __pyx_k_out_filepath[] =
"out_filepath";
1646 static const char __pyx_k_output_write[] =
"output.write";
1647 static const char __pyx_k_solar_zenith[] =
"solar_zenith";
1648 static const char __pyx_k_OCEAN_AEROSOL[] =
"/OCEAN_AEROSOL";
1649 static const char __pyx_k_interp_extrap[] =
"interp_extrap";
1650 static const char __pyx_k_output___init[] =
"output.__init__";
1651 static const char __pyx_k_reflectance_2[] =
"/reflectance";
1652 static const char __pyx_k_sensor_zenith[] =
"sensor_zenith";
1653 static const char __pyx_k_wavelength_nm[] =
"wavelength (nm)";
1654 static const char __pyx_k_ArgumentParser[] =
"ArgumentParser";
1655 static const char __pyx_k_dtocean___init[] =
"dtocean.__init__";
1656 static const char __pyx_k_plot_wireframe[] =
"plot_wireframe";
1657 static const char __pyx_k_Writing_to_file[] =
"Writing to file: ";
1658 static const char __pyx_k_dtocean_process[] =
"dtocean.process";
1659 static const char __pyx_k_navigation_data[] =
"/navigation_data";
1660 static const char __pyx_k_plot_pixel_data[] =
"plot pixel data";
1661 static const char __pyx_k_toa_reflectance[] =
"toa_reflectance";
1662 static const char __pyx_k_relative_azimuth[] =
"relative_azimuth";
1663 static const char __pyx_k_Processing_mode_0[] =
"Processing mode {0}";
1664 static const char __pyx_k_dtocean_proc_gran[] =
"dtocean.proc_gran";
1665 static const char __pyx_k_lookup_table_file[] =
"lookup table file";
1666 static const char __pyx_k_matplotlib_pyplot[] =
"matplotlib.pyplot";
1667 static const char __pyx_k_matplotlib_ticker[] =
"matplotlib.ticker";
1668 static const char __pyx_k_scipy_interpolate[] =
"scipy.interpolate";
1669 static const char __pyx_k_Reading_VIIRS_Data[] =
"Reading VIIRS Data: ";
1670 static const char __pyx_k_cline_in_traceback[] =
"cline_in_traceback";
1671 static const char __pyx_k_big_small_continuum[] =
"big/small continuum";
1672 static const char __pyx_k_dtocean_plot_points[] =
"dtocean.plot_points";
1673 static const char __pyx_k_mpl_toolkits_mplot3d[] =
"mpl_toolkits.mplot3d";
1674 static const char __pyx_k_dtocean_interp_extrap[] =
"dtocean.interp_extrap";
1675 static const char __pyx_k_Reading_Darktarget_LUT[] =
"Reading Darktarget LUT: ";
1676 static const char __pyx_k_Unable_to_read_LUT_file_exiting[] =
"Unable to read LUT file ... exiting";
1677 static const char __pyx_k_Unable_to_initialize_output_file[] =
"Unable to initialize output file ... exiting";
1678 static const char __pyx_k_Unable_to_read_from_input_file_e[] =
"Unable to read from input file ... exiting";
1679 static const char __pyx_k_dtocean_y_3_x_4_aot_0_3f_fmf_1_3[] =
"dtocean -- y={3:}, x={4:} aot: {0:.3f} fmf: {1:.3f} sse: {2:.3}";
1680 static const char __pyx_k_interpolate_to_reflectance_for_e[] =
"interpolate to reflectance for each wavelength and model";
1681 static PyObject *__pyx_kp_u_3d;
1682 static PyObject *__pyx_n_u_AINTB;
1683 static PyObject *__pyx_n_u_AINTS;
1684 static PyObject *__pyx_n_s_ArgumentParser;
1685 static PyObject *__pyx_n_s_Axes3D;
1686 static PyObject *__pyx_n_s_D2R;
1687 static PyObject *__pyx_n_s_DataArray;
1688 static PyObject *__pyx_n_s_Dataset;
1689 static PyObject *__pyx_kp_u_Done;
1690 static PyObject *__pyx_n_s_FileType;
1691 static PyObject *__pyx_n_s_MaxNLocator;
1692 static PyObject *__pyx_n_s_NAOT;
1693 static PyObject *__pyx_n_s_NBIG;
1694 static PyObject *__pyx_n_s_NRAA;
1695 static PyObject *__pyx_n_s_NSMALL;
1696 static PyObject *__pyx_n_s_NSZA;
1697 static PyObject *__pyx_n_s_NVZA;
1698 static PyObject *__pyx_n_s_NWL;
1699 static PyObject *__pyx_n_s_NWS;
1700 static PyObject *__pyx_kp_u_OCEAN_AEROSOL;
1701 static PyObject *__pyx_n_u_PHC;
1702 static PyObject *__pyx_kp_u_Processing_mode_0;
1703 static PyObject *__pyx_n_u_REF_RAYALL;
1704 static PyObject *__pyx_kp_u_Reading_Darktarget_LUT;
1705 static PyObject *__pyx_kp_u_Reading_VIIRS_Data;
1706 static PyObject *__pyx_n_u_TAUAB;
1707 static PyObject *__pyx_n_u_TAUAS;
1708 static PyObject *__pyx_n_u_THET;
1709 static PyObject *__pyx_n_u_THET0;
1710 static PyObject *__pyx_kp_u_Unable_to_initialize_output_file;
1711 static PyObject *__pyx_kp_u_Unable_to_read_LUT_file_exiting;
1712 static PyObject *__pyx_kp_u_Unable_to_read_from_input_file_e;
1713 static PyObject *__pyx_n_s_W124;
1714 static PyObject *__pyx_n_s_W164;
1715 static PyObject *__pyx_n_s_W213;
1716 static PyObject *__pyx_n_s_W470;
1717 static PyObject *__pyx_n_s_W550;
1718 static PyObject *__pyx_n_u_W550;
1719 static PyObject *__pyx_n_s_W659;
1720 static PyObject *__pyx_n_u_W659;
1721 static PyObject *__pyx_n_s_W860;
1722 static PyObject *__pyx_n_u_W860;
1723 static PyObject *__pyx_n_u_WAVE;
1724 static PyObject *__pyx_kp_u_Writing_to_file;
1725 static PyObject *__pyx_kp_u__30;
1726 static PyObject *__pyx_n_s__32;
1727 static PyObject *__pyx_kp_u__8;
1728 static PyObject *__pyx_n_s_add_argument;
1729 static PyObject *__pyx_n_s_add_subplot;
1730 static PyObject *__pyx_kp_u_ancillary;
1731 static PyObject *__pyx_n_s_aot;
1732 static PyObject *__pyx_n_u_aot;
1733 static PyObject *__pyx_n_s_append;
1734 static PyObject *__pyx_n_s_arange;
1735 static PyObject *__pyx_n_s_argmin;
1736 static PyObject *__pyx_n_s_argparse;
1737 static PyObject *__pyx_n_s_args;
1738 static PyObject *__pyx_n_s_array;
1739 static PyObject *__pyx_n_s_astype;
1740 static PyObject *__pyx_n_s_ax;
1741 static PyObject *__pyx_n_s_axis;
1742 static PyObject *__pyx_n_s_b;
1743 static PyObject *__pyx_n_u_b;
1744 static PyObject *__pyx_n_s_big;
1745 static PyObject *__pyx_kp_u_big_model;
1746 static PyObject *__pyx_kp_u_big_small_continuum;
1747 static PyObject *__pyx_n_s_bspair;
1748 static PyObject *__pyx_n_s_c;
1749 static PyObject *__pyx_n_s_cld;
1750 static PyObject *__pyx_n_s_clf;
1751 static PyObject *__pyx_n_s_cline_in_traceback;
1752 static PyObject *__pyx_n_s_clip;
1753 static PyObject *__pyx_n_u_cloud_mask;
1754 static PyObject *__pyx_n_s_col;
1755 static PyObject *__pyx_n_s_color;
1756 static PyObject *__pyx_n_s_cos;
1757 static PyObject *__pyx_n_s_datetime;
1758 static PyObject *__pyx_n_s_default;
1759 static PyObject *__pyx_n_s_denom;
1760 static PyObject *__pyx_n_s_dims;
1761 static PyObject *__pyx_n_s_doc;
1762 static PyObject *__pyx_n_s_dot;
1763 static PyObject *__pyx_n_s_double;
1764 static PyObject *__pyx_n_s_ds;
1765 static PyObject *__pyx_n_s_dto;
1766 static PyObject *__pyx_n_s_dtocean;
1767 static PyObject *__pyx_n_s_dtocean___init;
1768 static PyObject *__pyx_n_s_dtocean_interp_extrap;
1769 static PyObject *__pyx_n_s_dtocean_plot;
1770 static PyObject *__pyx_n_s_dtocean_plot_points;
1771 static PyObject *__pyx_n_s_dtocean_proc_gran;
1772 static PyObject *__pyx_n_s_dtocean_process;
1773 static PyObject *__pyx_kp_s_dtocean_pyx;
1774 static PyObject *__pyx_kp_u_dtocean_y_3_x_4_aot_0_3f_fmf_1_3;
1775 static PyObject *__pyx_n_s_end;
1776 static PyObject *__pyx_n_s_err;
1777 static PyObject *__pyx_n_s_exit;
1778 static PyObject *__pyx_n_s_fig;
1779 static PyObject *__pyx_n_s_figure;
1780 static PyObject *__pyx_n_s_fmf;
1781 static PyObject *__pyx_n_u_fmf;
1782 static PyObject *__pyx_n_s_format;
1783 static PyObject *__pyx_n_u_g;
1784 static PyObject *__pyx_kp_u_geolocation;
1785 static PyObject *__pyx_n_s_grid;
1786 static PyObject *__pyx_n_s_group;
1787 static PyObject *__pyx_n_s_help;
1788 static PyObject *__pyx_kp_u_i;
1789 static PyObject *__pyx_n_s_i_2;
1790 static PyObject *__pyx_n_s_ibm;
1791 static PyObject *__pyx_n_s_ifile;
1792 static PyObject *__pyx_kp_u_ifile_2;
1793 static PyObject *__pyx_n_s_im;
1794 static PyObject *__pyx_n_s_import;
1795 static PyObject *__pyx_n_s_init;
1796 static PyObject *__pyx_n_s_input;
1797 static PyObject *__pyx_n_s_input___init;
1798 static PyObject *__pyx_kp_u_input_file;
1799 static PyObject *__pyx_n_s_inst;
1800 static PyObject *__pyx_n_s_interp;
1801 static PyObject *__pyx_n_s_interp_extrap;
1802 static PyObject *__pyx_n_s_interpn;
1803 static PyObject *__pyx_kp_u_interpolate_to_reflectance_for_e;
1804 static PyObject *__pyx_n_s_iph;
1805 static PyObject *__pyx_n_s_ism;
1806 static PyObject *__pyx_n_s_isz;
1807 static PyObject *__pyx_n_s_itau;
1808 static PyObject *__pyx_n_s_ith;
1809 static PyObject *__pyx_n_s_iwl;
1810 static PyObject *__pyx_n_s_iwn;
1811 static PyObject *__pyx_n_s_ix;
1812 static PyObject *__pyx_n_s_iy;
1813 static PyObject *__pyx_n_u_k;
1814 static PyObject *__pyx_kp_u_l;
1815 static PyObject *__pyx_n_s_l1b_filepath;
1816 static PyObject *__pyx_n_s_label;
1817 static PyObject *__pyx_n_s_lat;
1818 static PyObject *__pyx_n_u_lat;
1819 static PyObject *__pyx_n_u_latitude;
1820 static PyObject *__pyx_n_s_lb;
1821 static PyObject *__pyx_n_s_legend;
1822 static PyObject *__pyx_n_s_linspace;
1823 static PyObject *__pyx_n_s_load_dataset;
1824 static PyObject *__pyx_n_s_loc;
1825 static PyObject *__pyx_n_s_lon;
1826 static PyObject *__pyx_n_u_lon;
1827 static PyObject *__pyx_n_u_longitude;
1828 static PyObject *__pyx_kp_u_lookup_table_file;
1829 static PyObject *__pyx_n_s_ls;
1830 static PyObject *__pyx_kp_u_lut;
1831 static PyObject *__pyx_n_s_lut_2;
1832 static PyObject *__pyx_n_s_lut_filepath;
1833 static PyObject *__pyx_kp_u_m;
1834 static PyObject *__pyx_n_s_main;
1835 static PyObject *__pyx_n_u_main;
1836 static PyObject *__pyx_n_s_main_2;
1837 static PyObject *__pyx_n_s_marker;
1838 static PyObject *__pyx_n_s_math;
1839 static PyObject *__pyx_n_s_matplotlib;
1840 static PyObject *__pyx_n_s_matplotlib_pyplot;
1841 static PyObject *__pyx_n_s_matplotlib_ticker;
1842 static PyObject *__pyx_n_s_max;
1843 static PyObject *__pyx_n_s_max_rfl;
1844 static PyObject *__pyx_n_u_measured;
1845 static PyObject *__pyx_n_s_meshgrid;
1846 static PyObject *__pyx_n_s_metaclass;
1847 static PyObject *__pyx_n_s_min;
1848 static PyObject *__pyx_n_s_min_rfl;
1849 static PyObject *__pyx_n_s_mode;
1850 static PyObject *__pyx_kp_u_mode_2;
1851 static PyObject *__pyx_kp_u_mode_option;
1852 static PyObject *__pyx_n_u_modeled;
1853 static PyObject *__pyx_n_s_module;
1854 static PyObject *__pyx_n_s_mpl_toolkits_mplot3d;
1855 static PyObject *__pyx_n_s_mrfl;
1856 static PyObject *__pyx_n_s_mrflb;
1857 static PyObject *__pyx_n_s_mrflr;
1858 static PyObject *__pyx_n_s_mrfls;
1859 static PyObject *__pyx_n_s_name;
1860 static PyObject *__pyx_n_s_name_2;
1861 static PyObject *__pyx_kp_u_navigation_data;
1862 static PyObject *__pyx_n_s_np;
1863 static PyObject *__pyx_n_s_num;
1864 static PyObject *__pyx_n_s_numpy;
1865 static PyObject *__pyx_n_u_o;
1866 static PyObject *__pyx_kp_u_o_2;
1867 static PyObject *__pyx_n_s_object;
1868 static PyObject *__pyx_n_s_ofile;
1869 static PyObject *__pyx_kp_u_ofile_2;
1870 static PyObject *__pyx_n_s_os;
1871 static PyObject *__pyx_n_s_out_filepath;
1872 static PyObject *__pyx_n_s_output;
1873 static PyObject *__pyx_n_s_output___init;
1874 static PyObject *__pyx_kp_u_output_file;
1875 static PyObject *__pyx_n_s_output_write;
1876 static PyObject *__pyx_kp_u_p;
1877 static PyObject *__pyx_n_s_parse_args;
1878 static PyObject *__pyx_n_s_parser;
1879 static PyObject *__pyx_n_s_pi;
1880 static PyObject *__pyx_n_s_plot;
1881 static PyObject *__pyx_kp_u_plot_2;
1882 static PyObject *__pyx_kp_u_plot_pixel_data;
1883 static PyObject *__pyx_n_s_plot_points;
1884 static PyObject *__pyx_n_s_plot_wireframe;
1885 static PyObject *__pyx_n_s_plt;
1886 static PyObject *__pyx_n_s_prepare;
1887 static PyObject *__pyx_n_s_print;
1888 static PyObject *__pyx_n_s_proc_gran;
1889 static PyObject *__pyx_n_s_process;
1890 static PyObject *__pyx_n_s_projection;
1891 static PyObject *__pyx_n_s_pts;
1892 static PyObject *__pyx_n_s_qualname;
1893 static PyObject *__pyx_n_u_r;
1894 static PyObject *__pyx_n_s_r_pts;
1895 static PyObject *__pyx_n_s_raa;
1896 static PyObject *__pyx_n_u_raa;
1897 static PyObject *__pyx_n_s_raa_pts;
1898 static PyObject *__pyx_n_s_range;
1899 static PyObject *__pyx_n_s_rayl;
1900 static PyObject *__pyx_n_s_rbdif;
1901 static PyObject *__pyx_n_s_rbsb;
1902 static PyObject *__pyx_n_u_reflectance;
1903 static PyObject *__pyx_kp_u_reflectance_2;
1904 static PyObject *__pyx_n_u_relative_azimuth;
1905 static PyObject *__pyx_n_s_required;
1906 static PyObject *__pyx_n_u_residual;
1907 static PyObject *__pyx_n_s_rfl;
1908 static PyObject *__pyx_n_u_rfl;
1909 static PyObject *__pyx_n_s_rfl_pts;
1910 static PyObject *__pyx_n_s_row;
1911 static PyObject *__pyx_n_s_rsd;
1912 static PyObject *__pyx_n_s_s;
1913 static PyObject *__pyx_n_s_sb2;
1914 static PyObject *__pyx_n_s_sbdif;
1915 static PyObject *__pyx_n_s_scatter;
1916 static PyObject *__pyx_n_s_scipy_interpolate;
1917 static PyObject *__pyx_n_s_self;
1918 static PyObject *__pyx_n_u_sensor_zenith;
1919 static PyObject *__pyx_n_s_set_xlabel;
1920 static PyObject *__pyx_n_s_set_ylabel;
1921 static PyObject *__pyx_n_s_set_zlabel;
1922 static PyObject *__pyx_n_s_shape;
1923 static PyObject *__pyx_n_s_show;
1924 static PyObject *__pyx_n_s_shpb;
1925 static PyObject *__pyx_n_s_shps;
1926 static PyObject *__pyx_n_s_small;
1927 static PyObject *__pyx_kp_u_small_model;
1928 static PyObject *__pyx_n_u_solar_zenith;
1929 static PyObject *__pyx_kp_u_square_side;
1930 static PyObject *__pyx_n_s_sse;
1931 static PyObject *__pyx_n_u_sse;
1932 static PyObject *__pyx_n_s_stack;
1933 static PyObject *__pyx_kp_u_start_line;
1934 static PyObject *__pyx_kp_u_start_pixel;
1935 static PyObject *__pyx_n_s_sys;
1936 static PyObject *__pyx_n_s_sza;
1937 static PyObject *__pyx_n_u_sza;
1938 static PyObject *__pyx_n_s_sza_pts;
1939 static PyObject *__pyx_n_s_tau_pts;
1940 static PyObject *__pyx_n_s_taub;
1941 static PyObject *__pyx_n_s_taus;
1942 static PyObject *__pyx_n_s_tauxb;
1943 static PyObject *__pyx_n_s_tauxs;
1944 static PyObject *__pyx_n_s_tblut;
1945 static PyObject *__pyx_n_s_test;
1946 static PyObject *__pyx_n_s_title;
1947 static PyObject *__pyx_n_s_to_netcdf;
1948 static PyObject *__pyx_n_u_toa_reflectance;
1949 static PyObject *__pyx_n_s_toab;
1950 static PyObject *__pyx_n_s_toabt;
1951 static PyObject *__pyx_n_s_toar;
1952 static PyObject *__pyx_n_s_toas;
1953 static PyObject *__pyx_n_s_toast;
1954 static PyObject *__pyx_n_s_transpose;
1955 static PyObject *__pyx_n_s_trflb;
1956 static PyObject *__pyx_n_s_trfls;
1957 static PyObject *__pyx_n_s_ts;
1958 static PyObject *__pyx_n_s_tslut;
1959 static PyObject *__pyx_n_s_tstr;
1960 static PyObject *__pyx_n_s_type;
1961 static PyObject *__pyx_n_u_type;
1962 static PyObject *__pyx_n_s_units;
1963 static PyObject *__pyx_kp_u_upper_right;
1964 static PyObject *__pyx_n_s_values;
1965 static PyObject *__pyx_n_s_vin;
1966 static PyObject *__pyx_n_s_vout;
1967 static PyObject *__pyx_n_s_vza;
1968 static PyObject *__pyx_n_u_vza;
1969 static PyObject *__pyx_n_s_vza_pts;
1970 static PyObject *__pyx_n_u_w;
1971 static PyObject *__pyx_kp_u_wavelength_nm;
1972 static PyObject *__pyx_n_u_wind_speed;
1973 static PyObject *__pyx_n_u_wl;
1974 static PyObject *__pyx_n_s_wl_pts;
1975 static PyObject *__pyx_n_s_wnd;
1976 static PyObject *__pyx_n_u_wnd;
1977 static PyObject *__pyx_n_s_wnd_pts;
1978 static PyObject *__pyx_n_s_write;
1979 static PyObject *__pyx_n_s_ws;
1980 static PyObject *__pyx_n_s_x;
1981 static PyObject *__pyx_n_u_x;
1982 static PyObject *__pyx_n_s_xarray;
1983 static PyObject *__pyx_n_s_xb;
1984 static PyObject *__pyx_n_s_xdim;
1985 static PyObject *__pyx_n_s_xin;
1986 static PyObject *__pyx_n_s_xit;
1987 static PyObject *__pyx_n_s_xlabel;
1988 static PyObject *__pyx_n_s_xm;
1989 static PyObject *__pyx_n_s_xp;
1990 static PyObject *__pyx_n_s_xr;
1991 static PyObject *__pyx_n_s_xs;
1992 static PyObject *__pyx_n_s_y;
1993 static PyObject *__pyx_n_u_y;
1994 static PyObject *__pyx_n_s_yb;
1995 static PyObject *__pyx_n_s_ydim;
1996 static PyObject *__pyx_n_s_ylabel;
1997 static PyObject *__pyx_n_s_ym;
1998 static PyObject *__pyx_n_s_yout;
1999 static PyObject *__pyx_n_s_yp;
2000 static PyObject *__pyx_n_s_ys;
2001 static PyObject *__pyx_n_s_z;
2002 static PyObject *__pyx_n_u_z;
2003 static PyObject *__pyx_n_s_zb;
2004 static PyObject *__pyx_n_s_zeros;
2005 static PyObject *__pyx_n_s_zeros_like;
2006 static PyObject *__pyx_n_s_zm;
2007 static PyObject *__pyx_n_s_zp;
2008 static PyObject *__pyx_n_s_zs;
2009 static PyObject *__pyx_pf_7dtocean_7dtocean___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_lut_filepath, CYTHON_UNUSED PyObject *__pyx_v_mode);
2010 static PyObject *__pyx_pf_7dtocean_7dtocean_2interp_extrap(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_num, PyObject *__pyx_v_xin, PyObject *__pyx_v_x, PyObject *__pyx_v_y);
2011 static PyObject *__pyx_pf_7dtocean_7dtocean_4proc_gran(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_rfl, PyObject *__pyx_v_sza, PyObject *__pyx_v_vza, PyObject *__pyx_v_raa, PyObject *__pyx_v_wnd);
2012 static PyObject *__pyx_pf_7dtocean_7dtocean_6process(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_rfl, PyObject *__pyx_v_sza, PyObject *__pyx_v_vza, PyObject *__pyx_v_raa, PyObject *__pyx_v_wnd);
2013 static PyObject *__pyx_pf_7dtocean_7dtocean_8plot(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_iy, PyObject *__pyx_v_ix);
2014 static PyObject *__pyx_pf_7dtocean_7dtocean_10plot_points(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self);
2015 static PyObject *__pyx_pf_7dtocean_5input___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_l1b_filepath);
2016 static PyObject *__pyx_pf_7dtocean_6output___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_out_filepath, PyObject *__pyx_v_ydim, PyObject *__pyx_v_xdim);
2017 static PyObject *__pyx_pf_7dtocean_6output_2write(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self);
2018 static PyObject *__pyx_pf_7dtocean_main(CYTHON_UNUSED PyObject *__pyx_self);
2019 static PyObject *__pyx_float_0_0;
2020 static PyObject *__pyx_float_0_5;
2021 static PyObject *__pyx_float_1_0;
2022 static PyObject *__pyx_float_1_2;
2023 static PyObject *__pyx_float_6_0;
2024 static PyObject *__pyx_float_0_01;
2025 static PyObject *__pyx_float_10_0;
2026 static PyObject *__pyx_float_16_0;
2027 static PyObject *__pyx_float_180_0;
2028 static PyObject *__pyx_float_neg_999_9;
2029 static PyObject *__pyx_int_0;
2030 static PyObject *__pyx_int_1;
2031 static PyObject *__pyx_int_2;
2032 static PyObject *__pyx_int_3;
2033 static PyObject *__pyx_int_4;
2034 static PyObject *__pyx_int_5;
2035 static PyObject *__pyx_int_6;
2036 static PyObject *__pyx_int_7;
2037 static PyObject *__pyx_int_8;
2038 static PyObject *__pyx_int_11;
2039 static PyObject *__pyx_int_16;
2040 static PyObject *__pyx_int_50;
2041 static PyObject *__pyx_int_111;
2042 static PyObject *__pyx_int_neg_1;
2043 static PyObject *__pyx_int_neg_999;
2044 static PyObject *__pyx_tuple_;
2045 static PyObject *__pyx_slice__4;
2046 static PyObject *__pyx_slice__7;
2047 static PyObject *__pyx_tuple__2;
2048 static PyObject *__pyx_tuple__3;
2049 static PyObject *__pyx_tuple__5;
2050 static PyObject *__pyx_tuple__6;
2051 static PyObject *__pyx_tuple__9;
2052 static PyObject *__pyx_slice__10;
2053 static PyObject *__pyx_slice__12;
2054 static PyObject *__pyx_slice__14;
2055 static PyObject *__pyx_tuple__11;
2056 static PyObject *__pyx_tuple__13;
2057 static PyObject *__pyx_tuple__15;
2058 static PyObject *__pyx_tuple__16;
2059 static PyObject *__pyx_tuple__17;
2060 static PyObject *__pyx_tuple__18;
2061 static PyObject *__pyx_tuple__19;
2062 static PyObject *__pyx_tuple__20;
2063 static PyObject *__pyx_tuple__21;
2064 static PyObject *__pyx_tuple__22;
2065 static PyObject *__pyx_tuple__23;
2066 static PyObject *__pyx_tuple__24;
2067 static PyObject *__pyx_tuple__25;
2068 static PyObject *__pyx_tuple__26;
2069 static PyObject *__pyx_tuple__27;
2070 static PyObject *__pyx_tuple__28;
2071 static PyObject *__pyx_tuple__29;
2072 static PyObject *__pyx_tuple__31;
2073 static PyObject *__pyx_tuple__33;
2074 static PyObject *__pyx_tuple__34;
2075 static PyObject *__pyx_tuple__36;
2076 static PyObject *__pyx_tuple__38;
2077 static PyObject *__pyx_tuple__40;
2078 static PyObject *__pyx_tuple__42;
2079 static PyObject *__pyx_tuple__44;
2080 static PyObject *__pyx_tuple__46;
2081 static PyObject *__pyx_tuple__47;
2082 static PyObject *__pyx_tuple__49;
2083 static PyObject *__pyx_tuple__50;
2084 static PyObject *__pyx_tuple__52;
2085 static PyObject *__pyx_tuple__54;
2086 static PyObject *__pyx_codeobj__35;
2087 static PyObject *__pyx_codeobj__37;
2088 static PyObject *__pyx_codeobj__39;
2089 static PyObject *__pyx_codeobj__41;
2090 static PyObject *__pyx_codeobj__43;
2091 static PyObject *__pyx_codeobj__45;
2092 static PyObject *__pyx_codeobj__48;
2093 static PyObject *__pyx_codeobj__51;
2094 static PyObject *__pyx_codeobj__53;
2095 static PyObject *__pyx_codeobj__55;
2107 static PyObject *__pyx_pw_7dtocean_7dtocean_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
2108 static PyMethodDef __pyx_mdef_7dtocean_7dtocean_1__init__ = {
"__init__", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_7dtocean_7dtocean_1__init__, METH_VARARGS|METH_KEYWORDS, 0};
2109 static PyObject *__pyx_pw_7dtocean_7dtocean_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2110 PyObject *__pyx_v_self = 0;
2111 PyObject *__pyx_v_lut_filepath = 0;
2112 CYTHON_UNUSED PyObject *__pyx_v_mode = 0;
2113 int __pyx_lineno = 0;
2114 const char *__pyx_filename =
NULL;
2115 int __pyx_clineno = 0;
2116 PyObject *__pyx_r = 0;
2117 __Pyx_RefNannyDeclarations
2118 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
2120 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_lut_filepath,&__pyx_n_s_mode,0};
2121 PyObject*
values[3] = {0,0,0};
2122 if (unlikely(__pyx_kwds)) {
2124 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2126 case 3:
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2128 case 2:
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2130 case 1:
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2133 default:
goto __pyx_L5_argtuple_error;
2135 kw_args = PyDict_Size(__pyx_kwds);
2138 if (likely((
values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
2139 else goto __pyx_L5_argtuple_error;
2142 if (likely((
values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lut_filepath)) != 0)) kw_args--;
2144 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 3, 3, 1); __PYX_ERR(0, 35, __pyx_L3_error)
2148 if (likely((
values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mode)) != 0)) kw_args--;
2150 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 3, 3, 2); __PYX_ERR(0, 35, __pyx_L3_error)
2153 if (unlikely(kw_args > 0)) {
2154 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0,
values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 35, __pyx_L3_error)
2156 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
2157 goto __pyx_L5_argtuple_error;
2159 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2160 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2161 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2163 __pyx_v_self =
values[0];
2164 __pyx_v_lut_filepath =
values[1];
2165 __pyx_v_mode =
values[2];
2167 goto __pyx_L4_argument_unpacking_done;
2168 __pyx_L5_argtuple_error:;
2169 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 35, __pyx_L3_error)
2171 __Pyx_AddTraceback(
"dtocean.dtocean.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
2172 __Pyx_RefNannyFinishContext();
2174 __pyx_L4_argument_unpacking_done:;
2175 __pyx_r = __pyx_pf_7dtocean_7dtocean___init__(__pyx_self, __pyx_v_self, __pyx_v_lut_filepath, __pyx_v_mode);
2178 __Pyx_RefNannyFinishContext();
2182 static PyObject *__pyx_pf_7dtocean_7dtocean___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_lut_filepath, CYTHON_UNUSED PyObject *__pyx_v_mode) {
2183 PyObject *__pyx_v_inst =
NULL;
2184 PyObject *__pyx_r =
NULL;
2185 __Pyx_RefNannyDeclarations
2186 PyObject *__pyx_t_1 =
NULL;
2187 PyObject *__pyx_t_2 =
NULL;
2188 PyObject *__pyx_t_3 =
NULL;
2189 PyObject *__pyx_t_4 =
NULL;
2190 PyObject *__pyx_t_5 =
NULL;
2191 PyObject *__pyx_t_6 =
NULL;
2192 PyObject *__pyx_t_7 =
NULL;
2193 PyObject *__pyx_t_8 =
NULL;
2194 PyObject *__pyx_t_9 =
NULL;
2195 PyObject *__pyx_t_10 =
NULL;
2196 PyObject *__pyx_t_11 =
NULL;
2197 PyObject *__pyx_t_12 =
NULL;
2198 PyObject *__pyx_t_13 =
NULL;
2201 char const *__pyx_t_16;
2202 PyObject *__pyx_t_17 =
NULL;
2203 PyObject *__pyx_t_18 =
NULL;
2204 PyObject *__pyx_t_19 =
NULL;
2205 PyObject *__pyx_t_20 =
NULL;
2206 PyObject *__pyx_t_21 =
NULL;
2207 PyObject *__pyx_t_22 =
NULL;
2208 int __pyx_lineno = 0;
2209 const char *__pyx_filename =
NULL;
2210 int __pyx_clineno = 0;
2211 __Pyx_RefNannySetupContext(
"__init__", 0);
2220 __pyx_t_1 = PyNumber_Add(__pyx_kp_u_Reading_Darktarget_LUT, __pyx_v_lut_filepath);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error)
2221 __Pyx_GOTREF(__pyx_t_1);
2222 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error)
2223 __Pyx_GOTREF(__pyx_t_2);
2224 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2225 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2234 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error)
2235 __Pyx_GOTREF(__pyx_t_1);
2236 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 37, __pyx_L1_error)
2237 __Pyx_GOTREF(__pyx_t_3);
2238 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2239 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error)
2240 __Pyx_GOTREF(__pyx_t_1);
2241 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 37, __pyx_L1_error)
2242 __Pyx_GOTREF(__pyx_t_4);
2243 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 37, __pyx_L1_error)
2244 __Pyx_GOTREF(__pyx_t_5);
2245 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NWS);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 37, __pyx_L1_error)
2246 __Pyx_GOTREF(__pyx_t_6);
2247 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NSZA);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 37, __pyx_L1_error)
2248 __Pyx_GOTREF(__pyx_t_7);
2249 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_NVZA);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 37, __pyx_L1_error)
2250 __Pyx_GOTREF(__pyx_t_8);
2251 __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_NRAA);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 37, __pyx_L1_error)
2252 __Pyx_GOTREF(__pyx_t_9);
2253 __pyx_t_10 = PyTuple_New(7);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 37, __pyx_L1_error)
2254 __Pyx_GOTREF(__pyx_t_10);
2255 __Pyx_GIVEREF(__pyx_t_1);
2256 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_1);
2257 __Pyx_GIVEREF(__pyx_t_4);
2258 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_4);
2259 __Pyx_GIVEREF(__pyx_t_5);
2260 PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_5);
2261 __Pyx_GIVEREF(__pyx_t_6);
2262 PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_6);
2263 __Pyx_GIVEREF(__pyx_t_7);
2264 PyTuple_SET_ITEM(__pyx_t_10, 4, __pyx_t_7);
2265 __Pyx_GIVEREF(__pyx_t_8);
2266 PyTuple_SET_ITEM(__pyx_t_10, 5, __pyx_t_8);
2267 __Pyx_GIVEREF(__pyx_t_9);
2268 PyTuple_SET_ITEM(__pyx_t_10, 6, __pyx_t_9);
2277 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
2278 __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3);
2279 if (likely(__pyx_t_9)) {
2280 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
2281 __Pyx_INCREF(__pyx_t_9);
2282 __Pyx_INCREF(
function);
2283 __Pyx_DECREF_SET(__pyx_t_3,
function);
2286 __pyx_t_2 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_9, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_10);
2287 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
2288 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
2289 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error)
2290 __Pyx_GOTREF(__pyx_t_2);
2291 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2292 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toas, __pyx_t_2) < 0) __PYX_ERR(0, 37, __pyx_L1_error)
2293 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2302 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 38, __pyx_L1_error)
2303 __Pyx_GOTREF(__pyx_t_3);
2304 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 38, __pyx_L1_error)
2305 __Pyx_GOTREF(__pyx_t_10);
2306 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2307 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 38, __pyx_L1_error)
2308 __Pyx_GOTREF(__pyx_t_3);
2309 __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 38, __pyx_L1_error)
2310 __Pyx_GOTREF(__pyx_t_9);
2311 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 38, __pyx_L1_error)
2312 __Pyx_GOTREF(__pyx_t_8);
2313 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NWS);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 38, __pyx_L1_error)
2314 __Pyx_GOTREF(__pyx_t_7);
2315 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NSZA);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 38, __pyx_L1_error)
2316 __Pyx_GOTREF(__pyx_t_6);
2317 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_NVZA);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 38, __pyx_L1_error)
2318 __Pyx_GOTREF(__pyx_t_5);
2319 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NRAA);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error)
2320 __Pyx_GOTREF(__pyx_t_4);
2321 __pyx_t_1 = PyTuple_New(7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error)
2322 __Pyx_GOTREF(__pyx_t_1);
2323 __Pyx_GIVEREF(__pyx_t_3);
2324 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
2325 __Pyx_GIVEREF(__pyx_t_9);
2326 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_9);
2327 __Pyx_GIVEREF(__pyx_t_8);
2328 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_8);
2329 __Pyx_GIVEREF(__pyx_t_7);
2330 PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_7);
2331 __Pyx_GIVEREF(__pyx_t_6);
2332 PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_t_6);
2333 __Pyx_GIVEREF(__pyx_t_5);
2334 PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
2335 __Pyx_GIVEREF(__pyx_t_4);
2336 PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_t_4);
2345 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) {
2346 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_10);
2347 if (likely(__pyx_t_4)) {
2348 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_10);
2349 __Pyx_INCREF(__pyx_t_4);
2350 __Pyx_INCREF(
function);
2351 __Pyx_DECREF_SET(__pyx_t_10,
function);
2354 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_4, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_1);
2355 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
2356 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2357 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error)
2358 __Pyx_GOTREF(__pyx_t_2);
2359 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
2360 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toab, __pyx_t_2) < 0) __PYX_ERR(0, 38, __pyx_L1_error)
2361 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2370 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 39, __pyx_L1_error)
2371 __Pyx_GOTREF(__pyx_t_10);
2372 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 39, __pyx_L1_error)
2373 __Pyx_GOTREF(__pyx_t_1);
2374 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
2375 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 39, __pyx_L1_error)
2376 __Pyx_GOTREF(__pyx_t_10);
2377 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NWS);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 39, __pyx_L1_error)
2378 __Pyx_GOTREF(__pyx_t_4);
2379 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_NSZA);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 39, __pyx_L1_error)
2380 __Pyx_GOTREF(__pyx_t_5);
2381 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NVZA);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 39, __pyx_L1_error)
2382 __Pyx_GOTREF(__pyx_t_6);
2383 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NRAA);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 39, __pyx_L1_error)
2384 __Pyx_GOTREF(__pyx_t_7);
2385 __pyx_t_8 = PyTuple_New(5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 39, __pyx_L1_error)
2386 __Pyx_GOTREF(__pyx_t_8);
2387 __Pyx_GIVEREF(__pyx_t_10);
2388 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_10);
2389 __Pyx_GIVEREF(__pyx_t_4);
2390 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_4);
2391 __Pyx_GIVEREF(__pyx_t_5);
2392 PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_5);
2393 __Pyx_GIVEREF(__pyx_t_6);
2394 PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_6);
2395 __Pyx_GIVEREF(__pyx_t_7);
2396 PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_t_7);
2403 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
2404 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
2405 if (likely(__pyx_t_7)) {
2406 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
2407 __Pyx_INCREF(__pyx_t_7);
2408 __Pyx_INCREF(
function);
2409 __Pyx_DECREF_SET(__pyx_t_1,
function);
2412 __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_7, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_8);
2413 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
2414 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
2415 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 39, __pyx_L1_error)
2416 __Pyx_GOTREF(__pyx_t_2);
2417 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2418 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toar, __pyx_t_2) < 0) __PYX_ERR(0, 39, __pyx_L1_error)
2419 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2428 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error)
2429 __Pyx_GOTREF(__pyx_t_1);
2430 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 40, __pyx_L1_error)
2431 __Pyx_GOTREF(__pyx_t_8);
2432 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2433 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error)
2434 __Pyx_GOTREF(__pyx_t_1);
2435 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 40, __pyx_L1_error)
2436 __Pyx_GOTREF(__pyx_t_7);
2437 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 40, __pyx_L1_error)
2438 __Pyx_GOTREF(__pyx_t_6);
2439 __pyx_t_5 = PyTuple_New(3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 40, __pyx_L1_error)
2440 __Pyx_GOTREF(__pyx_t_5);
2441 __Pyx_GIVEREF(__pyx_t_1);
2442 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
2443 __Pyx_GIVEREF(__pyx_t_7);
2444 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_7);
2445 __Pyx_GIVEREF(__pyx_t_6);
2446 PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_6);
2451 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
2452 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
2453 if (likely(__pyx_t_6)) {
2454 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
2455 __Pyx_INCREF(__pyx_t_6);
2456 __Pyx_INCREF(
function);
2457 __Pyx_DECREF_SET(__pyx_t_8,
function);
2460 __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_5);
2461 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
2462 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2463 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error)
2464 __Pyx_GOTREF(__pyx_t_2);
2465 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
2466 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_taus, __pyx_t_2) < 0) __PYX_ERR(0, 40, __pyx_L1_error)
2467 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2476 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 41, __pyx_L1_error)
2477 __Pyx_GOTREF(__pyx_t_8);
2478 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 41, __pyx_L1_error)
2479 __Pyx_GOTREF(__pyx_t_5);
2480 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
2481 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 41, __pyx_L1_error)
2482 __Pyx_GOTREF(__pyx_t_8);
2483 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 41, __pyx_L1_error)
2484 __Pyx_GOTREF(__pyx_t_6);
2485 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 41, __pyx_L1_error)
2486 __Pyx_GOTREF(__pyx_t_7);
2487 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error)
2488 __Pyx_GOTREF(__pyx_t_1);
2489 __Pyx_GIVEREF(__pyx_t_8);
2490 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8);
2491 __Pyx_GIVEREF(__pyx_t_6);
2492 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6);
2493 __Pyx_GIVEREF(__pyx_t_7);
2494 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_7);
2499 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
2500 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
2501 if (likely(__pyx_t_7)) {
2502 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
2503 __Pyx_INCREF(__pyx_t_7);
2504 __Pyx_INCREF(
function);
2505 __Pyx_DECREF_SET(__pyx_t_5,
function);
2508 __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1);
2509 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
2510 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2511 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error)
2512 __Pyx_GOTREF(__pyx_t_2);
2513 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2514 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_taub, __pyx_t_2) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
2515 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2525 __Pyx_PyThreadState_declare
2526 __Pyx_PyThreadState_assign
2527 __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
2528 __Pyx_XGOTREF(__pyx_t_11);
2529 __Pyx_XGOTREF(__pyx_t_12);
2530 __Pyx_XGOTREF(__pyx_t_13);
2540 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_xr);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L3_error)
2541 __Pyx_GOTREF(__pyx_t_2);
2542 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 43, __pyx_L3_error)
2543 __Pyx_GOTREF(__pyx_t_5);
2544 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2545 __pyx_t_2 = PyTuple_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L3_error)
2546 __Pyx_GOTREF(__pyx_t_2);
2547 __Pyx_INCREF(__pyx_v_lut_filepath);
2548 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2549 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_lut_filepath);
2550 __pyx_t_1 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 43, __pyx_L3_error)
2551 __Pyx_GOTREF(__pyx_t_1);
2552 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 43, __pyx_L3_error)
2553 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, __pyx_t_1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 43, __pyx_L3_error)
2554 __Pyx_GOTREF(__pyx_t_7);
2555 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2556 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2557 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2558 __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_t_7, __pyx_n_u_AINTS);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 43, __pyx_L3_error)
2559 __Pyx_GOTREF(__pyx_t_1);
2560 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2561 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 43, __pyx_L3_error)
2562 __Pyx_GOTREF(__pyx_t_7);
2563 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2564 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toas, __pyx_t_7) < 0) __PYX_ERR(0, 43, __pyx_L3_error)
2565 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2574 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 44, __pyx_L3_error)
2575 __Pyx_GOTREF(__pyx_t_7);
2576 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L3_error)
2577 __Pyx_GOTREF(__pyx_t_1);
2578 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2579 __pyx_t_7 = PyTuple_New(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 44, __pyx_L3_error)
2580 __Pyx_GOTREF(__pyx_t_7);
2581 __Pyx_INCREF(__pyx_v_lut_filepath);
2582 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2583 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_lut_filepath);
2584 __pyx_t_2 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L3_error)
2585 __Pyx_GOTREF(__pyx_t_2);
2586 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 44, __pyx_L3_error)
2587 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, __pyx_t_2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 44, __pyx_L3_error)
2588 __Pyx_GOTREF(__pyx_t_5);
2589 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2590 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2591 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2592 __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_n_u_AINTB);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L3_error)
2593 __Pyx_GOTREF(__pyx_t_2);
2594 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2595 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 44, __pyx_L3_error)
2596 __Pyx_GOTREF(__pyx_t_5);
2597 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2598 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toab, __pyx_t_5) < 0) __PYX_ERR(0, 44, __pyx_L3_error)
2599 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2608 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_xr);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 45, __pyx_L3_error)
2609 __Pyx_GOTREF(__pyx_t_5);
2610 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L3_error)
2611 __Pyx_GOTREF(__pyx_t_2);
2612 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2613 __pyx_t_5 = PyTuple_New(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 45, __pyx_L3_error)
2614 __Pyx_GOTREF(__pyx_t_5);
2615 __Pyx_INCREF(__pyx_v_lut_filepath);
2616 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2617 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_lut_filepath);
2618 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 45, __pyx_L3_error)
2619 __Pyx_GOTREF(__pyx_t_7);
2620 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 45, __pyx_L3_error)
2621 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L3_error)
2622 __Pyx_GOTREF(__pyx_t_1);
2623 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2624 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2625 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2626 __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_u_REF_RAYALL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 45, __pyx_L3_error)
2627 __Pyx_GOTREF(__pyx_t_7);
2628 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2629 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_values);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L3_error)
2630 __Pyx_GOTREF(__pyx_t_1);
2631 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2632 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toar, __pyx_t_1) < 0) __PYX_ERR(0, 45, __pyx_L3_error)
2633 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2642 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_xr);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L3_error)
2643 __Pyx_GOTREF(__pyx_t_1);
2644 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 46, __pyx_L3_error)
2645 __Pyx_GOTREF(__pyx_t_7);
2646 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2647 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L3_error)
2648 __Pyx_GOTREF(__pyx_t_1);
2649 __Pyx_INCREF(__pyx_v_lut_filepath);
2650 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2651 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_lut_filepath);
2652 __pyx_t_5 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 46, __pyx_L3_error)
2653 __Pyx_GOTREF(__pyx_t_5);
2654 if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 46, __pyx_L3_error)
2655 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, __pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L3_error)
2656 __Pyx_GOTREF(__pyx_t_2);
2657 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2658 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2659 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2660 __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_t_2, __pyx_n_u_TAUAS);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 46, __pyx_L3_error)
2661 __Pyx_GOTREF(__pyx_t_5);
2662 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2663 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L3_error)
2664 __Pyx_GOTREF(__pyx_t_2);
2665 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2666 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_taus, __pyx_t_2) < 0) __PYX_ERR(0, 46, __pyx_L3_error)
2667 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2676 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_xr);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L3_error)
2677 __Pyx_GOTREF(__pyx_t_2);
2678 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 47, __pyx_L3_error)
2679 __Pyx_GOTREF(__pyx_t_5);
2680 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2681 __pyx_t_2 = PyTuple_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L3_error)
2682 __Pyx_GOTREF(__pyx_t_2);
2683 __Pyx_INCREF(__pyx_v_lut_filepath);
2684 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2685 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_lut_filepath);
2686 __pyx_t_1 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L3_error)
2687 __Pyx_GOTREF(__pyx_t_1);
2688 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 47, __pyx_L3_error)
2689 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, __pyx_t_1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 47, __pyx_L3_error)
2690 __Pyx_GOTREF(__pyx_t_7);
2691 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2692 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2693 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2694 __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_t_7, __pyx_n_u_TAUAB);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L3_error)
2695 __Pyx_GOTREF(__pyx_t_1);
2696 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2697 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 47, __pyx_L3_error)
2698 __Pyx_GOTREF(__pyx_t_7);
2699 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2700 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_taub, __pyx_t_7) < 0) __PYX_ERR(0, 47, __pyx_L3_error)
2701 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2710 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 48, __pyx_L3_error)
2711 __Pyx_GOTREF(__pyx_t_7);
2712 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L3_error)
2713 __Pyx_GOTREF(__pyx_t_1);
2714 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2715 __pyx_t_7 = PyTuple_New(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 48, __pyx_L3_error)
2716 __Pyx_GOTREF(__pyx_t_7);
2717 __Pyx_INCREF(__pyx_v_lut_filepath);
2718 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2719 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_lut_filepath);
2720 __pyx_t_2 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L3_error)
2721 __Pyx_GOTREF(__pyx_t_2);
2722 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 48, __pyx_L3_error)
2723 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, __pyx_t_2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 48, __pyx_L3_error)
2724 __Pyx_GOTREF(__pyx_t_5);
2725 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2726 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2727 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2728 __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_n_u_WAVE);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L3_error)
2729 __Pyx_GOTREF(__pyx_t_2);
2730 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2731 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 48, __pyx_L3_error)
2732 __Pyx_GOTREF(__pyx_t_5);
2733 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2734 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wl_pts, __pyx_t_5) < 0) __PYX_ERR(0, 48, __pyx_L3_error)
2735 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2744 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_xr);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 49, __pyx_L3_error)
2745 __Pyx_GOTREF(__pyx_t_5);
2746 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L3_error)
2747 __Pyx_GOTREF(__pyx_t_2);
2748 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2749 __pyx_t_5 = PyTuple_New(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 49, __pyx_L3_error)
2750 __Pyx_GOTREF(__pyx_t_5);
2751 __Pyx_INCREF(__pyx_v_lut_filepath);
2752 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2753 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_lut_filepath);
2754 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 49, __pyx_L3_error)
2755 __Pyx_GOTREF(__pyx_t_7);
2756 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 49, __pyx_L3_error)
2757 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L3_error)
2758 __Pyx_GOTREF(__pyx_t_1);
2759 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2760 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2761 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2762 __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_u_PHC);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 49, __pyx_L3_error)
2763 __Pyx_GOTREF(__pyx_t_7);
2764 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2765 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_values);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L3_error)
2766 __Pyx_GOTREF(__pyx_t_1);
2767 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2768 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_raa_pts, __pyx_t_1) < 0) __PYX_ERR(0, 49, __pyx_L3_error)
2769 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2778 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_xr);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L3_error)
2779 __Pyx_GOTREF(__pyx_t_1);
2780 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 50, __pyx_L3_error)
2781 __Pyx_GOTREF(__pyx_t_7);
2782 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2783 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L3_error)
2784 __Pyx_GOTREF(__pyx_t_1);
2785 __Pyx_INCREF(__pyx_v_lut_filepath);
2786 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2787 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_lut_filepath);
2788 __pyx_t_5 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 50, __pyx_L3_error)
2789 __Pyx_GOTREF(__pyx_t_5);
2790 if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 50, __pyx_L3_error)
2791 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, __pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L3_error)
2792 __Pyx_GOTREF(__pyx_t_2);
2793 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2794 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2795 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2796 __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_t_2, __pyx_n_u_THET);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 50, __pyx_L3_error)
2797 __Pyx_GOTREF(__pyx_t_5);
2798 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2799 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L3_error)
2800 __Pyx_GOTREF(__pyx_t_2);
2801 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2802 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_vza_pts, __pyx_t_2) < 0) __PYX_ERR(0, 50, __pyx_L3_error)
2803 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2812 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_xr);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L3_error)
2813 __Pyx_GOTREF(__pyx_t_2);
2814 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 51, __pyx_L3_error)
2815 __Pyx_GOTREF(__pyx_t_5);
2816 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2817 __pyx_t_2 = PyTuple_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L3_error)
2818 __Pyx_GOTREF(__pyx_t_2);
2819 __Pyx_INCREF(__pyx_v_lut_filepath);
2820 __Pyx_GIVEREF(__pyx_v_lut_filepath);
2821 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_lut_filepath);
2822 __pyx_t_1 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L3_error)
2823 __Pyx_GOTREF(__pyx_t_1);
2824 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_group, __pyx_kp_u_OCEAN_AEROSOL) < 0) __PYX_ERR(0, 51, __pyx_L3_error)
2825 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, __pyx_t_1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 51, __pyx_L3_error)
2826 __Pyx_GOTREF(__pyx_t_7);
2827 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2828 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2829 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2830 __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_t_7, __pyx_n_u_THET0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L3_error)
2831 __Pyx_GOTREF(__pyx_t_1);
2832 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2833 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 51, __pyx_L3_error)
2834 __Pyx_GOTREF(__pyx_t_7);
2835 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2836 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_sza_pts, __pyx_t_7) < 0) __PYX_ERR(0, 51, __pyx_L3_error)
2837 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2846 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L3_error)
2847 __Pyx_GOTREF(__pyx_t_1);
2848 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_transpose);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L3_error)
2849 __Pyx_GOTREF(__pyx_t_2);
2850 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2851 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_taus);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 52, __pyx_L3_error)
2852 __Pyx_GOTREF(__pyx_t_1);
2855 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
2856 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
2857 if (likely(__pyx_t_5)) {
2858 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
2859 __Pyx_INCREF(__pyx_t_5);
2860 __Pyx_INCREF(
function);
2861 __Pyx_DECREF_SET(__pyx_t_2,
function);
2865 #if CYTHON_FAST_PYCALL
2866 if (PyFunction_Check(__pyx_t_2)) {
2867 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_tuple_};
2868 __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 52, __pyx_L3_error)
2869 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
2870 __Pyx_GOTREF(__pyx_t_7);
2871 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2874 #if CYTHON_FAST_PYCCALL
2875 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
2876 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_tuple_};
2877 __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 52, __pyx_L3_error)
2878 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
2879 __Pyx_GOTREF(__pyx_t_7);
2880 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2884 __pyx_t_6 = PyTuple_New(2+__pyx_t_14);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 52, __pyx_L3_error)
2885 __Pyx_GOTREF(__pyx_t_6);
2887 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 =
NULL;
2889 __Pyx_GIVEREF(__pyx_t_1);
2890 PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_14, __pyx_t_1);
2891 __Pyx_INCREF(__pyx_tuple_);
2892 __Pyx_GIVEREF(__pyx_tuple_);
2893 PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_14, __pyx_tuple_);
2895 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6,
NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 52, __pyx_L3_error)
2896 __Pyx_GOTREF(__pyx_t_7);
2897 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
2899 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2900 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_taus, __pyx_t_7) < 0) __PYX_ERR(0, 52, __pyx_L3_error)
2901 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2910 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L3_error)
2911 __Pyx_GOTREF(__pyx_t_2);
2912 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_transpose);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 53, __pyx_L3_error)
2913 __Pyx_GOTREF(__pyx_t_6);
2914 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2915 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_taub);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L3_error)
2916 __Pyx_GOTREF(__pyx_t_2);
2919 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
2920 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
2921 if (likely(__pyx_t_1)) {
2922 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
2923 __Pyx_INCREF(__pyx_t_1);
2924 __Pyx_INCREF(
function);
2925 __Pyx_DECREF_SET(__pyx_t_6,
function);
2929 #if CYTHON_FAST_PYCALL
2930 if (PyFunction_Check(__pyx_t_6)) {
2931 PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_2, __pyx_tuple_};
2932 __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 53, __pyx_L3_error)
2933 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
2934 __Pyx_GOTREF(__pyx_t_7);
2935 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2938 #if CYTHON_FAST_PYCCALL
2939 if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
2940 PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_t_2, __pyx_tuple_};
2941 __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 53, __pyx_L3_error)
2942 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
2943 __Pyx_GOTREF(__pyx_t_7);
2944 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2948 __pyx_t_5 = PyTuple_New(2+__pyx_t_14);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 53, __pyx_L3_error)
2949 __Pyx_GOTREF(__pyx_t_5);
2951 __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __pyx_t_1 =
NULL;
2953 __Pyx_GIVEREF(__pyx_t_2);
2954 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_14, __pyx_t_2);
2955 __Pyx_INCREF(__pyx_tuple_);
2956 __Pyx_GIVEREF(__pyx_tuple_);
2957 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_14, __pyx_tuple_);
2959 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5,
NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 53, __pyx_L3_error)
2960 __Pyx_GOTREF(__pyx_t_7);
2961 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2963 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
2964 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_taub, __pyx_t_7) < 0) __PYX_ERR(0, 53, __pyx_L3_error)
2965 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2974 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 54, __pyx_L3_error)
2975 __Pyx_GOTREF(__pyx_t_6);
2976 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_transpose);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 54, __pyx_L3_error)
2977 __Pyx_GOTREF(__pyx_t_5);
2978 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
2979 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 54, __pyx_L3_error)
2980 __Pyx_GOTREF(__pyx_t_6);
2983 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
2984 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
2985 if (likely(__pyx_t_2)) {
2986 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
2987 __Pyx_INCREF(__pyx_t_2);
2988 __Pyx_INCREF(
function);
2989 __Pyx_DECREF_SET(__pyx_t_5,
function);
2993 #if CYTHON_FAST_PYCALL
2994 if (PyFunction_Check(__pyx_t_5)) {
2995 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_6, __pyx_tuple__2};
2996 __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 54, __pyx_L3_error)
2997 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
2998 __Pyx_GOTREF(__pyx_t_7);
2999 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3002 #if CYTHON_FAST_PYCCALL
3003 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
3004 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_6, __pyx_tuple__2};
3005 __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 54, __pyx_L3_error)
3006 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
3007 __Pyx_GOTREF(__pyx_t_7);
3008 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3012 __pyx_t_1 = PyTuple_New(2+__pyx_t_14);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L3_error)
3013 __Pyx_GOTREF(__pyx_t_1);
3015 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 =
NULL;
3017 __Pyx_GIVEREF(__pyx_t_6);
3018 PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_14, __pyx_t_6);
3019 __Pyx_INCREF(__pyx_tuple__2);
3020 __Pyx_GIVEREF(__pyx_tuple__2);
3021 PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_14, __pyx_tuple__2);
3023 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_1,
NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 54, __pyx_L3_error)
3024 __Pyx_GOTREF(__pyx_t_7);
3025 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3027 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3028 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toas, __pyx_t_7) < 0) __PYX_ERR(0, 54, __pyx_L3_error)
3029 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3038 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 55, __pyx_L3_error)
3039 __Pyx_GOTREF(__pyx_t_5);
3040 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_transpose);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L3_error)
3041 __Pyx_GOTREF(__pyx_t_1);
3042 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3043 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toab);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 55, __pyx_L3_error)
3044 __Pyx_GOTREF(__pyx_t_5);
3047 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
3048 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
3049 if (likely(__pyx_t_6)) {
3050 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
3051 __Pyx_INCREF(__pyx_t_6);
3052 __Pyx_INCREF(
function);
3053 __Pyx_DECREF_SET(__pyx_t_1,
function);
3057 #if CYTHON_FAST_PYCALL
3058 if (PyFunction_Check(__pyx_t_1)) {
3059 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_5, __pyx_tuple__2};
3060 __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 55, __pyx_L3_error)
3061 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
3062 __Pyx_GOTREF(__pyx_t_7);
3063 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3066 #if CYTHON_FAST_PYCCALL
3067 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
3068 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_5, __pyx_tuple__2};
3069 __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 55, __pyx_L3_error)
3070 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
3071 __Pyx_GOTREF(__pyx_t_7);
3072 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3076 __pyx_t_2 = PyTuple_New(2+__pyx_t_14);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L3_error)
3077 __Pyx_GOTREF(__pyx_t_2);
3079 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 =
NULL;
3081 __Pyx_GIVEREF(__pyx_t_5);
3082 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_14, __pyx_t_5);
3083 __Pyx_INCREF(__pyx_tuple__2);
3084 __Pyx_GIVEREF(__pyx_tuple__2);
3085 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_14, __pyx_tuple__2);
3087 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2,
NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 55, __pyx_L3_error)
3088 __Pyx_GOTREF(__pyx_t_7);
3089 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3091 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3092 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toab, __pyx_t_7) < 0) __PYX_ERR(0, 55, __pyx_L3_error)
3093 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3102 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L3_error)
3103 __Pyx_GOTREF(__pyx_t_1);
3104 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_transpose);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L3_error)
3105 __Pyx_GOTREF(__pyx_t_2);
3106 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3107 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toar);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L3_error)
3108 __Pyx_GOTREF(__pyx_t_1);
3111 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
3112 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
3113 if (likely(__pyx_t_5)) {
3114 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
3115 __Pyx_INCREF(__pyx_t_5);
3116 __Pyx_INCREF(
function);
3117 __Pyx_DECREF_SET(__pyx_t_2,
function);
3121 #if CYTHON_FAST_PYCALL
3122 if (PyFunction_Check(__pyx_t_2)) {
3123 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_tuple__3};
3124 __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 56, __pyx_L3_error)
3125 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
3126 __Pyx_GOTREF(__pyx_t_7);
3127 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3130 #if CYTHON_FAST_PYCCALL
3131 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
3132 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_tuple__3};
3133 __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 56, __pyx_L3_error)
3134 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
3135 __Pyx_GOTREF(__pyx_t_7);
3136 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3140 __pyx_t_6 = PyTuple_New(2+__pyx_t_14);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 56, __pyx_L3_error)
3141 __Pyx_GOTREF(__pyx_t_6);
3143 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 =
NULL;
3145 __Pyx_GIVEREF(__pyx_t_1);
3146 PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_14, __pyx_t_1);
3147 __Pyx_INCREF(__pyx_tuple__3);
3148 __Pyx_GIVEREF(__pyx_tuple__3);
3149 PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_14, __pyx_tuple__3);
3151 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6,
NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 56, __pyx_L3_error)
3152 __Pyx_GOTREF(__pyx_t_7);
3153 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3155 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3156 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_toar, __pyx_t_7) < 0) __PYX_ERR(0, 56, __pyx_L3_error)
3157 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3166 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L3_error)
3167 __Pyx_GOTREF(__pyx_t_2);
3168 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 57, __pyx_L3_error)
3169 __Pyx_GOTREF(__pyx_t_6);
3170 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3171 __pyx_t_2 = PyList_New(4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L3_error)
3172 __Pyx_GOTREF(__pyx_t_2);
3173 __Pyx_INCREF(__pyx_float_0_0);
3174 __Pyx_GIVEREF(__pyx_float_0_0);
3175 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_float_0_0);
3176 __Pyx_INCREF(__pyx_float_6_0);
3177 __Pyx_GIVEREF(__pyx_float_6_0);
3178 PyList_SET_ITEM(__pyx_t_2, 1, __pyx_float_6_0);
3179 __Pyx_INCREF(__pyx_float_10_0);
3180 __Pyx_GIVEREF(__pyx_float_10_0);
3181 PyList_SET_ITEM(__pyx_t_2, 2, __pyx_float_10_0);
3182 __Pyx_INCREF(__pyx_float_16_0);
3183 __Pyx_GIVEREF(__pyx_float_16_0);
3184 PyList_SET_ITEM(__pyx_t_2, 3, __pyx_float_16_0);
3186 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
3187 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
3188 if (likely(__pyx_t_1)) {
3189 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
3190 __Pyx_INCREF(__pyx_t_1);
3191 __Pyx_INCREF(
function);
3192 __Pyx_DECREF_SET(__pyx_t_6,
function);
3195 __pyx_t_7 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_1, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2);
3196 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
3197 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3198 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 57, __pyx_L3_error)
3199 __Pyx_GOTREF(__pyx_t_7);
3200 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3201 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wnd_pts, __pyx_t_7) < 0) __PYX_ERR(0, 57, __pyx_L3_error)
3202 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3211 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_taus);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 58, __pyx_L3_error)
3212 __Pyx_GOTREF(__pyx_t_7);
3213 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_W550);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 58, __pyx_L3_error)
3214 __Pyx_GOTREF(__pyx_t_6);
3215 __pyx_t_2 = PyTuple_New(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L3_error)
3216 __Pyx_GOTREF(__pyx_t_2);
3217 __Pyx_GIVEREF(__pyx_t_6);
3218 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6);
3219 __Pyx_INCREF(__pyx_int_0);
3220 __Pyx_GIVEREF(__pyx_int_0);
3221 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_0);
3222 __Pyx_INCREF(__pyx_slice__4);
3223 __Pyx_GIVEREF(__pyx_slice__4);
3224 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_slice__4);
3226 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 58, __pyx_L3_error)
3227 __Pyx_GOTREF(__pyx_t_6);
3228 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3229 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3230 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_tau_pts, __pyx_t_6) < 0) __PYX_ERR(0, 58, __pyx_L3_error)
3231 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3240 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_wnd_pts);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 59, __pyx_L3_error)
3241 __Pyx_GOTREF(__pyx_t_6);
3242 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sza_pts);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L3_error)
3243 __Pyx_GOTREF(__pyx_t_2);
3244 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_vza_pts);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 59, __pyx_L3_error)
3245 __Pyx_GOTREF(__pyx_t_7);
3246 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_raa_pts);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L3_error)
3247 __Pyx_GOTREF(__pyx_t_1);
3248 __pyx_t_5 = PyTuple_New(4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 59, __pyx_L3_error)
3249 __Pyx_GOTREF(__pyx_t_5);
3250 __Pyx_GIVEREF(__pyx_t_6);
3251 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6);
3252 __Pyx_GIVEREF(__pyx_t_2);
3253 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
3254 __Pyx_GIVEREF(__pyx_t_7);
3255 PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_7);
3256 __Pyx_GIVEREF(__pyx_t_1);
3257 PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_1);
3262 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_pts, __pyx_t_5) < 0) __PYX_ERR(0, 59, __pyx_L3_error)
3263 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3273 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
3274 __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
3275 __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
3276 goto __pyx_L8_try_end;
3278 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
3279 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
3280 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
3281 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
3282 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
3283 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
3284 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
3285 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
3286 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
3287 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
3296 __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
3298 __Pyx_AddTraceback(
"dtocean.dtocean.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
3299 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_1, &__pyx_t_7) < 0) __PYX_ERR(0, 60, __pyx_L5_except_error)
3300 __Pyx_GOTREF(__pyx_t_5);
3301 __Pyx_GOTREF(__pyx_t_1);
3302 __Pyx_GOTREF(__pyx_t_7);
3303 __Pyx_INCREF(__pyx_t_1);
3304 __pyx_v_inst = __pyx_t_1;
3314 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, ((PyObject *)Py_TYPE(__pyx_v_inst)));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L14_error)
3315 __Pyx_GOTREF(__pyx_t_2);
3316 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3325 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_v_inst);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L14_error)
3326 __Pyx_GOTREF(__pyx_t_2);
3327 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3336 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__5,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L14_error)
3337 __Pyx_GOTREF(__pyx_t_2);
3338 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3347 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_sys);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 64, __pyx_L14_error)
3348 __Pyx_GOTREF(__pyx_t_6);
3349 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_exit);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 64, __pyx_L14_error)
3350 __Pyx_GOTREF(__pyx_t_8);
3351 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3353 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
3354 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
3355 if (likely(__pyx_t_6)) {
3356 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
3357 __Pyx_INCREF(__pyx_t_6);
3358 __Pyx_INCREF(
function);
3359 __Pyx_DECREF_SET(__pyx_t_8,
function);
3362 __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_8);
3363 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
3364 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L14_error)
3365 __Pyx_GOTREF(__pyx_t_2);
3366 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
3367 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3379 __Pyx_DECREF(__pyx_v_inst);
3380 __pyx_v_inst =
NULL;
3385 __Pyx_PyThreadState_declare
3386 __Pyx_PyThreadState_assign
3387 __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0;
3388 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
3389 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
3390 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
3391 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
3392 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
3393 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
3394 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
3395 if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22);
3396 if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
3397 __Pyx_XGOTREF(__pyx_t_17);
3398 __Pyx_XGOTREF(__pyx_t_18);
3399 __Pyx_XGOTREF(__pyx_t_19);
3400 __Pyx_XGOTREF(__pyx_t_20);
3401 __Pyx_XGOTREF(__pyx_t_21);
3402 __Pyx_XGOTREF(__pyx_t_22);
3403 __pyx_t_14 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
3405 __Pyx_DECREF(__pyx_v_inst);
3406 __pyx_v_inst =
NULL;
3408 if (PY_MAJOR_VERSION >= 3) {
3409 __Pyx_XGIVEREF(__pyx_t_20);
3410 __Pyx_XGIVEREF(__pyx_t_21);
3411 __Pyx_XGIVEREF(__pyx_t_22);
3412 __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_21, __pyx_t_22);
3414 __Pyx_XGIVEREF(__pyx_t_17);
3415 __Pyx_XGIVEREF(__pyx_t_18);
3416 __Pyx_XGIVEREF(__pyx_t_19);
3417 __Pyx_ErrRestore(__pyx_t_17, __pyx_t_18, __pyx_t_19);
3418 __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0;
3419 __pyx_lineno = __pyx_t_14; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16;
3420 goto __pyx_L5_except_error;
3424 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
3425 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
3426 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
3427 goto __pyx_L4_exception_handled;
3429 goto __pyx_L5_except_error;
3430 __pyx_L5_except_error:;
3439 __Pyx_XGIVEREF(__pyx_t_11);
3440 __Pyx_XGIVEREF(__pyx_t_12);
3441 __Pyx_XGIVEREF(__pyx_t_13);
3442 __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
3443 goto __pyx_L1_error;
3444 __pyx_L4_exception_handled:;
3445 __Pyx_XGIVEREF(__pyx_t_11);
3446 __Pyx_XGIVEREF(__pyx_t_12);
3447 __Pyx_XGIVEREF(__pyx_t_13);
3448 __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
3461 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3464 __Pyx_XDECREF(__pyx_t_1);
3465 __Pyx_XDECREF(__pyx_t_2);
3466 __Pyx_XDECREF(__pyx_t_3);
3467 __Pyx_XDECREF(__pyx_t_4);
3468 __Pyx_XDECREF(__pyx_t_5);
3469 __Pyx_XDECREF(__pyx_t_6);
3470 __Pyx_XDECREF(__pyx_t_7);
3471 __Pyx_XDECREF(__pyx_t_8);
3472 __Pyx_XDECREF(__pyx_t_9);
3473 __Pyx_XDECREF(__pyx_t_10);
3474 __Pyx_AddTraceback(
"dtocean.dtocean.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
3477 __Pyx_XDECREF(__pyx_v_inst);
3478 __Pyx_XGIVEREF(__pyx_r);
3479 __Pyx_RefNannyFinishContext();
3492 static PyObject *__pyx_pw_7dtocean_7dtocean_3interp_extrap(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3493 static PyMethodDef __pyx_mdef_7dtocean_7dtocean_3interp_extrap = {
"interp_extrap", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_7dtocean_7dtocean_3interp_extrap, METH_VARARGS|METH_KEYWORDS, 0};
3494 static PyObject *__pyx_pw_7dtocean_7dtocean_3interp_extrap(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3495 CYTHON_UNUSED PyObject *__pyx_v_self = 0;
3496 PyObject *__pyx_v_num = 0;
3497 PyObject *__pyx_v_xin = 0;
3498 PyObject *__pyx_v_x = 0;
3499 PyObject *__pyx_v_y = 0;
3500 int __pyx_lineno = 0;
3501 const char *__pyx_filename =
NULL;
3502 int __pyx_clineno = 0;
3503 PyObject *__pyx_r = 0;
3504 __Pyx_RefNannyDeclarations
3505 __Pyx_RefNannySetupContext(
"interp_extrap (wrapper)", 0);
3507 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_num,&__pyx_n_s_xin,&__pyx_n_s_x,&__pyx_n_s_y,0};
3508 PyObject*
values[5] = {0,0,0,0,0};
3509 if (unlikely(__pyx_kwds)) {
3511 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3513 case 5:
values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3515 case 4:
values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3517 case 3:
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3519 case 2:
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3521 case 1:
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3524 default:
goto __pyx_L5_argtuple_error;
3526 kw_args = PyDict_Size(__pyx_kwds);
3529 if (likely((
values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
3530 else goto __pyx_L5_argtuple_error;
3533 if (likely((
values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_num)) != 0)) kw_args--;
3535 __Pyx_RaiseArgtupleInvalid(
"interp_extrap", 1, 5, 5, 1); __PYX_ERR(0, 67, __pyx_L3_error)
3539 if (likely((
values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xin)) != 0)) kw_args--;
3541 __Pyx_RaiseArgtupleInvalid(
"interp_extrap", 1, 5, 5, 2); __PYX_ERR(0, 67, __pyx_L3_error)
3545 if (likely((
values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
3547 __Pyx_RaiseArgtupleInvalid(
"interp_extrap", 1, 5, 5, 3); __PYX_ERR(0, 67, __pyx_L3_error)
3551 if (likely((
values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--;
3553 __Pyx_RaiseArgtupleInvalid(
"interp_extrap", 1, 5, 5, 4); __PYX_ERR(0, 67, __pyx_L3_error)
3556 if (unlikely(kw_args > 0)) {
3557 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0,
values, pos_args,
"interp_extrap") < 0)) __PYX_ERR(0, 67, __pyx_L3_error)
3559 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
3560 goto __pyx_L5_argtuple_error;
3562 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3563 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3564 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3565 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3566 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3568 __pyx_v_self =
values[0];
3574 goto __pyx_L4_argument_unpacking_done;
3575 __pyx_L5_argtuple_error:;
3576 __Pyx_RaiseArgtupleInvalid(
"interp_extrap", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 67, __pyx_L3_error)
3578 __Pyx_AddTraceback(
"dtocean.dtocean.interp_extrap", __pyx_clineno, __pyx_lineno, __pyx_filename);
3579 __Pyx_RefNannyFinishContext();
3581 __pyx_L4_argument_unpacking_done:;
3582 __pyx_r = __pyx_pf_7dtocean_7dtocean_2interp_extrap(__pyx_self, __pyx_v_self, __pyx_v_num, __pyx_v_xin, __pyx_v_x, __pyx_v_y);
3585 __Pyx_RefNannyFinishContext();
3589 static PyObject *__pyx_pf_7dtocean_7dtocean_2interp_extrap(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_num, PyObject *__pyx_v_xin, PyObject *__pyx_v_x, PyObject *__pyx_v_y) {
3590 PyObject *__pyx_v_yout =
NULL;
3591 PyObject *__pyx_v_i =
NULL;
3592 PyObject *__pyx_r =
NULL;
3593 __Pyx_RefNannyDeclarations
3594 PyObject *__pyx_t_1 =
NULL;
3595 PyObject *__pyx_t_2 =
NULL;
3597 PyObject *__pyx_t_4 =
NULL;
3598 PyObject *__pyx_t_5 =
NULL;
3599 PyObject *__pyx_t_6 =
NULL;
3600 Py_ssize_t __pyx_t_7;
3601 PyObject *(*__pyx_t_8)(PyObject *);
3603 PyObject *__pyx_t_10 =
NULL;
3604 int __pyx_lineno = 0;
3605 const char *__pyx_filename =
NULL;
3606 int __pyx_clineno = 0;
3607 __Pyx_RefNannySetupContext(
"interp_extrap", 0);
3616 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error)
3617 __Pyx_GOTREF(__pyx_t_1);
3618 __pyx_t_2 = PyObject_RichCompare(__pyx_v_xin, __pyx_t_1, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error)
3619 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3620 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 68, __pyx_L1_error)
3621 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3631 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_y, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
3632 __Pyx_GOTREF(__pyx_t_2);
3633 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
3634 __Pyx_GOTREF(__pyx_t_1);
3635 __pyx_t_4 = PyNumber_Subtract(__pyx_v_xin, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L1_error)
3636 __Pyx_GOTREF(__pyx_t_4);
3637 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3638 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_y, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
3639 __Pyx_GOTREF(__pyx_t_1);
3640 __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_y, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 69, __pyx_L1_error)
3641 __Pyx_GOTREF(__pyx_t_5);
3642 __pyx_t_6 = PyNumber_Subtract(__pyx_t_1, __pyx_t_5);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 69, __pyx_L1_error)
3643 __Pyx_GOTREF(__pyx_t_6);
3644 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3645 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3646 __pyx_t_5 = PyNumber_Multiply(__pyx_t_4, __pyx_t_6);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 69, __pyx_L1_error)
3647 __Pyx_GOTREF(__pyx_t_5);
3648 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3649 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3650 __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_x, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 69, __pyx_L1_error)
3651 __Pyx_GOTREF(__pyx_t_6);
3652 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_x, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L1_error)
3653 __Pyx_GOTREF(__pyx_t_4);
3654 __pyx_t_1 = PyNumber_Subtract(__pyx_t_6, __pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
3655 __Pyx_GOTREF(__pyx_t_1);
3656 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3657 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3658 __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_5, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 69, __pyx_L1_error)
3659 __Pyx_GOTREF(__pyx_t_4);
3660 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3661 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3662 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
3663 __Pyx_GOTREF(__pyx_t_1);
3664 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3665 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3666 __pyx_v_yout = __pyx_t_1;
3686 __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_v_num, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
3687 __Pyx_GOTREF(__pyx_t_1);
3688 __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error)
3689 __Pyx_GOTREF(__pyx_t_4);
3690 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3691 __pyx_t_1 = PyObject_RichCompare(__pyx_v_xin, __pyx_t_4, Py_GE); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
3692 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3693 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 70, __pyx_L1_error)
3694 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3704 __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_v_num, __pyx_int_2, 2, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
3705 __Pyx_GOTREF(__pyx_t_1);
3706 __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_y, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L1_error)
3707 __Pyx_GOTREF(__pyx_t_4);
3708 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3709 __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_v_num, __pyx_int_2, 2, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
3710 __Pyx_GOTREF(__pyx_t_1);
3711 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3712 __Pyx_GOTREF(__pyx_t_2);
3713 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3714 __pyx_t_1 = PyNumber_Subtract(__pyx_v_xin, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
3715 __Pyx_GOTREF(__pyx_t_1);
3716 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3717 __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_v_num, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3718 __Pyx_GOTREF(__pyx_t_2);
3719 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_y, __pyx_t_2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error)
3720 __Pyx_GOTREF(__pyx_t_5);
3721 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3722 __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_v_num, __pyx_int_2, 2, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3723 __Pyx_GOTREF(__pyx_t_2);
3724 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_y, __pyx_t_2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 71, __pyx_L1_error)
3725 __Pyx_GOTREF(__pyx_t_6);
3726 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3727 __pyx_t_2 = PyNumber_Subtract(__pyx_t_5, __pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3728 __Pyx_GOTREF(__pyx_t_2);
3729 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3730 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3731 __pyx_t_6 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 71, __pyx_L1_error)
3732 __Pyx_GOTREF(__pyx_t_6);
3733 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3734 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3735 __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_v_num, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3736 __Pyx_GOTREF(__pyx_t_2);
3737 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
3738 __Pyx_GOTREF(__pyx_t_1);
3739 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3740 __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_v_num, __pyx_int_2, 2, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3741 __Pyx_GOTREF(__pyx_t_2);
3742 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_t_2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error)
3743 __Pyx_GOTREF(__pyx_t_5);
3744 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3745 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3746 __Pyx_GOTREF(__pyx_t_2);
3747 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3748 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3749 __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_6, __pyx_t_2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error)
3750 __Pyx_GOTREF(__pyx_t_5);
3751 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3752 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3753 __pyx_t_2 = PyNumber_Add(__pyx_t_4, __pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
3754 __Pyx_GOTREF(__pyx_t_2);
3755 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3756 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3757 __pyx_v_yout = __pyx_t_2;
3778 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_num);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error)
3779 __Pyx_GOTREF(__pyx_t_2);
3780 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
3781 __pyx_t_5 = __pyx_t_2; __Pyx_INCREF(__pyx_t_5); __pyx_t_7 = 0;
3784 __pyx_t_7 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 73, __pyx_L1_error)
3785 __Pyx_GOTREF(__pyx_t_5);
3786 __pyx_t_8 = Py_TYPE(__pyx_t_5)->tp_iternext;
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 73, __pyx_L1_error)
3788 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3790 if (likely(!__pyx_t_8)) {
3791 if (likely(PyList_CheckExact(__pyx_t_5))) {
3792 if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_5))
break;
3793 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
3794 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++;
if (unlikely(0 < 0)) __PYX_ERR(0, 73, __pyx_L1_error)
3796 __pyx_t_2 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error)
3797 __Pyx_GOTREF(__pyx_t_2);
3800 if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_5))
break;
3801 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
3802 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++;
if (unlikely(0 < 0)) __PYX_ERR(0, 73, __pyx_L1_error)
3804 __pyx_t_2 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error)
3805 __Pyx_GOTREF(__pyx_t_2);
3809 __pyx_t_2 = __pyx_t_8(__pyx_t_5);
3810 if (unlikely(!__pyx_t_2)) {
3811 PyObject* exc_type = PyErr_Occurred();
3813 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
3814 else __PYX_ERR(0, 73, __pyx_L1_error)
3818 __Pyx_GOTREF(__pyx_t_2);
3820 __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
3830 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_v_i);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error)
3831 __Pyx_GOTREF(__pyx_t_2);
3832 __pyx_t_4 = PyObject_RichCompare(__pyx_v_xin, __pyx_t_2, Py_GE); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 74, __pyx_L1_error)
3833 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3834 __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 74, __pyx_L1_error)
3835 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3838 __pyx_t_3 = __pyx_t_9;
3839 goto __pyx_L7_bool_binop_done;
3841 __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 74, __pyx_L1_error)
3842 __Pyx_GOTREF(__pyx_t_4);
3843 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error)
3844 __Pyx_GOTREF(__pyx_t_2);
3845 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3846 __pyx_t_4 = PyObject_RichCompare(__pyx_v_xin, __pyx_t_2, Py_LE); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 74, __pyx_L1_error)
3847 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3848 __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 74, __pyx_L1_error)
3849 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3850 __pyx_t_3 = __pyx_t_9;
3851 __pyx_L7_bool_binop_done:;
3861 __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_y, __pyx_v_i);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 75, __pyx_L1_error)
3862 __Pyx_GOTREF(__pyx_t_4);
3863 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_v_i);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error)
3864 __Pyx_GOTREF(__pyx_t_2);
3865 __pyx_t_6 = PyNumber_Subtract(__pyx_v_xin, __pyx_t_2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 75, __pyx_L1_error)
3866 __Pyx_GOTREF(__pyx_t_6);
3867 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3868 __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error)
3869 __Pyx_GOTREF(__pyx_t_2);
3870 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_y, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
3871 __Pyx_GOTREF(__pyx_t_1);
3872 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3873 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_y, __pyx_v_i);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error)
3874 __Pyx_GOTREF(__pyx_t_2);
3875 __pyx_t_10 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 75, __pyx_L1_error)
3876 __Pyx_GOTREF(__pyx_t_10);
3877 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3878 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3879 __pyx_t_2 = PyNumber_Multiply(__pyx_t_6, __pyx_t_10);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error)
3880 __Pyx_GOTREF(__pyx_t_2);
3881 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3882 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
3883 __pyx_t_10 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 75, __pyx_L1_error)
3884 __Pyx_GOTREF(__pyx_t_10);
3885 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_t_10);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 75, __pyx_L1_error)
3886 __Pyx_GOTREF(__pyx_t_6);
3887 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
3888 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_v_i);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 75, __pyx_L1_error)
3889 __Pyx_GOTREF(__pyx_t_10);
3890 __pyx_t_1 = PyNumber_Subtract(__pyx_t_6, __pyx_t_10);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
3891 __Pyx_GOTREF(__pyx_t_1);
3892 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
3893 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
3894 __pyx_t_10 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 75, __pyx_L1_error)
3895 __Pyx_GOTREF(__pyx_t_10);
3896 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3897 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3898 __pyx_t_1 = PyNumber_Add(__pyx_t_4, __pyx_t_10);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
3899 __Pyx_GOTREF(__pyx_t_1);
3900 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3901 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
3902 __pyx_v_yout = __pyx_t_1;
3912 goto __pyx_L5_break;
3932 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3943 __Pyx_XDECREF(__pyx_r);
3944 if (unlikely(!__pyx_v_yout)) { __Pyx_RaiseUnboundLocalError(
"yout"); __PYX_ERR(0, 77, __pyx_L1_error) }
3945 __Pyx_INCREF(__pyx_v_yout);
3946 __pyx_r = __pyx_v_yout;
3959 __Pyx_XDECREF(__pyx_t_1);
3960 __Pyx_XDECREF(__pyx_t_2);
3961 __Pyx_XDECREF(__pyx_t_4);
3962 __Pyx_XDECREF(__pyx_t_5);
3963 __Pyx_XDECREF(__pyx_t_6);
3964 __Pyx_XDECREF(__pyx_t_10);
3965 __Pyx_AddTraceback(
"dtocean.dtocean.interp_extrap", __pyx_clineno, __pyx_lineno, __pyx_filename);
3968 __Pyx_XDECREF(__pyx_v_yout);
3969 __Pyx_XDECREF(__pyx_v_i);
3970 __Pyx_XGIVEREF(__pyx_r);
3971 __Pyx_RefNannyFinishContext();
3984 static PyObject *__pyx_pw_7dtocean_7dtocean_5proc_gran(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3985 static PyMethodDef __pyx_mdef_7dtocean_7dtocean_5proc_gran = {
"proc_gran", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_7dtocean_7dtocean_5proc_gran, METH_VARARGS|METH_KEYWORDS, 0};
3986 static PyObject *__pyx_pw_7dtocean_7dtocean_5proc_gran(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3987 PyObject *__pyx_v_self = 0;
3988 CYTHON_UNUSED PyObject *__pyx_v_rfl = 0;
3989 PyObject *__pyx_v_sza = 0;
3990 PyObject *__pyx_v_vza = 0;
3991 PyObject *__pyx_v_raa = 0;
3992 PyObject *__pyx_v_wnd = 0;
3993 int __pyx_lineno = 0;
3994 const char *__pyx_filename =
NULL;
3995 int __pyx_clineno = 0;
3996 PyObject *__pyx_r = 0;
3997 __Pyx_RefNannyDeclarations
3998 __Pyx_RefNannySetupContext(
"proc_gran (wrapper)", 0);
4000 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_rfl,&__pyx_n_s_sza,&__pyx_n_s_vza,&__pyx_n_s_raa,&__pyx_n_s_wnd,0};
4001 PyObject*
values[6] = {0,0,0,0,0,0};
4002 if (unlikely(__pyx_kwds)) {
4004 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4006 case 6:
values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4008 case 5:
values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4010 case 4:
values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4012 case 3:
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4014 case 2:
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4016 case 1:
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4019 default:
goto __pyx_L5_argtuple_error;
4021 kw_args = PyDict_Size(__pyx_kwds);
4024 if (likely((
values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
4025 else goto __pyx_L5_argtuple_error;
4028 if (likely((
values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rfl)) != 0)) kw_args--;
4030 __Pyx_RaiseArgtupleInvalid(
"proc_gran", 1, 6, 6, 1); __PYX_ERR(0, 79, __pyx_L3_error)
4034 if (likely((
values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sza)) != 0)) kw_args--;
4036 __Pyx_RaiseArgtupleInvalid(
"proc_gran", 1, 6, 6, 2); __PYX_ERR(0, 79, __pyx_L3_error)
4040 if (likely((
values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vza)) != 0)) kw_args--;
4042 __Pyx_RaiseArgtupleInvalid(
"proc_gran", 1, 6, 6, 3); __PYX_ERR(0, 79, __pyx_L3_error)
4046 if (likely((
values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_raa)) != 0)) kw_args--;
4048 __Pyx_RaiseArgtupleInvalid(
"proc_gran", 1, 6, 6, 4); __PYX_ERR(0, 79, __pyx_L3_error)
4052 if (likely((
values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wnd)) != 0)) kw_args--;
4054 __Pyx_RaiseArgtupleInvalid(
"proc_gran", 1, 6, 6, 5); __PYX_ERR(0, 79, __pyx_L3_error)
4057 if (unlikely(kw_args > 0)) {
4058 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0,
values, pos_args,
"proc_gran") < 0)) __PYX_ERR(0, 79, __pyx_L3_error)
4060 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
4061 goto __pyx_L5_argtuple_error;
4063 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4064 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4065 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4066 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4067 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4068 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4070 __pyx_v_self =
values[0];
4077 goto __pyx_L4_argument_unpacking_done;
4078 __pyx_L5_argtuple_error:;
4079 __Pyx_RaiseArgtupleInvalid(
"proc_gran", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 79, __pyx_L3_error)
4081 __Pyx_AddTraceback(
"dtocean.dtocean.proc_gran", __pyx_clineno, __pyx_lineno, __pyx_filename);
4082 __Pyx_RefNannyFinishContext();
4084 __pyx_L4_argument_unpacking_done:;
4085 __pyx_r = __pyx_pf_7dtocean_7dtocean_4proc_gran(__pyx_self, __pyx_v_self, __pyx_v_rfl, __pyx_v_sza, __pyx_v_vza, __pyx_v_raa, __pyx_v_wnd);
4088 __Pyx_RefNannyFinishContext();
4092 static PyObject *__pyx_pf_7dtocean_7dtocean_4proc_gran(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_rfl, PyObject *__pyx_v_sza, PyObject *__pyx_v_vza, PyObject *__pyx_v_raa, PyObject *__pyx_v_wnd) {
4093 PyObject *__pyx_v_xit =
NULL;
4094 PyObject *__pyx_v_mrfls =
NULL;
4095 PyObject *__pyx_v_mrflb =
NULL;
4096 PyObject *__pyx_v_mrflr =
NULL;
4097 PyObject *__pyx_v_units =
NULL;
4098 CYTHON_UNUSED PyObject *__pyx_v_max_rfl =
NULL;
4099 CYTHON_UNUSED PyObject *__pyx_v_min_rfl =
NULL;
4100 PyObject *__pyx_v_shps =
NULL;
4101 PyObject *__pyx_v_shpb =
NULL;
4102 PyObject *__pyx_v_iwl =
NULL;
4103 PyObject *__pyx_v_ism =
NULL;
4104 PyObject *__pyx_v_iwn =
NULL;
4105 PyObject *__pyx_v_isz =
NULL;
4106 PyObject *__pyx_v_ith =
NULL;
4107 PyObject *__pyx_v_iph =
NULL;
4108 PyObject *__pyx_v_itau =
NULL;
4109 PyObject *__pyx_v_ibm =
NULL;
4110 PyObject *__pyx_r =
NULL;
4111 __Pyx_RefNannyDeclarations
4112 PyObject *__pyx_t_1 =
NULL;
4113 PyObject *__pyx_t_2 =
NULL;
4114 PyObject *__pyx_t_3 =
NULL;
4115 PyObject *__pyx_t_4 =
NULL;
4116 PyObject *__pyx_t_5 =
NULL;
4117 PyObject *__pyx_t_6 =
NULL;
4118 PyObject *__pyx_t_7 =
NULL;
4120 Py_ssize_t __pyx_t_9;
4121 PyObject *(*__pyx_t_10)(PyObject *);
4122 Py_ssize_t __pyx_t_11;
4123 PyObject *(*__pyx_t_12)(PyObject *);
4124 Py_ssize_t __pyx_t_13;
4125 PyObject *(*__pyx_t_14)(PyObject *);
4126 Py_ssize_t __pyx_t_15;
4127 PyObject *(*__pyx_t_16)(PyObject *);
4128 Py_ssize_t __pyx_t_17;
4129 PyObject *(*__pyx_t_18)(PyObject *);
4130 Py_ssize_t __pyx_t_19;
4131 PyObject *(*__pyx_t_20)(PyObject *);
4132 PyObject *__pyx_t_21 =
NULL;
4133 PyObject *__pyx_t_22 =
NULL;
4134 PyObject *__pyx_t_23 =
NULL;
4135 PyObject *__pyx_t_24 =
NULL;
4136 PyObject *__pyx_t_25 =
NULL;
4137 PyObject *__pyx_t_26 =
NULL;
4138 int __pyx_lineno = 0;
4139 const char *__pyx_filename =
NULL;
4140 int __pyx_clineno = 0;
4141 __Pyx_RefNannySetupContext(
"proc_gran", 0);
4150 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error)
4151 __Pyx_GOTREF(__pyx_t_1);
4152 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_stack);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error)
4153 __Pyx_GOTREF(__pyx_t_2);
4154 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4155 __pyx_t_1 = PyTuple_New(4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error)
4156 __Pyx_GOTREF(__pyx_t_1);
4157 __Pyx_INCREF(__pyx_v_wnd);
4158 __Pyx_GIVEREF(__pyx_v_wnd);
4159 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_wnd);
4160 __Pyx_INCREF(__pyx_v_sza);
4161 __Pyx_GIVEREF(__pyx_v_sza);
4162 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_sza);
4163 __Pyx_INCREF(__pyx_v_vza);
4164 __Pyx_GIVEREF(__pyx_v_vza);
4165 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_vza);
4166 __Pyx_INCREF(__pyx_v_raa);
4167 __Pyx_GIVEREF(__pyx_v_raa);
4168 PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_raa);
4169 __pyx_t_3 = PyTuple_New(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error)
4170 __Pyx_GOTREF(__pyx_t_3);
4171 __Pyx_GIVEREF(__pyx_t_1);
4172 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
4174 __pyx_t_1 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error)
4175 __Pyx_GOTREF(__pyx_t_1);
4176 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_axis, __pyx_int_2) < 0) __PYX_ERR(0, 80, __pyx_L1_error)
4177 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 80, __pyx_L1_error)
4178 __Pyx_GOTREF(__pyx_t_4);
4179 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4180 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4181 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4182 __pyx_v_xit = __pyx_t_4;
4192 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 81, __pyx_L1_error)
4193 __Pyx_GOTREF(__pyx_t_1);
4194 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 81, __pyx_L1_error)
4195 __Pyx_GOTREF(__pyx_t_3);
4196 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4197 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 81, __pyx_L1_error)
4198 __Pyx_GOTREF(__pyx_t_1);
4199 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error)
4200 __Pyx_GOTREF(__pyx_t_2);
4201 __pyx_t_5 = PyTuple_New(2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 81, __pyx_L1_error)
4202 __Pyx_GOTREF(__pyx_t_5);
4203 __Pyx_GIVEREF(__pyx_t_1);
4204 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
4205 __Pyx_GIVEREF(__pyx_t_2);
4206 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
4210 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4211 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
4212 if (likely(__pyx_t_2)) {
4213 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4214 __Pyx_INCREF(__pyx_t_2);
4215 __Pyx_INCREF(
function);
4216 __Pyx_DECREF_SET(__pyx_t_3,
function);
4219 __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5);
4220 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4221 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4222 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 81, __pyx_L1_error)
4223 __Pyx_GOTREF(__pyx_t_4);
4224 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4225 __pyx_v_mrfls = __pyx_t_4;
4235 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error)
4236 __Pyx_GOTREF(__pyx_t_3);
4237 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 82, __pyx_L1_error)
4238 __Pyx_GOTREF(__pyx_t_5);
4239 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4240 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error)
4241 __Pyx_GOTREF(__pyx_t_3);
4242 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error)
4243 __Pyx_GOTREF(__pyx_t_2);
4244 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 82, __pyx_L1_error)
4245 __Pyx_GOTREF(__pyx_t_1);
4246 __Pyx_GIVEREF(__pyx_t_3);
4247 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
4248 __Pyx_GIVEREF(__pyx_t_2);
4249 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
4253 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
4254 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
4255 if (likely(__pyx_t_2)) {
4256 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
4257 __Pyx_INCREF(__pyx_t_2);
4258 __Pyx_INCREF(
function);
4259 __Pyx_DECREF_SET(__pyx_t_5,
function);
4262 __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_2, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1);
4263 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4264 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4265 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 82, __pyx_L1_error)
4266 __Pyx_GOTREF(__pyx_t_4);
4267 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4268 __pyx_v_mrflb = __pyx_t_4;
4278 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error)
4279 __Pyx_GOTREF(__pyx_t_5);
4280 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error)
4281 __Pyx_GOTREF(__pyx_t_1);
4282 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4283 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error)
4284 __Pyx_GOTREF(__pyx_t_5);
4286 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
4287 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
4288 if (likely(__pyx_t_2)) {
4289 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
4290 __Pyx_INCREF(__pyx_t_2);
4291 __Pyx_INCREF(
function);
4292 __Pyx_DECREF_SET(__pyx_t_1,
function);
4295 __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
4296 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4297 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4298 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error)
4299 __Pyx_GOTREF(__pyx_t_4);
4300 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4301 __pyx_v_mrflr = __pyx_t_4;
4311 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 84, __pyx_L1_error)
4312 __Pyx_GOTREF(__pyx_t_4);
4313 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_pi);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error)
4314 __Pyx_GOTREF(__pyx_t_1);
4315 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4316 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 84, __pyx_L1_error)
4317 __Pyx_GOTREF(__pyx_t_5);
4318 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_cos);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error)
4319 __Pyx_GOTREF(__pyx_t_2);
4320 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4321 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sza, __pyx_n_s_astype);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error)
4322 __Pyx_GOTREF(__pyx_t_3);
4323 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_double);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L1_error)
4324 __Pyx_GOTREF(__pyx_t_6);
4326 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
4327 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
4328 if (likely(__pyx_t_7)) {
4329 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4330 __Pyx_INCREF(__pyx_t_7);
4331 __Pyx_INCREF(
function);
4332 __Pyx_DECREF_SET(__pyx_t_3,
function);
4335 __pyx_t_5 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6);
4336 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
4337 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
4338 if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 84, __pyx_L1_error)
4339 __Pyx_GOTREF(__pyx_t_5);
4340 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4341 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_D2R);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error)
4342 __Pyx_GOTREF(__pyx_t_3);
4343 __pyx_t_6 = PyNumber_Multiply(__pyx_t_5, __pyx_t_3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L1_error)
4344 __Pyx_GOTREF(__pyx_t_6);
4345 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4346 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4348 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
4349 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
4350 if (likely(__pyx_t_3)) {
4351 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
4352 __Pyx_INCREF(__pyx_t_3);
4353 __Pyx_INCREF(
function);
4354 __Pyx_DECREF_SET(__pyx_t_2,
function);
4357 __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6);
4358 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4359 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
4360 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 84, __pyx_L1_error)
4361 __Pyx_GOTREF(__pyx_t_4);
4362 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4363 __pyx_t_2 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error)
4364 __Pyx_GOTREF(__pyx_t_2);
4365 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4366 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4367 __pyx_v_units = __pyx_t_2;
4377 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error)
4378 __Pyx_GOTREF(__pyx_t_4);
4379 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_max);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error)
4380 __Pyx_GOTREF(__pyx_t_1);
4381 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4382 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error)
4383 __Pyx_GOTREF(__pyx_t_4);
4385 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
4386 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
4387 if (likely(__pyx_t_6)) {
4388 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
4389 __Pyx_INCREF(__pyx_t_6);
4390 __Pyx_INCREF(
function);
4391 __Pyx_DECREF_SET(__pyx_t_1,
function);
4394 __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4);
4395 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
4396 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4397 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error)
4398 __Pyx_GOTREF(__pyx_t_2);
4399 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4400 __pyx_v_max_rfl = __pyx_t_2;
4410 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error)
4411 __Pyx_GOTREF(__pyx_t_1);
4412 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_min);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 87, __pyx_L1_error)
4413 __Pyx_GOTREF(__pyx_t_4);
4414 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4415 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error)
4416 __Pyx_GOTREF(__pyx_t_1);
4418 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
4419 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
4420 if (likely(__pyx_t_6)) {
4421 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
4422 __Pyx_INCREF(__pyx_t_6);
4423 __Pyx_INCREF(
function);
4424 __Pyx_DECREF_SET(__pyx_t_4,
function);
4427 __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1);
4428 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
4429 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4430 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error)
4431 __Pyx_GOTREF(__pyx_t_2);
4432 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4433 __pyx_v_min_rfl = __pyx_t_2;
4443 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error)
4444 __Pyx_GOTREF(__pyx_t_2);
4445 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_shape);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 88, __pyx_L1_error)
4446 __Pyx_GOTREF(__pyx_t_4);
4447 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4448 __pyx_v_shps = __pyx_t_4;
4458 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toab);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 89, __pyx_L1_error)
4459 __Pyx_GOTREF(__pyx_t_4);
4460 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_shape);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
4461 __Pyx_GOTREF(__pyx_t_2);
4462 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4463 __pyx_v_shpb = __pyx_t_2;
4473 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 90, __pyx_L1_error)
4474 __Pyx_GOTREF(__pyx_t_4);
4475 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_linspace);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 90, __pyx_L1_error)
4476 __Pyx_GOTREF(__pyx_t_1);
4477 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4478 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_shps, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 90, __pyx_L1_error)
4479 __Pyx_GOTREF(__pyx_t_4);
4482 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
4483 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
4484 if (likely(__pyx_t_6)) {
4485 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
4486 __Pyx_INCREF(__pyx_t_6);
4487 __Pyx_INCREF(
function);
4488 __Pyx_DECREF_SET(__pyx_t_1,
function);
4492 #if CYTHON_FAST_PYCALL
4493 if (PyFunction_Check(__pyx_t_1)) {
4494 PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_float_0_0, __pyx_float_0_5, __pyx_t_4};
4495 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error)
4496 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
4497 __Pyx_GOTREF(__pyx_t_2);
4498 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4501 #if CYTHON_FAST_PYCCALL
4502 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
4503 PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_float_0_0, __pyx_float_0_5, __pyx_t_4};
4504 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error)
4505 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
4506 __Pyx_GOTREF(__pyx_t_2);
4507 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4511 __pyx_t_3 = PyTuple_New(3+__pyx_t_8);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __pyx_L1_error)
4512 __Pyx_GOTREF(__pyx_t_3);
4514 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 =
NULL;
4516 __Pyx_INCREF(__pyx_float_0_0);
4517 __Pyx_GIVEREF(__pyx_float_0_0);
4518 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_float_0_0);
4519 __Pyx_INCREF(__pyx_float_0_5);
4520 __Pyx_GIVEREF(__pyx_float_0_5);
4521 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_float_0_5);
4522 __Pyx_GIVEREF(__pyx_t_4);
4523 PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_8, __pyx_t_4);
4525 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error)
4526 __Pyx_GOTREF(__pyx_t_2);
4527 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4529 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4530 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rfl_pts, __pyx_t_2) < 0) __PYX_ERR(0, 90, __pyx_L1_error)
4531 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4540 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error)
4541 __Pyx_GOTREF(__pyx_t_1);
4542 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros_like);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L1_error)
4543 __Pyx_GOTREF(__pyx_t_3);
4544 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4545 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error)
4546 __Pyx_GOTREF(__pyx_t_1);
4548 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4549 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
4550 if (likely(__pyx_t_4)) {
4551 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4552 __Pyx_INCREF(__pyx_t_4);
4553 __Pyx_INCREF(
function);
4554 __Pyx_DECREF_SET(__pyx_t_3,
function);
4557 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1);
4558 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
4559 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4560 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error)
4561 __Pyx_GOTREF(__pyx_t_2);
4562 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4563 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_tslut, __pyx_t_2) < 0) __PYX_ERR(0, 92, __pyx_L1_error)
4564 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4573 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error)
4574 __Pyx_GOTREF(__pyx_t_3);
4575 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros_like);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 93, __pyx_L1_error)
4576 __Pyx_GOTREF(__pyx_t_1);
4577 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4578 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toab);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error)
4579 __Pyx_GOTREF(__pyx_t_3);
4581 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
4582 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
4583 if (likely(__pyx_t_4)) {
4584 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
4585 __Pyx_INCREF(__pyx_t_4);
4586 __Pyx_INCREF(
function);
4587 __Pyx_DECREF_SET(__pyx_t_1,
function);
4590 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3);
4591 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
4592 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4593 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error)
4594 __Pyx_GOTREF(__pyx_t_2);
4595 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4596 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_tblut, __pyx_t_2) < 0) __PYX_ERR(0, 93, __pyx_L1_error)
4597 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4606 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_shps, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
4607 __Pyx_GOTREF(__pyx_t_2);
4608 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
4609 __Pyx_GOTREF(__pyx_t_1);
4610 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4611 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
4612 __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_9 = 0;
4615 __pyx_t_9 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
4616 __Pyx_GOTREF(__pyx_t_2);
4617 __pyx_t_10 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 94, __pyx_L1_error)
4619 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4621 if (likely(!__pyx_t_10)) {
4622 if (likely(PyList_CheckExact(__pyx_t_2))) {
4623 if (__pyx_t_9 >= PyList_GET_SIZE(__pyx_t_2))
break;
4624 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4625 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 94, __pyx_L1_error)
4627 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
4628 __Pyx_GOTREF(__pyx_t_1);
4631 if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
4632 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4633 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 94, __pyx_L1_error)
4635 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
4636 __Pyx_GOTREF(__pyx_t_1);
4640 __pyx_t_1 = __pyx_t_10(__pyx_t_2);
4641 if (unlikely(!__pyx_t_1)) {
4642 PyObject* exc_type = PyErr_Occurred();
4644 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
4645 else __PYX_ERR(0, 94, __pyx_L1_error)
4649 __Pyx_GOTREF(__pyx_t_1);
4651 __Pyx_XDECREF_SET(__pyx_v_iwl, __pyx_t_1);
4661 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_shps, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error)
4662 __Pyx_GOTREF(__pyx_t_1);
4663 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error)
4664 __Pyx_GOTREF(__pyx_t_3);
4665 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4666 if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
4667 __pyx_t_1 = __pyx_t_3; __Pyx_INCREF(__pyx_t_1); __pyx_t_11 = 0;
4670 __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error)
4671 __Pyx_GOTREF(__pyx_t_1);
4672 __pyx_t_12 = Py_TYPE(__pyx_t_1)->tp_iternext;
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 95, __pyx_L1_error)
4674 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4676 if (likely(!__pyx_t_12)) {
4677 if (likely(PyList_CheckExact(__pyx_t_1))) {
4678 if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_1))
break;
4679 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4680 __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 95, __pyx_L1_error)
4682 __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error)
4683 __Pyx_GOTREF(__pyx_t_3);
4686 if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_1))
break;
4687 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4688 __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 95, __pyx_L1_error)
4690 __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error)
4691 __Pyx_GOTREF(__pyx_t_3);
4695 __pyx_t_3 = __pyx_t_12(__pyx_t_1);
4696 if (unlikely(!__pyx_t_3)) {
4697 PyObject* exc_type = PyErr_Occurred();
4699 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
4700 else __PYX_ERR(0, 95, __pyx_L1_error)
4704 __Pyx_GOTREF(__pyx_t_3);
4706 __Pyx_XDECREF_SET(__pyx_v_ism, __pyx_t_3);
4716 __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_shps, 3,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
4717 __Pyx_GOTREF(__pyx_t_3);
4718 __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
4719 __Pyx_GOTREF(__pyx_t_4);
4720 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4721 if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
4722 __pyx_t_3 = __pyx_t_4; __Pyx_INCREF(__pyx_t_3); __pyx_t_13 = 0;
4725 __pyx_t_13 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
4726 __Pyx_GOTREF(__pyx_t_3);
4727 __pyx_t_14 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 96, __pyx_L1_error)
4729 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4731 if (likely(!__pyx_t_14)) {
4732 if (likely(PyList_CheckExact(__pyx_t_3))) {
4733 if (__pyx_t_13 >= PyList_GET_SIZE(__pyx_t_3))
break;
4734 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4735 __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_4); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 96, __pyx_L1_error)
4737 __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
4738 __Pyx_GOTREF(__pyx_t_4);
4741 if (__pyx_t_13 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
4742 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4743 __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_4); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 96, __pyx_L1_error)
4745 __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
4746 __Pyx_GOTREF(__pyx_t_4);
4750 __pyx_t_4 = __pyx_t_14(__pyx_t_3);
4751 if (unlikely(!__pyx_t_4)) {
4752 PyObject* exc_type = PyErr_Occurred();
4754 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
4755 else __PYX_ERR(0, 96, __pyx_L1_error)
4759 __Pyx_GOTREF(__pyx_t_4);
4761 __Pyx_XDECREF_SET(__pyx_v_iwn, __pyx_t_4);
4771 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_shps, 4,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error)
4772 __Pyx_GOTREF(__pyx_t_4);
4773 __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 97, __pyx_L1_error)
4774 __Pyx_GOTREF(__pyx_t_6);
4775 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4776 if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) {
4777 __pyx_t_4 = __pyx_t_6; __Pyx_INCREF(__pyx_t_4); __pyx_t_15 = 0;
4780 __pyx_t_15 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 97, __pyx_L1_error)
4781 __Pyx_GOTREF(__pyx_t_4);
4782 __pyx_t_16 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 97, __pyx_L1_error)
4784 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
4786 if (likely(!__pyx_t_16)) {
4787 if (likely(PyList_CheckExact(__pyx_t_4))) {
4788 if (__pyx_t_15 >= PyList_GET_SIZE(__pyx_t_4))
break;
4789 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4790 __pyx_t_6 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_15); __Pyx_INCREF(__pyx_t_6); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 97, __pyx_L1_error)
4792 __pyx_t_6 = PySequence_ITEM(__pyx_t_4, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 97, __pyx_L1_error)
4793 __Pyx_GOTREF(__pyx_t_6);
4796 if (__pyx_t_15 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
4797 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4798 __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_15); __Pyx_INCREF(__pyx_t_6); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 97, __pyx_L1_error)
4800 __pyx_t_6 = PySequence_ITEM(__pyx_t_4, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 97, __pyx_L1_error)
4801 __Pyx_GOTREF(__pyx_t_6);
4805 __pyx_t_6 = __pyx_t_16(__pyx_t_4);
4806 if (unlikely(!__pyx_t_6)) {
4807 PyObject* exc_type = PyErr_Occurred();
4809 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
4810 else __PYX_ERR(0, 97, __pyx_L1_error)
4814 __Pyx_GOTREF(__pyx_t_6);
4816 __Pyx_XDECREF_SET(__pyx_v_isz, __pyx_t_6);
4826 __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_shps, 5,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 98, __pyx_L1_error)
4827 __Pyx_GOTREF(__pyx_t_6);
4828 __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_6);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 98, __pyx_L1_error)
4829 __Pyx_GOTREF(__pyx_t_5);
4830 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
4831 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
4832 __pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6); __pyx_t_17 = 0;
4835 __pyx_t_17 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 98, __pyx_L1_error)
4836 __Pyx_GOTREF(__pyx_t_6);
4837 __pyx_t_18 = Py_TYPE(__pyx_t_6)->tp_iternext;
if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 98, __pyx_L1_error)
4839 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4841 if (likely(!__pyx_t_18)) {
4842 if (likely(PyList_CheckExact(__pyx_t_6))) {
4843 if (__pyx_t_17 >= PyList_GET_SIZE(__pyx_t_6))
break;
4844 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4845 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_17); __Pyx_INCREF(__pyx_t_5); __pyx_t_17++;
if (unlikely(0 < 0)) __PYX_ERR(0, 98, __pyx_L1_error)
4847 __pyx_t_5 = PySequence_ITEM(__pyx_t_6, __pyx_t_17); __pyx_t_17++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 98, __pyx_L1_error)
4848 __Pyx_GOTREF(__pyx_t_5);
4851 if (__pyx_t_17 >= PyTuple_GET_SIZE(__pyx_t_6))
break;
4852 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4853 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_17); __Pyx_INCREF(__pyx_t_5); __pyx_t_17++;
if (unlikely(0 < 0)) __PYX_ERR(0, 98, __pyx_L1_error)
4855 __pyx_t_5 = PySequence_ITEM(__pyx_t_6, __pyx_t_17); __pyx_t_17++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 98, __pyx_L1_error)
4856 __Pyx_GOTREF(__pyx_t_5);
4860 __pyx_t_5 = __pyx_t_18(__pyx_t_6);
4861 if (unlikely(!__pyx_t_5)) {
4862 PyObject* exc_type = PyErr_Occurred();
4864 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
4865 else __PYX_ERR(0, 98, __pyx_L1_error)
4869 __Pyx_GOTREF(__pyx_t_5);
4871 __Pyx_XDECREF_SET(__pyx_v_ith, __pyx_t_5);
4881 __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_shps, 6,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 99, __pyx_L1_error)
4882 __Pyx_GOTREF(__pyx_t_5);
4883 __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_5);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 99, __pyx_L1_error)
4884 __Pyx_GOTREF(__pyx_t_7);
4885 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
4886 if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) {
4887 __pyx_t_5 = __pyx_t_7; __Pyx_INCREF(__pyx_t_5); __pyx_t_19 = 0;
4890 __pyx_t_19 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 99, __pyx_L1_error)
4891 __Pyx_GOTREF(__pyx_t_5);
4892 __pyx_t_20 = Py_TYPE(__pyx_t_5)->tp_iternext;
if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 99, __pyx_L1_error)
4894 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4896 if (likely(!__pyx_t_20)) {
4897 if (likely(PyList_CheckExact(__pyx_t_5))) {
4898 if (__pyx_t_19 >= PyList_GET_SIZE(__pyx_t_5))
break;
4899 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4900 __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_19); __Pyx_INCREF(__pyx_t_7); __pyx_t_19++;
if (unlikely(0 < 0)) __PYX_ERR(0, 99, __pyx_L1_error)
4902 __pyx_t_7 = PySequence_ITEM(__pyx_t_5, __pyx_t_19); __pyx_t_19++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 99, __pyx_L1_error)
4903 __Pyx_GOTREF(__pyx_t_7);
4906 if (__pyx_t_19 >= PyTuple_GET_SIZE(__pyx_t_5))
break;
4907 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
4908 __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_19); __Pyx_INCREF(__pyx_t_7); __pyx_t_19++;
if (unlikely(0 < 0)) __PYX_ERR(0, 99, __pyx_L1_error)
4910 __pyx_t_7 = PySequence_ITEM(__pyx_t_5, __pyx_t_19); __pyx_t_19++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 99, __pyx_L1_error)
4911 __Pyx_GOTREF(__pyx_t_7);
4915 __pyx_t_7 = __pyx_t_20(__pyx_t_5);
4916 if (unlikely(!__pyx_t_7)) {
4917 PyObject* exc_type = PyErr_Occurred();
4919 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
4920 else __PYX_ERR(0, 99, __pyx_L1_error)
4924 __Pyx_GOTREF(__pyx_t_7);
4926 __Pyx_XDECREF_SET(__pyx_v_iph, __pyx_t_7);
4936 __Pyx_GetModuleGlobalName(__pyx_t_21, __pyx_n_s_np);
if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 101, __pyx_L1_error)
4937 __Pyx_GOTREF(__pyx_t_21);
4938 __pyx_t_22 = __Pyx_PyObject_GetAttrStr(__pyx_t_21, __pyx_n_s_interp);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 101, __pyx_L1_error)
4939 __Pyx_GOTREF(__pyx_t_22);
4940 __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
4941 __pyx_t_21 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rfl_pts);
if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 101, __pyx_L1_error)
4942 __Pyx_GOTREF(__pyx_t_21);
4943 __pyx_t_23 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 101, __pyx_L1_error)
4944 __Pyx_GOTREF(__pyx_t_23);
4945 __pyx_t_24 = PyTuple_New(7);
if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 101, __pyx_L1_error)
4946 __Pyx_GOTREF(__pyx_t_24);
4947 __Pyx_INCREF(__pyx_v_iwl);
4948 __Pyx_GIVEREF(__pyx_v_iwl);
4949 PyTuple_SET_ITEM(__pyx_t_24, 0, __pyx_v_iwl);
4950 __Pyx_INCREF(__pyx_v_ism);
4951 __Pyx_GIVEREF(__pyx_v_ism);
4952 PyTuple_SET_ITEM(__pyx_t_24, 1, __pyx_v_ism);
4953 __Pyx_INCREF(__pyx_slice__4);
4954 __Pyx_GIVEREF(__pyx_slice__4);
4955 PyTuple_SET_ITEM(__pyx_t_24, 2, __pyx_slice__4);
4956 __Pyx_INCREF(__pyx_v_iwn);
4957 __Pyx_GIVEREF(__pyx_v_iwn);
4958 PyTuple_SET_ITEM(__pyx_t_24, 3, __pyx_v_iwn);
4959 __Pyx_INCREF(__pyx_v_isz);
4960 __Pyx_GIVEREF(__pyx_v_isz);
4961 PyTuple_SET_ITEM(__pyx_t_24, 4, __pyx_v_isz);
4962 __Pyx_INCREF(__pyx_v_ith);
4963 __Pyx_GIVEREF(__pyx_v_ith);
4964 PyTuple_SET_ITEM(__pyx_t_24, 5, __pyx_v_ith);
4965 __Pyx_INCREF(__pyx_v_iph);
4966 __Pyx_GIVEREF(__pyx_v_iph);
4967 PyTuple_SET_ITEM(__pyx_t_24, 6, __pyx_v_iph);
4968 __pyx_t_25 = __Pyx_PyObject_GetItem(__pyx_t_23, __pyx_t_24);
if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 101, __pyx_L1_error)
4969 __Pyx_GOTREF(__pyx_t_25);
4970 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
4971 __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0;
4972 __pyx_t_24 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tau_pts);
if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 101, __pyx_L1_error)
4973 __Pyx_GOTREF(__pyx_t_24);
4976 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_22))) {
4977 __pyx_t_23 = PyMethod_GET_SELF(__pyx_t_22);
4978 if (likely(__pyx_t_23)) {
4979 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_22);
4980 __Pyx_INCREF(__pyx_t_23);
4981 __Pyx_INCREF(
function);
4982 __Pyx_DECREF_SET(__pyx_t_22,
function);
4986 #if CYTHON_FAST_PYCALL
4987 if (PyFunction_Check(__pyx_t_22)) {
4988 PyObject *__pyx_temp[4] = {__pyx_t_23, __pyx_t_21, __pyx_t_25, __pyx_t_24};
4989 __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_22, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 101, __pyx_L1_error)
4990 __Pyx_XDECREF(__pyx_t_23); __pyx_t_23 = 0;
4991 __Pyx_GOTREF(__pyx_t_7);
4992 __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
4993 __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
4994 __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0;
4997 #if CYTHON_FAST_PYCCALL
4998 if (__Pyx_PyFastCFunction_Check(__pyx_t_22)) {
4999 PyObject *__pyx_temp[4] = {__pyx_t_23, __pyx_t_21, __pyx_t_25, __pyx_t_24};
5000 __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_22, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 101, __pyx_L1_error)
5001 __Pyx_XDECREF(__pyx_t_23); __pyx_t_23 = 0;
5002 __Pyx_GOTREF(__pyx_t_7);
5003 __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
5004 __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
5005 __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0;
5009 __pyx_t_26 = PyTuple_New(3+__pyx_t_8);
if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 101, __pyx_L1_error)
5010 __Pyx_GOTREF(__pyx_t_26);
5012 __Pyx_GIVEREF(__pyx_t_23); PyTuple_SET_ITEM(__pyx_t_26, 0, __pyx_t_23); __pyx_t_23 =
NULL;
5014 __Pyx_GIVEREF(__pyx_t_21);
5015 PyTuple_SET_ITEM(__pyx_t_26, 0+__pyx_t_8, __pyx_t_21);
5016 __Pyx_GIVEREF(__pyx_t_25);
5017 PyTuple_SET_ITEM(__pyx_t_26, 1+__pyx_t_8, __pyx_t_25);
5018 __Pyx_GIVEREF(__pyx_t_24);
5019 PyTuple_SET_ITEM(__pyx_t_26, 2+__pyx_t_8, __pyx_t_24);
5023 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_22, __pyx_t_26,
NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 101, __pyx_L1_error)
5024 __Pyx_GOTREF(__pyx_t_7);
5025 __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0;
5027 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
5036 __pyx_t_22 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tslut);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 100, __pyx_L1_error)
5037 __Pyx_GOTREF(__pyx_t_22);
5038 __pyx_t_26 = PyTuple_New(7);
if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 100, __pyx_L1_error)
5039 __Pyx_GOTREF(__pyx_t_26);
5040 __Pyx_INCREF(__pyx_v_iwl);
5041 __Pyx_GIVEREF(__pyx_v_iwl);
5042 PyTuple_SET_ITEM(__pyx_t_26, 0, __pyx_v_iwl);
5043 __Pyx_INCREF(__pyx_v_ism);
5044 __Pyx_GIVEREF(__pyx_v_ism);
5045 PyTuple_SET_ITEM(__pyx_t_26, 1, __pyx_v_ism);
5046 __Pyx_INCREF(__pyx_slice__4);
5047 __Pyx_GIVEREF(__pyx_slice__4);
5048 PyTuple_SET_ITEM(__pyx_t_26, 2, __pyx_slice__4);
5049 __Pyx_INCREF(__pyx_v_iwn);
5050 __Pyx_GIVEREF(__pyx_v_iwn);
5051 PyTuple_SET_ITEM(__pyx_t_26, 3, __pyx_v_iwn);
5052 __Pyx_INCREF(__pyx_v_isz);
5053 __Pyx_GIVEREF(__pyx_v_isz);
5054 PyTuple_SET_ITEM(__pyx_t_26, 4, __pyx_v_isz);
5055 __Pyx_INCREF(__pyx_v_ith);
5056 __Pyx_GIVEREF(__pyx_v_ith);
5057 PyTuple_SET_ITEM(__pyx_t_26, 5, __pyx_v_ith);
5058 __Pyx_INCREF(__pyx_v_iph);
5059 __Pyx_GIVEREF(__pyx_v_iph);
5060 PyTuple_SET_ITEM(__pyx_t_26, 6, __pyx_v_iph);
5061 if (unlikely(PyObject_SetItem(__pyx_t_22, __pyx_t_26, __pyx_t_7) < 0)) __PYX_ERR(0, 100, __pyx_L1_error)
5062 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
5063 __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0;
5064 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5074 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5084 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5094 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5104 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5114 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5124 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5133 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_shpb, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error)
5134 __Pyx_GOTREF(__pyx_t_2);
5135 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error)
5136 __Pyx_GOTREF(__pyx_t_1);
5137 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5138 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
5139 __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_9 = 0;
5142 __pyx_t_9 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error)
5143 __Pyx_GOTREF(__pyx_t_2);
5144 __pyx_t_10 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 103, __pyx_L1_error)
5146 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5148 if (likely(!__pyx_t_10)) {
5149 if (likely(PyList_CheckExact(__pyx_t_2))) {
5150 if (__pyx_t_9 >= PyList_GET_SIZE(__pyx_t_2))
break;
5151 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5152 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 103, __pyx_L1_error)
5154 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error)
5155 __Pyx_GOTREF(__pyx_t_1);
5158 if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
5159 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5160 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 103, __pyx_L1_error)
5162 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error)
5163 __Pyx_GOTREF(__pyx_t_1);
5167 __pyx_t_1 = __pyx_t_10(__pyx_t_2);
5168 if (unlikely(!__pyx_t_1)) {
5169 PyObject* exc_type = PyErr_Occurred();
5171 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5172 else __PYX_ERR(0, 103, __pyx_L1_error)
5176 __Pyx_GOTREF(__pyx_t_1);
5178 __Pyx_XDECREF_SET(__pyx_v_iwl, __pyx_t_1);
5188 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_shpb, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error)
5189 __Pyx_GOTREF(__pyx_t_1);
5190 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
5191 __Pyx_GOTREF(__pyx_t_3);
5192 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5193 if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
5194 __pyx_t_1 = __pyx_t_3; __Pyx_INCREF(__pyx_t_1); __pyx_t_11 = 0;
5197 __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error)
5198 __Pyx_GOTREF(__pyx_t_1);
5199 __pyx_t_12 = Py_TYPE(__pyx_t_1)->tp_iternext;
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 104, __pyx_L1_error)
5201 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5203 if (likely(!__pyx_t_12)) {
5204 if (likely(PyList_CheckExact(__pyx_t_1))) {
5205 if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_1))
break;
5206 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5207 __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 104, __pyx_L1_error)
5209 __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
5210 __Pyx_GOTREF(__pyx_t_3);
5213 if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_1))
break;
5214 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5215 __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 104, __pyx_L1_error)
5217 __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
5218 __Pyx_GOTREF(__pyx_t_3);
5222 __pyx_t_3 = __pyx_t_12(__pyx_t_1);
5223 if (unlikely(!__pyx_t_3)) {
5224 PyObject* exc_type = PyErr_Occurred();
5226 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5227 else __PYX_ERR(0, 104, __pyx_L1_error)
5231 __Pyx_GOTREF(__pyx_t_3);
5233 __Pyx_XDECREF_SET(__pyx_v_ism, __pyx_t_3);
5243 __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_shpb, 3,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error)
5244 __Pyx_GOTREF(__pyx_t_3);
5245 __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L1_error)
5246 __Pyx_GOTREF(__pyx_t_4);
5247 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5248 if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
5249 __pyx_t_3 = __pyx_t_4; __Pyx_INCREF(__pyx_t_3); __pyx_t_13 = 0;
5252 __pyx_t_13 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error)
5253 __Pyx_GOTREF(__pyx_t_3);
5254 __pyx_t_14 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 105, __pyx_L1_error)
5256 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5258 if (likely(!__pyx_t_14)) {
5259 if (likely(PyList_CheckExact(__pyx_t_3))) {
5260 if (__pyx_t_13 >= PyList_GET_SIZE(__pyx_t_3))
break;
5261 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5262 __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_4); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 105, __pyx_L1_error)
5264 __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L1_error)
5265 __Pyx_GOTREF(__pyx_t_4);
5268 if (__pyx_t_13 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
5269 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5270 __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_4); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 105, __pyx_L1_error)
5272 __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L1_error)
5273 __Pyx_GOTREF(__pyx_t_4);
5277 __pyx_t_4 = __pyx_t_14(__pyx_t_3);
5278 if (unlikely(!__pyx_t_4)) {
5279 PyObject* exc_type = PyErr_Occurred();
5281 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5282 else __PYX_ERR(0, 105, __pyx_L1_error)
5286 __Pyx_GOTREF(__pyx_t_4);
5288 __Pyx_XDECREF_SET(__pyx_v_iwn, __pyx_t_4);
5298 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_shpb, 4,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L1_error)
5299 __Pyx_GOTREF(__pyx_t_4);
5300 __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 106, __pyx_L1_error)
5301 __Pyx_GOTREF(__pyx_t_6);
5302 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5303 if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) {
5304 __pyx_t_4 = __pyx_t_6; __Pyx_INCREF(__pyx_t_4); __pyx_t_15 = 0;
5307 __pyx_t_15 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L1_error)
5308 __Pyx_GOTREF(__pyx_t_4);
5309 __pyx_t_16 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 106, __pyx_L1_error)
5311 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5313 if (likely(!__pyx_t_16)) {
5314 if (likely(PyList_CheckExact(__pyx_t_4))) {
5315 if (__pyx_t_15 >= PyList_GET_SIZE(__pyx_t_4))
break;
5316 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5317 __pyx_t_6 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_15); __Pyx_INCREF(__pyx_t_6); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 106, __pyx_L1_error)
5319 __pyx_t_6 = PySequence_ITEM(__pyx_t_4, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 106, __pyx_L1_error)
5320 __Pyx_GOTREF(__pyx_t_6);
5323 if (__pyx_t_15 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
5324 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5325 __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_15); __Pyx_INCREF(__pyx_t_6); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 106, __pyx_L1_error)
5327 __pyx_t_6 = PySequence_ITEM(__pyx_t_4, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 106, __pyx_L1_error)
5328 __Pyx_GOTREF(__pyx_t_6);
5332 __pyx_t_6 = __pyx_t_16(__pyx_t_4);
5333 if (unlikely(!__pyx_t_6)) {
5334 PyObject* exc_type = PyErr_Occurred();
5336 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5337 else __PYX_ERR(0, 106, __pyx_L1_error)
5341 __Pyx_GOTREF(__pyx_t_6);
5343 __Pyx_XDECREF_SET(__pyx_v_isz, __pyx_t_6);
5353 __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_shpb, 5,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 107, __pyx_L1_error)
5354 __Pyx_GOTREF(__pyx_t_6);
5355 __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_6);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 107, __pyx_L1_error)
5356 __Pyx_GOTREF(__pyx_t_5);
5357 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5358 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
5359 __pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6); __pyx_t_17 = 0;
5362 __pyx_t_17 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 107, __pyx_L1_error)
5363 __Pyx_GOTREF(__pyx_t_6);
5364 __pyx_t_18 = Py_TYPE(__pyx_t_6)->tp_iternext;
if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 107, __pyx_L1_error)
5366 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5368 if (likely(!__pyx_t_18)) {
5369 if (likely(PyList_CheckExact(__pyx_t_6))) {
5370 if (__pyx_t_17 >= PyList_GET_SIZE(__pyx_t_6))
break;
5371 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5372 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_17); __Pyx_INCREF(__pyx_t_5); __pyx_t_17++;
if (unlikely(0 < 0)) __PYX_ERR(0, 107, __pyx_L1_error)
5374 __pyx_t_5 = PySequence_ITEM(__pyx_t_6, __pyx_t_17); __pyx_t_17++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 107, __pyx_L1_error)
5375 __Pyx_GOTREF(__pyx_t_5);
5378 if (__pyx_t_17 >= PyTuple_GET_SIZE(__pyx_t_6))
break;
5379 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5380 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_17); __Pyx_INCREF(__pyx_t_5); __pyx_t_17++;
if (unlikely(0 < 0)) __PYX_ERR(0, 107, __pyx_L1_error)
5382 __pyx_t_5 = PySequence_ITEM(__pyx_t_6, __pyx_t_17); __pyx_t_17++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 107, __pyx_L1_error)
5383 __Pyx_GOTREF(__pyx_t_5);
5387 __pyx_t_5 = __pyx_t_18(__pyx_t_6);
5388 if (unlikely(!__pyx_t_5)) {
5389 PyObject* exc_type = PyErr_Occurred();
5391 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5392 else __PYX_ERR(0, 107, __pyx_L1_error)
5396 __Pyx_GOTREF(__pyx_t_5);
5398 __Pyx_XDECREF_SET(__pyx_v_ith, __pyx_t_5);
5408 __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_shpb, 6,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 108, __pyx_L1_error)
5409 __Pyx_GOTREF(__pyx_t_5);
5410 __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_5);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 108, __pyx_L1_error)
5411 __Pyx_GOTREF(__pyx_t_7);
5412 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5413 if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) {
5414 __pyx_t_5 = __pyx_t_7; __Pyx_INCREF(__pyx_t_5); __pyx_t_19 = 0;
5417 __pyx_t_19 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 108, __pyx_L1_error)
5418 __Pyx_GOTREF(__pyx_t_5);
5419 __pyx_t_20 = Py_TYPE(__pyx_t_5)->tp_iternext;
if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 108, __pyx_L1_error)
5421 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5423 if (likely(!__pyx_t_20)) {
5424 if (likely(PyList_CheckExact(__pyx_t_5))) {
5425 if (__pyx_t_19 >= PyList_GET_SIZE(__pyx_t_5))
break;
5426 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5427 __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_19); __Pyx_INCREF(__pyx_t_7); __pyx_t_19++;
if (unlikely(0 < 0)) __PYX_ERR(0, 108, __pyx_L1_error)
5429 __pyx_t_7 = PySequence_ITEM(__pyx_t_5, __pyx_t_19); __pyx_t_19++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 108, __pyx_L1_error)
5430 __Pyx_GOTREF(__pyx_t_7);
5433 if (__pyx_t_19 >= PyTuple_GET_SIZE(__pyx_t_5))
break;
5434 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5435 __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_19); __Pyx_INCREF(__pyx_t_7); __pyx_t_19++;
if (unlikely(0 < 0)) __PYX_ERR(0, 108, __pyx_L1_error)
5437 __pyx_t_7 = PySequence_ITEM(__pyx_t_5, __pyx_t_19); __pyx_t_19++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 108, __pyx_L1_error)
5438 __Pyx_GOTREF(__pyx_t_7);
5442 __pyx_t_7 = __pyx_t_20(__pyx_t_5);
5443 if (unlikely(!__pyx_t_7)) {
5444 PyObject* exc_type = PyErr_Occurred();
5446 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5447 else __PYX_ERR(0, 108, __pyx_L1_error)
5451 __Pyx_GOTREF(__pyx_t_7);
5453 __Pyx_XDECREF_SET(__pyx_v_iph, __pyx_t_7);
5463 __Pyx_GetModuleGlobalName(__pyx_t_26, __pyx_n_s_np);
if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 110, __pyx_L1_error)
5464 __Pyx_GOTREF(__pyx_t_26);
5465 __pyx_t_22 = __Pyx_PyObject_GetAttrStr(__pyx_t_26, __pyx_n_s_interp);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 110, __pyx_L1_error)
5466 __Pyx_GOTREF(__pyx_t_22);
5467 __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0;
5468 __pyx_t_26 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rfl_pts);
if (unlikely(!__pyx_t_26)) __PYX_ERR(0, 110, __pyx_L1_error)
5469 __Pyx_GOTREF(__pyx_t_26);
5470 __pyx_t_24 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toab);
if (unlikely(!__pyx_t_24)) __PYX_ERR(0, 110, __pyx_L1_error)
5471 __Pyx_GOTREF(__pyx_t_24);
5472 __pyx_t_25 = PyTuple_New(7);
if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 110, __pyx_L1_error)
5473 __Pyx_GOTREF(__pyx_t_25);
5474 __Pyx_INCREF(__pyx_v_iwl);
5475 __Pyx_GIVEREF(__pyx_v_iwl);
5476 PyTuple_SET_ITEM(__pyx_t_25, 0, __pyx_v_iwl);
5477 __Pyx_INCREF(__pyx_v_ism);
5478 __Pyx_GIVEREF(__pyx_v_ism);
5479 PyTuple_SET_ITEM(__pyx_t_25, 1, __pyx_v_ism);
5480 __Pyx_INCREF(__pyx_slice__4);
5481 __Pyx_GIVEREF(__pyx_slice__4);
5482 PyTuple_SET_ITEM(__pyx_t_25, 2, __pyx_slice__4);
5483 __Pyx_INCREF(__pyx_v_iwn);
5484 __Pyx_GIVEREF(__pyx_v_iwn);
5485 PyTuple_SET_ITEM(__pyx_t_25, 3, __pyx_v_iwn);
5486 __Pyx_INCREF(__pyx_v_isz);
5487 __Pyx_GIVEREF(__pyx_v_isz);
5488 PyTuple_SET_ITEM(__pyx_t_25, 4, __pyx_v_isz);
5489 __Pyx_INCREF(__pyx_v_ith);
5490 __Pyx_GIVEREF(__pyx_v_ith);
5491 PyTuple_SET_ITEM(__pyx_t_25, 5, __pyx_v_ith);
5492 __Pyx_INCREF(__pyx_v_iph);
5493 __Pyx_GIVEREF(__pyx_v_iph);
5494 PyTuple_SET_ITEM(__pyx_t_25, 6, __pyx_v_iph);
5495 __pyx_t_21 = __Pyx_PyObject_GetItem(__pyx_t_24, __pyx_t_25);
if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 110, __pyx_L1_error)
5496 __Pyx_GOTREF(__pyx_t_21);
5497 __Pyx_DECREF(__pyx_t_24); __pyx_t_24 = 0;
5498 __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
5499 __pyx_t_25 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tau_pts);
if (unlikely(!__pyx_t_25)) __PYX_ERR(0, 110, __pyx_L1_error)
5500 __Pyx_GOTREF(__pyx_t_25);
5503 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_22))) {
5504 __pyx_t_24 = PyMethod_GET_SELF(__pyx_t_22);
5505 if (likely(__pyx_t_24)) {
5506 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_22);
5507 __Pyx_INCREF(__pyx_t_24);
5508 __Pyx_INCREF(
function);
5509 __Pyx_DECREF_SET(__pyx_t_22,
function);
5513 #if CYTHON_FAST_PYCALL
5514 if (PyFunction_Check(__pyx_t_22)) {
5515 PyObject *__pyx_temp[4] = {__pyx_t_24, __pyx_t_26, __pyx_t_21, __pyx_t_25};
5516 __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_22, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 110, __pyx_L1_error)
5517 __Pyx_XDECREF(__pyx_t_24); __pyx_t_24 = 0;
5518 __Pyx_GOTREF(__pyx_t_7);
5519 __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0;
5520 __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
5521 __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
5524 #if CYTHON_FAST_PYCCALL
5525 if (__Pyx_PyFastCFunction_Check(__pyx_t_22)) {
5526 PyObject *__pyx_temp[4] = {__pyx_t_24, __pyx_t_26, __pyx_t_21, __pyx_t_25};
5527 __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_22, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 110, __pyx_L1_error)
5528 __Pyx_XDECREF(__pyx_t_24); __pyx_t_24 = 0;
5529 __Pyx_GOTREF(__pyx_t_7);
5530 __Pyx_DECREF(__pyx_t_26); __pyx_t_26 = 0;
5531 __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
5532 __Pyx_DECREF(__pyx_t_25); __pyx_t_25 = 0;
5536 __pyx_t_23 = PyTuple_New(3+__pyx_t_8);
if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 110, __pyx_L1_error)
5537 __Pyx_GOTREF(__pyx_t_23);
5539 __Pyx_GIVEREF(__pyx_t_24); PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_t_24); __pyx_t_24 =
NULL;
5541 __Pyx_GIVEREF(__pyx_t_26);
5542 PyTuple_SET_ITEM(__pyx_t_23, 0+__pyx_t_8, __pyx_t_26);
5543 __Pyx_GIVEREF(__pyx_t_21);
5544 PyTuple_SET_ITEM(__pyx_t_23, 1+__pyx_t_8, __pyx_t_21);
5545 __Pyx_GIVEREF(__pyx_t_25);
5546 PyTuple_SET_ITEM(__pyx_t_23, 2+__pyx_t_8, __pyx_t_25);
5550 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_22, __pyx_t_23,
NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 110, __pyx_L1_error)
5551 __Pyx_GOTREF(__pyx_t_7);
5552 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
5554 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
5563 __pyx_t_22 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tblut);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 109, __pyx_L1_error)
5564 __Pyx_GOTREF(__pyx_t_22);
5565 __pyx_t_23 = PyTuple_New(7);
if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 109, __pyx_L1_error)
5566 __Pyx_GOTREF(__pyx_t_23);
5567 __Pyx_INCREF(__pyx_v_iwl);
5568 __Pyx_GIVEREF(__pyx_v_iwl);
5569 PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_v_iwl);
5570 __Pyx_INCREF(__pyx_v_ism);
5571 __Pyx_GIVEREF(__pyx_v_ism);
5572 PyTuple_SET_ITEM(__pyx_t_23, 1, __pyx_v_ism);
5573 __Pyx_INCREF(__pyx_slice__4);
5574 __Pyx_GIVEREF(__pyx_slice__4);
5575 PyTuple_SET_ITEM(__pyx_t_23, 2, __pyx_slice__4);
5576 __Pyx_INCREF(__pyx_v_iwn);
5577 __Pyx_GIVEREF(__pyx_v_iwn);
5578 PyTuple_SET_ITEM(__pyx_t_23, 3, __pyx_v_iwn);
5579 __Pyx_INCREF(__pyx_v_isz);
5580 __Pyx_GIVEREF(__pyx_v_isz);
5581 PyTuple_SET_ITEM(__pyx_t_23, 4, __pyx_v_isz);
5582 __Pyx_INCREF(__pyx_v_ith);
5583 __Pyx_GIVEREF(__pyx_v_ith);
5584 PyTuple_SET_ITEM(__pyx_t_23, 5, __pyx_v_ith);
5585 __Pyx_INCREF(__pyx_v_iph);
5586 __Pyx_GIVEREF(__pyx_v_iph);
5587 PyTuple_SET_ITEM(__pyx_t_23, 6, __pyx_v_iph);
5588 if (unlikely(PyObject_SetItem(__pyx_t_22, __pyx_t_23, __pyx_t_7) < 0)) __PYX_ERR(0, 109, __pyx_L1_error)
5589 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
5590 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
5591 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5601 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5611 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5621 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5631 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5641 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5651 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5660 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__6,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 112, __pyx_L1_error)
5661 __Pyx_GOTREF(__pyx_t_2);
5662 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5671 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 113, __pyx_L1_error)
5672 __Pyx_GOTREF(__pyx_t_2);
5673 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error)
5674 __Pyx_GOTREF(__pyx_t_1);
5675 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5676 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
5677 __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_9 = 0;
5680 __pyx_t_9 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 113, __pyx_L1_error)
5681 __Pyx_GOTREF(__pyx_t_2);
5682 __pyx_t_10 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 113, __pyx_L1_error)
5684 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5686 if (likely(!__pyx_t_10)) {
5687 if (likely(PyList_CheckExact(__pyx_t_2))) {
5688 if (__pyx_t_9 >= PyList_GET_SIZE(__pyx_t_2))
break;
5689 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5690 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 113, __pyx_L1_error)
5692 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error)
5693 __Pyx_GOTREF(__pyx_t_1);
5696 if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
5697 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5698 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 113, __pyx_L1_error)
5700 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error)
5701 __Pyx_GOTREF(__pyx_t_1);
5705 __pyx_t_1 = __pyx_t_10(__pyx_t_2);
5706 if (unlikely(!__pyx_t_1)) {
5707 PyObject* exc_type = PyErr_Occurred();
5709 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5710 else __PYX_ERR(0, 113, __pyx_L1_error)
5714 __Pyx_GOTREF(__pyx_t_1);
5716 __Pyx_XDECREF_SET(__pyx_v_iwl, __pyx_t_1);
5726 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 114, __pyx_L1_error)
5727 __Pyx_GOTREF(__pyx_t_1);
5728 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 114, __pyx_L1_error)
5729 __Pyx_GOTREF(__pyx_t_3);
5730 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5731 if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
5732 __pyx_t_1 = __pyx_t_3; __Pyx_INCREF(__pyx_t_1); __pyx_t_11 = 0;
5735 __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 114, __pyx_L1_error)
5736 __Pyx_GOTREF(__pyx_t_1);
5737 __pyx_t_12 = Py_TYPE(__pyx_t_1)->tp_iternext;
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 114, __pyx_L1_error)
5739 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5741 if (likely(!__pyx_t_12)) {
5742 if (likely(PyList_CheckExact(__pyx_t_1))) {
5743 if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_1))
break;
5744 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5745 __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 114, __pyx_L1_error)
5747 __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 114, __pyx_L1_error)
5748 __Pyx_GOTREF(__pyx_t_3);
5751 if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_1))
break;
5752 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5753 __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 114, __pyx_L1_error)
5755 __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 114, __pyx_L1_error)
5756 __Pyx_GOTREF(__pyx_t_3);
5760 __pyx_t_3 = __pyx_t_12(__pyx_t_1);
5761 if (unlikely(!__pyx_t_3)) {
5762 PyObject* exc_type = PyErr_Occurred();
5764 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5765 else __PYX_ERR(0, 114, __pyx_L1_error)
5769 __Pyx_GOTREF(__pyx_t_3);
5771 __Pyx_XDECREF_SET(__pyx_v_itau, __pyx_t_3);
5781 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 115, __pyx_L1_error)
5782 __Pyx_GOTREF(__pyx_t_3);
5783 __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error)
5784 __Pyx_GOTREF(__pyx_t_4);
5785 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5786 if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
5787 __pyx_t_3 = __pyx_t_4; __Pyx_INCREF(__pyx_t_3); __pyx_t_13 = 0;
5790 __pyx_t_13 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 115, __pyx_L1_error)
5791 __Pyx_GOTREF(__pyx_t_3);
5792 __pyx_t_14 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 115, __pyx_L1_error)
5794 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5796 if (likely(!__pyx_t_14)) {
5797 if (likely(PyList_CheckExact(__pyx_t_3))) {
5798 if (__pyx_t_13 >= PyList_GET_SIZE(__pyx_t_3))
break;
5799 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5800 __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_4); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 115, __pyx_L1_error)
5802 __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error)
5803 __Pyx_GOTREF(__pyx_t_4);
5806 if (__pyx_t_13 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
5807 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5808 __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_4); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 115, __pyx_L1_error)
5810 __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error)
5811 __Pyx_GOTREF(__pyx_t_4);
5815 __pyx_t_4 = __pyx_t_14(__pyx_t_3);
5816 if (unlikely(!__pyx_t_4)) {
5817 PyObject* exc_type = PyErr_Occurred();
5819 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
5820 else __PYX_ERR(0, 115, __pyx_L1_error)
5824 __Pyx_GOTREF(__pyx_t_4);
5826 __Pyx_XDECREF_SET(__pyx_v_ism, __pyx_t_4);
5836 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_interp);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error)
5837 __Pyx_GOTREF(__pyx_t_6);
5838 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_interpn);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 117, __pyx_L1_error)
5839 __Pyx_GOTREF(__pyx_t_5);
5840 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5841 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_pts);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error)
5842 __Pyx_GOTREF(__pyx_t_6);
5843 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 117, __pyx_L1_error)
5844 __Pyx_GOTREF(__pyx_t_7);
5845 __pyx_t_23 = PyTuple_New(7);
if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 117, __pyx_L1_error)
5846 __Pyx_GOTREF(__pyx_t_23);
5847 __Pyx_INCREF(__pyx_v_iwl);
5848 __Pyx_GIVEREF(__pyx_v_iwl);
5849 PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_v_iwl);
5850 __Pyx_INCREF(__pyx_v_ism);
5851 __Pyx_GIVEREF(__pyx_v_ism);
5852 PyTuple_SET_ITEM(__pyx_t_23, 1, __pyx_v_ism);
5853 __Pyx_INCREF(__pyx_v_itau);
5854 __Pyx_GIVEREF(__pyx_v_itau);
5855 PyTuple_SET_ITEM(__pyx_t_23, 2, __pyx_v_itau);
5856 __Pyx_INCREF(__pyx_slice__4);
5857 __Pyx_GIVEREF(__pyx_slice__4);
5858 PyTuple_SET_ITEM(__pyx_t_23, 3, __pyx_slice__4);
5859 __Pyx_INCREF(__pyx_slice__4);
5860 __Pyx_GIVEREF(__pyx_slice__4);
5861 PyTuple_SET_ITEM(__pyx_t_23, 4, __pyx_slice__4);
5862 __Pyx_INCREF(__pyx_slice__4);
5863 __Pyx_GIVEREF(__pyx_slice__4);
5864 PyTuple_SET_ITEM(__pyx_t_23, 5, __pyx_slice__4);
5865 __Pyx_INCREF(__pyx_slice__4);
5866 __Pyx_GIVEREF(__pyx_slice__4);
5867 PyTuple_SET_ITEM(__pyx_t_23, 6, __pyx_slice__4);
5868 __pyx_t_22 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_23);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 117, __pyx_L1_error)
5869 __Pyx_GOTREF(__pyx_t_22);
5870 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5871 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
5874 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
5875 __pyx_t_23 = PyMethod_GET_SELF(__pyx_t_5);
5876 if (likely(__pyx_t_23)) {
5877 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
5878 __Pyx_INCREF(__pyx_t_23);
5879 __Pyx_INCREF(
function);
5880 __Pyx_DECREF_SET(__pyx_t_5,
function);
5884 #if CYTHON_FAST_PYCALL
5885 if (PyFunction_Check(__pyx_t_5)) {
5886 PyObject *__pyx_temp[4] = {__pyx_t_23, __pyx_t_6, __pyx_t_22, __pyx_v_xit};
5887 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
5888 __Pyx_XDECREF(__pyx_t_23); __pyx_t_23 = 0;
5889 __Pyx_GOTREF(__pyx_t_4);
5890 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5891 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
5894 #if CYTHON_FAST_PYCCALL
5895 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
5896 PyObject *__pyx_temp[4] = {__pyx_t_23, __pyx_t_6, __pyx_t_22, __pyx_v_xit};
5897 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
5898 __Pyx_XDECREF(__pyx_t_23); __pyx_t_23 = 0;
5899 __Pyx_GOTREF(__pyx_t_4);
5900 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5901 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
5905 __pyx_t_7 = PyTuple_New(3+__pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 117, __pyx_L1_error)
5906 __Pyx_GOTREF(__pyx_t_7);
5908 __Pyx_GIVEREF(__pyx_t_23); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_23); __pyx_t_23 =
NULL;
5910 __Pyx_GIVEREF(__pyx_t_6);
5911 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_8, __pyx_t_6);
5912 __Pyx_GIVEREF(__pyx_t_22);
5913 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_8, __pyx_t_22);
5914 __Pyx_INCREF(__pyx_v_xit);
5915 __Pyx_GIVEREF(__pyx_v_xit);
5916 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_8, __pyx_v_xit);
5919 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7,
NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
5920 __Pyx_GOTREF(__pyx_t_4);
5921 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5923 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5932 __pyx_t_5 = PyNumber_Multiply(__pyx_v_units, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 116, __pyx_L1_error)
5933 __Pyx_GOTREF(__pyx_t_5);
5934 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5935 __pyx_t_4 = PyTuple_New(4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
5936 __Pyx_GOTREF(__pyx_t_4);
5937 __Pyx_INCREF(__pyx_v_ism);
5938 __Pyx_GIVEREF(__pyx_v_ism);
5939 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_ism);
5940 __Pyx_INCREF(__pyx_v_iwl);
5941 __Pyx_GIVEREF(__pyx_v_iwl);
5942 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_iwl);
5943 __Pyx_INCREF(__pyx_v_itau);
5944 __Pyx_GIVEREF(__pyx_v_itau);
5945 PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_itau);
5946 __Pyx_INCREF(__pyx_slice__4);
5947 __Pyx_GIVEREF(__pyx_slice__4);
5948 PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_slice__4);
5949 if (unlikely(PyObject_SetItem(__pyx_v_mrfls, __pyx_t_4, __pyx_t_5) < 0)) __PYX_ERR(0, 116, __pyx_L1_error)
5950 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5951 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5961 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5970 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error)
5971 __Pyx_GOTREF(__pyx_t_3);
5972 __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 118, __pyx_L1_error)
5973 __Pyx_GOTREF(__pyx_t_5);
5974 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5975 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
5976 __pyx_t_3 = __pyx_t_5; __Pyx_INCREF(__pyx_t_3); __pyx_t_13 = 0;
5979 __pyx_t_13 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 118, __pyx_L1_error)
5980 __Pyx_GOTREF(__pyx_t_3);
5981 __pyx_t_14 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 118, __pyx_L1_error)
5983 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5985 if (likely(!__pyx_t_14)) {
5986 if (likely(PyList_CheckExact(__pyx_t_3))) {
5987 if (__pyx_t_13 >= PyList_GET_SIZE(__pyx_t_3))
break;
5988 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5989 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_5); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 118, __pyx_L1_error)
5991 __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 118, __pyx_L1_error)
5992 __Pyx_GOTREF(__pyx_t_5);
5995 if (__pyx_t_13 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
5996 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5997 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_13); __Pyx_INCREF(__pyx_t_5); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 118, __pyx_L1_error)
5999 __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 118, __pyx_L1_error)
6000 __Pyx_GOTREF(__pyx_t_5);
6004 __pyx_t_5 = __pyx_t_14(__pyx_t_3);
6005 if (unlikely(!__pyx_t_5)) {
6006 PyObject* exc_type = PyErr_Occurred();
6008 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
6009 else __PYX_ERR(0, 118, __pyx_L1_error)
6013 __Pyx_GOTREF(__pyx_t_5);
6015 __Pyx_XDECREF_SET(__pyx_v_ibm, __pyx_t_5);
6025 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_interp);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 120, __pyx_L1_error)
6026 __Pyx_GOTREF(__pyx_t_4);
6027 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_interpn);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 120, __pyx_L1_error)
6028 __Pyx_GOTREF(__pyx_t_7);
6029 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6030 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_pts);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 120, __pyx_L1_error)
6031 __Pyx_GOTREF(__pyx_t_4);
6032 __Pyx_GetModuleGlobalName(__pyx_t_22, __pyx_n_s_toab);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 120, __pyx_L1_error)
6033 __Pyx_GOTREF(__pyx_t_22);
6034 __pyx_t_6 = PyTuple_New(7);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 120, __pyx_L1_error)
6035 __Pyx_GOTREF(__pyx_t_6);
6036 __Pyx_INCREF(__pyx_v_iwl);
6037 __Pyx_GIVEREF(__pyx_v_iwl);
6038 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_iwl);
6039 __Pyx_INCREF(__pyx_v_ibm);
6040 __Pyx_GIVEREF(__pyx_v_ibm);
6041 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_ibm);
6042 __Pyx_INCREF(__pyx_v_itau);
6043 __Pyx_GIVEREF(__pyx_v_itau);
6044 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_itau);
6045 __Pyx_INCREF(__pyx_slice__4);
6046 __Pyx_GIVEREF(__pyx_slice__4);
6047 PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_slice__4);
6048 __Pyx_INCREF(__pyx_slice__4);
6049 __Pyx_GIVEREF(__pyx_slice__4);
6050 PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_slice__4);
6051 __Pyx_INCREF(__pyx_slice__4);
6052 __Pyx_GIVEREF(__pyx_slice__4);
6053 PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_slice__4);
6054 __Pyx_INCREF(__pyx_slice__4);
6055 __Pyx_GIVEREF(__pyx_slice__4);
6056 PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_slice__4);
6057 __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_t_22, __pyx_t_6);
if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 120, __pyx_L1_error)
6058 __Pyx_GOTREF(__pyx_t_23);
6059 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
6060 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
6063 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
6064 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
6065 if (likely(__pyx_t_6)) {
6066 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
6067 __Pyx_INCREF(__pyx_t_6);
6068 __Pyx_INCREF(
function);
6069 __Pyx_DECREF_SET(__pyx_t_7,
function);
6073 #if CYTHON_FAST_PYCALL
6074 if (PyFunction_Check(__pyx_t_7)) {
6075 PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_23, __pyx_v_xit};
6076 __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 120, __pyx_L1_error)
6077 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
6078 __Pyx_GOTREF(__pyx_t_5);
6079 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6080 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
6083 #if CYTHON_FAST_PYCCALL
6084 if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
6085 PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_t_23, __pyx_v_xit};
6086 __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 120, __pyx_L1_error)
6087 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
6088 __Pyx_GOTREF(__pyx_t_5);
6089 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6090 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
6094 __pyx_t_22 = PyTuple_New(3+__pyx_t_8);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 120, __pyx_L1_error)
6095 __Pyx_GOTREF(__pyx_t_22);
6097 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_22, 0, __pyx_t_6); __pyx_t_6 =
NULL;
6099 __Pyx_GIVEREF(__pyx_t_4);
6100 PyTuple_SET_ITEM(__pyx_t_22, 0+__pyx_t_8, __pyx_t_4);
6101 __Pyx_GIVEREF(__pyx_t_23);
6102 PyTuple_SET_ITEM(__pyx_t_22, 1+__pyx_t_8, __pyx_t_23);
6103 __Pyx_INCREF(__pyx_v_xit);
6104 __Pyx_GIVEREF(__pyx_v_xit);
6105 PyTuple_SET_ITEM(__pyx_t_22, 2+__pyx_t_8, __pyx_v_xit);
6108 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_22,
NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 120, __pyx_L1_error)
6109 __Pyx_GOTREF(__pyx_t_5);
6110 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
6112 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6121 __pyx_t_7 = PyNumber_Multiply(__pyx_v_units, __pyx_t_5);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 119, __pyx_L1_error)
6122 __Pyx_GOTREF(__pyx_t_7);
6123 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6124 __pyx_t_5 = PyTuple_New(4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 119, __pyx_L1_error)
6125 __Pyx_GOTREF(__pyx_t_5);
6126 __Pyx_INCREF(__pyx_v_ibm);
6127 __Pyx_GIVEREF(__pyx_v_ibm);
6128 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_ibm);
6129 __Pyx_INCREF(__pyx_v_iwl);
6130 __Pyx_GIVEREF(__pyx_v_iwl);
6131 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_iwl);
6132 __Pyx_INCREF(__pyx_v_itau);
6133 __Pyx_GIVEREF(__pyx_v_itau);
6134 PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_itau);
6135 __Pyx_INCREF(__pyx_slice__4);
6136 __Pyx_GIVEREF(__pyx_slice__4);
6137 PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_slice__4);
6138 if (unlikely(PyObject_SetItem(__pyx_v_mrflb, __pyx_t_5, __pyx_t_7) < 0)) __PYX_ERR(0, 119, __pyx_L1_error)
6139 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6140 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6150 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6160 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6169 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_interp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error)
6170 __Pyx_GOTREF(__pyx_t_3);
6171 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_interpn);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
6172 __Pyx_GOTREF(__pyx_t_7);
6173 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6174 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_r_pts);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error)
6175 __Pyx_GOTREF(__pyx_t_3);
6176 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_toab);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 121, __pyx_L1_error)
6177 __Pyx_GOTREF(__pyx_t_5);
6178 if (unlikely(!__pyx_v_ibm)) { __Pyx_RaiseUnboundLocalError(
"ibm"); __PYX_ERR(0, 121, __pyx_L1_error) }
6179 __pyx_t_22 = PyTuple_New(7);
if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 121, __pyx_L1_error)
6180 __Pyx_GOTREF(__pyx_t_22);
6181 __Pyx_INCREF(__pyx_v_iwl);
6182 __Pyx_GIVEREF(__pyx_v_iwl);
6183 PyTuple_SET_ITEM(__pyx_t_22, 0, __pyx_v_iwl);
6184 __Pyx_INCREF(__pyx_v_ibm);
6185 __Pyx_GIVEREF(__pyx_v_ibm);
6186 PyTuple_SET_ITEM(__pyx_t_22, 1, __pyx_v_ibm);
6187 __Pyx_INCREF(__pyx_slice__4);
6188 __Pyx_GIVEREF(__pyx_slice__4);
6189 PyTuple_SET_ITEM(__pyx_t_22, 2, __pyx_slice__4);
6190 __Pyx_INCREF(__pyx_slice__4);
6191 __Pyx_GIVEREF(__pyx_slice__4);
6192 PyTuple_SET_ITEM(__pyx_t_22, 3, __pyx_slice__4);
6193 __Pyx_INCREF(__pyx_slice__4);
6194 __Pyx_GIVEREF(__pyx_slice__4);
6195 PyTuple_SET_ITEM(__pyx_t_22, 4, __pyx_slice__4);
6196 __Pyx_INCREF(__pyx_slice__4);
6197 __Pyx_GIVEREF(__pyx_slice__4);
6198 PyTuple_SET_ITEM(__pyx_t_22, 5, __pyx_slice__4);
6199 __Pyx_INCREF(__pyx_slice__4);
6200 __Pyx_GIVEREF(__pyx_slice__4);
6201 PyTuple_SET_ITEM(__pyx_t_22, 6, __pyx_slice__4);
6202 __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_22);
if (unlikely(!__pyx_t_23)) __PYX_ERR(0, 121, __pyx_L1_error)
6203 __Pyx_GOTREF(__pyx_t_23);
6204 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6205 __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
6208 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
6209 __pyx_t_22 = PyMethod_GET_SELF(__pyx_t_7);
6210 if (likely(__pyx_t_22)) {
6211 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
6212 __Pyx_INCREF(__pyx_t_22);
6213 __Pyx_INCREF(
function);
6214 __Pyx_DECREF_SET(__pyx_t_7,
function);
6218 #if CYTHON_FAST_PYCALL
6219 if (PyFunction_Check(__pyx_t_7)) {
6220 PyObject *__pyx_temp[4] = {__pyx_t_22, __pyx_t_3, __pyx_t_23, __pyx_v_xit};
6221 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 121, __pyx_L1_error)
6222 __Pyx_XDECREF(__pyx_t_22); __pyx_t_22 = 0;
6223 __Pyx_GOTREF(__pyx_t_1);
6224 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6225 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
6228 #if CYTHON_FAST_PYCCALL
6229 if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
6230 PyObject *__pyx_temp[4] = {__pyx_t_22, __pyx_t_3, __pyx_t_23, __pyx_v_xit};
6231 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 121, __pyx_L1_error)
6232 __Pyx_XDECREF(__pyx_t_22); __pyx_t_22 = 0;
6233 __Pyx_GOTREF(__pyx_t_1);
6234 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6235 __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
6239 __pyx_t_5 = PyTuple_New(3+__pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 121, __pyx_L1_error)
6240 __Pyx_GOTREF(__pyx_t_5);
6242 __Pyx_GIVEREF(__pyx_t_22); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_22); __pyx_t_22 =
NULL;
6244 __Pyx_GIVEREF(__pyx_t_3);
6245 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_8, __pyx_t_3);
6246 __Pyx_GIVEREF(__pyx_t_23);
6247 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_8, __pyx_t_23);
6248 __Pyx_INCREF(__pyx_v_xit);
6249 __Pyx_GIVEREF(__pyx_v_xit);
6250 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_8, __pyx_v_xit);
6253 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5,
NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 121, __pyx_L1_error)
6254 __Pyx_GOTREF(__pyx_t_1);
6255 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6257 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6258 __pyx_t_7 = PyNumber_Multiply(__pyx_v_units, __pyx_t_1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
6259 __Pyx_GOTREF(__pyx_t_7);
6260 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6261 if (unlikely(PyObject_SetItem(__pyx_v_mrflr, __pyx_v_iwl, __pyx_t_7) < 0)) __PYX_ERR(0, 121, __pyx_L1_error)
6262 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6272 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6281 __Pyx_XDECREF(__pyx_r);
6282 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6295 __Pyx_XDECREF(__pyx_t_1);
6296 __Pyx_XDECREF(__pyx_t_2);
6297 __Pyx_XDECREF(__pyx_t_3);
6298 __Pyx_XDECREF(__pyx_t_4);
6299 __Pyx_XDECREF(__pyx_t_5);
6300 __Pyx_XDECREF(__pyx_t_6);
6301 __Pyx_XDECREF(__pyx_t_7);
6302 __Pyx_XDECREF(__pyx_t_21);
6303 __Pyx_XDECREF(__pyx_t_22);
6304 __Pyx_XDECREF(__pyx_t_23);
6305 __Pyx_XDECREF(__pyx_t_24);
6306 __Pyx_XDECREF(__pyx_t_25);
6307 __Pyx_XDECREF(__pyx_t_26);
6308 __Pyx_AddTraceback(
"dtocean.dtocean.proc_gran", __pyx_clineno, __pyx_lineno, __pyx_filename);
6311 __Pyx_XDECREF(__pyx_v_xit);
6312 __Pyx_XDECREF(__pyx_v_mrfls);
6313 __Pyx_XDECREF(__pyx_v_mrflb);
6314 __Pyx_XDECREF(__pyx_v_mrflr);
6315 __Pyx_XDECREF(__pyx_v_units);
6316 __Pyx_XDECREF(__pyx_v_max_rfl);
6317 __Pyx_XDECREF(__pyx_v_min_rfl);
6318 __Pyx_XDECREF(__pyx_v_shps);
6319 __Pyx_XDECREF(__pyx_v_shpb);
6320 __Pyx_XDECREF(__pyx_v_iwl);
6321 __Pyx_XDECREF(__pyx_v_ism);
6322 __Pyx_XDECREF(__pyx_v_iwn);
6323 __Pyx_XDECREF(__pyx_v_isz);
6324 __Pyx_XDECREF(__pyx_v_ith);
6325 __Pyx_XDECREF(__pyx_v_iph);
6326 __Pyx_XDECREF(__pyx_v_itau);
6327 __Pyx_XDECREF(__pyx_v_ibm);
6328 __Pyx_XGIVEREF(__pyx_r);
6329 __Pyx_RefNannyFinishContext();
6342 static PyObject *__pyx_pw_7dtocean_7dtocean_7process(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6343 static PyMethodDef __pyx_mdef_7dtocean_7dtocean_7process = {
"process", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_7dtocean_7dtocean_7process, METH_VARARGS|METH_KEYWORDS, 0};
6344 static PyObject *__pyx_pw_7dtocean_7dtocean_7process(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6345 PyObject *__pyx_v_self = 0;
6346 PyObject *__pyx_v_rfl = 0;
6347 PyObject *__pyx_v_sza = 0;
6348 PyObject *__pyx_v_vza = 0;
6349 PyObject *__pyx_v_raa = 0;
6350 PyObject *__pyx_v_wnd = 0;
6351 int __pyx_lineno = 0;
6352 const char *__pyx_filename =
NULL;
6353 int __pyx_clineno = 0;
6354 PyObject *__pyx_r = 0;
6355 __Pyx_RefNannyDeclarations
6356 __Pyx_RefNannySetupContext(
"process (wrapper)", 0);
6358 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_rfl,&__pyx_n_s_sza,&__pyx_n_s_vza,&__pyx_n_s_raa,&__pyx_n_s_wnd,0};
6359 PyObject*
values[6] = {0,0,0,0,0,0};
6360 if (unlikely(__pyx_kwds)) {
6362 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6364 case 6:
values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6366 case 5:
values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6368 case 4:
values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6370 case 3:
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6372 case 2:
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6374 case 1:
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6377 default:
goto __pyx_L5_argtuple_error;
6379 kw_args = PyDict_Size(__pyx_kwds);
6382 if (likely((
values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
6383 else goto __pyx_L5_argtuple_error;
6386 if (likely((
values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rfl)) != 0)) kw_args--;
6388 __Pyx_RaiseArgtupleInvalid(
"process", 1, 6, 6, 1); __PYX_ERR(0, 124, __pyx_L3_error)
6392 if (likely((
values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sza)) != 0)) kw_args--;
6394 __Pyx_RaiseArgtupleInvalid(
"process", 1, 6, 6, 2); __PYX_ERR(0, 124, __pyx_L3_error)
6398 if (likely((
values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vza)) != 0)) kw_args--;
6400 __Pyx_RaiseArgtupleInvalid(
"process", 1, 6, 6, 3); __PYX_ERR(0, 124, __pyx_L3_error)
6404 if (likely((
values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_raa)) != 0)) kw_args--;
6406 __Pyx_RaiseArgtupleInvalid(
"process", 1, 6, 6, 4); __PYX_ERR(0, 124, __pyx_L3_error)
6410 if (likely((
values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wnd)) != 0)) kw_args--;
6412 __Pyx_RaiseArgtupleInvalid(
"process", 1, 6, 6, 5); __PYX_ERR(0, 124, __pyx_L3_error)
6415 if (unlikely(kw_args > 0)) {
6416 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0,
values, pos_args,
"process") < 0)) __PYX_ERR(0, 124, __pyx_L3_error)
6418 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
6419 goto __pyx_L5_argtuple_error;
6421 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6422 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6423 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6424 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6425 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6426 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6428 __pyx_v_self =
values[0];
6435 goto __pyx_L4_argument_unpacking_done;
6436 __pyx_L5_argtuple_error:;
6437 __Pyx_RaiseArgtupleInvalid(
"process", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 124, __pyx_L3_error)
6439 __Pyx_AddTraceback(
"dtocean.dtocean.process", __pyx_clineno, __pyx_lineno, __pyx_filename);
6440 __Pyx_RefNannyFinishContext();
6442 __pyx_L4_argument_unpacking_done:;
6443 __pyx_r = __pyx_pf_7dtocean_7dtocean_6process(__pyx_self, __pyx_v_self, __pyx_v_rfl, __pyx_v_sza, __pyx_v_vza, __pyx_v_raa, __pyx_v_wnd);
6446 __Pyx_RefNannyFinishContext();
6450 static PyObject *__pyx_pf_7dtocean_7dtocean_6process(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_rfl, PyObject *__pyx_v_sza, PyObject *__pyx_v_vza, PyObject *__pyx_v_raa, PyObject *__pyx_v_wnd) {
6451 PyObject *__pyx_v_xit =
NULL;
6452 PyObject *__pyx_v_units =
NULL;
6453 PyObject *__pyx_v_mrfls =
NULL;
6454 PyObject *__pyx_v_mrflb =
NULL;
6455 PyObject *__pyx_v_mrflr =
NULL;
6456 PyObject *__pyx_v_tauxs =
NULL;
6457 PyObject *__pyx_v_tauxb =
NULL;
6458 PyObject *__pyx_v_ism =
NULL;
6459 PyObject *__pyx_v_ibm =
NULL;
6460 PyObject *__pyx_v_trfls =
NULL;
6461 PyObject *__pyx_v_trflb =
NULL;
6462 PyObject *__pyx_v_iwl =
NULL;
6463 PyObject *__pyx_v_aot =
NULL;
6464 PyObject *__pyx_v_fmf =
NULL;
6465 PyObject *__pyx_v_sse =
NULL;
6466 PyObject *__pyx_v_denom =
NULL;
6467 PyObject *__pyx_v_rbdif =
NULL;
6468 PyObject *__pyx_v_sbdif =
NULL;
6469 PyObject *__pyx_v_sb2 =
NULL;
6470 PyObject *__pyx_v_rbsb =
NULL;
6471 PyObject *__pyx_v_xm =
NULL;
6472 PyObject *__pyx_v_mrfl =
NULL;
6473 PyObject *__pyx_v_err =
NULL;
6474 PyObject *__pyx_v_im =
NULL;
6475 PyObject *__pyx_r =
NULL;
6476 __Pyx_RefNannyDeclarations
6477 PyObject *__pyx_t_1 =
NULL;
6478 PyObject *__pyx_t_2 =
NULL;
6479 PyObject *__pyx_t_3 =
NULL;
6480 PyObject *__pyx_t_4 =
NULL;
6481 PyObject *__pyx_t_5 =
NULL;
6483 PyObject *__pyx_t_7 =
NULL;
6484 Py_ssize_t __pyx_t_8;
6485 PyObject *(*__pyx_t_9)(PyObject *);
6486 PyObject *__pyx_t_10 =
NULL;
6487 PyObject *__pyx_t_11 =
NULL;
6488 Py_ssize_t __pyx_t_12;
6489 PyObject *(*__pyx_t_13)(PyObject *);
6490 PyObject *__pyx_t_14 =
NULL;
6491 int __pyx_lineno = 0;
6492 const char *__pyx_filename =
NULL;
6493 int __pyx_clineno = 0;
6494 __Pyx_RefNannySetupContext(
"process", 0);
6503 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error)
6504 __Pyx_GOTREF(__pyx_t_2);
6505 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_stack);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error)
6506 __Pyx_GOTREF(__pyx_t_3);
6507 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6508 __pyx_t_2 = PyTuple_New(4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error)
6509 __Pyx_GOTREF(__pyx_t_2);
6510 __Pyx_INCREF(__pyx_v_wnd);
6511 __Pyx_GIVEREF(__pyx_v_wnd);
6512 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_wnd);
6513 __Pyx_INCREF(__pyx_v_sza);
6514 __Pyx_GIVEREF(__pyx_v_sza);
6515 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_sza);
6516 __Pyx_INCREF(__pyx_v_vza);
6517 __Pyx_GIVEREF(__pyx_v_vza);
6518 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_vza);
6519 __Pyx_INCREF(__pyx_v_raa);
6520 __Pyx_GIVEREF(__pyx_v_raa);
6521 PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_raa);
6523 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
6524 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
6525 if (likely(__pyx_t_4)) {
6526 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
6527 __Pyx_INCREF(__pyx_t_4);
6528 __Pyx_INCREF(
function);
6529 __Pyx_DECREF_SET(__pyx_t_3,
function);
6532 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
6533 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
6534 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6535 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 125, __pyx_L1_error)
6536 __Pyx_GOTREF(__pyx_t_1);
6537 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6538 __pyx_v_xit = __pyx_t_1;
6548 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error)
6549 __Pyx_GOTREF(__pyx_t_1);
6550 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_pi);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error)
6551 __Pyx_GOTREF(__pyx_t_3);
6552 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6553 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error)
6554 __Pyx_GOTREF(__pyx_t_2);
6555 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_cos);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 126, __pyx_L1_error)
6556 __Pyx_GOTREF(__pyx_t_4);
6557 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6558 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_D2R);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error)
6559 __Pyx_GOTREF(__pyx_t_2);
6560 __pyx_t_5 = PyNumber_Multiply(__pyx_v_sza, __pyx_t_2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 126, __pyx_L1_error)
6561 __Pyx_GOTREF(__pyx_t_5);
6562 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6564 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
6565 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
6566 if (likely(__pyx_t_2)) {
6567 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
6568 __Pyx_INCREF(__pyx_t_2);
6569 __Pyx_INCREF(
function);
6570 __Pyx_DECREF_SET(__pyx_t_4,
function);
6573 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_2, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5);
6574 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
6575 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6576 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error)
6577 __Pyx_GOTREF(__pyx_t_1);
6578 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6579 __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 126, __pyx_L1_error)
6580 __Pyx_GOTREF(__pyx_t_4);
6581 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6582 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6583 __pyx_v_units = __pyx_t_4;
6593 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_interp);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error)
6594 __Pyx_GOTREF(__pyx_t_1);
6595 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_interpn);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 128, __pyx_L1_error)
6596 __Pyx_GOTREF(__pyx_t_3);
6597 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6598 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_pts);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error)
6599 __Pyx_GOTREF(__pyx_t_1);
6600 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toas);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 128, __pyx_L1_error)
6601 __Pyx_GOTREF(__pyx_t_5);
6604 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
6605 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
6606 if (likely(__pyx_t_2)) {
6607 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
6608 __Pyx_INCREF(__pyx_t_2);
6609 __Pyx_INCREF(
function);
6610 __Pyx_DECREF_SET(__pyx_t_3,
function);
6614 #if CYTHON_FAST_PYCALL
6615 if (PyFunction_Check(__pyx_t_3)) {
6616 PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_t_1, __pyx_t_5, __pyx_v_xit};
6617 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L1_error)
6618 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
6619 __Pyx_GOTREF(__pyx_t_4);
6620 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6621 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6624 #if CYTHON_FAST_PYCCALL
6625 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
6626 PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_t_1, __pyx_t_5, __pyx_v_xit};
6627 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L1_error)
6628 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
6629 __Pyx_GOTREF(__pyx_t_4);
6630 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6631 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6635 __pyx_t_7 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 128, __pyx_L1_error)
6636 __Pyx_GOTREF(__pyx_t_7);
6638 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __pyx_t_2 =
NULL;
6640 __Pyx_GIVEREF(__pyx_t_1);
6641 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_1);
6642 __Pyx_GIVEREF(__pyx_t_5);
6643 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_5);
6644 __Pyx_INCREF(__pyx_v_xit);
6645 __Pyx_GIVEREF(__pyx_v_xit);
6646 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_xit);
6649 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7,
NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L1_error)
6650 __Pyx_GOTREF(__pyx_t_4);
6651 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6653 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6654 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_4, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 128, __pyx_L1_error)
6655 __Pyx_GOTREF(__pyx_t_3);
6656 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6657 __pyx_t_4 = PyNumber_Multiply(__pyx_t_3, __pyx_v_units);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L1_error)
6658 __Pyx_GOTREF(__pyx_t_4);
6659 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6660 __pyx_v_mrfls = __pyx_t_4;
6670 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_interp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error)
6671 __Pyx_GOTREF(__pyx_t_3);
6672 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_interpn);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 129, __pyx_L1_error)
6673 __Pyx_GOTREF(__pyx_t_7);
6674 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6675 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_pts);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error)
6676 __Pyx_GOTREF(__pyx_t_3);
6677 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toab);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 129, __pyx_L1_error)
6678 __Pyx_GOTREF(__pyx_t_5);
6681 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
6682 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7);
6683 if (likely(__pyx_t_1)) {
6684 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
6685 __Pyx_INCREF(__pyx_t_1);
6686 __Pyx_INCREF(
function);
6687 __Pyx_DECREF_SET(__pyx_t_7,
function);
6691 #if CYTHON_FAST_PYCALL
6692 if (PyFunction_Check(__pyx_t_7)) {
6693 PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_t_3, __pyx_t_5, __pyx_v_xit};
6694 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 129, __pyx_L1_error)
6695 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
6696 __Pyx_GOTREF(__pyx_t_4);
6697 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6698 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6701 #if CYTHON_FAST_PYCCALL
6702 if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
6703 PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_t_3, __pyx_t_5, __pyx_v_xit};
6704 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 129, __pyx_L1_error)
6705 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
6706 __Pyx_GOTREF(__pyx_t_4);
6707 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6708 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6712 __pyx_t_2 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error)
6713 __Pyx_GOTREF(__pyx_t_2);
6715 __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 =
NULL;
6717 __Pyx_GIVEREF(__pyx_t_3);
6718 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_6, __pyx_t_3);
6719 __Pyx_GIVEREF(__pyx_t_5);
6720 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_6, __pyx_t_5);
6721 __Pyx_INCREF(__pyx_v_xit);
6722 __Pyx_GIVEREF(__pyx_v_xit);
6723 PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_6, __pyx_v_xit);
6726 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2,
NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 129, __pyx_L1_error)
6727 __Pyx_GOTREF(__pyx_t_4);
6728 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6730 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6731 __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_4, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 129, __pyx_L1_error)
6732 __Pyx_GOTREF(__pyx_t_7);
6733 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6734 __pyx_t_4 = PyNumber_Multiply(__pyx_t_7, __pyx_v_units);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 129, __pyx_L1_error)
6735 __Pyx_GOTREF(__pyx_t_4);
6736 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6737 __pyx_v_mrflb = __pyx_t_4;
6747 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_interp);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 130, __pyx_L1_error)
6748 __Pyx_GOTREF(__pyx_t_7);
6749 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_interpn);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error)
6750 __Pyx_GOTREF(__pyx_t_2);
6751 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6752 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_pts);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 130, __pyx_L1_error)
6753 __Pyx_GOTREF(__pyx_t_7);
6754 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toar);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 130, __pyx_L1_error)
6755 __Pyx_GOTREF(__pyx_t_5);
6758 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
6759 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6760 if (likely(__pyx_t_3)) {
6761 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6762 __Pyx_INCREF(__pyx_t_3);
6763 __Pyx_INCREF(
function);
6764 __Pyx_DECREF_SET(__pyx_t_2,
function);
6768 #if CYTHON_FAST_PYCALL
6769 if (PyFunction_Check(__pyx_t_2)) {
6770 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_t_7, __pyx_t_5, __pyx_v_xit};
6771 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error)
6772 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6773 __Pyx_GOTREF(__pyx_t_4);
6774 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6775 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6778 #if CYTHON_FAST_PYCCALL
6779 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
6780 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_t_7, __pyx_t_5, __pyx_v_xit};
6781 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error)
6782 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6783 __Pyx_GOTREF(__pyx_t_4);
6784 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6785 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6789 __pyx_t_1 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 130, __pyx_L1_error)
6790 __Pyx_GOTREF(__pyx_t_1);
6792 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __pyx_t_3 =
NULL;
6794 __Pyx_GIVEREF(__pyx_t_7);
6795 PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_6, __pyx_t_7);
6796 __Pyx_GIVEREF(__pyx_t_5);
6797 PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_6, __pyx_t_5);
6798 __Pyx_INCREF(__pyx_v_xit);
6799 __Pyx_GIVEREF(__pyx_v_xit);
6800 PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_6, __pyx_v_xit);
6803 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1,
NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error)
6804 __Pyx_GOTREF(__pyx_t_4);
6805 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6807 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6808 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_4, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error)
6809 __Pyx_GOTREF(__pyx_t_2);
6810 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6811 __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_v_units);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error)
6812 __Pyx_GOTREF(__pyx_t_4);
6813 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6814 __pyx_v_mrflr = __pyx_t_4;
6824 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error)
6825 __Pyx_GOTREF(__pyx_t_2);
6826 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 132, __pyx_L1_error)
6827 __Pyx_GOTREF(__pyx_t_1);
6828 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6829 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error)
6830 __Pyx_GOTREF(__pyx_t_2);
6832 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
6833 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
6834 if (likely(__pyx_t_5)) {
6835 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
6836 __Pyx_INCREF(__pyx_t_5);
6837 __Pyx_INCREF(
function);
6838 __Pyx_DECREF_SET(__pyx_t_1,
function);
6841 __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2);
6842 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
6843 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6844 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 132, __pyx_L1_error)
6845 __Pyx_GOTREF(__pyx_t_4);
6846 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6847 __pyx_v_tauxs = __pyx_t_4;
6857 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error)
6858 __Pyx_GOTREF(__pyx_t_1);
6859 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error)
6860 __Pyx_GOTREF(__pyx_t_2);
6861 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6862 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error)
6863 __Pyx_GOTREF(__pyx_t_1);
6865 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
6866 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
6867 if (likely(__pyx_t_5)) {
6868 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6869 __Pyx_INCREF(__pyx_t_5);
6870 __Pyx_INCREF(
function);
6871 __Pyx_DECREF_SET(__pyx_t_2,
function);
6874 __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1);
6875 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
6876 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6877 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 133, __pyx_L1_error)
6878 __Pyx_GOTREF(__pyx_t_4);
6879 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6880 __pyx_v_tauxb = __pyx_t_4;
6890 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 134, __pyx_L1_error)
6891 __Pyx_GOTREF(__pyx_t_4);
6892 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error)
6893 __Pyx_GOTREF(__pyx_t_2);
6894 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6895 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
6896 __pyx_t_4 = __pyx_t_2; __Pyx_INCREF(__pyx_t_4); __pyx_t_8 = 0;
6899 __pyx_t_8 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 134, __pyx_L1_error)
6900 __Pyx_GOTREF(__pyx_t_4);
6901 __pyx_t_9 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 134, __pyx_L1_error)
6903 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6905 if (likely(!__pyx_t_9)) {
6906 if (likely(PyList_CheckExact(__pyx_t_4))) {
6907 if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_4))
break;
6908 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
6909 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 134, __pyx_L1_error)
6911 __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error)
6912 __Pyx_GOTREF(__pyx_t_2);
6915 if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
6916 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
6917 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 134, __pyx_L1_error)
6919 __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error)
6920 __Pyx_GOTREF(__pyx_t_2);
6924 __pyx_t_2 = __pyx_t_9(__pyx_t_4);
6925 if (unlikely(!__pyx_t_2)) {
6926 PyObject* exc_type = PyErr_Occurred();
6928 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
6929 else __PYX_ERR(0, 134, __pyx_L1_error)
6933 __Pyx_GOTREF(__pyx_t_2);
6935 __Pyx_XDECREF_SET(__pyx_v_ism, __pyx_t_2);
6945 __pyx_t_2 = PyTuple_New(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 135, __pyx_L1_error)
6946 __Pyx_GOTREF(__pyx_t_2);
6947 __Pyx_INCREF(__pyx_slice__4);
6948 __Pyx_GIVEREF(__pyx_slice__4);
6949 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_slice__4);
6950 __Pyx_INCREF(__pyx_v_ism);
6951 __Pyx_GIVEREF(__pyx_v_ism);
6952 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_ism);
6953 __Pyx_INCREF(__pyx_int_0);
6954 __Pyx_GIVEREF(__pyx_int_0);
6955 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_int_0);
6956 if (unlikely(PyObject_SetItem(__pyx_v_mrfls, __pyx_t_2, __pyx_v_mrflr) < 0)) __PYX_ERR(0, 135, __pyx_L1_error)
6957 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6966 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error)
6967 __Pyx_GOTREF(__pyx_t_1);
6968 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_interp);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 136, __pyx_L1_error)
6969 __Pyx_GOTREF(__pyx_t_5);
6970 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6971 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W860);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error)
6972 __Pyx_GOTREF(__pyx_t_1);
6973 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_rfl, __pyx_t_1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 136, __pyx_L1_error)
6974 __Pyx_GOTREF(__pyx_t_7);
6975 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6976 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W860);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error)
6977 __Pyx_GOTREF(__pyx_t_1);
6978 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error)
6979 __Pyx_GOTREF(__pyx_t_3);
6980 __Pyx_GIVEREF(__pyx_t_1);
6981 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
6982 __Pyx_INCREF(__pyx_v_ism);
6983 __Pyx_GIVEREF(__pyx_v_ism);
6984 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ism);
6986 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_mrfls, __pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error)
6987 __Pyx_GOTREF(__pyx_t_1);
6988 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6989 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_taus);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error)
6990 __Pyx_GOTREF(__pyx_t_3);
6991 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_W550);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 136, __pyx_L1_error)
6992 __Pyx_GOTREF(__pyx_t_10);
6993 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 136, __pyx_L1_error)
6994 __Pyx_GOTREF(__pyx_t_11);
6995 __Pyx_GIVEREF(__pyx_t_10);
6996 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10);
6997 __Pyx_INCREF(__pyx_v_ism);
6998 __Pyx_GIVEREF(__pyx_v_ism);
6999 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ism);
7001 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_11);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 136, __pyx_L1_error)
7002 __Pyx_GOTREF(__pyx_t_10);
7003 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7004 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7007 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
7008 __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_5);
7009 if (likely(__pyx_t_11)) {
7010 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
7011 __Pyx_INCREF(__pyx_t_11);
7012 __Pyx_INCREF(
function);
7013 __Pyx_DECREF_SET(__pyx_t_5,
function);
7017 #if CYTHON_FAST_PYCALL
7018 if (PyFunction_Check(__pyx_t_5)) {
7019 PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_t_7, __pyx_t_1, __pyx_t_10};
7020 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
7021 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
7022 __Pyx_GOTREF(__pyx_t_2);
7023 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7024 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7025 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7028 #if CYTHON_FAST_PYCCALL
7029 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
7030 PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_t_7, __pyx_t_1, __pyx_t_10};
7031 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
7032 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
7033 __Pyx_GOTREF(__pyx_t_2);
7034 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7035 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7036 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7040 __pyx_t_3 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error)
7041 __Pyx_GOTREF(__pyx_t_3);
7043 __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_11); __pyx_t_11 =
NULL;
7045 __Pyx_GIVEREF(__pyx_t_7);
7046 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_6, __pyx_t_7);
7047 __Pyx_GIVEREF(__pyx_t_1);
7048 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_6, __pyx_t_1);
7049 __Pyx_GIVEREF(__pyx_t_10);
7050 PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_6, __pyx_t_10);
7054 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
7055 __Pyx_GOTREF(__pyx_t_2);
7056 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7058 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7059 if (unlikely(PyObject_SetItem(__pyx_v_tauxs, __pyx_v_ism, __pyx_t_2) < 0)) __PYX_ERR(0, 136, __pyx_L1_error)
7060 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7070 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7079 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 137, __pyx_L1_error)
7080 __Pyx_GOTREF(__pyx_t_4);
7081 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error)
7082 __Pyx_GOTREF(__pyx_t_2);
7083 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7084 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
7085 __pyx_t_4 = __pyx_t_2; __Pyx_INCREF(__pyx_t_4); __pyx_t_8 = 0;
7088 __pyx_t_8 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 137, __pyx_L1_error)
7089 __Pyx_GOTREF(__pyx_t_4);
7090 __pyx_t_9 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 137, __pyx_L1_error)
7092 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7094 if (likely(!__pyx_t_9)) {
7095 if (likely(PyList_CheckExact(__pyx_t_4))) {
7096 if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_4))
break;
7097 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7098 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 137, __pyx_L1_error)
7100 __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error)
7101 __Pyx_GOTREF(__pyx_t_2);
7104 if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
7105 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7106 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 137, __pyx_L1_error)
7108 __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error)
7109 __Pyx_GOTREF(__pyx_t_2);
7113 __pyx_t_2 = __pyx_t_9(__pyx_t_4);
7114 if (unlikely(!__pyx_t_2)) {
7115 PyObject* exc_type = PyErr_Occurred();
7117 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
7118 else __PYX_ERR(0, 137, __pyx_L1_error)
7122 __Pyx_GOTREF(__pyx_t_2);
7124 __Pyx_XDECREF_SET(__pyx_v_ibm, __pyx_t_2);
7134 __pyx_t_2 = PyTuple_New(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 138, __pyx_L1_error)
7135 __Pyx_GOTREF(__pyx_t_2);
7136 __Pyx_INCREF(__pyx_slice__4);
7137 __Pyx_GIVEREF(__pyx_slice__4);
7138 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_slice__4);
7139 __Pyx_INCREF(__pyx_v_ibm);
7140 __Pyx_GIVEREF(__pyx_v_ibm);
7141 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_ibm);
7142 __Pyx_INCREF(__pyx_int_0);
7143 __Pyx_GIVEREF(__pyx_int_0);
7144 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_int_0);
7145 if (unlikely(PyObject_SetItem(__pyx_v_mrflb, __pyx_t_2, __pyx_v_mrflr) < 0)) __PYX_ERR(0, 138, __pyx_L1_error)
7146 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7155 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error)
7156 __Pyx_GOTREF(__pyx_t_5);
7157 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_interp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error)
7158 __Pyx_GOTREF(__pyx_t_3);
7159 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7160 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_W860);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error)
7161 __Pyx_GOTREF(__pyx_t_5);
7162 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_rfl, __pyx_t_5);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 139, __pyx_L1_error)
7163 __Pyx_GOTREF(__pyx_t_10);
7164 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7165 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_W860);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error)
7166 __Pyx_GOTREF(__pyx_t_5);
7167 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error)
7168 __Pyx_GOTREF(__pyx_t_1);
7169 __Pyx_GIVEREF(__pyx_t_5);
7170 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5);
7171 __Pyx_INCREF(__pyx_v_ibm);
7172 __Pyx_GIVEREF(__pyx_v_ibm);
7173 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_ibm);
7175 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_mrflb, __pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error)
7176 __Pyx_GOTREF(__pyx_t_5);
7177 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7178 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_taub);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error)
7179 __Pyx_GOTREF(__pyx_t_1);
7180 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_W550);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 139, __pyx_L1_error)
7181 __Pyx_GOTREF(__pyx_t_7);
7182 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 139, __pyx_L1_error)
7183 __Pyx_GOTREF(__pyx_t_11);
7184 __Pyx_GIVEREF(__pyx_t_7);
7185 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_7);
7186 __Pyx_INCREF(__pyx_v_ibm);
7187 __Pyx_GIVEREF(__pyx_v_ibm);
7188 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ibm);
7190 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_11);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 139, __pyx_L1_error)
7191 __Pyx_GOTREF(__pyx_t_7);
7192 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7193 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7196 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
7197 __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_3);
7198 if (likely(__pyx_t_11)) {
7199 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
7200 __Pyx_INCREF(__pyx_t_11);
7201 __Pyx_INCREF(
function);
7202 __Pyx_DECREF_SET(__pyx_t_3,
function);
7206 #if CYTHON_FAST_PYCALL
7207 if (PyFunction_Check(__pyx_t_3)) {
7208 PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_t_10, __pyx_t_5, __pyx_t_7};
7209 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error)
7210 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
7211 __Pyx_GOTREF(__pyx_t_2);
7212 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7213 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7214 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7217 #if CYTHON_FAST_PYCCALL
7218 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
7219 PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_t_10, __pyx_t_5, __pyx_t_7};
7220 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error)
7221 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
7222 __Pyx_GOTREF(__pyx_t_2);
7223 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7224 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7225 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7229 __pyx_t_1 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error)
7230 __Pyx_GOTREF(__pyx_t_1);
7232 __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_11); __pyx_t_11 =
NULL;
7234 __Pyx_GIVEREF(__pyx_t_10);
7235 PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_6, __pyx_t_10);
7236 __Pyx_GIVEREF(__pyx_t_5);
7237 PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_6, __pyx_t_5);
7238 __Pyx_GIVEREF(__pyx_t_7);
7239 PyTuple_SET_ITEM(__pyx_t_1, 2+__pyx_t_6, __pyx_t_7);
7243 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error)
7244 __Pyx_GOTREF(__pyx_t_2);
7245 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7247 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7248 if (unlikely(PyObject_SetItem(__pyx_v_tauxb, __pyx_v_ibm, __pyx_t_2) < 0)) __PYX_ERR(0, 139, __pyx_L1_error)
7249 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7259 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7268 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error)
7269 __Pyx_GOTREF(__pyx_t_2);
7270 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 141, __pyx_L1_error)
7271 __Pyx_GOTREF(__pyx_t_3);
7272 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7273 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error)
7274 __Pyx_GOTREF(__pyx_t_2);
7275 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error)
7276 __Pyx_GOTREF(__pyx_t_1);
7277 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 141, __pyx_L1_error)
7278 __Pyx_GOTREF(__pyx_t_7);
7279 __Pyx_GIVEREF(__pyx_t_2);
7280 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2);
7281 __Pyx_GIVEREF(__pyx_t_1);
7282 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1);
7286 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
7287 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
7288 if (likely(__pyx_t_1)) {
7289 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
7290 __Pyx_INCREF(__pyx_t_1);
7291 __Pyx_INCREF(
function);
7292 __Pyx_DECREF_SET(__pyx_t_3,
function);
7295 __pyx_t_4 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_1, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7);
7296 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
7297 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7298 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 141, __pyx_L1_error)
7299 __Pyx_GOTREF(__pyx_t_4);
7300 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7301 __pyx_v_trfls = __pyx_t_4;
7311 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error)
7312 __Pyx_GOTREF(__pyx_t_3);
7313 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 142, __pyx_L1_error)
7314 __Pyx_GOTREF(__pyx_t_7);
7315 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7316 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L1_error)
7317 __Pyx_GOTREF(__pyx_t_3);
7318 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 142, __pyx_L1_error)
7319 __Pyx_GOTREF(__pyx_t_1);
7320 __pyx_t_2 = PyTuple_New(2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error)
7321 __Pyx_GOTREF(__pyx_t_2);
7322 __Pyx_GIVEREF(__pyx_t_3);
7323 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
7324 __Pyx_GIVEREF(__pyx_t_1);
7325 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
7329 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
7330 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7);
7331 if (likely(__pyx_t_1)) {
7332 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
7333 __Pyx_INCREF(__pyx_t_1);
7334 __Pyx_INCREF(
function);
7335 __Pyx_DECREF_SET(__pyx_t_7,
function);
7338 __pyx_t_4 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_1, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_2);
7339 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
7340 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7341 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 142, __pyx_L1_error)
7342 __Pyx_GOTREF(__pyx_t_4);
7343 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7344 __pyx_v_trflb = __pyx_t_4;
7354 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 143, __pyx_L1_error)
7355 __Pyx_GOTREF(__pyx_t_4);
7356 __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_4);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 143, __pyx_L1_error)
7357 __Pyx_GOTREF(__pyx_t_7);
7358 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7359 if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) {
7360 __pyx_t_4 = __pyx_t_7; __Pyx_INCREF(__pyx_t_4); __pyx_t_8 = 0;
7363 __pyx_t_8 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 143, __pyx_L1_error)
7364 __Pyx_GOTREF(__pyx_t_4);
7365 __pyx_t_9 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 143, __pyx_L1_error)
7367 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7369 if (likely(!__pyx_t_9)) {
7370 if (likely(PyList_CheckExact(__pyx_t_4))) {
7371 if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_4))
break;
7372 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7373 __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 143, __pyx_L1_error)
7375 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 143, __pyx_L1_error)
7376 __Pyx_GOTREF(__pyx_t_7);
7379 if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
7380 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7381 __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 143, __pyx_L1_error)
7383 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 143, __pyx_L1_error)
7384 __Pyx_GOTREF(__pyx_t_7);
7388 __pyx_t_7 = __pyx_t_9(__pyx_t_4);
7389 if (unlikely(!__pyx_t_7)) {
7390 PyObject* exc_type = PyErr_Occurred();
7392 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
7393 else __PYX_ERR(0, 143, __pyx_L1_error)
7397 __Pyx_GOTREF(__pyx_t_7);
7399 __Pyx_XDECREF_SET(__pyx_v_iwl, __pyx_t_7);
7409 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L1_error)
7410 __Pyx_GOTREF(__pyx_t_7);
7411 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error)
7412 __Pyx_GOTREF(__pyx_t_2);
7413 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7414 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
7415 __pyx_t_7 = __pyx_t_2; __Pyx_INCREF(__pyx_t_7); __pyx_t_12 = 0;
7418 __pyx_t_12 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L1_error)
7419 __Pyx_GOTREF(__pyx_t_7);
7420 __pyx_t_13 = Py_TYPE(__pyx_t_7)->tp_iternext;
if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 144, __pyx_L1_error)
7422 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7424 if (likely(!__pyx_t_13)) {
7425 if (likely(PyList_CheckExact(__pyx_t_7))) {
7426 if (__pyx_t_12 >= PyList_GET_SIZE(__pyx_t_7))
break;
7427 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7428 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++;
if (unlikely(0 < 0)) __PYX_ERR(0, 144, __pyx_L1_error)
7430 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_12); __pyx_t_12++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error)
7431 __Pyx_GOTREF(__pyx_t_2);
7434 if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_7))
break;
7435 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7436 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++;
if (unlikely(0 < 0)) __PYX_ERR(0, 144, __pyx_L1_error)
7438 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_12); __pyx_t_12++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error)
7439 __Pyx_GOTREF(__pyx_t_2);
7443 __pyx_t_2 = __pyx_t_13(__pyx_t_7);
7444 if (unlikely(!__pyx_t_2)) {
7445 PyObject* exc_type = PyErr_Occurred();
7447 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
7448 else __PYX_ERR(0, 144, __pyx_L1_error)
7452 __Pyx_GOTREF(__pyx_t_2);
7454 __Pyx_XDECREF_SET(__pyx_v_ism, __pyx_t_2);
7464 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 145, __pyx_L1_error)
7465 __Pyx_GOTREF(__pyx_t_1);
7466 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_interp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 145, __pyx_L1_error)
7467 __Pyx_GOTREF(__pyx_t_3);
7468 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7469 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_tauxs, __pyx_v_ism);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 145, __pyx_L1_error)
7470 __Pyx_GOTREF(__pyx_t_1);
7471 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_taus);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 145, __pyx_L1_error)
7472 __Pyx_GOTREF(__pyx_t_5);
7473 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_W550);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 145, __pyx_L1_error)
7474 __Pyx_GOTREF(__pyx_t_10);
7475 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 145, __pyx_L1_error)
7476 __Pyx_GOTREF(__pyx_t_11);
7477 __Pyx_GIVEREF(__pyx_t_10);
7478 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10);
7479 __Pyx_INCREF(__pyx_v_ism);
7480 __Pyx_GIVEREF(__pyx_v_ism);
7481 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ism);
7483 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_11);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 145, __pyx_L1_error)
7484 __Pyx_GOTREF(__pyx_t_10);
7485 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7486 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7487 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 145, __pyx_L1_error)
7488 __Pyx_GOTREF(__pyx_t_11);
7489 __Pyx_INCREF(__pyx_v_iwl);
7490 __Pyx_GIVEREF(__pyx_v_iwl);
7491 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v_iwl);
7492 __Pyx_INCREF(__pyx_v_ism);
7493 __Pyx_GIVEREF(__pyx_v_ism);
7494 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ism);
7495 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_mrfls, __pyx_t_11);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 145, __pyx_L1_error)
7496 __Pyx_GOTREF(__pyx_t_5);
7497 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7500 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
7501 __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_3);
7502 if (likely(__pyx_t_11)) {
7503 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
7504 __Pyx_INCREF(__pyx_t_11);
7505 __Pyx_INCREF(
function);
7506 __Pyx_DECREF_SET(__pyx_t_3,
function);
7510 #if CYTHON_FAST_PYCALL
7511 if (PyFunction_Check(__pyx_t_3)) {
7512 PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_t_1, __pyx_t_10, __pyx_t_5};
7513 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 145, __pyx_L1_error)
7514 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
7515 __Pyx_GOTREF(__pyx_t_2);
7516 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7517 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7518 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7521 #if CYTHON_FAST_PYCCALL
7522 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
7523 PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_t_1, __pyx_t_10, __pyx_t_5};
7524 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 145, __pyx_L1_error)
7525 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
7526 __Pyx_GOTREF(__pyx_t_2);
7527 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7528 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7529 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7533 __pyx_t_14 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 145, __pyx_L1_error)
7534 __Pyx_GOTREF(__pyx_t_14);
7536 __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_11); __pyx_t_11 =
NULL;
7538 __Pyx_GIVEREF(__pyx_t_1);
7539 PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_6, __pyx_t_1);
7540 __Pyx_GIVEREF(__pyx_t_10);
7541 PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_6, __pyx_t_10);
7542 __Pyx_GIVEREF(__pyx_t_5);
7543 PyTuple_SET_ITEM(__pyx_t_14, 2+__pyx_t_6, __pyx_t_5);
7547 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_14,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 145, __pyx_L1_error)
7548 __Pyx_GOTREF(__pyx_t_2);
7549 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
7551 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7552 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 145, __pyx_L1_error)
7553 __Pyx_GOTREF(__pyx_t_3);
7554 __Pyx_INCREF(__pyx_v_iwl);
7555 __Pyx_GIVEREF(__pyx_v_iwl);
7556 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_iwl);
7557 __Pyx_INCREF(__pyx_v_ism);
7558 __Pyx_GIVEREF(__pyx_v_ism);
7559 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ism);
7560 if (unlikely(PyObject_SetItem(__pyx_v_trfls, __pyx_t_3, __pyx_t_2) < 0)) __PYX_ERR(0, 145, __pyx_L1_error)
7561 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7562 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7572 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7581 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 146, __pyx_L1_error)
7582 __Pyx_GOTREF(__pyx_t_7);
7583 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error)
7584 __Pyx_GOTREF(__pyx_t_2);
7585 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7586 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
7587 __pyx_t_7 = __pyx_t_2; __Pyx_INCREF(__pyx_t_7); __pyx_t_12 = 0;
7590 __pyx_t_12 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 146, __pyx_L1_error)
7591 __Pyx_GOTREF(__pyx_t_7);
7592 __pyx_t_13 = Py_TYPE(__pyx_t_7)->tp_iternext;
if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 146, __pyx_L1_error)
7594 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7596 if (likely(!__pyx_t_13)) {
7597 if (likely(PyList_CheckExact(__pyx_t_7))) {
7598 if (__pyx_t_12 >= PyList_GET_SIZE(__pyx_t_7))
break;
7599 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7600 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++;
if (unlikely(0 < 0)) __PYX_ERR(0, 146, __pyx_L1_error)
7602 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_12); __pyx_t_12++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error)
7603 __Pyx_GOTREF(__pyx_t_2);
7606 if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_7))
break;
7607 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7608 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++;
if (unlikely(0 < 0)) __PYX_ERR(0, 146, __pyx_L1_error)
7610 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_12); __pyx_t_12++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error)
7611 __Pyx_GOTREF(__pyx_t_2);
7615 __pyx_t_2 = __pyx_t_13(__pyx_t_7);
7616 if (unlikely(!__pyx_t_2)) {
7617 PyObject* exc_type = PyErr_Occurred();
7619 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
7620 else __PYX_ERR(0, 146, __pyx_L1_error)
7624 __Pyx_GOTREF(__pyx_t_2);
7626 __Pyx_XDECREF_SET(__pyx_v_ibm, __pyx_t_2);
7636 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 147, __pyx_L1_error)
7637 __Pyx_GOTREF(__pyx_t_3);
7638 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_interp);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 147, __pyx_L1_error)
7639 __Pyx_GOTREF(__pyx_t_14);
7640 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7641 __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_tauxb, __pyx_v_ibm);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 147, __pyx_L1_error)
7642 __Pyx_GOTREF(__pyx_t_3);
7643 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_taub);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 147, __pyx_L1_error)
7644 __Pyx_GOTREF(__pyx_t_5);
7645 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_W550);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 147, __pyx_L1_error)
7646 __Pyx_GOTREF(__pyx_t_10);
7647 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 147, __pyx_L1_error)
7648 __Pyx_GOTREF(__pyx_t_1);
7649 __Pyx_GIVEREF(__pyx_t_10);
7650 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_10);
7651 __Pyx_INCREF(__pyx_v_ibm);
7652 __Pyx_GIVEREF(__pyx_v_ibm);
7653 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_ibm);
7655 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 147, __pyx_L1_error)
7656 __Pyx_GOTREF(__pyx_t_10);
7657 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7658 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7659 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 147, __pyx_L1_error)
7660 __Pyx_GOTREF(__pyx_t_1);
7661 __Pyx_INCREF(__pyx_v_iwl);
7662 __Pyx_GIVEREF(__pyx_v_iwl);
7663 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_iwl);
7664 __Pyx_INCREF(__pyx_v_ibm);
7665 __Pyx_GIVEREF(__pyx_v_ibm);
7666 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_ibm);
7667 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_mrflb, __pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 147, __pyx_L1_error)
7668 __Pyx_GOTREF(__pyx_t_5);
7669 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7672 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_14))) {
7673 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_14);
7674 if (likely(__pyx_t_1)) {
7675 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_14);
7676 __Pyx_INCREF(__pyx_t_1);
7677 __Pyx_INCREF(
function);
7678 __Pyx_DECREF_SET(__pyx_t_14,
function);
7682 #if CYTHON_FAST_PYCALL
7683 if (PyFunction_Check(__pyx_t_14)) {
7684 PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_t_3, __pyx_t_10, __pyx_t_5};
7685 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error)
7686 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
7687 __Pyx_GOTREF(__pyx_t_2);
7688 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7689 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7690 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7693 #if CYTHON_FAST_PYCCALL
7694 if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) {
7695 PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_t_3, __pyx_t_10, __pyx_t_5};
7696 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error)
7697 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
7698 __Pyx_GOTREF(__pyx_t_2);
7699 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7700 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
7701 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7705 __pyx_t_11 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 147, __pyx_L1_error)
7706 __Pyx_GOTREF(__pyx_t_11);
7708 __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_1); __pyx_t_1 =
NULL;
7710 __Pyx_GIVEREF(__pyx_t_3);
7711 PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_6, __pyx_t_3);
7712 __Pyx_GIVEREF(__pyx_t_10);
7713 PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_6, __pyx_t_10);
7714 __Pyx_GIVEREF(__pyx_t_5);
7715 PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_6, __pyx_t_5);
7719 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_11,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error)
7720 __Pyx_GOTREF(__pyx_t_2);
7721 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7723 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
7724 __pyx_t_14 = PyTuple_New(2);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 147, __pyx_L1_error)
7725 __Pyx_GOTREF(__pyx_t_14);
7726 __Pyx_INCREF(__pyx_v_iwl);
7727 __Pyx_GIVEREF(__pyx_v_iwl);
7728 PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_v_iwl);
7729 __Pyx_INCREF(__pyx_v_ibm);
7730 __Pyx_GIVEREF(__pyx_v_ibm);
7731 PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_v_ibm);
7732 if (unlikely(PyObject_SetItem(__pyx_v_trflb, __pyx_t_14, __pyx_t_2) < 0)) __PYX_ERR(0, 147, __pyx_L1_error)
7733 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
7734 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7744 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7754 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7763 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 149, __pyx_L1_error)
7764 __Pyx_GOTREF(__pyx_t_7);
7765 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error)
7766 __Pyx_GOTREF(__pyx_t_2);
7767 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7768 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 149, __pyx_L1_error)
7769 __Pyx_GOTREF(__pyx_t_7);
7770 __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 149, __pyx_L1_error)
7771 __Pyx_GOTREF(__pyx_t_14);
7772 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 149, __pyx_L1_error)
7773 __Pyx_GOTREF(__pyx_t_11);
7774 __Pyx_GIVEREF(__pyx_t_7);
7775 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_7);
7776 __Pyx_GIVEREF(__pyx_t_14);
7777 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_14);
7781 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
7782 __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_2);
7783 if (likely(__pyx_t_14)) {
7784 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7785 __Pyx_INCREF(__pyx_t_14);
7786 __Pyx_INCREF(
function);
7787 __Pyx_DECREF_SET(__pyx_t_2,
function);
7790 __pyx_t_4 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_14, __pyx_t_11) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_11);
7791 __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
7792 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7793 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L1_error)
7794 __Pyx_GOTREF(__pyx_t_4);
7795 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7796 __pyx_v_aot = __pyx_t_4;
7806 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error)
7807 __Pyx_GOTREF(__pyx_t_2);
7808 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 150, __pyx_L1_error)
7809 __Pyx_GOTREF(__pyx_t_11);
7810 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7811 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error)
7812 __Pyx_GOTREF(__pyx_t_2);
7813 __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 150, __pyx_L1_error)
7814 __Pyx_GOTREF(__pyx_t_14);
7815 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 150, __pyx_L1_error)
7816 __Pyx_GOTREF(__pyx_t_7);
7817 __Pyx_GIVEREF(__pyx_t_2);
7818 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2);
7819 __Pyx_GIVEREF(__pyx_t_14);
7820 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_14);
7824 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
7825 __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_11);
7826 if (likely(__pyx_t_14)) {
7827 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_11);
7828 __Pyx_INCREF(__pyx_t_14);
7829 __Pyx_INCREF(
function);
7830 __Pyx_DECREF_SET(__pyx_t_11,
function);
7833 __pyx_t_4 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_14, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_t_7);
7834 __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
7835 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7836 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 150, __pyx_L1_error)
7837 __Pyx_GOTREF(__pyx_t_4);
7838 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7839 __pyx_v_fmf = __pyx_t_4;
7849 __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_np);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 151, __pyx_L1_error)
7850 __Pyx_GOTREF(__pyx_t_11);
7851 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 151, __pyx_L1_error)
7852 __Pyx_GOTREF(__pyx_t_7);
7853 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
7854 __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 151, __pyx_L1_error)
7855 __Pyx_GOTREF(__pyx_t_11);
7856 __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 151, __pyx_L1_error)
7857 __Pyx_GOTREF(__pyx_t_14);
7858 __pyx_t_2 = PyTuple_New(2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error)
7859 __Pyx_GOTREF(__pyx_t_2);
7860 __Pyx_GIVEREF(__pyx_t_11);
7861 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_11);
7862 __Pyx_GIVEREF(__pyx_t_14);
7863 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_14);
7867 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
7868 __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_7);
7869 if (likely(__pyx_t_14)) {
7870 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
7871 __Pyx_INCREF(__pyx_t_14);
7872 __Pyx_INCREF(
function);
7873 __Pyx_DECREF_SET(__pyx_t_7,
function);
7876 __pyx_t_4 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_14, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_2);
7877 __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
7878 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7879 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error)
7880 __Pyx_GOTREF(__pyx_t_4);
7881 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7882 __pyx_v_sse = __pyx_t_4;
7892 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_NSMALL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 152, __pyx_L1_error)
7893 __Pyx_GOTREF(__pyx_t_4);
7894 __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_4);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 152, __pyx_L1_error)
7895 __Pyx_GOTREF(__pyx_t_7);
7896 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7897 if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) {
7898 __pyx_t_4 = __pyx_t_7; __Pyx_INCREF(__pyx_t_4); __pyx_t_8 = 0;
7901 __pyx_t_8 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 152, __pyx_L1_error)
7902 __Pyx_GOTREF(__pyx_t_4);
7903 __pyx_t_9 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 152, __pyx_L1_error)
7905 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7907 if (likely(!__pyx_t_9)) {
7908 if (likely(PyList_CheckExact(__pyx_t_4))) {
7909 if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_4))
break;
7910 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7911 __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 152, __pyx_L1_error)
7913 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 152, __pyx_L1_error)
7914 __Pyx_GOTREF(__pyx_t_7);
7917 if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
7918 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7919 __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 152, __pyx_L1_error)
7921 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 152, __pyx_L1_error)
7922 __Pyx_GOTREF(__pyx_t_7);
7926 __pyx_t_7 = __pyx_t_9(__pyx_t_4);
7927 if (unlikely(!__pyx_t_7)) {
7928 PyObject* exc_type = PyErr_Occurred();
7930 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
7931 else __PYX_ERR(0, 152, __pyx_L1_error)
7935 __Pyx_GOTREF(__pyx_t_7);
7937 __Pyx_XDECREF_SET(__pyx_v_ism, __pyx_t_7);
7947 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 153, __pyx_L1_error)
7948 __Pyx_GOTREF(__pyx_t_7);
7949 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error)
7950 __Pyx_GOTREF(__pyx_t_2);
7951 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
7952 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
7953 __pyx_t_7 = __pyx_t_2; __Pyx_INCREF(__pyx_t_7); __pyx_t_12 = 0;
7956 __pyx_t_12 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 153, __pyx_L1_error)
7957 __Pyx_GOTREF(__pyx_t_7);
7958 __pyx_t_13 = Py_TYPE(__pyx_t_7)->tp_iternext;
if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 153, __pyx_L1_error)
7960 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7962 if (likely(!__pyx_t_13)) {
7963 if (likely(PyList_CheckExact(__pyx_t_7))) {
7964 if (__pyx_t_12 >= PyList_GET_SIZE(__pyx_t_7))
break;
7965 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7966 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++;
if (unlikely(0 < 0)) __PYX_ERR(0, 153, __pyx_L1_error)
7968 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_12); __pyx_t_12++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error)
7969 __Pyx_GOTREF(__pyx_t_2);
7972 if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_7))
break;
7973 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
7974 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++;
if (unlikely(0 < 0)) __PYX_ERR(0, 153, __pyx_L1_error)
7976 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_12); __pyx_t_12++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error)
7977 __Pyx_GOTREF(__pyx_t_2);
7981 __pyx_t_2 = __pyx_t_13(__pyx_t_7);
7982 if (unlikely(!__pyx_t_2)) {
7983 PyObject* exc_type = PyErr_Occurred();
7985 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
7986 else __PYX_ERR(0, 153, __pyx_L1_error)
7990 __Pyx_GOTREF(__pyx_t_2);
7992 __Pyx_XDECREF_SET(__pyx_v_ibm, __pyx_t_2);
8002 __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_np);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 154, __pyx_L1_error)
8003 __Pyx_GOTREF(__pyx_t_14);
8004 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_clip);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 154, __pyx_L1_error)
8005 __Pyx_GOTREF(__pyx_t_11);
8006 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8007 __pyx_t_14 = PyNumber_Subtract(__pyx_v_rfl, __pyx_v_mrflr);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 154, __pyx_L1_error)
8008 __Pyx_GOTREF(__pyx_t_14);
8011 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
8012 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_11);
8013 if (likely(__pyx_t_5)) {
8014 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_11);
8015 __Pyx_INCREF(__pyx_t_5);
8016 __Pyx_INCREF(
function);
8017 __Pyx_DECREF_SET(__pyx_t_11,
function);
8021 #if CYTHON_FAST_PYCALL
8022 if (PyFunction_Check(__pyx_t_11)) {
8023 PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_t_14, __pyx_int_0, __pyx_float_1_2};
8024 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
8025 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
8026 __Pyx_GOTREF(__pyx_t_2);
8027 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8030 #if CYTHON_FAST_PYCCALL
8031 if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) {
8032 PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_t_14, __pyx_int_0, __pyx_float_1_2};
8033 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
8034 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
8035 __Pyx_GOTREF(__pyx_t_2);
8036 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8040 __pyx_t_10 = PyTuple_New(3+__pyx_t_6);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 154, __pyx_L1_error)
8041 __Pyx_GOTREF(__pyx_t_10);
8043 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5); __pyx_t_5 =
NULL;
8045 __Pyx_GIVEREF(__pyx_t_14);
8046 PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_6, __pyx_t_14);
8047 __Pyx_INCREF(__pyx_int_0);
8048 __Pyx_GIVEREF(__pyx_int_0);
8049 PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_6, __pyx_int_0);
8050 __Pyx_INCREF(__pyx_float_1_2);
8051 __Pyx_GIVEREF(__pyx_float_1_2);
8052 PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_6, __pyx_float_1_2);
8054 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_10,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
8055 __Pyx_GOTREF(__pyx_t_2);
8056 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8058 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8059 __pyx_t_11 = __Pyx_PyFloat_AddObjC(__pyx_t_2, __pyx_float_0_01, 0.01, 0, 0);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 154, __pyx_L1_error)
8060 __Pyx_GOTREF(__pyx_t_11);
8061 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8062 __Pyx_XDECREF_SET(__pyx_v_denom, __pyx_t_11);
8072 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 155, __pyx_L1_error)
8073 __Pyx_GOTREF(__pyx_t_11);
8074 __Pyx_INCREF(__pyx_slice__4);
8075 __Pyx_GIVEREF(__pyx_slice__4);
8076 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_slice__4);
8077 __Pyx_INCREF(__pyx_v_ibm);
8078 __Pyx_GIVEREF(__pyx_v_ibm);
8079 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ibm);
8080 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_trflb, __pyx_t_11);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error)
8081 __Pyx_GOTREF(__pyx_t_2);
8082 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8083 __pyx_t_11 = PyNumber_Subtract(__pyx_v_rfl, __pyx_t_2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 155, __pyx_L1_error)
8084 __Pyx_GOTREF(__pyx_t_11);
8085 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8086 __Pyx_XDECREF_SET(__pyx_v_rbdif, __pyx_t_11);
8096 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 156, __pyx_L1_error)
8097 __Pyx_GOTREF(__pyx_t_11);
8098 __Pyx_INCREF(__pyx_slice__4);
8099 __Pyx_GIVEREF(__pyx_slice__4);
8100 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_slice__4);
8101 __Pyx_INCREF(__pyx_v_ism);
8102 __Pyx_GIVEREF(__pyx_v_ism);
8103 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ism);
8104 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_trfls, __pyx_t_11);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error)
8105 __Pyx_GOTREF(__pyx_t_2);
8106 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8107 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 156, __pyx_L1_error)
8108 __Pyx_GOTREF(__pyx_t_11);
8109 __Pyx_INCREF(__pyx_slice__4);
8110 __Pyx_GIVEREF(__pyx_slice__4);
8111 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_slice__4);
8112 __Pyx_INCREF(__pyx_v_ibm);
8113 __Pyx_GIVEREF(__pyx_v_ibm);
8114 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ibm);
8115 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_trflb, __pyx_t_11);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 156, __pyx_L1_error)
8116 __Pyx_GOTREF(__pyx_t_10);
8117 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8118 __pyx_t_11 = PyNumber_Subtract(__pyx_t_2, __pyx_t_10);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 156, __pyx_L1_error)
8119 __Pyx_GOTREF(__pyx_t_11);
8120 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8121 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8122 __Pyx_XDECREF_SET(__pyx_v_sbdif, __pyx_t_11);
8132 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 157, __pyx_L1_error)
8133 __Pyx_GOTREF(__pyx_t_10);
8134 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_dot);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error)
8135 __Pyx_GOTREF(__pyx_t_2);
8136 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8137 __pyx_t_10 = __Pyx_PyObject_GetSlice(__pyx_v_sbdif, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 157, __pyx_L1_error)
8138 __Pyx_GOTREF(__pyx_t_10);
8139 __pyx_t_14 = __Pyx_PyObject_GetSlice(__pyx_v_denom, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 157, __pyx_L1_error)
8140 __Pyx_GOTREF(__pyx_t_14);
8141 __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_10, __pyx_t_14);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 157, __pyx_L1_error)
8142 __Pyx_GOTREF(__pyx_t_5);
8143 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8144 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8145 __pyx_t_14 = __Pyx_PyObject_GetSlice(__pyx_v_sbdif, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 157, __pyx_L1_error)
8146 __Pyx_GOTREF(__pyx_t_14);
8147 __pyx_t_10 = __Pyx_PyObject_GetSlice(__pyx_v_denom, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 157, __pyx_L1_error)
8148 __Pyx_GOTREF(__pyx_t_10);
8149 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_14, __pyx_t_10);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 157, __pyx_L1_error)
8150 __Pyx_GOTREF(__pyx_t_3);
8151 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8152 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8155 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
8156 __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2);
8157 if (likely(__pyx_t_10)) {
8158 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8159 __Pyx_INCREF(__pyx_t_10);
8160 __Pyx_INCREF(
function);
8161 __Pyx_DECREF_SET(__pyx_t_2,
function);
8165 #if CYTHON_FAST_PYCALL
8166 if (PyFunction_Check(__pyx_t_2)) {
8167 PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_5, __pyx_t_3};
8168 __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 157, __pyx_L1_error)
8169 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
8170 __Pyx_GOTREF(__pyx_t_11);
8171 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8172 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8175 #if CYTHON_FAST_PYCCALL
8176 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
8177 PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_5, __pyx_t_3};
8178 __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 157, __pyx_L1_error)
8179 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
8180 __Pyx_GOTREF(__pyx_t_11);
8181 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8182 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8186 __pyx_t_14 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 157, __pyx_L1_error)
8187 __Pyx_GOTREF(__pyx_t_14);
8189 __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_10); __pyx_t_10 =
NULL;
8191 __Pyx_GIVEREF(__pyx_t_5);
8192 PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_6, __pyx_t_5);
8193 __Pyx_GIVEREF(__pyx_t_3);
8194 PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_6, __pyx_t_3);
8197 __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_14,
NULL);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 157, __pyx_L1_error)
8198 __Pyx_GOTREF(__pyx_t_11);
8199 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8201 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8202 __Pyx_XDECREF_SET(__pyx_v_sb2, __pyx_t_11);
8212 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 158, __pyx_L1_error)
8213 __Pyx_GOTREF(__pyx_t_2);
8214 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_dot);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 158, __pyx_L1_error)
8215 __Pyx_GOTREF(__pyx_t_14);
8216 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8217 __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_rbdif, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 158, __pyx_L1_error)
8218 __Pyx_GOTREF(__pyx_t_2);
8219 __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_denom, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error)
8220 __Pyx_GOTREF(__pyx_t_3);
8221 __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 158, __pyx_L1_error)
8222 __Pyx_GOTREF(__pyx_t_5);
8223 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8224 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8225 __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_sbdif, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error)
8226 __Pyx_GOTREF(__pyx_t_3);
8227 __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_denom, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 158, __pyx_L1_error)
8228 __Pyx_GOTREF(__pyx_t_2);
8229 __pyx_t_10 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 158, __pyx_L1_error)
8230 __Pyx_GOTREF(__pyx_t_10);
8231 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8232 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8235 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_14))) {
8236 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_14);
8237 if (likely(__pyx_t_2)) {
8238 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_14);
8239 __Pyx_INCREF(__pyx_t_2);
8240 __Pyx_INCREF(
function);
8241 __Pyx_DECREF_SET(__pyx_t_14,
function);
8245 #if CYTHON_FAST_PYCALL
8246 if (PyFunction_Check(__pyx_t_14)) {
8247 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_5, __pyx_t_10};
8248 __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 158, __pyx_L1_error)
8249 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
8250 __Pyx_GOTREF(__pyx_t_11);
8251 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8252 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8255 #if CYTHON_FAST_PYCCALL
8256 if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) {
8257 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_5, __pyx_t_10};
8258 __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 158, __pyx_L1_error)
8259 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
8260 __Pyx_GOTREF(__pyx_t_11);
8261 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8262 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8266 __pyx_t_3 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error)
8267 __Pyx_GOTREF(__pyx_t_3);
8269 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __pyx_t_2 =
NULL;
8271 __Pyx_GIVEREF(__pyx_t_5);
8272 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_6, __pyx_t_5);
8273 __Pyx_GIVEREF(__pyx_t_10);
8274 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_6, __pyx_t_10);
8277 __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_3,
NULL);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 158, __pyx_L1_error)
8278 __Pyx_GOTREF(__pyx_t_11);
8279 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8281 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8282 __Pyx_XDECREF_SET(__pyx_v_rbsb, __pyx_t_11);
8292 __pyx_t_11 = __Pyx_PyNumber_Divide(__pyx_v_rbsb, __pyx_v_sb2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 159, __pyx_L1_error)
8293 __Pyx_GOTREF(__pyx_t_11);
8294 __Pyx_XDECREF_SET(__pyx_v_xm, __pyx_t_11);
8304 __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_np);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 160, __pyx_L1_error)
8305 __Pyx_GOTREF(__pyx_t_14);
8306 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_max);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 160, __pyx_L1_error)
8307 __Pyx_GOTREF(__pyx_t_3);
8308 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8309 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 160, __pyx_L1_error)
8310 __Pyx_GOTREF(__pyx_t_10);
8311 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_min);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 160, __pyx_L1_error)
8312 __Pyx_GOTREF(__pyx_t_5);
8313 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8314 __pyx_t_10 = PyTuple_New(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 160, __pyx_L1_error)
8315 __Pyx_GOTREF(__pyx_t_10);
8316 __Pyx_INCREF(__pyx_v_xm);
8317 __Pyx_GIVEREF(__pyx_v_xm);
8318 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_xm);
8319 __Pyx_INCREF(__pyx_float_1_0);
8320 __Pyx_GIVEREF(__pyx_float_1_0);
8321 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_float_1_0);
8323 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
8324 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
8325 if (likely(__pyx_t_2)) {
8326 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
8327 __Pyx_INCREF(__pyx_t_2);
8328 __Pyx_INCREF(
function);
8329 __Pyx_DECREF_SET(__pyx_t_5,
function);
8332 __pyx_t_14 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_2, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_10);
8333 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
8334 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
8335 if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 160, __pyx_L1_error)
8336 __Pyx_GOTREF(__pyx_t_14);
8337 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8338 __pyx_t_5 = PyTuple_New(2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 160, __pyx_L1_error)
8339 __Pyx_GOTREF(__pyx_t_5);
8340 __Pyx_GIVEREF(__pyx_t_14);
8341 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_14);
8342 __Pyx_INCREF(__pyx_float_0_0);
8343 __Pyx_GIVEREF(__pyx_float_0_0);
8344 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_float_0_0);
8347 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
8348 __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_3);
8349 if (likely(__pyx_t_14)) {
8350 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
8351 __Pyx_INCREF(__pyx_t_14);
8352 __Pyx_INCREF(
function);
8353 __Pyx_DECREF_SET(__pyx_t_3,
function);
8356 __pyx_t_11 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_14, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5);
8357 __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
8358 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8359 if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 160, __pyx_L1_error)
8360 __Pyx_GOTREF(__pyx_t_11);
8361 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8362 __Pyx_DECREF_SET(__pyx_v_xm, __pyx_t_11);
8372 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 161, __pyx_L1_error)
8373 __Pyx_GOTREF(__pyx_t_11);
8374 __Pyx_INCREF(__pyx_slice__4);
8375 __Pyx_GIVEREF(__pyx_slice__4);
8376 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_slice__4);
8377 __Pyx_INCREF(__pyx_v_ism);
8378 __Pyx_GIVEREF(__pyx_v_ism);
8379 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_v_ism);
8380 __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_trfls, __pyx_t_11);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error)
8381 __Pyx_GOTREF(__pyx_t_3);
8382 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8383 __pyx_t_11 = PyNumber_Multiply(__pyx_v_xm, __pyx_t_3);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 161, __pyx_L1_error)
8384 __Pyx_GOTREF(__pyx_t_11);
8385 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8386 __pyx_t_3 = __Pyx_PyFloat_SubtractCObj(__pyx_float_1_0, __pyx_v_xm, 1.0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error)
8387 __Pyx_GOTREF(__pyx_t_3);
8388 __pyx_t_5 = PyTuple_New(2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 161, __pyx_L1_error)
8389 __Pyx_GOTREF(__pyx_t_5);
8390 __Pyx_INCREF(__pyx_slice__4);
8391 __Pyx_GIVEREF(__pyx_slice__4);
8392 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_slice__4);
8393 __Pyx_INCREF(__pyx_v_ibm);
8394 __Pyx_GIVEREF(__pyx_v_ibm);
8395 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_ibm);
8396 __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_v_trflb, __pyx_t_5);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 161, __pyx_L1_error)
8397 __Pyx_GOTREF(__pyx_t_14);
8398 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8399 __pyx_t_5 = PyNumber_Multiply(__pyx_t_3, __pyx_t_14);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 161, __pyx_L1_error)
8400 __Pyx_GOTREF(__pyx_t_5);
8401 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8402 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8403 __pyx_t_14 = PyNumber_Add(__pyx_t_11, __pyx_t_5);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 161, __pyx_L1_error)
8404 __Pyx_GOTREF(__pyx_t_14);
8405 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8406 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8407 __Pyx_XDECREF_SET(__pyx_v_mrfl, __pyx_t_14);
8417 __pyx_t_14 = PyNumber_Subtract(__pyx_v_rfl, __pyx_v_mrfl);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 163, __pyx_L1_error)
8418 __Pyx_GOTREF(__pyx_t_14);
8419 __Pyx_XDECREF_SET(__pyx_v_err, __pyx_t_14);
8429 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 164, __pyx_L1_error)
8430 __Pyx_GOTREF(__pyx_t_5);
8431 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_dot);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 164, __pyx_L1_error)
8432 __Pyx_GOTREF(__pyx_t_11);
8433 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8434 __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_err, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 164, __pyx_L1_error)
8435 __Pyx_GOTREF(__pyx_t_5);
8436 __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_err, 1, 0,
NULL,
NULL, &__pyx_slice__7, 1, 0, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 164, __pyx_L1_error)
8437 __Pyx_GOTREF(__pyx_t_3);
8440 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
8441 __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11);
8442 if (likely(__pyx_t_10)) {
8443 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_11);
8444 __Pyx_INCREF(__pyx_t_10);
8445 __Pyx_INCREF(
function);
8446 __Pyx_DECREF_SET(__pyx_t_11,
function);
8450 #if CYTHON_FAST_PYCALL
8451 if (PyFunction_Check(__pyx_t_11)) {
8452 PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_5, __pyx_t_3};
8453 __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 164, __pyx_L1_error)
8454 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
8455 __Pyx_GOTREF(__pyx_t_14);
8456 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8457 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8460 #if CYTHON_FAST_PYCCALL
8461 if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) {
8462 PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_5, __pyx_t_3};
8463 __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 164, __pyx_L1_error)
8464 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
8465 __Pyx_GOTREF(__pyx_t_14);
8466 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8467 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8471 __pyx_t_2 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
8472 __Pyx_GOTREF(__pyx_t_2);
8474 __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_10); __pyx_t_10 =
NULL;
8476 __Pyx_GIVEREF(__pyx_t_5);
8477 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_6, __pyx_t_5);
8478 __Pyx_GIVEREF(__pyx_t_3);
8479 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_6, __pyx_t_3);
8482 __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_2,
NULL);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 164, __pyx_L1_error)
8483 __Pyx_GOTREF(__pyx_t_14);
8484 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8486 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8487 __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 164, __pyx_L1_error)
8488 __Pyx_GOTREF(__pyx_t_11);
8489 __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_t_11, __pyx_int_2, 2, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
8490 __Pyx_GOTREF(__pyx_t_2);
8491 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8492 __pyx_t_11 = __Pyx_PyNumber_Divide(__pyx_t_14, __pyx_t_2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 164, __pyx_L1_error)
8493 __Pyx_GOTREF(__pyx_t_11);
8494 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8495 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8496 __pyx_t_2 = PyTuple_New(2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
8497 __Pyx_GOTREF(__pyx_t_2);
8498 __Pyx_INCREF(__pyx_v_ism);
8499 __Pyx_GIVEREF(__pyx_v_ism);
8500 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_ism);
8501 __Pyx_INCREF(__pyx_v_ibm);
8502 __Pyx_GIVEREF(__pyx_v_ibm);
8503 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_ibm);
8504 if (unlikely(PyObject_SetItem(__pyx_v_sse, __pyx_t_2, __pyx_t_11) < 0)) __PYX_ERR(0, 164, __pyx_L1_error)
8505 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8506 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8515 __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_tauxs, __pyx_v_ism);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 165, __pyx_L1_error)
8516 __Pyx_GOTREF(__pyx_t_11);
8517 __pyx_t_2 = PyNumber_Multiply(__pyx_v_xm, __pyx_t_11);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error)
8518 __Pyx_GOTREF(__pyx_t_2);
8519 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8520 __pyx_t_11 = __Pyx_PyFloat_SubtractCObj(__pyx_float_1_0, __pyx_v_xm, 1.0, 0, 0);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 165, __pyx_L1_error)
8521 __Pyx_GOTREF(__pyx_t_11);
8522 __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_v_tauxb, __pyx_v_ibm);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 165, __pyx_L1_error)
8523 __Pyx_GOTREF(__pyx_t_14);
8524 __pyx_t_3 = PyNumber_Multiply(__pyx_t_11, __pyx_t_14);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error)
8525 __Pyx_GOTREF(__pyx_t_3);
8526 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8527 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8528 __pyx_t_14 = PyNumber_Add(__pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 165, __pyx_L1_error)
8529 __Pyx_GOTREF(__pyx_t_14);
8530 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8531 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8532 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error)
8533 __Pyx_GOTREF(__pyx_t_3);
8534 __Pyx_INCREF(__pyx_v_ism);
8535 __Pyx_GIVEREF(__pyx_v_ism);
8536 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_ism);
8537 __Pyx_INCREF(__pyx_v_ibm);
8538 __Pyx_GIVEREF(__pyx_v_ibm);
8539 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ibm);
8540 if (unlikely(PyObject_SetItem(__pyx_v_aot, __pyx_t_3, __pyx_t_14) < 0)) __PYX_ERR(0, 165, __pyx_L1_error)
8541 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8542 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8551 __pyx_t_14 = PyTuple_New(2);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 166, __pyx_L1_error)
8552 __Pyx_GOTREF(__pyx_t_14);
8553 __Pyx_INCREF(__pyx_v_ism);
8554 __Pyx_GIVEREF(__pyx_v_ism);
8555 PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_v_ism);
8556 __Pyx_INCREF(__pyx_v_ibm);
8557 __Pyx_GIVEREF(__pyx_v_ibm);
8558 PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_v_ibm);
8559 if (unlikely(PyObject_SetItem(__pyx_v_fmf, __pyx_t_14, __pyx_v_xm) < 0)) __PYX_ERR(0, 166, __pyx_L1_error)
8560 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8570 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8580 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8589 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sse, __pyx_n_s_argmin);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 167, __pyx_L1_error)
8590 __Pyx_GOTREF(__pyx_t_7);
8592 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
8593 __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_7);
8594 if (likely(__pyx_t_14)) {
8595 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
8596 __Pyx_INCREF(__pyx_t_14);
8597 __Pyx_INCREF(
function);
8598 __Pyx_DECREF_SET(__pyx_t_7,
function);
8601 __pyx_t_4 = (__pyx_t_14) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_14) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
8602 __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
8603 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 167, __pyx_L1_error)
8604 __Pyx_GOTREF(__pyx_t_4);
8605 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8606 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 167, __pyx_L1_error)
8607 __Pyx_GOTREF(__pyx_t_7);
8608 __pyx_t_14 = PyNumber_Divmod(__pyx_t_4, __pyx_t_7);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 167, __pyx_L1_error)
8609 __Pyx_GOTREF(__pyx_t_14);
8610 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8611 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8612 __pyx_v_im = __pyx_t_14;
8622 __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_NBIG);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 168, __pyx_L1_error)
8623 __Pyx_GOTREF(__pyx_t_14);
8624 __pyx_t_7 = __Pyx_PyInt_SubtractObjC(__pyx_t_14, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 168, __pyx_L1_error)
8625 __Pyx_GOTREF(__pyx_t_7);
8626 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8627 __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_im, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 168, __pyx_L1_error)
8628 __Pyx_GOTREF(__pyx_t_14);
8629 __pyx_t_4 = PyNumber_Multiply(__pyx_t_7, __pyx_t_14);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 168, __pyx_L1_error)
8630 __Pyx_GOTREF(__pyx_t_4);
8631 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8632 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8633 __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_im, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 168, __pyx_L1_error)
8634 __Pyx_GOTREF(__pyx_t_14);
8635 __pyx_t_7 = PyNumber_Add(__pyx_t_4, __pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 168, __pyx_L1_error)
8636 __Pyx_GOTREF(__pyx_t_7);
8637 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8638 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8639 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_type, __pyx_t_7) < 0) __PYX_ERR(0, 168, __pyx_L1_error)
8640 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8649 __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_im, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 169, __pyx_L1_error)
8650 __Pyx_GOTREF(__pyx_t_7);
8651 __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_im, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 169, __pyx_L1_error)
8652 __Pyx_GOTREF(__pyx_t_14);
8653 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 169, __pyx_L1_error)
8654 __Pyx_GOTREF(__pyx_t_4);
8655 __Pyx_GIVEREF(__pyx_t_7);
8656 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7);
8657 __Pyx_GIVEREF(__pyx_t_14);
8658 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_14);
8661 __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_v_sse, __pyx_t_4);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 169, __pyx_L1_error)
8662 __Pyx_GOTREF(__pyx_t_14);
8663 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8664 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_sse, __pyx_t_14) < 0) __PYX_ERR(0, 169, __pyx_L1_error)
8665 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8674 __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_im, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 170, __pyx_L1_error)
8675 __Pyx_GOTREF(__pyx_t_14);
8676 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_im, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 170, __pyx_L1_error)
8677 __Pyx_GOTREF(__pyx_t_4);
8678 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 170, __pyx_L1_error)
8679 __Pyx_GOTREF(__pyx_t_7);
8680 __Pyx_GIVEREF(__pyx_t_14);
8681 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_14);
8682 __Pyx_GIVEREF(__pyx_t_4);
8683 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_4);
8686 __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_aot, __pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 170, __pyx_L1_error)
8687 __Pyx_GOTREF(__pyx_t_4);
8688 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8689 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_aot, __pyx_t_4) < 0) __PYX_ERR(0, 170, __pyx_L1_error)
8690 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8699 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_im, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 171, __pyx_L1_error)
8700 __Pyx_GOTREF(__pyx_t_4);
8701 __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_im, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 171, __pyx_L1_error)
8702 __Pyx_GOTREF(__pyx_t_7);
8703 __pyx_t_14 = PyTuple_New(2);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 171, __pyx_L1_error)
8704 __Pyx_GOTREF(__pyx_t_14);
8705 __Pyx_GIVEREF(__pyx_t_4);
8706 PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_4);
8707 __Pyx_GIVEREF(__pyx_t_7);
8708 PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_7);
8711 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_fmf, __pyx_t_14);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 171, __pyx_L1_error)
8712 __Pyx_GOTREF(__pyx_t_7);
8713 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8714 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_fmf, __pyx_t_7) < 0) __PYX_ERR(0, 171, __pyx_L1_error)
8715 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8724 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rfl, __pyx_v_rfl) < 0) __PYX_ERR(0, 172, __pyx_L1_error)
8733 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fmf);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 173, __pyx_L1_error)
8734 __Pyx_GOTREF(__pyx_t_7);
8735 __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_im, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 173, __pyx_L1_error)
8736 __Pyx_GOTREF(__pyx_t_14);
8737 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L1_error)
8738 __Pyx_GOTREF(__pyx_t_4);
8739 __Pyx_INCREF(__pyx_slice__4);
8740 __Pyx_GIVEREF(__pyx_slice__4);
8741 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_slice__4);
8742 __Pyx_GIVEREF(__pyx_t_14);
8743 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_14);
8745 __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_v_trfls, __pyx_t_4);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 173, __pyx_L1_error)
8746 __Pyx_GOTREF(__pyx_t_14);
8747 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8748 __pyx_t_4 = PyNumber_Multiply(__pyx_t_7, __pyx_t_14);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L1_error)
8749 __Pyx_GOTREF(__pyx_t_4);
8750 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8751 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8752 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fmf);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 173, __pyx_L1_error)
8753 __Pyx_GOTREF(__pyx_t_14);
8754 __pyx_t_7 = __Pyx_PyFloat_SubtractCObj(__pyx_float_1_0, __pyx_t_14, 1.0, 0, 0);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 173, __pyx_L1_error)
8755 __Pyx_GOTREF(__pyx_t_7);
8756 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8757 __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_im, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 173, __pyx_L1_error)
8758 __Pyx_GOTREF(__pyx_t_14);
8759 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 173, __pyx_L1_error)
8760 __Pyx_GOTREF(__pyx_t_3);
8761 __Pyx_INCREF(__pyx_slice__4);
8762 __Pyx_GIVEREF(__pyx_slice__4);
8763 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_slice__4);
8764 __Pyx_GIVEREF(__pyx_t_14);
8765 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_14);
8767 __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_v_trflb, __pyx_t_3);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 173, __pyx_L1_error)
8768 __Pyx_GOTREF(__pyx_t_14);
8769 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8770 __pyx_t_3 = PyNumber_Multiply(__pyx_t_7, __pyx_t_14);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 173, __pyx_L1_error)
8771 __Pyx_GOTREF(__pyx_t_3);
8772 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8773 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8774 __pyx_t_14 = PyNumber_Add(__pyx_t_4, __pyx_t_3);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 173, __pyx_L1_error)
8775 __Pyx_GOTREF(__pyx_t_14);
8776 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8777 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8778 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_mrfl, __pyx_t_14) < 0) __PYX_ERR(0, 173, __pyx_L1_error)
8779 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8788 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_mrfl);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 174, __pyx_L1_error)
8789 __Pyx_GOTREF(__pyx_t_14);
8790 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 174, __pyx_L1_error)
8791 __Pyx_GOTREF(__pyx_t_3);
8792 __pyx_t_4 = PyNumber_Subtract(__pyx_t_14, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 174, __pyx_L1_error)
8793 __Pyx_GOTREF(__pyx_t_4);
8794 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8795 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8796 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rsd, __pyx_t_4) < 0) __PYX_ERR(0, 174, __pyx_L1_error)
8797 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8806 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 175, __pyx_L1_error)
8807 __Pyx_GOTREF(__pyx_t_3);
8808 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_dot);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 175, __pyx_L1_error)
8809 __Pyx_GOTREF(__pyx_t_14);
8810 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8811 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rsd);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 175, __pyx_L1_error)
8812 __Pyx_GOTREF(__pyx_t_3);
8813 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rsd);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 175, __pyx_L1_error)
8814 __Pyx_GOTREF(__pyx_t_7);
8817 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_14))) {
8818 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_14);
8819 if (likely(__pyx_t_2)) {
8820 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_14);
8821 __Pyx_INCREF(__pyx_t_2);
8822 __Pyx_INCREF(
function);
8823 __Pyx_DECREF_SET(__pyx_t_14,
function);
8827 #if CYTHON_FAST_PYCALL
8828 if (PyFunction_Check(__pyx_t_14)) {
8829 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_3, __pyx_t_7};
8830 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 175, __pyx_L1_error)
8831 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
8832 __Pyx_GOTREF(__pyx_t_4);
8833 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8834 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8837 #if CYTHON_FAST_PYCCALL
8838 if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) {
8839 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_3, __pyx_t_7};
8840 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 175, __pyx_L1_error)
8841 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
8842 __Pyx_GOTREF(__pyx_t_4);
8843 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8844 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8848 __pyx_t_11 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 175, __pyx_L1_error)
8849 __Pyx_GOTREF(__pyx_t_11);
8851 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_2); __pyx_t_2 =
NULL;
8853 __Pyx_GIVEREF(__pyx_t_3);
8854 PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_6, __pyx_t_3);
8855 __Pyx_GIVEREF(__pyx_t_7);
8856 PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_6, __pyx_t_7);
8859 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_11,
NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 175, __pyx_L1_error)
8860 __Pyx_GOTREF(__pyx_t_4);
8861 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8863 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8864 __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 175, __pyx_L1_error)
8865 __Pyx_GOTREF(__pyx_t_14);
8866 __pyx_t_11 = __Pyx_PyInt_SubtractObjC(__pyx_t_14, __pyx_int_2, 2, 0, 0);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 175, __pyx_L1_error)
8867 __Pyx_GOTREF(__pyx_t_11);
8868 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8869 __pyx_t_14 = __Pyx_PyNumber_Divide(__pyx_t_4, __pyx_t_11);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 175, __pyx_L1_error)
8870 __Pyx_GOTREF(__pyx_t_14);
8871 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8872 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
8873 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_sse, __pyx_t_14) < 0) __PYX_ERR(0, 175, __pyx_L1_error)
8874 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
8883 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rayl, __pyx_v_mrflr) < 0) __PYX_ERR(0, 176, __pyx_L1_error)
8892 __Pyx_XDECREF(__pyx_r);
8893 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fmf);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 178, __pyx_L1_error)
8894 __Pyx_GOTREF(__pyx_t_14);
8895 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_aot);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 178, __pyx_L1_error)
8896 __Pyx_GOTREF(__pyx_t_11);
8897 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sse);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 178, __pyx_L1_error)
8898 __Pyx_GOTREF(__pyx_t_4);
8899 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_type);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 178, __pyx_L1_error)
8900 __Pyx_GOTREF(__pyx_t_7);
8901 __pyx_t_3 = PyTuple_New(4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 178, __pyx_L1_error)
8902 __Pyx_GOTREF(__pyx_t_3);
8903 __Pyx_GIVEREF(__pyx_t_14);
8904 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_14);
8905 __Pyx_GIVEREF(__pyx_t_11);
8906 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_11);
8907 __Pyx_GIVEREF(__pyx_t_4);
8908 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4);
8909 __Pyx_GIVEREF(__pyx_t_7);
8910 PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_7);
8915 __pyx_r = __pyx_t_3;
8929 __Pyx_XDECREF(__pyx_t_1);
8930 __Pyx_XDECREF(__pyx_t_2);
8931 __Pyx_XDECREF(__pyx_t_3);
8932 __Pyx_XDECREF(__pyx_t_4);
8933 __Pyx_XDECREF(__pyx_t_5);
8934 __Pyx_XDECREF(__pyx_t_7);
8935 __Pyx_XDECREF(__pyx_t_10);
8936 __Pyx_XDECREF(__pyx_t_11);
8937 __Pyx_XDECREF(__pyx_t_14);
8938 __Pyx_AddTraceback(
"dtocean.dtocean.process", __pyx_clineno, __pyx_lineno, __pyx_filename);
8941 __Pyx_XDECREF(__pyx_v_xit);
8942 __Pyx_XDECREF(__pyx_v_units);
8943 __Pyx_XDECREF(__pyx_v_mrfls);
8944 __Pyx_XDECREF(__pyx_v_mrflb);
8945 __Pyx_XDECREF(__pyx_v_mrflr);
8946 __Pyx_XDECREF(__pyx_v_tauxs);
8947 __Pyx_XDECREF(__pyx_v_tauxb);
8948 __Pyx_XDECREF(__pyx_v_ism);
8949 __Pyx_XDECREF(__pyx_v_ibm);
8950 __Pyx_XDECREF(__pyx_v_trfls);
8951 __Pyx_XDECREF(__pyx_v_trflb);
8952 __Pyx_XDECREF(__pyx_v_iwl);
8953 __Pyx_XDECREF(__pyx_v_aot);
8954 __Pyx_XDECREF(__pyx_v_fmf);
8955 __Pyx_XDECREF(__pyx_v_sse);
8956 __Pyx_XDECREF(__pyx_v_denom);
8957 __Pyx_XDECREF(__pyx_v_rbdif);
8958 __Pyx_XDECREF(__pyx_v_sbdif);
8959 __Pyx_XDECREF(__pyx_v_sb2);
8960 __Pyx_XDECREF(__pyx_v_rbsb);
8961 __Pyx_XDECREF(__pyx_v_xm);
8962 __Pyx_XDECREF(__pyx_v_mrfl);
8963 __Pyx_XDECREF(__pyx_v_err);
8964 __Pyx_XDECREF(__pyx_v_im);
8965 __Pyx_XGIVEREF(__pyx_r);
8966 __Pyx_RefNannyFinishContext();
8979 static PyObject *__pyx_pw_7dtocean_7dtocean_9plot(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8980 static PyMethodDef __pyx_mdef_7dtocean_7dtocean_9plot = {
"plot", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_7dtocean_7dtocean_9plot, METH_VARARGS|METH_KEYWORDS, 0};
8981 static PyObject *__pyx_pw_7dtocean_7dtocean_9plot(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8982 PyObject *__pyx_v_self = 0;
8983 PyObject *__pyx_v_iy = 0;
8984 PyObject *__pyx_v_ix = 0;
8985 int __pyx_lineno = 0;
8986 const char *__pyx_filename =
NULL;
8987 int __pyx_clineno = 0;
8988 PyObject *__pyx_r = 0;
8989 __Pyx_RefNannyDeclarations
8990 __Pyx_RefNannySetupContext(
"plot (wrapper)", 0);
8992 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_iy,&__pyx_n_s_ix,0};
8993 PyObject*
values[3] = {0,0,0};
8994 if (unlikely(__pyx_kwds)) {
8996 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8998 case 3:
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9000 case 2:
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9002 case 1:
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9005 default:
goto __pyx_L5_argtuple_error;
9007 kw_args = PyDict_Size(__pyx_kwds);
9010 if (likely((
values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
9011 else goto __pyx_L5_argtuple_error;
9014 if (likely((
values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_iy)) != 0)) kw_args--;
9016 __Pyx_RaiseArgtupleInvalid(
"plot", 1, 3, 3, 1); __PYX_ERR(0, 180, __pyx_L3_error)
9020 if (likely((
values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ix)) != 0)) kw_args--;
9022 __Pyx_RaiseArgtupleInvalid(
"plot", 1, 3, 3, 2); __PYX_ERR(0, 180, __pyx_L3_error)
9025 if (unlikely(kw_args > 0)) {
9026 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0,
values, pos_args,
"plot") < 0)) __PYX_ERR(0, 180, __pyx_L3_error)
9028 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
9029 goto __pyx_L5_argtuple_error;
9031 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9032 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9033 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9035 __pyx_v_self =
values[0];
9039 goto __pyx_L4_argument_unpacking_done;
9040 __pyx_L5_argtuple_error:;
9041 __Pyx_RaiseArgtupleInvalid(
"plot", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 180, __pyx_L3_error)
9043 __Pyx_AddTraceback(
"dtocean.dtocean.plot", __pyx_clineno, __pyx_lineno, __pyx_filename);
9044 __Pyx_RefNannyFinishContext();
9046 __pyx_L4_argument_unpacking_done:;
9047 __pyx_r = __pyx_pf_7dtocean_7dtocean_8plot(__pyx_self, __pyx_v_self, __pyx_v_iy, __pyx_v_ix);
9050 __Pyx_RefNannyFinishContext();
9054 static PyObject *__pyx_pf_7dtocean_7dtocean_8plot(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_iy, PyObject *__pyx_v_ix) {
9055 PyObject *__pyx_v_tstr =
NULL;
9056 PyObject *__pyx_r =
NULL;
9057 __Pyx_RefNannyDeclarations
9058 PyObject *__pyx_t_1 =
NULL;
9059 PyObject *__pyx_t_2 =
NULL;
9060 PyObject *__pyx_t_3 =
NULL;
9061 PyObject *__pyx_t_4 =
NULL;
9062 PyObject *__pyx_t_5 =
NULL;
9063 PyObject *__pyx_t_6 =
NULL;
9064 PyObject *__pyx_t_7 =
NULL;
9065 PyObject *__pyx_t_8 =
NULL;
9067 PyObject *__pyx_t_10 =
NULL;
9068 int __pyx_lineno = 0;
9069 const char *__pyx_filename =
NULL;
9070 int __pyx_clineno = 0;
9071 __Pyx_RefNannySetupContext(
"plot", 0);
9080 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_plt);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L1_error)
9081 __Pyx_GOTREF(__pyx_t_2);
9082 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clf);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 181, __pyx_L1_error)
9083 __Pyx_GOTREF(__pyx_t_3);
9084 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9086 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
9087 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9088 if (likely(__pyx_t_2)) {
9089 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9090 __Pyx_INCREF(__pyx_t_2);
9091 __Pyx_INCREF(
function);
9092 __Pyx_DECREF_SET(__pyx_t_3,
function);
9095 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
9096 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9097 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error)
9098 __Pyx_GOTREF(__pyx_t_1);
9099 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9100 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9109 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_plt);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 182, __pyx_L1_error)
9110 __Pyx_GOTREF(__pyx_t_3);
9111 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_grid);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 182, __pyx_L1_error)
9112 __Pyx_GOTREF(__pyx_t_2);
9113 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9115 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
9116 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9117 if (likely(__pyx_t_3)) {
9118 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9119 __Pyx_INCREF(__pyx_t_3);
9120 __Pyx_INCREF(
function);
9121 __Pyx_DECREF_SET(__pyx_t_2,
function);
9124 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, Py_True) : __Pyx_PyObject_CallOneArg(__pyx_t_2, Py_True);
9125 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9126 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 182, __pyx_L1_error)
9127 __Pyx_GOTREF(__pyx_t_1);
9128 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9129 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9138 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_plt);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error)
9139 __Pyx_GOTREF(__pyx_t_1);
9140 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_plot);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error)
9141 __Pyx_GOTREF(__pyx_t_2);
9142 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9143 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_wl_pts);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error)
9144 __Pyx_GOTREF(__pyx_t_1);
9145 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error)
9146 __Pyx_GOTREF(__pyx_t_3);
9147 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 183, __pyx_L1_error)
9148 __Pyx_GOTREF(__pyx_t_4);
9149 __Pyx_GIVEREF(__pyx_t_1);
9150 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
9151 __Pyx_GIVEREF(__pyx_t_3);
9152 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
9155 __pyx_t_3 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error)
9156 __Pyx_GOTREF(__pyx_t_3);
9157 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_marker, __pyx_kp_u__8) < 0) __PYX_ERR(0, 183, __pyx_L1_error)
9158 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_color, __pyx_n_u_b) < 0) __PYX_ERR(0, 183, __pyx_L1_error)
9159 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_label, __pyx_n_u_measured) < 0) __PYX_ERR(0, 183, __pyx_L1_error)
9160 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, __pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error)
9161 __Pyx_GOTREF(__pyx_t_1);
9162 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9163 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
9164 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9165 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9174 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_plt);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error)
9175 __Pyx_GOTREF(__pyx_t_1);
9176 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_plot);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error)
9177 __Pyx_GOTREF(__pyx_t_3);
9178 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9179 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_wl_pts);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error)
9180 __Pyx_GOTREF(__pyx_t_1);
9181 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_mrfl);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error)
9182 __Pyx_GOTREF(__pyx_t_4);
9183 __pyx_t_2 = PyTuple_New(2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error)
9184 __Pyx_GOTREF(__pyx_t_2);
9185 __Pyx_GIVEREF(__pyx_t_1);
9186 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
9187 __Pyx_GIVEREF(__pyx_t_4);
9188 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
9191 __pyx_t_4 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error)
9192 __Pyx_GOTREF(__pyx_t_4);
9193 if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_marker, __pyx_kp_u__8) < 0) __PYX_ERR(0, 184, __pyx_L1_error)
9194 if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_color, __pyx_n_u_g) < 0) __PYX_ERR(0, 184, __pyx_L1_error)
9195 if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_label, __pyx_n_u_modeled) < 0) __PYX_ERR(0, 184, __pyx_L1_error)
9196 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, __pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 184, __pyx_L1_error)
9197 __Pyx_GOTREF(__pyx_t_1);
9198 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9199 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9200 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
9201 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9210 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_plt);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 185, __pyx_L1_error)
9211 __Pyx_GOTREF(__pyx_t_1);
9212 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_plot);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 185, __pyx_L1_error)
9213 __Pyx_GOTREF(__pyx_t_4);
9214 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9215 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_wl_pts);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 185, __pyx_L1_error)
9216 __Pyx_GOTREF(__pyx_t_1);
9217 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rsd);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 185, __pyx_L1_error)
9218 __Pyx_GOTREF(__pyx_t_2);
9219 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error)
9220 __Pyx_GOTREF(__pyx_t_3);
9221 __Pyx_GIVEREF(__pyx_t_1);
9222 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
9223 __Pyx_GIVEREF(__pyx_t_2);
9224 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
9227 __pyx_t_2 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 185, __pyx_L1_error)
9228 __Pyx_GOTREF(__pyx_t_2);
9229 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_marker, __pyx_kp_u__8) < 0) __PYX_ERR(0, 185, __pyx_L1_error)
9230 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_color, __pyx_n_u_r) < 0) __PYX_ERR(0, 185, __pyx_L1_error)
9231 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_label, __pyx_n_u_residual) < 0) __PYX_ERR(0, 185, __pyx_L1_error)
9232 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 185, __pyx_L1_error)
9233 __Pyx_GOTREF(__pyx_t_1);
9234 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
9235 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9236 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9237 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9246 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_plt);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 186, __pyx_L1_error)
9247 __Pyx_GOTREF(__pyx_t_2);
9248 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_xlabel);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 186, __pyx_L1_error)
9249 __Pyx_GOTREF(__pyx_t_3);
9250 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9252 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
9253 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9254 if (likely(__pyx_t_2)) {
9255 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9256 __Pyx_INCREF(__pyx_t_2);
9257 __Pyx_INCREF(
function);
9258 __Pyx_DECREF_SET(__pyx_t_3,
function);
9261 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u_wavelength_nm) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u_wavelength_nm);
9262 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9263 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 186, __pyx_L1_error)
9264 __Pyx_GOTREF(__pyx_t_1);
9265 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9266 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9275 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_plt);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 187, __pyx_L1_error)
9276 __Pyx_GOTREF(__pyx_t_3);
9277 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ylabel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error)
9278 __Pyx_GOTREF(__pyx_t_2);
9279 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9281 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
9282 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9283 if (likely(__pyx_t_3)) {
9284 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9285 __Pyx_INCREF(__pyx_t_3);
9286 __Pyx_INCREF(
function);
9287 __Pyx_DECREF_SET(__pyx_t_2,
function);
9290 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_n_u_reflectance) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_u_reflectance);
9291 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9292 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error)
9293 __Pyx_GOTREF(__pyx_t_1);
9294 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9295 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9304 __Pyx_INCREF(__pyx_kp_u_dtocean_y_3_x_4_aot_0_3f_fmf_1_3);
9305 __pyx_v_tstr = __pyx_kp_u_dtocean_y_3_x_4_aot_0_3f_fmf_1_3;
9314 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_plt);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error)
9315 __Pyx_GOTREF(__pyx_t_2);
9316 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_title);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 189, __pyx_L1_error)
9317 __Pyx_GOTREF(__pyx_t_3);
9318 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9319 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_tstr, __pyx_n_s_format);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 189, __pyx_L1_error)
9320 __Pyx_GOTREF(__pyx_t_4);
9321 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_aot);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 189, __pyx_L1_error)
9322 __Pyx_GOTREF(__pyx_t_5);
9323 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fmf);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 189, __pyx_L1_error)
9324 __Pyx_GOTREF(__pyx_t_6);
9325 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sse);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 189, __pyx_L1_error)
9326 __Pyx_GOTREF(__pyx_t_7);
9329 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
9330 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4);
9331 if (likely(__pyx_t_8)) {
9332 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
9333 __Pyx_INCREF(__pyx_t_8);
9334 __Pyx_INCREF(
function);
9335 __Pyx_DECREF_SET(__pyx_t_4,
function);
9339 #if CYTHON_FAST_PYCALL
9340 if (PyFunction_Check(__pyx_t_4)) {
9341 PyObject *__pyx_temp[6] = {__pyx_t_8, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_v_iy, __pyx_v_ix};
9342 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 5+__pyx_t_9);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error)
9343 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
9344 __Pyx_GOTREF(__pyx_t_2);
9345 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
9346 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9347 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9350 #if CYTHON_FAST_PYCCALL
9351 if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
9352 PyObject *__pyx_temp[6] = {__pyx_t_8, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_v_iy, __pyx_v_ix};
9353 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 5+__pyx_t_9);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error)
9354 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
9355 __Pyx_GOTREF(__pyx_t_2);
9356 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
9357 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9358 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9362 __pyx_t_10 = PyTuple_New(5+__pyx_t_9);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 189, __pyx_L1_error)
9363 __Pyx_GOTREF(__pyx_t_10);
9365 __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 =
NULL;
9367 __Pyx_GIVEREF(__pyx_t_5);
9368 PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_5);
9369 __Pyx_GIVEREF(__pyx_t_6);
9370 PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_6);
9371 __Pyx_GIVEREF(__pyx_t_7);
9372 PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_7);
9373 __Pyx_INCREF(__pyx_v_iy);
9374 __Pyx_GIVEREF(__pyx_v_iy);
9375 PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_v_iy);
9376 __Pyx_INCREF(__pyx_v_ix);
9377 __Pyx_GIVEREF(__pyx_v_ix);
9378 PyTuple_SET_ITEM(__pyx_t_10, 4+__pyx_t_9, __pyx_v_ix);
9382 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error)
9383 __Pyx_GOTREF(__pyx_t_2);
9384 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
9386 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
9388 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
9389 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
9390 if (likely(__pyx_t_4)) {
9391 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9392 __Pyx_INCREF(__pyx_t_4);
9393 __Pyx_INCREF(
function);
9394 __Pyx_DECREF_SET(__pyx_t_3,
function);
9397 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
9398 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
9399 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9400 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 189, __pyx_L1_error)
9401 __Pyx_GOTREF(__pyx_t_1);
9402 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9403 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9412 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_plt);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error)
9413 __Pyx_GOTREF(__pyx_t_1);
9414 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_legend);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error)
9415 __Pyx_GOTREF(__pyx_t_3);
9416 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9417 __pyx_t_1 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error)
9418 __Pyx_GOTREF(__pyx_t_1);
9419 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_loc, __pyx_kp_u_upper_right) < 0) __PYX_ERR(0, 190, __pyx_L1_error)
9420 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error)
9421 __Pyx_GOTREF(__pyx_t_2);
9422 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9423 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9424 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9433 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_plt);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error)
9434 __Pyx_GOTREF(__pyx_t_1);
9435 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_show);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 191, __pyx_L1_error)
9436 __Pyx_GOTREF(__pyx_t_3);
9437 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9439 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
9440 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
9441 if (likely(__pyx_t_1)) {
9442 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9443 __Pyx_INCREF(__pyx_t_1);
9444 __Pyx_INCREF(
function);
9445 __Pyx_DECREF_SET(__pyx_t_3,
function);
9448 __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
9449 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
9450 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 191, __pyx_L1_error)
9451 __Pyx_GOTREF(__pyx_t_2);
9452 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9453 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9464 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9467 __Pyx_XDECREF(__pyx_t_1);
9468 __Pyx_XDECREF(__pyx_t_2);
9469 __Pyx_XDECREF(__pyx_t_3);
9470 __Pyx_XDECREF(__pyx_t_4);
9471 __Pyx_XDECREF(__pyx_t_5);
9472 __Pyx_XDECREF(__pyx_t_6);
9473 __Pyx_XDECREF(__pyx_t_7);
9474 __Pyx_XDECREF(__pyx_t_8);
9475 __Pyx_XDECREF(__pyx_t_10);
9476 __Pyx_AddTraceback(
"dtocean.dtocean.plot", __pyx_clineno, __pyx_lineno, __pyx_filename);
9479 __Pyx_XDECREF(__pyx_v_tstr);
9480 __Pyx_XGIVEREF(__pyx_r);
9481 __Pyx_RefNannyFinishContext();
9494 static PyObject *__pyx_pw_7dtocean_7dtocean_11plot_points(PyObject *__pyx_self, PyObject *__pyx_v_self);
9495 static PyMethodDef __pyx_mdef_7dtocean_7dtocean_11plot_points = {
"plot_points", (PyCFunction)__pyx_pw_7dtocean_7dtocean_11plot_points, METH_O, 0};
9496 static PyObject *__pyx_pw_7dtocean_7dtocean_11plot_points(PyObject *__pyx_self, PyObject *__pyx_v_self) {
9497 PyObject *__pyx_r = 0;
9498 __Pyx_RefNannyDeclarations
9499 __Pyx_RefNannySetupContext(
"plot_points (wrapper)", 0);
9500 __pyx_r = __pyx_pf_7dtocean_7dtocean_10plot_points(__pyx_self, ((PyObject *)__pyx_v_self));
9503 __Pyx_RefNannyFinishContext();
9507 static PyObject *__pyx_pf_7dtocean_7dtocean_10plot_points(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
9508 PyObject *__pyx_v_fig =
NULL;
9509 PyObject *__pyx_v_ax =
NULL;
9510 PyObject *__pyx_v_s =
NULL;
9511 PyObject *__pyx_v_xs =
NULL;
9512 PyObject *__pyx_v_ys =
NULL;
9513 PyObject *__pyx_v_zs =
NULL;
9514 PyObject *__pyx_v_b =
NULL;
9515 PyObject *__pyx_v_xb =
NULL;
9516 PyObject *__pyx_v_yb =
NULL;
9517 PyObject *__pyx_v_zb =
NULL;
9518 PyObject *__pyx_v_xp =
NULL;
9519 PyObject *__pyx_v_yp =
NULL;
9520 PyObject *__pyx_v_zp =
NULL;
9521 PyObject *__pyx_v_xm =
NULL;
9522 PyObject *__pyx_v_ym =
NULL;
9523 PyObject *__pyx_v_zm =
NULL;
9524 PyObject *__pyx_v_ws =
NULL;
9525 PyObject *__pyx_v_ts =
NULL;
9526 PyObject *__pyx_v_ls =
NULL;
9527 PyObject *__pyx_v_lb =
NULL;
9528 PyObject *__pyx_r =
NULL;
9529 __Pyx_RefNannyDeclarations
9530 PyObject *__pyx_t_1 =
NULL;
9531 PyObject *__pyx_t_2 =
NULL;
9532 PyObject *__pyx_t_3 =
NULL;
9533 Py_ssize_t __pyx_t_4;
9534 PyObject *(*__pyx_t_5)(PyObject *);
9535 PyObject *__pyx_t_6 =
NULL;
9536 PyObject *__pyx_t_7 =
NULL;
9537 Py_ssize_t __pyx_t_8;
9538 PyObject *(*__pyx_t_9)(PyObject *);
9539 PyObject *__pyx_t_10 =
NULL;
9541 PyObject *(*__pyx_t_12)(PyObject *);
9542 int __pyx_lineno = 0;
9543 const char *__pyx_filename =
NULL;
9544 int __pyx_clineno = 0;
9545 __Pyx_RefNannySetupContext(
"plot_points", 0);
9554 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_plt);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error)
9555 __Pyx_GOTREF(__pyx_t_2);
9556 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_figure);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 194, __pyx_L1_error)
9557 __Pyx_GOTREF(__pyx_t_3);
9558 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9560 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
9561 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9562 if (likely(__pyx_t_2)) {
9563 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9564 __Pyx_INCREF(__pyx_t_2);
9565 __Pyx_INCREF(
function);
9566 __Pyx_DECREF_SET(__pyx_t_3,
function);
9569 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
9570 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9571 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error)
9572 __Pyx_GOTREF(__pyx_t_1);
9573 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9574 __pyx_v_fig = __pyx_t_1;
9584 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fig, __pyx_n_s_add_subplot);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error)
9585 __Pyx_GOTREF(__pyx_t_1);
9586 __pyx_t_3 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 195, __pyx_L1_error)
9587 __Pyx_GOTREF(__pyx_t_3);
9588 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_projection, __pyx_kp_u_3d) < 0) __PYX_ERR(0, 195, __pyx_L1_error)
9589 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__9, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error)
9590 __Pyx_GOTREF(__pyx_t_2);
9591 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9592 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9593 __pyx_v_ax = __pyx_t_2;
9603 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_small);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error)
9604 __Pyx_GOTREF(__pyx_t_2);
9605 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
9606 __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
9609 __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 196, __pyx_L1_error)
9610 __Pyx_GOTREF(__pyx_t_3);
9611 __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 196, __pyx_L1_error)
9613 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9615 if (likely(!__pyx_t_5)) {
9616 if (likely(PyList_CheckExact(__pyx_t_3))) {
9617 if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3))
break;
9618 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
9619 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 196, __pyx_L1_error)
9621 __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error)
9622 __Pyx_GOTREF(__pyx_t_2);
9625 if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
9626 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
9627 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 196, __pyx_L1_error)
9629 __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error)
9630 __Pyx_GOTREF(__pyx_t_2);
9634 __pyx_t_2 = __pyx_t_5(__pyx_t_3);
9635 if (unlikely(!__pyx_t_2)) {
9636 PyObject* exc_type = PyErr_Occurred();
9638 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
9639 else __PYX_ERR(0, 196, __pyx_L1_error)
9643 __Pyx_GOTREF(__pyx_t_2);
9645 __Pyx_XDECREF_SET(__pyx_v_s, __pyx_t_2);
9655 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_toast);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
9656 __Pyx_GOTREF(__pyx_t_2);
9657 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W550);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
9658 __Pyx_GOTREF(__pyx_t_1);
9659 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 197, __pyx_L1_error)
9660 __Pyx_GOTREF(__pyx_t_6);
9661 __Pyx_GIVEREF(__pyx_t_1);
9662 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
9663 __Pyx_INCREF(__pyx_v_s);
9664 __Pyx_GIVEREF(__pyx_v_s);
9665 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_s);
9666 __Pyx_INCREF(__pyx_slice__4);
9667 __Pyx_GIVEREF(__pyx_slice__4);
9668 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_slice__4);
9670 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
9671 __Pyx_GOTREF(__pyx_t_1);
9672 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9673 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9674 __Pyx_XDECREF_SET(__pyx_v_xs, __pyx_t_1);
9684 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_toast);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 198, __pyx_L1_error)
9685 __Pyx_GOTREF(__pyx_t_1);
9686 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_W659);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 198, __pyx_L1_error)
9687 __Pyx_GOTREF(__pyx_t_6);
9688 __pyx_t_2 = PyTuple_New(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error)
9689 __Pyx_GOTREF(__pyx_t_2);
9690 __Pyx_GIVEREF(__pyx_t_6);
9691 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6);
9692 __Pyx_INCREF(__pyx_v_s);
9693 __Pyx_GIVEREF(__pyx_v_s);
9694 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_s);
9695 __Pyx_INCREF(__pyx_slice__4);
9696 __Pyx_GIVEREF(__pyx_slice__4);
9697 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_slice__4);
9699 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 198, __pyx_L1_error)
9700 __Pyx_GOTREF(__pyx_t_6);
9701 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9702 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9703 __Pyx_XDECREF_SET(__pyx_v_ys, __pyx_t_6);
9713 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_toast);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 199, __pyx_L1_error)
9714 __Pyx_GOTREF(__pyx_t_6);
9715 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_W860);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
9716 __Pyx_GOTREF(__pyx_t_2);
9717 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
9718 __Pyx_GOTREF(__pyx_t_1);
9719 __Pyx_GIVEREF(__pyx_t_2);
9720 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
9721 __Pyx_INCREF(__pyx_v_s);
9722 __Pyx_GIVEREF(__pyx_v_s);
9723 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_s);
9724 __Pyx_INCREF(__pyx_slice__4);
9725 __Pyx_GIVEREF(__pyx_slice__4);
9726 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_slice__4);
9728 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
9729 __Pyx_GOTREF(__pyx_t_2);
9730 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9731 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9732 __Pyx_XDECREF_SET(__pyx_v_zs, __pyx_t_2);
9742 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_plot);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error)
9743 __Pyx_GOTREF(__pyx_t_2);
9744 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __pyx_L1_error)
9745 __Pyx_GOTREF(__pyx_t_1);
9746 __Pyx_INCREF(__pyx_v_xs);
9747 __Pyx_GIVEREF(__pyx_v_xs);
9748 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_xs);
9749 __Pyx_INCREF(__pyx_v_ys);
9750 __Pyx_GIVEREF(__pyx_v_ys);
9751 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_ys);
9752 __Pyx_INCREF(__pyx_v_zs);
9753 __Pyx_GIVEREF(__pyx_v_zs);
9754 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_zs);
9755 __pyx_t_6 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 200, __pyx_L1_error)
9756 __Pyx_GOTREF(__pyx_t_6);
9757 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_c, __pyx_n_u_b) < 0) __PYX_ERR(0, 200, __pyx_L1_error)
9758 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_label, __pyx_kp_u_small_model) < 0) __PYX_ERR(0, 200, __pyx_L1_error)
9759 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 200, __pyx_L1_error)
9760 __Pyx_GOTREF(__pyx_t_7);
9761 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9762 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9763 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9764 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9773 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_scatter);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 201, __pyx_L1_error)
9774 __Pyx_GOTREF(__pyx_t_7);
9775 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 201, __pyx_L1_error)
9776 __Pyx_GOTREF(__pyx_t_6);
9777 __Pyx_INCREF(__pyx_v_xs);
9778 __Pyx_GIVEREF(__pyx_v_xs);
9779 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_xs);
9780 __Pyx_INCREF(__pyx_v_ys);
9781 __Pyx_GIVEREF(__pyx_v_ys);
9782 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_ys);
9783 __Pyx_INCREF(__pyx_v_zs);
9784 __Pyx_GIVEREF(__pyx_v_zs);
9785 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_zs);
9786 __pyx_t_1 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error)
9787 __Pyx_GOTREF(__pyx_t_1);
9788 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_c, __pyx_n_u_b) < 0) __PYX_ERR(0, 201, __pyx_L1_error)
9789 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_marker, __pyx_n_u_o) < 0) __PYX_ERR(0, 201, __pyx_L1_error)
9790 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error)
9791 __Pyx_GOTREF(__pyx_t_2);
9792 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9793 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9794 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9795 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9805 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9814 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_big);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 202, __pyx_L1_error)
9815 __Pyx_GOTREF(__pyx_t_3);
9816 if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
9817 __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
9820 __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error)
9821 __Pyx_GOTREF(__pyx_t_2);
9822 __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 202, __pyx_L1_error)
9824 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9826 if (likely(!__pyx_t_5)) {
9827 if (likely(PyList_CheckExact(__pyx_t_2))) {
9828 if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2))
break;
9829 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
9830 __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 202, __pyx_L1_error)
9832 __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 202, __pyx_L1_error)
9833 __Pyx_GOTREF(__pyx_t_3);
9836 if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
9837 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
9838 __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 202, __pyx_L1_error)
9840 __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 202, __pyx_L1_error)
9841 __Pyx_GOTREF(__pyx_t_3);
9845 __pyx_t_3 = __pyx_t_5(__pyx_t_2);
9846 if (unlikely(!__pyx_t_3)) {
9847 PyObject* exc_type = PyErr_Occurred();
9849 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
9850 else __PYX_ERR(0, 202, __pyx_L1_error)
9854 __Pyx_GOTREF(__pyx_t_3);
9856 __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_3);
9866 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_toabt);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error)
9867 __Pyx_GOTREF(__pyx_t_3);
9868 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W550);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error)
9869 __Pyx_GOTREF(__pyx_t_1);
9870 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 203, __pyx_L1_error)
9871 __Pyx_GOTREF(__pyx_t_6);
9872 __Pyx_GIVEREF(__pyx_t_1);
9873 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
9874 __Pyx_INCREF(__pyx_v_b);
9875 __Pyx_GIVEREF(__pyx_v_b);
9876 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_b);
9877 __Pyx_INCREF(__pyx_slice__4);
9878 __Pyx_GIVEREF(__pyx_slice__4);
9879 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_slice__4);
9881 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error)
9882 __Pyx_GOTREF(__pyx_t_1);
9883 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9884 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9885 __Pyx_XDECREF_SET(__pyx_v_xb, __pyx_t_1);
9895 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_toabt);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __pyx_L1_error)
9896 __Pyx_GOTREF(__pyx_t_1);
9897 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_W659);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 204, __pyx_L1_error)
9898 __Pyx_GOTREF(__pyx_t_6);
9899 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 204, __pyx_L1_error)
9900 __Pyx_GOTREF(__pyx_t_3);
9901 __Pyx_GIVEREF(__pyx_t_6);
9902 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
9903 __Pyx_INCREF(__pyx_v_b);
9904 __Pyx_GIVEREF(__pyx_v_b);
9905 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_b);
9906 __Pyx_INCREF(__pyx_slice__4);
9907 __Pyx_GIVEREF(__pyx_slice__4);
9908 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_slice__4);
9910 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 204, __pyx_L1_error)
9911 __Pyx_GOTREF(__pyx_t_6);
9912 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9913 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9914 __Pyx_XDECREF_SET(__pyx_v_yb, __pyx_t_6);
9924 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_toabt);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 205, __pyx_L1_error)
9925 __Pyx_GOTREF(__pyx_t_6);
9926 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_W860);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error)
9927 __Pyx_GOTREF(__pyx_t_3);
9928 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 205, __pyx_L1_error)
9929 __Pyx_GOTREF(__pyx_t_1);
9930 __Pyx_GIVEREF(__pyx_t_3);
9931 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
9932 __Pyx_INCREF(__pyx_v_b);
9933 __Pyx_GIVEREF(__pyx_v_b);
9934 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_b);
9935 __Pyx_INCREF(__pyx_slice__4);
9936 __Pyx_GIVEREF(__pyx_slice__4);
9937 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_slice__4);
9939 __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 205, __pyx_L1_error)
9940 __Pyx_GOTREF(__pyx_t_3);
9941 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9942 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9943 __Pyx_XDECREF_SET(__pyx_v_zb, __pyx_t_3);
9953 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_plot);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 206, __pyx_L1_error)
9954 __Pyx_GOTREF(__pyx_t_3);
9955 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 206, __pyx_L1_error)
9956 __Pyx_GOTREF(__pyx_t_1);
9957 __Pyx_INCREF(__pyx_v_xb);
9958 __Pyx_GIVEREF(__pyx_v_xb);
9959 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_xb);
9960 __Pyx_INCREF(__pyx_v_yb);
9961 __Pyx_GIVEREF(__pyx_v_yb);
9962 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_yb);
9963 __Pyx_INCREF(__pyx_v_zb);
9964 __Pyx_GIVEREF(__pyx_v_zb);
9965 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_zb);
9966 __pyx_t_6 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 206, __pyx_L1_error)
9967 __Pyx_GOTREF(__pyx_t_6);
9968 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_c, __pyx_n_u_r) < 0) __PYX_ERR(0, 206, __pyx_L1_error)
9969 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_label, __pyx_kp_u_big_model) < 0) __PYX_ERR(0, 206, __pyx_L1_error)
9970 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, __pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 206, __pyx_L1_error)
9971 __Pyx_GOTREF(__pyx_t_7);
9972 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9973 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9974 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9975 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9984 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_scatter);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 207, __pyx_L1_error)
9985 __Pyx_GOTREF(__pyx_t_7);
9986 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 207, __pyx_L1_error)
9987 __Pyx_GOTREF(__pyx_t_6);
9988 __Pyx_INCREF(__pyx_v_xb);
9989 __Pyx_GIVEREF(__pyx_v_xb);
9990 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_xb);
9991 __Pyx_INCREF(__pyx_v_yb);
9992 __Pyx_GIVEREF(__pyx_v_yb);
9993 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_yb);
9994 __Pyx_INCREF(__pyx_v_zb);
9995 __Pyx_GIVEREF(__pyx_v_zb);
9996 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_zb);
9997 __pyx_t_1 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error)
9998 __Pyx_GOTREF(__pyx_t_1);
9999 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_c, __pyx_n_u_r) < 0) __PYX_ERR(0, 207, __pyx_L1_error)
10000 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_marker, __pyx_n_u_o) < 0) __PYX_ERR(0, 207, __pyx_L1_error)
10001 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 207, __pyx_L1_error)
10002 __Pyx_GOTREF(__pyx_t_3);
10003 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10004 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10005 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10006 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10016 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10025 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_small);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error)
10026 __Pyx_GOTREF(__pyx_t_2);
10027 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
10028 __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
10031 __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 208, __pyx_L1_error)
10032 __Pyx_GOTREF(__pyx_t_3);
10033 __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 208, __pyx_L1_error)
10035 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10037 if (likely(!__pyx_t_5)) {
10038 if (likely(PyList_CheckExact(__pyx_t_3))) {
10039 if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3))
break;
10040 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
10041 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 208, __pyx_L1_error)
10043 __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error)
10044 __Pyx_GOTREF(__pyx_t_2);
10047 if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
10048 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
10049 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 208, __pyx_L1_error)
10051 __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error)
10052 __Pyx_GOTREF(__pyx_t_2);
10056 __pyx_t_2 = __pyx_t_5(__pyx_t_3);
10057 if (unlikely(!__pyx_t_2)) {
10058 PyObject* exc_type = PyErr_Occurred();
10060 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
10061 else __PYX_ERR(0, 208, __pyx_L1_error)
10065 __Pyx_GOTREF(__pyx_t_2);
10067 __Pyx_XDECREF_SET(__pyx_v_s, __pyx_t_2);
10077 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_big);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error)
10078 __Pyx_GOTREF(__pyx_t_2);
10079 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
10080 __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = 0;
10083 __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error)
10084 __Pyx_GOTREF(__pyx_t_1);
10085 __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 209, __pyx_L1_error)
10087 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10089 if (likely(!__pyx_t_9)) {
10090 if (likely(PyList_CheckExact(__pyx_t_1))) {
10091 if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_1))
break;
10092 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
10093 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 209, __pyx_L1_error)
10095 __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error)
10096 __Pyx_GOTREF(__pyx_t_2);
10099 if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_1))
break;
10100 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
10101 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(0, 209, __pyx_L1_error)
10103 __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error)
10104 __Pyx_GOTREF(__pyx_t_2);
10108 __pyx_t_2 = __pyx_t_9(__pyx_t_1);
10109 if (unlikely(!__pyx_t_2)) {
10110 PyObject* exc_type = PyErr_Occurred();
10112 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
10113 else __PYX_ERR(0, 209, __pyx_L1_error)
10117 __Pyx_GOTREF(__pyx_t_2);
10119 __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_2);
10129 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_bspair);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error)
10130 __Pyx_GOTREF(__pyx_t_2);
10131 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_W550);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 210, __pyx_L1_error)
10132 __Pyx_GOTREF(__pyx_t_6);
10133 __pyx_t_7 = PyTuple_New(4);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 210, __pyx_L1_error)
10134 __Pyx_GOTREF(__pyx_t_7);
10135 __Pyx_INCREF(__pyx_slice__4);
10136 __Pyx_GIVEREF(__pyx_slice__4);
10137 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_slice__4);
10138 __Pyx_GIVEREF(__pyx_t_6);
10139 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6);
10140 __Pyx_INCREF(__pyx_v_s);
10141 __Pyx_GIVEREF(__pyx_v_s);
10142 PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_s);
10143 __Pyx_INCREF(__pyx_v_b);
10144 __Pyx_GIVEREF(__pyx_v_b);
10145 PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_v_b);
10147 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 210, __pyx_L1_error)
10148 __Pyx_GOTREF(__pyx_t_6);
10149 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10150 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10151 __Pyx_XDECREF_SET(__pyx_v_xp, __pyx_t_6);
10161 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_bspair);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 211, __pyx_L1_error)
10162 __Pyx_GOTREF(__pyx_t_6);
10163 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_W659);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 211, __pyx_L1_error)
10164 __Pyx_GOTREF(__pyx_t_7);
10165 __pyx_t_2 = PyTuple_New(4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error)
10166 __Pyx_GOTREF(__pyx_t_2);
10167 __Pyx_INCREF(__pyx_slice__4);
10168 __Pyx_GIVEREF(__pyx_slice__4);
10169 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_slice__4);
10170 __Pyx_GIVEREF(__pyx_t_7);
10171 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7);
10172 __Pyx_INCREF(__pyx_v_s);
10173 __Pyx_GIVEREF(__pyx_v_s);
10174 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_s);
10175 __Pyx_INCREF(__pyx_v_b);
10176 __Pyx_GIVEREF(__pyx_v_b);
10177 PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_b);
10179 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 211, __pyx_L1_error)
10180 __Pyx_GOTREF(__pyx_t_7);
10181 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10182 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10183 __Pyx_XDECREF_SET(__pyx_v_yp, __pyx_t_7);
10193 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_bspair);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 212, __pyx_L1_error)
10194 __Pyx_GOTREF(__pyx_t_7);
10195 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_W860);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 212, __pyx_L1_error)
10196 __Pyx_GOTREF(__pyx_t_2);
10197 __pyx_t_6 = PyTuple_New(4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 212, __pyx_L1_error)
10198 __Pyx_GOTREF(__pyx_t_6);
10199 __Pyx_INCREF(__pyx_slice__4);
10200 __Pyx_GIVEREF(__pyx_slice__4);
10201 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_slice__4);
10202 __Pyx_GIVEREF(__pyx_t_2);
10203 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
10204 __Pyx_INCREF(__pyx_v_s);
10205 __Pyx_GIVEREF(__pyx_v_s);
10206 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_s);
10207 __Pyx_INCREF(__pyx_v_b);
10208 __Pyx_GIVEREF(__pyx_v_b);
10209 PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_b);
10211 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 212, __pyx_L1_error)
10212 __Pyx_GOTREF(__pyx_t_2);
10213 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10214 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10215 __Pyx_XDECREF_SET(__pyx_v_zp, __pyx_t_2);
10225 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_plot);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 213, __pyx_L1_error)
10226 __Pyx_GOTREF(__pyx_t_2);
10227 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 213, __pyx_L1_error)
10228 __Pyx_GOTREF(__pyx_t_6);
10229 __Pyx_INCREF(__pyx_v_xp);
10230 __Pyx_GIVEREF(__pyx_v_xp);
10231 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_xp);
10232 __Pyx_INCREF(__pyx_v_yp);
10233 __Pyx_GIVEREF(__pyx_v_yp);
10234 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_yp);
10235 __Pyx_INCREF(__pyx_v_zp);
10236 __Pyx_GIVEREF(__pyx_v_zp);
10237 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_zp);
10238 __pyx_t_7 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 213, __pyx_L1_error)
10239 __Pyx_GOTREF(__pyx_t_7);
10240 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_c, __pyx_n_u_g) < 0) __PYX_ERR(0, 213, __pyx_L1_error)
10241 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_label, __pyx_kp_u_big_small_continuum) < 0) __PYX_ERR(0, 213, __pyx_L1_error)
10242 __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, __pyx_t_7);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 213, __pyx_L1_error)
10243 __Pyx_GOTREF(__pyx_t_10);
10244 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10245 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10246 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10247 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10257 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10267 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10276 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_trfls);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 215, __pyx_L1_error)
10277 __Pyx_GOTREF(__pyx_t_3);
10278 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W550);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error)
10279 __Pyx_GOTREF(__pyx_t_1);
10280 __pyx_t_10 = PyTuple_New(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 215, __pyx_L1_error)
10281 __Pyx_GOTREF(__pyx_t_10);
10282 __Pyx_GIVEREF(__pyx_t_1);
10283 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_1);
10284 __Pyx_INCREF(__pyx_slice__4);
10285 __Pyx_GIVEREF(__pyx_slice__4);
10286 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_slice__4);
10288 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_10);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error)
10289 __Pyx_GOTREF(__pyx_t_1);
10290 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10291 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10292 __Pyx_XDECREF_SET(__pyx_v_xs, __pyx_t_1);
10302 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_trfls);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error)
10303 __Pyx_GOTREF(__pyx_t_1);
10304 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_W659);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 216, __pyx_L1_error)
10305 __Pyx_GOTREF(__pyx_t_10);
10306 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 216, __pyx_L1_error)
10307 __Pyx_GOTREF(__pyx_t_3);
10308 __Pyx_GIVEREF(__pyx_t_10);
10309 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_10);
10310 __Pyx_INCREF(__pyx_slice__4);
10311 __Pyx_GIVEREF(__pyx_slice__4);
10312 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_slice__4);
10314 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 216, __pyx_L1_error)
10315 __Pyx_GOTREF(__pyx_t_10);
10316 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10317 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10318 __Pyx_XDECREF_SET(__pyx_v_ys, __pyx_t_10);
10328 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_trfls);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 217, __pyx_L1_error)
10329 __Pyx_GOTREF(__pyx_t_10);
10330 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_W860);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 217, __pyx_L1_error)
10331 __Pyx_GOTREF(__pyx_t_3);
10332 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L1_error)
10333 __Pyx_GOTREF(__pyx_t_1);
10334 __Pyx_GIVEREF(__pyx_t_3);
10335 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
10336 __Pyx_INCREF(__pyx_slice__4);
10337 __Pyx_GIVEREF(__pyx_slice__4);
10338 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_slice__4);
10340 __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 217, __pyx_L1_error)
10341 __Pyx_GOTREF(__pyx_t_3);
10342 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10343 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10344 __Pyx_XDECREF_SET(__pyx_v_zs, __pyx_t_3);
10354 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_scatter);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 218, __pyx_L1_error)
10355 __Pyx_GOTREF(__pyx_t_3);
10356 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 218, __pyx_L1_error)
10357 __Pyx_GOTREF(__pyx_t_1);
10358 __Pyx_INCREF(__pyx_v_xs);
10359 __Pyx_GIVEREF(__pyx_v_xs);
10360 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_xs);
10361 __Pyx_INCREF(__pyx_v_ys);
10362 __Pyx_GIVEREF(__pyx_v_ys);
10363 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_ys);
10364 __Pyx_INCREF(__pyx_v_zs);
10365 __Pyx_GIVEREF(__pyx_v_zs);
10366 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_zs);
10367 __pyx_t_10 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 218, __pyx_L1_error)
10368 __Pyx_GOTREF(__pyx_t_10);
10369 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_c, __pyx_n_u_b) < 0) __PYX_ERR(0, 218, __pyx_L1_error)
10370 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_marker, __pyx_n_u_o) < 0) __PYX_ERR(0, 218, __pyx_L1_error)
10371 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_s, __pyx_int_50) < 0) __PYX_ERR(0, 218, __pyx_L1_error)
10372 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, __pyx_t_10);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 218, __pyx_L1_error)
10373 __Pyx_GOTREF(__pyx_t_7);
10374 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10375 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10376 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10377 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10386 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_trflb);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 219, __pyx_L1_error)
10387 __Pyx_GOTREF(__pyx_t_7);
10388 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_W550);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 219, __pyx_L1_error)
10389 __Pyx_GOTREF(__pyx_t_10);
10390 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error)
10391 __Pyx_GOTREF(__pyx_t_1);
10392 __Pyx_GIVEREF(__pyx_t_10);
10393 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_10);
10394 __Pyx_INCREF(__pyx_slice__4);
10395 __Pyx_GIVEREF(__pyx_slice__4);
10396 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_slice__4);
10398 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 219, __pyx_L1_error)
10399 __Pyx_GOTREF(__pyx_t_10);
10400 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10401 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10402 __Pyx_XDECREF_SET(__pyx_v_xb, __pyx_t_10);
10412 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_trflb);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 220, __pyx_L1_error)
10413 __Pyx_GOTREF(__pyx_t_10);
10414 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W659);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error)
10415 __Pyx_GOTREF(__pyx_t_1);
10416 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 220, __pyx_L1_error)
10417 __Pyx_GOTREF(__pyx_t_7);
10418 __Pyx_GIVEREF(__pyx_t_1);
10419 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1);
10420 __Pyx_INCREF(__pyx_slice__4);
10421 __Pyx_GIVEREF(__pyx_slice__4);
10422 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_slice__4);
10424 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error)
10425 __Pyx_GOTREF(__pyx_t_1);
10426 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10427 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10428 __Pyx_XDECREF_SET(__pyx_v_yb, __pyx_t_1);
10438 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_trflb);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error)
10439 __Pyx_GOTREF(__pyx_t_1);
10440 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_W860);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 221, __pyx_L1_error)
10441 __Pyx_GOTREF(__pyx_t_7);
10442 __pyx_t_10 = PyTuple_New(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 221, __pyx_L1_error)
10443 __Pyx_GOTREF(__pyx_t_10);
10444 __Pyx_GIVEREF(__pyx_t_7);
10445 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_7);
10446 __Pyx_INCREF(__pyx_slice__4);
10447 __Pyx_GIVEREF(__pyx_slice__4);
10448 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_slice__4);
10450 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_10);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 221, __pyx_L1_error)
10451 __Pyx_GOTREF(__pyx_t_7);
10452 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10453 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10454 __Pyx_XDECREF_SET(__pyx_v_zb, __pyx_t_7);
10464 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_scatter);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 222, __pyx_L1_error)
10465 __Pyx_GOTREF(__pyx_t_7);
10466 __pyx_t_10 = PyTuple_New(3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 222, __pyx_L1_error)
10467 __Pyx_GOTREF(__pyx_t_10);
10468 __Pyx_INCREF(__pyx_v_xb);
10469 __Pyx_GIVEREF(__pyx_v_xb);
10470 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_xb);
10471 __Pyx_INCREF(__pyx_v_yb);
10472 __Pyx_GIVEREF(__pyx_v_yb);
10473 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_yb);
10474 __Pyx_INCREF(__pyx_v_zb);
10475 __Pyx_GIVEREF(__pyx_v_zb);
10476 PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_zb);
10477 __pyx_t_1 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error)
10478 __Pyx_GOTREF(__pyx_t_1);
10479 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_c, __pyx_n_u_r) < 0) __PYX_ERR(0, 222, __pyx_L1_error)
10480 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_marker, __pyx_n_u_o) < 0) __PYX_ERR(0, 222, __pyx_L1_error)
10481 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_s, __pyx_int_50) < 0) __PYX_ERR(0, 222, __pyx_L1_error)
10482 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 222, __pyx_L1_error)
10483 __Pyx_GOTREF(__pyx_t_3);
10484 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10485 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10486 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10487 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10496 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 223, __pyx_L1_error)
10497 __Pyx_GOTREF(__pyx_t_3);
10498 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W550);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error)
10499 __Pyx_GOTREF(__pyx_t_1);
10500 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_row);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 223, __pyx_L1_error)
10501 __Pyx_GOTREF(__pyx_t_10);
10502 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_col);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error)
10503 __Pyx_GOTREF(__pyx_t_7);
10504 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 223, __pyx_L1_error)
10505 __Pyx_GOTREF(__pyx_t_6);
10506 __Pyx_GIVEREF(__pyx_t_1);
10507 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
10508 __Pyx_GIVEREF(__pyx_t_10);
10509 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_10);
10510 __Pyx_GIVEREF(__pyx_t_7);
10511 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_7);
10515 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error)
10516 __Pyx_GOTREF(__pyx_t_7);
10517 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10518 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10519 __pyx_v_xm = __pyx_t_7;
10529 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 224, __pyx_L1_error)
10530 __Pyx_GOTREF(__pyx_t_7);
10531 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_W659);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 224, __pyx_L1_error)
10532 __Pyx_GOTREF(__pyx_t_6);
10533 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_row);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 224, __pyx_L1_error)
10534 __Pyx_GOTREF(__pyx_t_3);
10535 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_col);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 224, __pyx_L1_error)
10536 __Pyx_GOTREF(__pyx_t_10);
10537 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 224, __pyx_L1_error)
10538 __Pyx_GOTREF(__pyx_t_1);
10539 __Pyx_GIVEREF(__pyx_t_6);
10540 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6);
10541 __Pyx_GIVEREF(__pyx_t_3);
10542 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
10543 __Pyx_GIVEREF(__pyx_t_10);
10544 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_10);
10548 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 224, __pyx_L1_error)
10549 __Pyx_GOTREF(__pyx_t_10);
10550 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10551 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10552 __pyx_v_ym = __pyx_t_10;
10562 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 225, __pyx_L1_error)
10563 __Pyx_GOTREF(__pyx_t_10);
10564 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_W860);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error)
10565 __Pyx_GOTREF(__pyx_t_1);
10566 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_row);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 225, __pyx_L1_error)
10567 __Pyx_GOTREF(__pyx_t_7);
10568 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_col);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error)
10569 __Pyx_GOTREF(__pyx_t_3);
10570 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 225, __pyx_L1_error)
10571 __Pyx_GOTREF(__pyx_t_6);
10572 __Pyx_GIVEREF(__pyx_t_1);
10573 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
10574 __Pyx_GIVEREF(__pyx_t_7);
10575 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7);
10576 __Pyx_GIVEREF(__pyx_t_3);
10577 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_3);
10581 __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error)
10582 __Pyx_GOTREF(__pyx_t_3);
10583 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10584 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10585 __pyx_v_zm = __pyx_t_3;
10595 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_scatter);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 226, __pyx_L1_error)
10596 __Pyx_GOTREF(__pyx_t_3);
10597 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 226, __pyx_L1_error)
10598 __Pyx_GOTREF(__pyx_t_6);
10599 __Pyx_INCREF(__pyx_v_xm);
10600 __Pyx_GIVEREF(__pyx_v_xm);
10601 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_xm);
10602 __Pyx_INCREF(__pyx_v_ym);
10603 __Pyx_GIVEREF(__pyx_v_ym);
10604 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_ym);
10605 __Pyx_INCREF(__pyx_v_zm);
10606 __Pyx_GIVEREF(__pyx_v_zm);
10607 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_zm);
10608 __pyx_t_10 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 226, __pyx_L1_error)
10609 __Pyx_GOTREF(__pyx_t_10);
10610 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_c, __pyx_n_u_k) < 0) __PYX_ERR(0, 226, __pyx_L1_error)
10611 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_marker, __pyx_n_u_o) < 0) __PYX_ERR(0, 226, __pyx_L1_error)
10612 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_s, __pyx_int_50) < 0) __PYX_ERR(0, 226, __pyx_L1_error)
10613 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, __pyx_t_10);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 226, __pyx_L1_error)
10614 __Pyx_GOTREF(__pyx_t_7);
10615 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10616 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10617 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10618 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10627 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_set_xlabel);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 227, __pyx_L1_error)
10628 __Pyx_GOTREF(__pyx_t_10);
10630 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
10631 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_10);
10632 if (likely(__pyx_t_6)) {
10633 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_10);
10634 __Pyx_INCREF(__pyx_t_6);
10635 __Pyx_INCREF(
function);
10636 __Pyx_DECREF_SET(__pyx_t_10,
function);
10639 __pyx_t_7 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_W550) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_W550);
10640 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10641 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 227, __pyx_L1_error)
10642 __Pyx_GOTREF(__pyx_t_7);
10643 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10644 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10653 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_set_ylabel);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 228, __pyx_L1_error)
10654 __Pyx_GOTREF(__pyx_t_10);
10656 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
10657 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_10);
10658 if (likely(__pyx_t_6)) {
10659 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_10);
10660 __Pyx_INCREF(__pyx_t_6);
10661 __Pyx_INCREF(
function);
10662 __Pyx_DECREF_SET(__pyx_t_10,
function);
10665 __pyx_t_7 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_W659) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_W659);
10666 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10667 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 228, __pyx_L1_error)
10668 __Pyx_GOTREF(__pyx_t_7);
10669 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10670 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10679 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_set_zlabel);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 229, __pyx_L1_error)
10680 __Pyx_GOTREF(__pyx_t_10);
10682 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
10683 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_10);
10684 if (likely(__pyx_t_6)) {
10685 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_10);
10686 __Pyx_INCREF(__pyx_t_6);
10687 __Pyx_INCREF(
function);
10688 __Pyx_DECREF_SET(__pyx_t_10,
function);
10691 __pyx_t_7 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_W860) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_W860);
10692 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10693 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 229, __pyx_L1_error)
10694 __Pyx_GOTREF(__pyx_t_7);
10695 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10696 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10705 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_plt);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 232, __pyx_L1_error)
10706 __Pyx_GOTREF(__pyx_t_10);
10707 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_figure);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 232, __pyx_L1_error)
10708 __Pyx_GOTREF(__pyx_t_6);
10709 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10711 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
10712 __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6);
10713 if (likely(__pyx_t_10)) {
10714 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
10715 __Pyx_INCREF(__pyx_t_10);
10716 __Pyx_INCREF(
function);
10717 __Pyx_DECREF_SET(__pyx_t_6,
function);
10720 __pyx_t_7 = (__pyx_t_10) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_10) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
10721 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
10722 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 232, __pyx_L1_error)
10723 __Pyx_GOTREF(__pyx_t_7);
10724 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10725 __Pyx_DECREF_SET(__pyx_v_fig, __pyx_t_7);
10735 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_fig, __pyx_n_s_add_subplot);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 233, __pyx_L1_error)
10736 __Pyx_GOTREF(__pyx_t_7);
10737 __pyx_t_6 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 233, __pyx_L1_error)
10738 __Pyx_GOTREF(__pyx_t_6);
10739 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_projection, __pyx_kp_u_3d) < 0) __PYX_ERR(0, 233, __pyx_L1_error)
10740 __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__9, __pyx_t_6);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 233, __pyx_L1_error)
10741 __Pyx_GOTREF(__pyx_t_10);
10742 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10743 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10744 __Pyx_DECREF_SET(__pyx_v_ax, __pyx_t_10);
10754 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 234, __pyx_L1_error)
10755 __Pyx_GOTREF(__pyx_t_6);
10756 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_arange);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 234, __pyx_L1_error)
10757 __Pyx_GOTREF(__pyx_t_7);
10758 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10759 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 234, __pyx_L1_error)
10760 __Pyx_GOTREF(__pyx_t_6);
10762 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
10763 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
10764 if (likely(__pyx_t_3)) {
10765 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
10766 __Pyx_INCREF(__pyx_t_3);
10767 __Pyx_INCREF(
function);
10768 __Pyx_DECREF_SET(__pyx_t_7,
function);
10771 __pyx_t_10 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6);
10772 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10773 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10774 if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 234, __pyx_L1_error)
10775 __Pyx_GOTREF(__pyx_t_10);
10776 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10777 __pyx_v_ws = __pyx_t_10;
10787 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 235, __pyx_L1_error)
10788 __Pyx_GOTREF(__pyx_t_7);
10789 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_arange);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 235, __pyx_L1_error)
10790 __Pyx_GOTREF(__pyx_t_6);
10791 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10792 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 235, __pyx_L1_error)
10793 __Pyx_GOTREF(__pyx_t_7);
10794 __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_t_7, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 235, __pyx_L1_error)
10795 __Pyx_GOTREF(__pyx_t_3);
10796 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10798 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
10799 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
10800 if (likely(__pyx_t_7)) {
10801 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
10802 __Pyx_INCREF(__pyx_t_7);
10803 __Pyx_INCREF(
function);
10804 __Pyx_DECREF_SET(__pyx_t_6,
function);
10807 __pyx_t_10 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3);
10808 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
10809 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10810 if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 235, __pyx_L1_error)
10811 __Pyx_GOTREF(__pyx_t_10);
10812 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10813 __pyx_v_ts = __pyx_t_10;
10823 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 236, __pyx_L1_error)
10824 __Pyx_GOTREF(__pyx_t_6);
10825 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_meshgrid);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error)
10826 __Pyx_GOTREF(__pyx_t_3);
10827 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10830 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
10831 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
10832 if (likely(__pyx_t_6)) {
10833 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
10834 __Pyx_INCREF(__pyx_t_6);
10835 __Pyx_INCREF(
function);
10836 __Pyx_DECREF_SET(__pyx_t_3,
function);
10840 #if CYTHON_FAST_PYCALL
10841 if (PyFunction_Check(__pyx_t_3)) {
10842 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_ws, __pyx_v_ts};
10843 __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 236, __pyx_L1_error)
10844 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10845 __Pyx_GOTREF(__pyx_t_10);
10848 #if CYTHON_FAST_PYCCALL
10849 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
10850 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_ws, __pyx_v_ts};
10851 __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 236, __pyx_L1_error)
10852 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10853 __Pyx_GOTREF(__pyx_t_10);
10857 __pyx_t_7 = PyTuple_New(2+__pyx_t_11);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 236, __pyx_L1_error)
10858 __Pyx_GOTREF(__pyx_t_7);
10860 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 =
NULL;
10862 __Pyx_INCREF(__pyx_v_ws);
10863 __Pyx_GIVEREF(__pyx_v_ws);
10864 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_11, __pyx_v_ws);
10865 __Pyx_INCREF(__pyx_v_ts);
10866 __Pyx_GIVEREF(__pyx_v_ts);
10867 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_11, __pyx_v_ts);
10868 __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7,
NULL);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 236, __pyx_L1_error)
10869 __Pyx_GOTREF(__pyx_t_10);
10870 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10872 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10873 if ((likely(PyTuple_CheckExact(__pyx_t_10))) || (PyList_CheckExact(__pyx_t_10))) {
10874 PyObject* sequence = __pyx_t_10;
10875 Py_ssize_t
size = __Pyx_PySequence_SIZE(sequence);
10876 if (unlikely(
size != 2)) {
10877 if (
size > 2) __Pyx_RaiseTooManyValuesError(2);
10878 else if (
size >= 0) __Pyx_RaiseNeedMoreValuesError(
size);
10879 __PYX_ERR(0, 236, __pyx_L1_error)
10881 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
10882 if (likely(PyTuple_CheckExact(sequence))) {
10883 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
10884 __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
10886 __pyx_t_3 = PyList_GET_ITEM(sequence, 0);
10887 __pyx_t_7 = PyList_GET_ITEM(sequence, 1);
10889 __Pyx_INCREF(__pyx_t_3);
10890 __Pyx_INCREF(__pyx_t_7);
10892 __pyx_t_3 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error)
10893 __Pyx_GOTREF(__pyx_t_3);
10894 __pyx_t_7 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 236, __pyx_L1_error)
10895 __Pyx_GOTREF(__pyx_t_7);
10897 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10899 Py_ssize_t
index = -1;
10900 __pyx_t_6 = PyObject_GetIter(__pyx_t_10);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 236, __pyx_L1_error)
10901 __Pyx_GOTREF(__pyx_t_6);
10902 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
10903 __pyx_t_12 = Py_TYPE(__pyx_t_6)->tp_iternext;
10904 index = 0; __pyx_t_3 = __pyx_t_12(__pyx_t_6);
if (unlikely(!__pyx_t_3))
goto __pyx_L11_unpacking_failed;
10905 __Pyx_GOTREF(__pyx_t_3);
10906 index = 1; __pyx_t_7 = __pyx_t_12(__pyx_t_6);
if (unlikely(!__pyx_t_7))
goto __pyx_L11_unpacking_failed;
10907 __Pyx_GOTREF(__pyx_t_7);
10908 if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_6), 2) < 0) __PYX_ERR(0, 236, __pyx_L1_error)
10910 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10911 goto __pyx_L12_unpacking_done;
10912 __pyx_L11_unpacking_failed:;
10913 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10915 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(
index);
10916 __PYX_ERR(0, 236, __pyx_L1_error)
10917 __pyx_L12_unpacking_done:;
10919 __Pyx_DECREF_SET(__pyx_v_ws, __pyx_t_3);
10921 __Pyx_DECREF_SET(__pyx_v_ts, __pyx_t_7);
10931 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 237, __pyx_L1_error)
10932 __Pyx_GOTREF(__pyx_t_7);
10933 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 237, __pyx_L1_error)
10934 __Pyx_GOTREF(__pyx_t_3);
10935 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
10936 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 237, __pyx_L1_error)
10937 __Pyx_GOTREF(__pyx_t_7);
10938 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error)
10939 __Pyx_GOTREF(__pyx_t_6);
10940 __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_t_6, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error)
10941 __Pyx_GOTREF(__pyx_t_1);
10942 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10943 __pyx_t_6 = PyTuple_New(2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error)
10944 __Pyx_GOTREF(__pyx_t_6);
10945 __Pyx_GIVEREF(__pyx_t_7);
10946 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7);
10947 __Pyx_GIVEREF(__pyx_t_1);
10948 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
10952 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
10953 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
10954 if (likely(__pyx_t_1)) {
10955 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
10956 __Pyx_INCREF(__pyx_t_1);
10957 __Pyx_INCREF(
function);
10958 __Pyx_DECREF_SET(__pyx_t_3,
function);
10961 __pyx_t_10 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_1, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6);
10962 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
10963 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
10964 if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 237, __pyx_L1_error)
10965 __Pyx_GOTREF(__pyx_t_10);
10966 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10967 __pyx_v_ls = __pyx_t_10;
10977 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 238, __pyx_L1_error)
10978 __Pyx_GOTREF(__pyx_t_3);
10979 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 238, __pyx_L1_error)
10980 __Pyx_GOTREF(__pyx_t_6);
10981 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10982 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 238, __pyx_L1_error)
10983 __Pyx_GOTREF(__pyx_t_3);
10984 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 238, __pyx_L1_error)
10985 __Pyx_GOTREF(__pyx_t_1);
10986 __pyx_t_7 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 238, __pyx_L1_error)
10987 __Pyx_GOTREF(__pyx_t_7);
10988 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10989 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 238, __pyx_L1_error)
10990 __Pyx_GOTREF(__pyx_t_1);
10991 __Pyx_GIVEREF(__pyx_t_3);
10992 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
10993 __Pyx_GIVEREF(__pyx_t_7);
10994 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_7);
10998 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
10999 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
11000 if (likely(__pyx_t_7)) {
11001 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
11002 __Pyx_INCREF(__pyx_t_7);
11003 __Pyx_INCREF(
function);
11004 __Pyx_DECREF_SET(__pyx_t_6,
function);
11007 __pyx_t_10 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1);
11008 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11009 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11010 if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 238, __pyx_L1_error)
11011 __Pyx_GOTREF(__pyx_t_10);
11012 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11013 __pyx_v_lb = __pyx_t_10;
11023 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_toast);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 239, __pyx_L1_error)
11024 __Pyx_GOTREF(__pyx_t_10);
11025 if (unlikely(!__pyx_v_s)) { __Pyx_RaiseUnboundLocalError(
"s"); __PYX_ERR(0, 239, __pyx_L1_error) }
11026 __pyx_t_6 = PyTuple_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 239, __pyx_L1_error)
11027 __Pyx_GOTREF(__pyx_t_6);
11028 __Pyx_INCREF(__pyx_slice__4);
11029 __Pyx_GIVEREF(__pyx_slice__4);
11030 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_slice__4);
11031 __Pyx_INCREF(__pyx_v_s);
11032 __Pyx_GIVEREF(__pyx_v_s);
11033 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_s);
11034 __Pyx_INCREF(__pyx_slice__4);
11035 __Pyx_GIVEREF(__pyx_slice__4);
11036 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_slice__4);
11037 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error)
11038 __Pyx_GOTREF(__pyx_t_1);
11039 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11040 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11041 if (unlikely(PyObject_SetItem(__pyx_v_ls, __pyx_tuple__11, __pyx_t_1) < 0)) __PYX_ERR(0, 239, __pyx_L1_error)
11042 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11051 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error)
11052 __Pyx_GOTREF(__pyx_t_1);
11053 __pyx_t_6 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 240, __pyx_L1_error)
11054 __Pyx_GOTREF(__pyx_t_6);
11055 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11056 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error)
11057 __Pyx_GOTREF(__pyx_t_1);
11058 __Pyx_INCREF(__pyx_slice__4);
11059 __Pyx_GIVEREF(__pyx_slice__4);
11060 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_slice__4);
11061 __Pyx_GIVEREF(__pyx_t_6);
11062 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6);
11064 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_ls, __pyx_t_1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 240, __pyx_L1_error)
11065 __Pyx_GOTREF(__pyx_t_6);
11066 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11067 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error)
11068 __Pyx_GOTREF(__pyx_t_1);
11069 __pyx_t_10 = PyTuple_New(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 240, __pyx_L1_error)
11070 __Pyx_GOTREF(__pyx_t_10);
11071 __Pyx_INCREF(__pyx_slice__4);
11072 __Pyx_GIVEREF(__pyx_slice__4);
11073 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_slice__4);
11074 __Pyx_GIVEREF(__pyx_t_1);
11075 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_1);
11077 if (unlikely(PyObject_SetItem(__pyx_v_ls, __pyx_t_10, __pyx_t_6) < 0)) __PYX_ERR(0, 240, __pyx_L1_error)
11078 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11079 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11088 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_plot_wireframe);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 241, __pyx_L1_error)
11089 __Pyx_GOTREF(__pyx_t_6);
11090 __pyx_t_10 = PyTuple_New(3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 241, __pyx_L1_error)
11091 __Pyx_GOTREF(__pyx_t_10);
11092 __Pyx_INCREF(__pyx_v_ws);
11093 __Pyx_GIVEREF(__pyx_v_ws);
11094 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_ws);
11095 __Pyx_INCREF(__pyx_v_ts);
11096 __Pyx_GIVEREF(__pyx_v_ts);
11097 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_ts);
11098 __Pyx_INCREF(__pyx_v_ls);
11099 __Pyx_GIVEREF(__pyx_v_ls);
11100 PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_ls);
11101 __pyx_t_1 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error)
11102 __Pyx_GOTREF(__pyx_t_1);
11103 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_color, __pyx_n_u_b) < 0) __PYX_ERR(0, 241, __pyx_L1_error)
11104 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_label, __pyx_kp_u_small_model) < 0) __PYX_ERR(0, 241, __pyx_L1_error)
11105 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, __pyx_t_1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 241, __pyx_L1_error)
11106 __Pyx_GOTREF(__pyx_t_7);
11107 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11108 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11109 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11110 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11119 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_toabt);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 242, __pyx_L1_error)
11120 __Pyx_GOTREF(__pyx_t_7);
11121 if (unlikely(!__pyx_v_b)) { __Pyx_RaiseUnboundLocalError(
"b"); __PYX_ERR(0, 242, __pyx_L1_error) }
11122 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 242, __pyx_L1_error)
11123 __Pyx_GOTREF(__pyx_t_1);
11124 __Pyx_INCREF(__pyx_slice__4);
11125 __Pyx_GIVEREF(__pyx_slice__4);
11126 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_slice__4);
11127 __Pyx_INCREF(__pyx_v_b);
11128 __Pyx_GIVEREF(__pyx_v_b);
11129 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_b);
11130 __Pyx_INCREF(__pyx_slice__4);
11131 __Pyx_GIVEREF(__pyx_slice__4);
11132 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_slice__4);
11133 __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 242, __pyx_L1_error)
11134 __Pyx_GOTREF(__pyx_t_10);
11135 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11136 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11137 if (unlikely(PyObject_SetItem(__pyx_v_lb, __pyx_tuple__11, __pyx_t_10) < 0)) __PYX_ERR(0, 242, __pyx_L1_error)
11138 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11147 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 243, __pyx_L1_error)
11148 __Pyx_GOTREF(__pyx_t_10);
11149 __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_t_10, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 243, __pyx_L1_error)
11150 __Pyx_GOTREF(__pyx_t_1);
11151 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11152 __pyx_t_10 = PyTuple_New(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 243, __pyx_L1_error)
11153 __Pyx_GOTREF(__pyx_t_10);
11154 __Pyx_INCREF(__pyx_slice__4);
11155 __Pyx_GIVEREF(__pyx_slice__4);
11156 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_slice__4);
11157 __Pyx_GIVEREF(__pyx_t_1);
11158 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_1);
11160 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_lb, __pyx_t_10);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 243, __pyx_L1_error)
11161 __Pyx_GOTREF(__pyx_t_1);
11162 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11163 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_NAOT);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 243, __pyx_L1_error)
11164 __Pyx_GOTREF(__pyx_t_10);
11165 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 243, __pyx_L1_error)
11166 __Pyx_GOTREF(__pyx_t_7);
11167 __Pyx_INCREF(__pyx_slice__4);
11168 __Pyx_GIVEREF(__pyx_slice__4);
11169 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_slice__4);
11170 __Pyx_GIVEREF(__pyx_t_10);
11171 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_10);
11173 if (unlikely(PyObject_SetItem(__pyx_v_lb, __pyx_t_7, __pyx_t_1) < 0)) __PYX_ERR(0, 243, __pyx_L1_error)
11174 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11175 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11184 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_ax, __pyx_n_s_plot_wireframe);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error)
11185 __Pyx_GOTREF(__pyx_t_1);
11186 __pyx_t_7 = PyTuple_New(3);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 244, __pyx_L1_error)
11187 __Pyx_GOTREF(__pyx_t_7);
11188 __Pyx_INCREF(__pyx_v_ws);
11189 __Pyx_GIVEREF(__pyx_v_ws);
11190 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_ws);
11191 __Pyx_INCREF(__pyx_v_ts);
11192 __Pyx_GIVEREF(__pyx_v_ts);
11193 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_ts);
11194 __Pyx_INCREF(__pyx_v_lb);
11195 __Pyx_GIVEREF(__pyx_v_lb);
11196 PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_lb);
11197 __pyx_t_10 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 244, __pyx_L1_error)
11198 __Pyx_GOTREF(__pyx_t_10);
11199 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_color, __pyx_n_u_r) < 0) __PYX_ERR(0, 244, __pyx_L1_error)
11200 if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_label, __pyx_kp_u_big_model) < 0) __PYX_ERR(0, 244, __pyx_L1_error)
11201 __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, __pyx_t_10);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 244, __pyx_L1_error)
11202 __Pyx_GOTREF(__pyx_t_6);
11203 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11204 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11205 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11206 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11215 __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_plt);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 245, __pyx_L1_error)
11216 __Pyx_GOTREF(__pyx_t_10);
11217 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_show);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 245, __pyx_L1_error)
11218 __Pyx_GOTREF(__pyx_t_7);
11219 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
11221 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
11222 __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_7);
11223 if (likely(__pyx_t_10)) {
11224 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
11225 __Pyx_INCREF(__pyx_t_10);
11226 __Pyx_INCREF(
function);
11227 __Pyx_DECREF_SET(__pyx_t_7,
function);
11230 __pyx_t_6 = (__pyx_t_10) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_10) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
11231 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
11232 if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 245, __pyx_L1_error)
11233 __Pyx_GOTREF(__pyx_t_6);
11234 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11235 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11246 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11249 __Pyx_XDECREF(__pyx_t_1);
11250 __Pyx_XDECREF(__pyx_t_2);
11251 __Pyx_XDECREF(__pyx_t_3);
11252 __Pyx_XDECREF(__pyx_t_6);
11253 __Pyx_XDECREF(__pyx_t_7);
11254 __Pyx_XDECREF(__pyx_t_10);
11255 __Pyx_AddTraceback(
"dtocean.dtocean.plot_points", __pyx_clineno, __pyx_lineno, __pyx_filename);
11258 __Pyx_XDECREF(__pyx_v_fig);
11259 __Pyx_XDECREF(__pyx_v_ax);
11260 __Pyx_XDECREF(__pyx_v_s);
11261 __Pyx_XDECREF(__pyx_v_xs);
11262 __Pyx_XDECREF(__pyx_v_ys);
11263 __Pyx_XDECREF(__pyx_v_zs);
11264 __Pyx_XDECREF(__pyx_v_b);
11265 __Pyx_XDECREF(__pyx_v_xb);
11266 __Pyx_XDECREF(__pyx_v_yb);
11267 __Pyx_XDECREF(__pyx_v_zb);
11268 __Pyx_XDECREF(__pyx_v_xp);
11269 __Pyx_XDECREF(__pyx_v_yp);
11270 __Pyx_XDECREF(__pyx_v_zp);
11271 __Pyx_XDECREF(__pyx_v_xm);
11272 __Pyx_XDECREF(__pyx_v_ym);
11273 __Pyx_XDECREF(__pyx_v_zm);
11274 __Pyx_XDECREF(__pyx_v_ws);
11275 __Pyx_XDECREF(__pyx_v_ts);
11276 __Pyx_XDECREF(__pyx_v_ls);
11277 __Pyx_XDECREF(__pyx_v_lb);
11278 __Pyx_XGIVEREF(__pyx_r);
11279 __Pyx_RefNannyFinishContext();
11292 static PyObject *__pyx_pw_7dtocean_5input_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11293 static PyMethodDef __pyx_mdef_7dtocean_5input_1__init__ = {
"__init__", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_7dtocean_5input_1__init__, METH_VARARGS|METH_KEYWORDS, 0};
11294 static PyObject *__pyx_pw_7dtocean_5input_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11295 PyObject *__pyx_v_self = 0;
11296 PyObject *__pyx_v_l1b_filepath = 0;
11297 int __pyx_lineno = 0;
11298 const char *__pyx_filename =
NULL;
11299 int __pyx_clineno = 0;
11300 PyObject *__pyx_r = 0;
11301 __Pyx_RefNannyDeclarations
11302 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
11304 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_l1b_filepath,0};
11305 PyObject*
values[2] = {0,0};
11306 if (unlikely(__pyx_kwds)) {
11307 Py_ssize_t kw_args;
11308 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11309 switch (pos_args) {
11310 case 2:
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11311 CYTHON_FALLTHROUGH;
11312 case 1:
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11313 CYTHON_FALLTHROUGH;
11315 default:
goto __pyx_L5_argtuple_error;
11317 kw_args = PyDict_Size(__pyx_kwds);
11318 switch (pos_args) {
11320 if (likely((
values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
11321 else goto __pyx_L5_argtuple_error;
11322 CYTHON_FALLTHROUGH;
11324 if (likely((
values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l1b_filepath)) != 0)) kw_args--;
11326 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 2, 2, 1); __PYX_ERR(0, 249, __pyx_L3_error)
11329 if (unlikely(kw_args > 0)) {
11330 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0,
values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 249, __pyx_L3_error)
11332 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
11333 goto __pyx_L5_argtuple_error;
11335 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11336 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11338 __pyx_v_self =
values[0];
11339 __pyx_v_l1b_filepath =
values[1];
11341 goto __pyx_L4_argument_unpacking_done;
11342 __pyx_L5_argtuple_error:;
11343 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 249, __pyx_L3_error)
11345 __Pyx_AddTraceback(
"dtocean.input.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
11346 __Pyx_RefNannyFinishContext();
11348 __pyx_L4_argument_unpacking_done:;
11349 __pyx_r = __pyx_pf_7dtocean_5input___init__(__pyx_self, __pyx_v_self, __pyx_v_l1b_filepath);
11352 __Pyx_RefNannyFinishContext();
11356 static PyObject *__pyx_pf_7dtocean_5input___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_l1b_filepath) {
11357 PyObject *__pyx_v_inst =
NULL;
11358 PyObject *__pyx_r =
NULL;
11359 __Pyx_RefNannyDeclarations
11360 PyObject *__pyx_t_1 =
NULL;
11361 PyObject *__pyx_t_2 =
NULL;
11362 PyObject *__pyx_t_3 =
NULL;
11363 PyObject *__pyx_t_4 =
NULL;
11364 PyObject *__pyx_t_5 =
NULL;
11365 PyObject *__pyx_t_6 =
NULL;
11366 PyObject *__pyx_t_7 =
NULL;
11367 PyObject *__pyx_t_8 =
NULL;
11368 PyObject *__pyx_t_9 =
NULL;
11371 char const *__pyx_t_12;
11372 PyObject *__pyx_t_13 =
NULL;
11373 PyObject *__pyx_t_14 =
NULL;
11374 PyObject *__pyx_t_15 =
NULL;
11375 PyObject *__pyx_t_16 =
NULL;
11376 PyObject *__pyx_t_17 =
NULL;
11377 PyObject *__pyx_t_18 =
NULL;
11378 int __pyx_lineno = 0;
11379 const char *__pyx_filename =
NULL;
11380 int __pyx_clineno = 0;
11381 __Pyx_RefNannySetupContext(
"__init__", 0);
11390 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ifile, __pyx_v_l1b_filepath) < 0) __PYX_ERR(0, 250, __pyx_L1_error)
11399 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ifile);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error)
11400 __Pyx_GOTREF(__pyx_t_1);
11401 __pyx_t_2 = PyNumber_Add(__pyx_kp_u_Reading_VIIRS_Data, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error)
11402 __Pyx_GOTREF(__pyx_t_2);
11403 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11404 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error)
11405 __Pyx_GOTREF(__pyx_t_1);
11406 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11407 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11417 __Pyx_PyThreadState_declare
11418 __Pyx_PyThreadState_assign
11419 __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
11420 __Pyx_XGOTREF(__pyx_t_3);
11421 __Pyx_XGOTREF(__pyx_t_4);
11422 __Pyx_XGOTREF(__pyx_t_5);
11432 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L3_error)
11433 __Pyx_GOTREF(__pyx_t_1);
11434 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_append);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L3_error)
11435 __Pyx_GOTREF(__pyx_t_2);
11436 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11437 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_xr);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L3_error)
11438 __Pyx_GOTREF(__pyx_t_1);
11439 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 253, __pyx_L3_error)
11440 __Pyx_GOTREF(__pyx_t_6);
11441 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11442 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L3_error)
11443 __Pyx_GOTREF(__pyx_t_1);
11444 __Pyx_INCREF(__pyx_v_l1b_filepath);
11445 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11446 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_l1b_filepath);
11447 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L3_error)
11448 __Pyx_GOTREF(__pyx_t_7);
11449 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_group, __pyx_kp_u_reflectance_2) < 0) __PYX_ERR(0, 253, __pyx_L3_error)
11450 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, __pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 253, __pyx_L3_error)
11451 __Pyx_GOTREF(__pyx_t_8);
11452 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11453 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11454 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11455 __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_t_8, __pyx_n_u_toa_reflectance);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L3_error)
11456 __Pyx_GOTREF(__pyx_t_7);
11457 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
11458 __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_tuple__13);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 253, __pyx_L3_error)
11459 __Pyx_GOTREF(__pyx_t_8);
11460 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11461 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_values);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L3_error)
11462 __Pyx_GOTREF(__pyx_t_7);
11463 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
11472 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_xr);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 254, __pyx_L3_error)
11473 __Pyx_GOTREF(__pyx_t_8);
11474 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L3_error)
11475 __Pyx_GOTREF(__pyx_t_1);
11476 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
11477 __pyx_t_8 = PyTuple_New(1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 254, __pyx_L3_error)
11478 __Pyx_GOTREF(__pyx_t_8);
11479 __Pyx_INCREF(__pyx_v_l1b_filepath);
11480 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11481 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_l1b_filepath);
11482 __pyx_t_6 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 254, __pyx_L3_error)
11483 __Pyx_GOTREF(__pyx_t_6);
11484 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_group, __pyx_kp_u_reflectance_2) < 0) __PYX_ERR(0, 254, __pyx_L3_error)
11485 __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, __pyx_t_6);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 254, __pyx_L3_error)
11486 __Pyx_GOTREF(__pyx_t_9);
11487 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11488 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
11489 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11490 __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_9, __pyx_n_u_toa_reflectance);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 254, __pyx_L3_error)
11491 __Pyx_GOTREF(__pyx_t_6);
11492 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11493 __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_tuple__15);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 254, __pyx_L3_error)
11494 __Pyx_GOTREF(__pyx_t_9);
11495 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11496 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_values);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 254, __pyx_L3_error)
11497 __Pyx_GOTREF(__pyx_t_6);
11498 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11507 __pyx_t_9 = PyTuple_New(2);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 253, __pyx_L3_error)
11508 __Pyx_GOTREF(__pyx_t_9);
11509 __Pyx_GIVEREF(__pyx_t_7);
11510 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7);
11511 __Pyx_GIVEREF(__pyx_t_6);
11512 PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6);
11523 __pyx_t_6 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 254, __pyx_L3_error)
11524 __Pyx_GOTREF(__pyx_t_6);
11525 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_axis, __pyx_int_0) < 0) __PYX_ERR(0, 254, __pyx_L3_error)
11534 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, __pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 253, __pyx_L3_error)
11535 __Pyx_GOTREF(__pyx_t_7);
11536 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11537 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11538 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11539 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rfl, __pyx_t_7) < 0) __PYX_ERR(0, 253, __pyx_L3_error)
11540 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11549 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L3_error)
11550 __Pyx_GOTREF(__pyx_t_7);
11551 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 255, __pyx_L3_error)
11552 __Pyx_GOTREF(__pyx_t_6);
11553 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11554 __pyx_t_7 = PyTuple_New(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L3_error)
11555 __Pyx_GOTREF(__pyx_t_7);
11556 __Pyx_INCREF(__pyx_v_l1b_filepath);
11557 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11558 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_l1b_filepath);
11559 __pyx_t_9 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 255, __pyx_L3_error)
11560 __Pyx_GOTREF(__pyx_t_9);
11561 if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_group, __pyx_kp_u_geolocation) < 0) __PYX_ERR(0, 255, __pyx_L3_error)
11562 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, __pyx_t_9);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 255, __pyx_L3_error)
11563 __Pyx_GOTREF(__pyx_t_2);
11564 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11565 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11566 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11567 __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_t_2, __pyx_n_u_solar_zenith);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 255, __pyx_L3_error)
11568 __Pyx_GOTREF(__pyx_t_9);
11569 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11570 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_values);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 255, __pyx_L3_error)
11571 __Pyx_GOTREF(__pyx_t_2);
11572 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11573 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_sza, __pyx_t_2) < 0) __PYX_ERR(0, 255, __pyx_L3_error)
11574 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11583 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_xr);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L3_error)
11584 __Pyx_GOTREF(__pyx_t_2);
11585 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 256, __pyx_L3_error)
11586 __Pyx_GOTREF(__pyx_t_9);
11587 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11588 __pyx_t_2 = PyTuple_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L3_error)
11589 __Pyx_GOTREF(__pyx_t_2);
11590 __Pyx_INCREF(__pyx_v_l1b_filepath);
11591 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11592 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_l1b_filepath);
11593 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 256, __pyx_L3_error)
11594 __Pyx_GOTREF(__pyx_t_7);
11595 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_group, __pyx_kp_u_geolocation) < 0) __PYX_ERR(0, 256, __pyx_L3_error)
11596 __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 256, __pyx_L3_error)
11597 __Pyx_GOTREF(__pyx_t_6);
11598 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11599 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11600 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11601 __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_t_6, __pyx_n_u_sensor_zenith);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 256, __pyx_L3_error)
11602 __Pyx_GOTREF(__pyx_t_7);
11603 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11604 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_values);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 256, __pyx_L3_error)
11605 __Pyx_GOTREF(__pyx_t_6);
11606 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11607 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_vza, __pyx_t_6) < 0) __PYX_ERR(0, 256, __pyx_L3_error)
11608 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11617 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_xr);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 257, __pyx_L3_error)
11618 __Pyx_GOTREF(__pyx_t_6);
11619 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 257, __pyx_L3_error)
11620 __Pyx_GOTREF(__pyx_t_7);
11621 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11622 __pyx_t_6 = PyTuple_New(1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 257, __pyx_L3_error)
11623 __Pyx_GOTREF(__pyx_t_6);
11624 __Pyx_INCREF(__pyx_v_l1b_filepath);
11625 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11626 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_l1b_filepath);
11627 __pyx_t_2 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L3_error)
11628 __Pyx_GOTREF(__pyx_t_2);
11629 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_group, __pyx_kp_u_geolocation) < 0) __PYX_ERR(0, 257, __pyx_L3_error)
11630 __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, __pyx_t_2);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 257, __pyx_L3_error)
11631 __Pyx_GOTREF(__pyx_t_9);
11632 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11633 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11634 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11635 __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_9, __pyx_n_u_relative_azimuth);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L3_error)
11636 __Pyx_GOTREF(__pyx_t_2);
11637 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11638 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 257, __pyx_L3_error)
11639 __Pyx_GOTREF(__pyx_t_9);
11640 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11641 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_raa, __pyx_t_9) < 0) __PYX_ERR(0, 257, __pyx_L3_error)
11642 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11651 __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_xr);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 258, __pyx_L3_error)
11652 __Pyx_GOTREF(__pyx_t_9);
11653 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 258, __pyx_L3_error)
11654 __Pyx_GOTREF(__pyx_t_2);
11655 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11656 __pyx_t_9 = PyTuple_New(1);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 258, __pyx_L3_error)
11657 __Pyx_GOTREF(__pyx_t_9);
11658 __Pyx_INCREF(__pyx_v_l1b_filepath);
11659 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11660 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_l1b_filepath);
11661 __pyx_t_6 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 258, __pyx_L3_error)
11662 __Pyx_GOTREF(__pyx_t_6);
11663 if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_group, __pyx_kp_u_navigation_data) < 0) __PYX_ERR(0, 258, __pyx_L3_error)
11664 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, __pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 258, __pyx_L3_error)
11665 __Pyx_GOTREF(__pyx_t_7);
11666 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11667 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11668 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11669 __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_7, __pyx_n_u_latitude);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 258, __pyx_L3_error)
11670 __Pyx_GOTREF(__pyx_t_6);
11671 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11672 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_values);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 258, __pyx_L3_error)
11673 __Pyx_GOTREF(__pyx_t_7);
11674 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11675 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_lat, __pyx_t_7) < 0) __PYX_ERR(0, 258, __pyx_L3_error)
11676 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11685 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 259, __pyx_L3_error)
11686 __Pyx_GOTREF(__pyx_t_7);
11687 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 259, __pyx_L3_error)
11688 __Pyx_GOTREF(__pyx_t_6);
11689 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11690 __pyx_t_7 = PyTuple_New(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 259, __pyx_L3_error)
11691 __Pyx_GOTREF(__pyx_t_7);
11692 __Pyx_INCREF(__pyx_v_l1b_filepath);
11693 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11694 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_l1b_filepath);
11695 __pyx_t_9 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 259, __pyx_L3_error)
11696 __Pyx_GOTREF(__pyx_t_9);
11697 if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_group, __pyx_kp_u_navigation_data) < 0) __PYX_ERR(0, 259, __pyx_L3_error)
11698 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, __pyx_t_9);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 259, __pyx_L3_error)
11699 __Pyx_GOTREF(__pyx_t_2);
11700 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11701 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11702 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11703 __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_t_2, __pyx_n_u_longitude);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 259, __pyx_L3_error)
11704 __Pyx_GOTREF(__pyx_t_9);
11705 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11706 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_values);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 259, __pyx_L3_error)
11707 __Pyx_GOTREF(__pyx_t_2);
11708 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11709 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_lon, __pyx_t_2) < 0) __PYX_ERR(0, 259, __pyx_L3_error)
11710 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11719 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_xr);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 260, __pyx_L3_error)
11720 __Pyx_GOTREF(__pyx_t_2);
11721 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 260, __pyx_L3_error)
11722 __Pyx_GOTREF(__pyx_t_9);
11723 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11724 __pyx_t_2 = PyTuple_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 260, __pyx_L3_error)
11725 __Pyx_GOTREF(__pyx_t_2);
11726 __Pyx_INCREF(__pyx_v_l1b_filepath);
11727 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11728 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_l1b_filepath);
11729 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 260, __pyx_L3_error)
11730 __Pyx_GOTREF(__pyx_t_7);
11731 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_group, __pyx_kp_u_ancillary) < 0) __PYX_ERR(0, 260, __pyx_L3_error)
11732 __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 260, __pyx_L3_error)
11733 __Pyx_GOTREF(__pyx_t_6);
11734 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11735 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11736 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11737 __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_t_6, __pyx_n_u_cloud_mask);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 260, __pyx_L3_error)
11738 __Pyx_GOTREF(__pyx_t_7);
11739 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11740 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_values);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 260, __pyx_L3_error)
11741 __Pyx_GOTREF(__pyx_t_6);
11742 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11743 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_cld, __pyx_t_6) < 0) __PYX_ERR(0, 260, __pyx_L3_error)
11744 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11753 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_xr);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 261, __pyx_L3_error)
11754 __Pyx_GOTREF(__pyx_t_6);
11755 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_load_dataset);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 261, __pyx_L3_error)
11756 __Pyx_GOTREF(__pyx_t_7);
11757 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11758 __pyx_t_6 = PyTuple_New(1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 261, __pyx_L3_error)
11759 __Pyx_GOTREF(__pyx_t_6);
11760 __Pyx_INCREF(__pyx_v_l1b_filepath);
11761 __Pyx_GIVEREF(__pyx_v_l1b_filepath);
11762 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_l1b_filepath);
11763 __pyx_t_2 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L3_error)
11764 __Pyx_GOTREF(__pyx_t_2);
11765 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_group, __pyx_kp_u_ancillary) < 0) __PYX_ERR(0, 261, __pyx_L3_error)
11766 __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_6, __pyx_t_2);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 261, __pyx_L3_error)
11767 __Pyx_GOTREF(__pyx_t_9);
11768 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11769 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11770 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11771 __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_9, __pyx_n_u_wind_speed);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L3_error)
11772 __Pyx_GOTREF(__pyx_t_2);
11773 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11774 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_values);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 261, __pyx_L3_error)
11775 __Pyx_GOTREF(__pyx_t_9);
11776 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11777 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wnd, __pyx_t_9) < 0) __PYX_ERR(0, 261, __pyx_L3_error)
11778 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11787 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 262, __pyx_L3_error)
11788 __Pyx_GOTREF(__pyx_t_2);
11789 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_transpose);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 262, __pyx_L3_error)
11790 __Pyx_GOTREF(__pyx_t_6);
11791 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11792 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 262, __pyx_L3_error)
11793 __Pyx_GOTREF(__pyx_t_2);
11796 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
11797 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
11798 if (likely(__pyx_t_7)) {
11799 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
11800 __Pyx_INCREF(__pyx_t_7);
11801 __Pyx_INCREF(
function);
11802 __Pyx_DECREF_SET(__pyx_t_6,
function);
11806 #if CYTHON_FAST_PYCALL
11807 if (PyFunction_Check(__pyx_t_6)) {
11808 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_tuple__16};
11809 __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 262, __pyx_L3_error)
11810 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11811 __Pyx_GOTREF(__pyx_t_9);
11812 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11815 #if CYTHON_FAST_PYCCALL
11816 if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
11817 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_2, __pyx_tuple__16};
11818 __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 262, __pyx_L3_error)
11819 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11820 __Pyx_GOTREF(__pyx_t_9);
11821 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11825 __pyx_t_8 = PyTuple_New(2+__pyx_t_10);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 262, __pyx_L3_error)
11826 __Pyx_GOTREF(__pyx_t_8);
11828 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 =
NULL;
11830 __Pyx_GIVEREF(__pyx_t_2);
11831 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_10, __pyx_t_2);
11832 __Pyx_INCREF(__pyx_tuple__16);
11833 __Pyx_GIVEREF(__pyx_tuple__16);
11834 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_10, __pyx_tuple__16);
11836 __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8,
NULL);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 262, __pyx_L3_error)
11837 __Pyx_GOTREF(__pyx_t_9);
11838 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
11840 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11841 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rfl, __pyx_t_9) < 0) __PYX_ERR(0, 262, __pyx_L3_error)
11842 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
11852 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
11853 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
11854 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
11855 goto __pyx_L8_try_end;
11857 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
11858 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
11859 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11860 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11861 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
11862 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
11871 __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
11873 __Pyx_AddTraceback(
"dtocean.input.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
11874 if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 263, __pyx_L5_except_error)
11875 __Pyx_GOTREF(__pyx_t_9);
11876 __Pyx_GOTREF(__pyx_t_6);
11877 __Pyx_GOTREF(__pyx_t_8);
11878 __Pyx_INCREF(__pyx_t_6);
11879 __pyx_v_inst = __pyx_t_6;
11889 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, ((PyObject *)Py_TYPE(__pyx_v_inst)));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L14_error)
11890 __Pyx_GOTREF(__pyx_t_2);
11891 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11900 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_v_inst);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L14_error)
11901 __Pyx_GOTREF(__pyx_t_2);
11902 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11911 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__17,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L14_error)
11912 __Pyx_GOTREF(__pyx_t_2);
11913 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11922 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_sys);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 267, __pyx_L14_error)
11923 __Pyx_GOTREF(__pyx_t_7);
11924 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_exit);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 267, __pyx_L14_error)
11925 __Pyx_GOTREF(__pyx_t_1);
11926 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11928 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
11929 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
11930 if (likely(__pyx_t_7)) {
11931 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
11932 __Pyx_INCREF(__pyx_t_7);
11933 __Pyx_INCREF(
function);
11934 __Pyx_DECREF_SET(__pyx_t_1,
function);
11937 __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
11938 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11939 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 267, __pyx_L14_error)
11940 __Pyx_GOTREF(__pyx_t_2);
11941 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11942 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11954 __Pyx_DECREF(__pyx_v_inst);
11955 __pyx_v_inst =
NULL;
11960 __Pyx_PyThreadState_declare
11961 __Pyx_PyThreadState_assign
11962 __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
11963 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
11964 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
11965 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11966 if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
11967 if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
11968 __Pyx_XGOTREF(__pyx_t_13);
11969 __Pyx_XGOTREF(__pyx_t_14);
11970 __Pyx_XGOTREF(__pyx_t_15);
11971 __Pyx_XGOTREF(__pyx_t_16);
11972 __Pyx_XGOTREF(__pyx_t_17);
11973 __Pyx_XGOTREF(__pyx_t_18);
11974 __pyx_t_10 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
11976 __Pyx_DECREF(__pyx_v_inst);
11977 __pyx_v_inst =
NULL;
11979 if (PY_MAJOR_VERSION >= 3) {
11980 __Pyx_XGIVEREF(__pyx_t_16);
11981 __Pyx_XGIVEREF(__pyx_t_17);
11982 __Pyx_XGIVEREF(__pyx_t_18);
11983 __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
11985 __Pyx_XGIVEREF(__pyx_t_13);
11986 __Pyx_XGIVEREF(__pyx_t_14);
11987 __Pyx_XGIVEREF(__pyx_t_15);
11988 __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15);
11989 __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
11990 __pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12;
11991 goto __pyx_L5_except_error;
11995 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
11996 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11997 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
11998 goto __pyx_L4_exception_handled;
12000 goto __pyx_L5_except_error;
12001 __pyx_L5_except_error:;
12010 __Pyx_XGIVEREF(__pyx_t_3);
12011 __Pyx_XGIVEREF(__pyx_t_4);
12012 __Pyx_XGIVEREF(__pyx_t_5);
12013 __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
12014 goto __pyx_L1_error;
12015 __pyx_L4_exception_handled:;
12016 __Pyx_XGIVEREF(__pyx_t_3);
12017 __Pyx_XGIVEREF(__pyx_t_4);
12018 __Pyx_XGIVEREF(__pyx_t_5);
12019 __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
12032 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12035 __Pyx_XDECREF(__pyx_t_1);
12036 __Pyx_XDECREF(__pyx_t_2);
12037 __Pyx_XDECREF(__pyx_t_6);
12038 __Pyx_XDECREF(__pyx_t_7);
12039 __Pyx_XDECREF(__pyx_t_8);
12040 __Pyx_XDECREF(__pyx_t_9);
12041 __Pyx_AddTraceback(
"dtocean.input.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
12044 __Pyx_XDECREF(__pyx_v_inst);
12045 __Pyx_XGIVEREF(__pyx_r);
12046 __Pyx_RefNannyFinishContext();
12059 static PyObject *__pyx_pw_7dtocean_6output_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12060 static PyMethodDef __pyx_mdef_7dtocean_6output_1__init__ = {
"__init__", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_7dtocean_6output_1__init__, METH_VARARGS|METH_KEYWORDS, 0};
12061 static PyObject *__pyx_pw_7dtocean_6output_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12062 PyObject *__pyx_v_self = 0;
12063 PyObject *__pyx_v_out_filepath = 0;
12064 PyObject *__pyx_v_ydim = 0;
12065 PyObject *__pyx_v_xdim = 0;
12066 int __pyx_lineno = 0;
12067 const char *__pyx_filename =
NULL;
12068 int __pyx_clineno = 0;
12069 PyObject *__pyx_r = 0;
12070 __Pyx_RefNannyDeclarations
12071 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
12073 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_out_filepath,&__pyx_n_s_ydim,&__pyx_n_s_xdim,0};
12074 PyObject*
values[4] = {0,0,0,0};
12075 if (unlikely(__pyx_kwds)) {
12076 Py_ssize_t kw_args;
12077 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12078 switch (pos_args) {
12079 case 4:
values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12080 CYTHON_FALLTHROUGH;
12081 case 3:
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12082 CYTHON_FALLTHROUGH;
12083 case 2:
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12084 CYTHON_FALLTHROUGH;
12085 case 1:
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12086 CYTHON_FALLTHROUGH;
12088 default:
goto __pyx_L5_argtuple_error;
12090 kw_args = PyDict_Size(__pyx_kwds);
12091 switch (pos_args) {
12093 if (likely((
values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
12094 else goto __pyx_L5_argtuple_error;
12095 CYTHON_FALLTHROUGH;
12097 if (likely((
values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_out_filepath)) != 0)) kw_args--;
12099 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 4, 4, 1); __PYX_ERR(0, 272, __pyx_L3_error)
12101 CYTHON_FALLTHROUGH;
12103 if (likely((
values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ydim)) != 0)) kw_args--;
12105 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 4, 4, 2); __PYX_ERR(0, 272, __pyx_L3_error)
12107 CYTHON_FALLTHROUGH;
12109 if (likely((
values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xdim)) != 0)) kw_args--;
12111 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 4, 4, 3); __PYX_ERR(0, 272, __pyx_L3_error)
12114 if (unlikely(kw_args > 0)) {
12115 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0,
values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 272, __pyx_L3_error)
12117 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
12118 goto __pyx_L5_argtuple_error;
12120 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12121 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12122 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12123 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12125 __pyx_v_self =
values[0];
12126 __pyx_v_out_filepath =
values[1];
12127 __pyx_v_ydim =
values[2];
12128 __pyx_v_xdim =
values[3];
12130 goto __pyx_L4_argument_unpacking_done;
12131 __pyx_L5_argtuple_error:;
12132 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 272, __pyx_L3_error)
12134 __Pyx_AddTraceback(
"dtocean.output.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
12135 __Pyx_RefNannyFinishContext();
12137 __pyx_L4_argument_unpacking_done:;
12138 __pyx_r = __pyx_pf_7dtocean_6output___init__(__pyx_self, __pyx_v_self, __pyx_v_out_filepath, __pyx_v_ydim, __pyx_v_xdim);
12141 __Pyx_RefNannyFinishContext();
12145 static PyObject *__pyx_pf_7dtocean_6output___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_out_filepath, PyObject *__pyx_v_ydim, PyObject *__pyx_v_xdim) {
12146 PyObject *__pyx_v_inst =
NULL;
12147 PyObject *__pyx_r =
NULL;
12148 __Pyx_RefNannyDeclarations
12149 PyObject *__pyx_t_1 =
NULL;
12150 PyObject *__pyx_t_2 =
NULL;
12151 PyObject *__pyx_t_3 =
NULL;
12152 PyObject *__pyx_t_4 =
NULL;
12153 PyObject *__pyx_t_5 =
NULL;
12154 PyObject *__pyx_t_6 =
NULL;
12155 PyObject *__pyx_t_7 =
NULL;
12156 PyObject *__pyx_t_8 =
NULL;
12158 PyObject *__pyx_t_10 =
NULL;
12160 char const *__pyx_t_12;
12161 PyObject *__pyx_t_13 =
NULL;
12162 PyObject *__pyx_t_14 =
NULL;
12163 PyObject *__pyx_t_15 =
NULL;
12164 PyObject *__pyx_t_16 =
NULL;
12165 PyObject *__pyx_t_17 =
NULL;
12166 PyObject *__pyx_t_18 =
NULL;
12167 int __pyx_lineno = 0;
12168 const char *__pyx_filename =
NULL;
12169 int __pyx_clineno = 0;
12170 __Pyx_RefNannySetupContext(
"__init__", 0);
12179 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ofile, __pyx_v_out_filepath) < 0) __PYX_ERR(0, 273, __pyx_L1_error)
12188 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ydim, __pyx_v_ydim) < 0) __PYX_ERR(0, 274, __pyx_L1_error)
12197 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_xdim, __pyx_v_xdim) < 0) __PYX_ERR(0, 275, __pyx_L1_error)
12207 __Pyx_PyThreadState_declare
12208 __Pyx_PyThreadState_assign
12209 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
12210 __Pyx_XGOTREF(__pyx_t_1);
12211 __Pyx_XGOTREF(__pyx_t_2);
12212 __Pyx_XGOTREF(__pyx_t_3);
12222 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_xr);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L3_error)
12223 __Pyx_GOTREF(__pyx_t_4);
12224 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 277, __pyx_L3_error)
12225 __Pyx_GOTREF(__pyx_t_5);
12226 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12227 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 277, __pyx_L3_error)
12228 __Pyx_GOTREF(__pyx_t_6);
12229 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 277, __pyx_L3_error)
12230 __Pyx_GOTREF(__pyx_t_7);
12231 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
12232 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_NWL);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 277, __pyx_L3_error)
12233 __Pyx_GOTREF(__pyx_t_6);
12234 __pyx_t_8 = PyTuple_New(3);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 277, __pyx_L3_error)
12235 __Pyx_GOTREF(__pyx_t_8);
12236 __Pyx_GIVEREF(__pyx_t_6);
12237 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6);
12238 __Pyx_INCREF(__pyx_v_ydim);
12239 __Pyx_GIVEREF(__pyx_v_ydim);
12240 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_ydim);
12241 __Pyx_INCREF(__pyx_v_xdim);
12242 __Pyx_GIVEREF(__pyx_v_xdim);
12243 PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_v_xdim);
12246 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
12247 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
12248 if (likely(__pyx_t_6)) {
12249 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
12250 __Pyx_INCREF(__pyx_t_6);
12251 __Pyx_INCREF(
function);
12252 __Pyx_DECREF_SET(__pyx_t_7,
function);
12255 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
12256 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12257 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12258 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L3_error)
12259 __Pyx_GOTREF(__pyx_t_4);
12260 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12261 __pyx_t_7 = PyTuple_New(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 277, __pyx_L3_error)
12262 __Pyx_GOTREF(__pyx_t_7);
12263 __Pyx_GIVEREF(__pyx_t_4);
12264 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
12266 __pyx_t_4 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L3_error)
12267 __Pyx_GOTREF(__pyx_t_4);
12268 if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dims, __pyx_tuple__18) < 0) __PYX_ERR(0, 277, __pyx_L3_error)
12269 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, __pyx_t_4);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 277, __pyx_L3_error)
12270 __Pyx_GOTREF(__pyx_t_8);
12271 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12272 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12273 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12274 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rfl, __pyx_t_8) < 0) __PYX_ERR(0, 277, __pyx_L3_error)
12275 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12284 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_xr);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 278, __pyx_L3_error)
12285 __Pyx_GOTREF(__pyx_t_8);
12286 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 278, __pyx_L3_error)
12287 __Pyx_GOTREF(__pyx_t_4);
12288 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12289 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 278, __pyx_L3_error)
12290 __Pyx_GOTREF(__pyx_t_7);
12291 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L3_error)
12292 __Pyx_GOTREF(__pyx_t_5);
12293 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12294 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 278, __pyx_L3_error)
12295 __Pyx_GOTREF(__pyx_t_7);
12296 __Pyx_INCREF(__pyx_v_ydim);
12297 __Pyx_GIVEREF(__pyx_v_ydim);
12298 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_ydim);
12299 __Pyx_INCREF(__pyx_v_xdim);
12300 __Pyx_GIVEREF(__pyx_v_xdim);
12301 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_xdim);
12303 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
12304 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
12305 if (likely(__pyx_t_6)) {
12306 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
12307 __Pyx_INCREF(__pyx_t_6);
12308 __Pyx_INCREF(
function);
12309 __Pyx_DECREF_SET(__pyx_t_5,
function);
12312 __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_7);
12313 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12314 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12315 if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 278, __pyx_L3_error)
12316 __Pyx_GOTREF(__pyx_t_8);
12317 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12318 __pyx_t_5 = PyTuple_New(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L3_error)
12319 __Pyx_GOTREF(__pyx_t_5);
12320 __Pyx_GIVEREF(__pyx_t_8);
12321 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_8);
12323 __pyx_t_8 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 278, __pyx_L3_error)
12324 __Pyx_GOTREF(__pyx_t_8);
12325 if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 278, __pyx_L3_error)
12326 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, __pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 278, __pyx_L3_error)
12327 __Pyx_GOTREF(__pyx_t_7);
12328 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12329 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12330 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12331 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_lat, __pyx_t_7) < 0) __PYX_ERR(0, 278, __pyx_L3_error)
12332 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12341 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 279, __pyx_L3_error)
12342 __Pyx_GOTREF(__pyx_t_7);
12343 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 279, __pyx_L3_error)
12344 __Pyx_GOTREF(__pyx_t_8);
12345 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12346 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 279, __pyx_L3_error)
12347 __Pyx_GOTREF(__pyx_t_5);
12348 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 279, __pyx_L3_error)
12349 __Pyx_GOTREF(__pyx_t_4);
12350 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12351 __pyx_t_5 = PyTuple_New(2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 279, __pyx_L3_error)
12352 __Pyx_GOTREF(__pyx_t_5);
12353 __Pyx_INCREF(__pyx_v_ydim);
12354 __Pyx_GIVEREF(__pyx_v_ydim);
12355 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_ydim);
12356 __Pyx_INCREF(__pyx_v_xdim);
12357 __Pyx_GIVEREF(__pyx_v_xdim);
12358 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_xdim);
12360 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
12361 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
12362 if (likely(__pyx_t_6)) {
12363 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
12364 __Pyx_INCREF(__pyx_t_6);
12365 __Pyx_INCREF(
function);
12366 __Pyx_DECREF_SET(__pyx_t_4,
function);
12369 __pyx_t_7 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5);
12370 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12371 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12372 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 279, __pyx_L3_error)
12373 __Pyx_GOTREF(__pyx_t_7);
12374 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12375 __pyx_t_4 = PyTuple_New(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 279, __pyx_L3_error)
12376 __Pyx_GOTREF(__pyx_t_4);
12377 __Pyx_GIVEREF(__pyx_t_7);
12378 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7);
12380 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 279, __pyx_L3_error)
12381 __Pyx_GOTREF(__pyx_t_7);
12382 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 279, __pyx_L3_error)
12383 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_4, __pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 279, __pyx_L3_error)
12384 __Pyx_GOTREF(__pyx_t_5);
12385 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12386 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12387 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12388 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_lon, __pyx_t_5) < 0) __PYX_ERR(0, 279, __pyx_L3_error)
12389 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12398 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_xr);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 280, __pyx_L3_error)
12399 __Pyx_GOTREF(__pyx_t_5);
12400 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 280, __pyx_L3_error)
12401 __Pyx_GOTREF(__pyx_t_7);
12402 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12403 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L3_error)
12404 __Pyx_GOTREF(__pyx_t_4);
12405 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 280, __pyx_L3_error)
12406 __Pyx_GOTREF(__pyx_t_8);
12407 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12408 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L3_error)
12409 __Pyx_GOTREF(__pyx_t_4);
12410 __Pyx_INCREF(__pyx_v_ydim);
12411 __Pyx_GIVEREF(__pyx_v_ydim);
12412 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_ydim);
12413 __Pyx_INCREF(__pyx_v_xdim);
12414 __Pyx_GIVEREF(__pyx_v_xdim);
12415 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_xdim);
12417 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
12418 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
12419 if (likely(__pyx_t_6)) {
12420 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
12421 __Pyx_INCREF(__pyx_t_6);
12422 __Pyx_INCREF(
function);
12423 __Pyx_DECREF_SET(__pyx_t_8,
function);
12426 __pyx_t_5 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4);
12427 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12428 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12429 if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 280, __pyx_L3_error)
12430 __Pyx_GOTREF(__pyx_t_5);
12431 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12432 __pyx_t_8 = PyTuple_New(1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 280, __pyx_L3_error)
12433 __Pyx_GOTREF(__pyx_t_8);
12434 __Pyx_GIVEREF(__pyx_t_5);
12435 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5);
12437 __pyx_t_5 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 280, __pyx_L3_error)
12438 __Pyx_GOTREF(__pyx_t_5);
12439 if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 280, __pyx_L3_error)
12440 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, __pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L3_error)
12441 __Pyx_GOTREF(__pyx_t_4);
12442 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12443 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12444 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12445 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_sza, __pyx_t_4) < 0) __PYX_ERR(0, 280, __pyx_L3_error)
12446 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12455 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_xr);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 281, __pyx_L3_error)
12456 __Pyx_GOTREF(__pyx_t_4);
12457 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 281, __pyx_L3_error)
12458 __Pyx_GOTREF(__pyx_t_5);
12459 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12460 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 281, __pyx_L3_error)
12461 __Pyx_GOTREF(__pyx_t_8);
12462 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 281, __pyx_L3_error)
12463 __Pyx_GOTREF(__pyx_t_7);
12464 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12465 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 281, __pyx_L3_error)
12466 __Pyx_GOTREF(__pyx_t_8);
12467 __Pyx_INCREF(__pyx_v_ydim);
12468 __Pyx_GIVEREF(__pyx_v_ydim);
12469 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_ydim);
12470 __Pyx_INCREF(__pyx_v_xdim);
12471 __Pyx_GIVEREF(__pyx_v_xdim);
12472 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_xdim);
12474 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
12475 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
12476 if (likely(__pyx_t_6)) {
12477 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
12478 __Pyx_INCREF(__pyx_t_6);
12479 __Pyx_INCREF(
function);
12480 __Pyx_DECREF_SET(__pyx_t_7,
function);
12483 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
12484 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12485 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12486 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 281, __pyx_L3_error)
12487 __Pyx_GOTREF(__pyx_t_4);
12488 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12489 __pyx_t_7 = PyTuple_New(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 281, __pyx_L3_error)
12490 __Pyx_GOTREF(__pyx_t_7);
12491 __Pyx_GIVEREF(__pyx_t_4);
12492 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
12494 __pyx_t_4 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 281, __pyx_L3_error)
12495 __Pyx_GOTREF(__pyx_t_4);
12496 if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 281, __pyx_L3_error)
12497 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, __pyx_t_4);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 281, __pyx_L3_error)
12498 __Pyx_GOTREF(__pyx_t_8);
12499 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12500 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12501 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12502 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_vza, __pyx_t_8) < 0) __PYX_ERR(0, 281, __pyx_L3_error)
12503 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12512 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_xr);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 282, __pyx_L3_error)
12513 __Pyx_GOTREF(__pyx_t_8);
12514 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 282, __pyx_L3_error)
12515 __Pyx_GOTREF(__pyx_t_4);
12516 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12517 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 282, __pyx_L3_error)
12518 __Pyx_GOTREF(__pyx_t_7);
12519 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 282, __pyx_L3_error)
12520 __Pyx_GOTREF(__pyx_t_5);
12521 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12522 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 282, __pyx_L3_error)
12523 __Pyx_GOTREF(__pyx_t_7);
12524 __Pyx_INCREF(__pyx_v_ydim);
12525 __Pyx_GIVEREF(__pyx_v_ydim);
12526 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_ydim);
12527 __Pyx_INCREF(__pyx_v_xdim);
12528 __Pyx_GIVEREF(__pyx_v_xdim);
12529 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_xdim);
12531 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
12532 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
12533 if (likely(__pyx_t_6)) {
12534 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
12535 __Pyx_INCREF(__pyx_t_6);
12536 __Pyx_INCREF(
function);
12537 __Pyx_DECREF_SET(__pyx_t_5,
function);
12540 __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_7);
12541 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12542 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12543 if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 282, __pyx_L3_error)
12544 __Pyx_GOTREF(__pyx_t_8);
12545 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12546 __pyx_t_5 = PyTuple_New(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 282, __pyx_L3_error)
12547 __Pyx_GOTREF(__pyx_t_5);
12548 __Pyx_GIVEREF(__pyx_t_8);
12549 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_8);
12551 __pyx_t_8 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 282, __pyx_L3_error)
12552 __Pyx_GOTREF(__pyx_t_8);
12553 if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 282, __pyx_L3_error)
12554 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, __pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 282, __pyx_L3_error)
12555 __Pyx_GOTREF(__pyx_t_7);
12556 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12557 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12558 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12559 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_raa, __pyx_t_7) < 0) __PYX_ERR(0, 282, __pyx_L3_error)
12560 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12569 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 283, __pyx_L3_error)
12570 __Pyx_GOTREF(__pyx_t_7);
12571 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 283, __pyx_L3_error)
12572 __Pyx_GOTREF(__pyx_t_8);
12573 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12574 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 283, __pyx_L3_error)
12575 __Pyx_GOTREF(__pyx_t_5);
12576 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 283, __pyx_L3_error)
12577 __Pyx_GOTREF(__pyx_t_4);
12578 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12579 __pyx_t_5 = PyTuple_New(2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 283, __pyx_L3_error)
12580 __Pyx_GOTREF(__pyx_t_5);
12581 __Pyx_INCREF(__pyx_v_ydim);
12582 __Pyx_GIVEREF(__pyx_v_ydim);
12583 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_ydim);
12584 __Pyx_INCREF(__pyx_v_xdim);
12585 __Pyx_GIVEREF(__pyx_v_xdim);
12586 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_xdim);
12588 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
12589 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
12590 if (likely(__pyx_t_6)) {
12591 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
12592 __Pyx_INCREF(__pyx_t_6);
12593 __Pyx_INCREF(
function);
12594 __Pyx_DECREF_SET(__pyx_t_4,
function);
12597 __pyx_t_7 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5);
12598 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12599 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12600 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 283, __pyx_L3_error)
12601 __Pyx_GOTREF(__pyx_t_7);
12602 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12603 __pyx_t_4 = PyTuple_New(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 283, __pyx_L3_error)
12604 __Pyx_GOTREF(__pyx_t_4);
12605 __Pyx_GIVEREF(__pyx_t_7);
12606 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7);
12608 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 283, __pyx_L3_error)
12609 __Pyx_GOTREF(__pyx_t_7);
12610 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 283, __pyx_L3_error)
12611 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_4, __pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 283, __pyx_L3_error)
12612 __Pyx_GOTREF(__pyx_t_5);
12613 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12614 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12615 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12616 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wnd, __pyx_t_5) < 0) __PYX_ERR(0, 283, __pyx_L3_error)
12617 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12626 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_xr);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L3_error)
12627 __Pyx_GOTREF(__pyx_t_5);
12628 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 284, __pyx_L3_error)
12629 __Pyx_GOTREF(__pyx_t_7);
12630 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12631 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L3_error)
12632 __Pyx_GOTREF(__pyx_t_4);
12633 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 284, __pyx_L3_error)
12634 __Pyx_GOTREF(__pyx_t_8);
12635 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12636 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L3_error)
12637 __Pyx_GOTREF(__pyx_t_4);
12638 __Pyx_INCREF(__pyx_v_ydim);
12639 __Pyx_GIVEREF(__pyx_v_ydim);
12640 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_ydim);
12641 __Pyx_INCREF(__pyx_v_xdim);
12642 __Pyx_GIVEREF(__pyx_v_xdim);
12643 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_xdim);
12645 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
12646 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
12647 if (likely(__pyx_t_6)) {
12648 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
12649 __Pyx_INCREF(__pyx_t_6);
12650 __Pyx_INCREF(
function);
12651 __Pyx_DECREF_SET(__pyx_t_8,
function);
12654 __pyx_t_5 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4);
12655 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12656 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12657 if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L3_error)
12658 __Pyx_GOTREF(__pyx_t_5);
12659 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12660 __pyx_t_8 = PyTuple_New(1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 284, __pyx_L3_error)
12661 __Pyx_GOTREF(__pyx_t_8);
12662 __Pyx_GIVEREF(__pyx_t_5);
12663 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5);
12665 __pyx_t_5 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L3_error)
12666 __Pyx_GOTREF(__pyx_t_5);
12667 if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 284, __pyx_L3_error)
12668 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, __pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L3_error)
12669 __Pyx_GOTREF(__pyx_t_4);
12670 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12671 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12672 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12673 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_aot, __pyx_t_4) < 0) __PYX_ERR(0, 284, __pyx_L3_error)
12674 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12683 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_xr);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 285, __pyx_L3_error)
12684 __Pyx_GOTREF(__pyx_t_4);
12685 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 285, __pyx_L3_error)
12686 __Pyx_GOTREF(__pyx_t_5);
12687 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12688 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 285, __pyx_L3_error)
12689 __Pyx_GOTREF(__pyx_t_8);
12690 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 285, __pyx_L3_error)
12691 __Pyx_GOTREF(__pyx_t_7);
12692 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12693 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 285, __pyx_L3_error)
12694 __Pyx_GOTREF(__pyx_t_8);
12695 __Pyx_INCREF(__pyx_v_ydim);
12696 __Pyx_GIVEREF(__pyx_v_ydim);
12697 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_ydim);
12698 __Pyx_INCREF(__pyx_v_xdim);
12699 __Pyx_GIVEREF(__pyx_v_xdim);
12700 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_xdim);
12702 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
12703 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
12704 if (likely(__pyx_t_6)) {
12705 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
12706 __Pyx_INCREF(__pyx_t_6);
12707 __Pyx_INCREF(
function);
12708 __Pyx_DECREF_SET(__pyx_t_7,
function);
12711 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
12712 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12713 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12714 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 285, __pyx_L3_error)
12715 __Pyx_GOTREF(__pyx_t_4);
12716 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12717 __pyx_t_7 = PyTuple_New(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 285, __pyx_L3_error)
12718 __Pyx_GOTREF(__pyx_t_7);
12719 __Pyx_GIVEREF(__pyx_t_4);
12720 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
12722 __pyx_t_4 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 285, __pyx_L3_error)
12723 __Pyx_GOTREF(__pyx_t_4);
12724 if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 285, __pyx_L3_error)
12725 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, __pyx_t_4);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 285, __pyx_L3_error)
12726 __Pyx_GOTREF(__pyx_t_8);
12727 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12728 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12729 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12730 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_fmf, __pyx_t_8) < 0) __PYX_ERR(0, 285, __pyx_L3_error)
12731 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12740 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_xr);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 286, __pyx_L3_error)
12741 __Pyx_GOTREF(__pyx_t_8);
12742 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 286, __pyx_L3_error)
12743 __Pyx_GOTREF(__pyx_t_4);
12744 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12745 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 286, __pyx_L3_error)
12746 __Pyx_GOTREF(__pyx_t_7);
12747 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 286, __pyx_L3_error)
12748 __Pyx_GOTREF(__pyx_t_5);
12749 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12750 __pyx_t_7 = PyTuple_New(2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 286, __pyx_L3_error)
12751 __Pyx_GOTREF(__pyx_t_7);
12752 __Pyx_INCREF(__pyx_v_ydim);
12753 __Pyx_GIVEREF(__pyx_v_ydim);
12754 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_ydim);
12755 __Pyx_INCREF(__pyx_v_xdim);
12756 __Pyx_GIVEREF(__pyx_v_xdim);
12757 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_xdim);
12759 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
12760 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
12761 if (likely(__pyx_t_6)) {
12762 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
12763 __Pyx_INCREF(__pyx_t_6);
12764 __Pyx_INCREF(
function);
12765 __Pyx_DECREF_SET(__pyx_t_5,
function);
12768 __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_7);
12769 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12770 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12771 if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 286, __pyx_L3_error)
12772 __Pyx_GOTREF(__pyx_t_8);
12773 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12774 __pyx_t_5 = PyTuple_New(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 286, __pyx_L3_error)
12775 __Pyx_GOTREF(__pyx_t_5);
12776 __Pyx_GIVEREF(__pyx_t_8);
12777 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_8);
12779 __pyx_t_8 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 286, __pyx_L3_error)
12780 __Pyx_GOTREF(__pyx_t_8);
12781 if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 286, __pyx_L3_error)
12782 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, __pyx_t_8);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 286, __pyx_L3_error)
12783 __Pyx_GOTREF(__pyx_t_7);
12784 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12785 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12786 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12787 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_sse, __pyx_t_7) < 0) __PYX_ERR(0, 286, __pyx_L3_error)
12788 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12797 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 287, __pyx_L3_error)
12798 __Pyx_GOTREF(__pyx_t_7);
12799 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_DataArray);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 287, __pyx_L3_error)
12800 __Pyx_GOTREF(__pyx_t_8);
12801 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12802 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L3_error)
12803 __Pyx_GOTREF(__pyx_t_5);
12804 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L3_error)
12805 __Pyx_GOTREF(__pyx_t_4);
12806 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12807 __pyx_t_5 = PyTuple_New(2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L3_error)
12808 __Pyx_GOTREF(__pyx_t_5);
12809 __Pyx_INCREF(__pyx_v_ydim);
12810 __Pyx_GIVEREF(__pyx_v_ydim);
12811 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_ydim);
12812 __Pyx_INCREF(__pyx_v_xdim);
12813 __Pyx_GIVEREF(__pyx_v_xdim);
12814 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_xdim);
12816 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
12817 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
12818 if (likely(__pyx_t_6)) {
12819 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
12820 __Pyx_INCREF(__pyx_t_6);
12821 __Pyx_INCREF(
function);
12822 __Pyx_DECREF_SET(__pyx_t_4,
function);
12825 __pyx_t_7 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5);
12826 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12827 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12828 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 287, __pyx_L3_error)
12829 __Pyx_GOTREF(__pyx_t_7);
12830 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12831 __pyx_t_4 = PyTuple_New(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 287, __pyx_L3_error)
12832 __Pyx_GOTREF(__pyx_t_4);
12833 __Pyx_GIVEREF(__pyx_t_7);
12834 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7);
12836 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 287, __pyx_L3_error)
12837 __Pyx_GOTREF(__pyx_t_7);
12838 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dims, __pyx_tuple__19) < 0) __PYX_ERR(0, 287, __pyx_L3_error)
12839 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_4, __pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L3_error)
12840 __Pyx_GOTREF(__pyx_t_5);
12841 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12842 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12843 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12844 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_type, __pyx_t_5) < 0) __PYX_ERR(0, 287, __pyx_L3_error)
12845 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12854 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_xr);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 288, __pyx_L3_error)
12855 __Pyx_GOTREF(__pyx_t_7);
12856 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Dataset);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 288, __pyx_L3_error)
12857 __Pyx_GOTREF(__pyx_t_4);
12858 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12859 __pyx_t_7 = __Pyx_PyDict_NewPresized(11);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 288, __pyx_L3_error)
12860 __Pyx_GOTREF(__pyx_t_7);
12861 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 288, __pyx_L3_error)
12862 __Pyx_GOTREF(__pyx_t_8);
12863 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_rfl, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12864 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12865 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_lat);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 288, __pyx_L3_error)
12866 __Pyx_GOTREF(__pyx_t_8);
12867 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_lat, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12868 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12869 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_lon);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 288, __pyx_L3_error)
12870 __Pyx_GOTREF(__pyx_t_8);
12871 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_lon, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12872 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12881 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sza);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 289, __pyx_L3_error)
12882 __Pyx_GOTREF(__pyx_t_8);
12883 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_sza, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12884 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12885 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_vza);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 289, __pyx_L3_error)
12886 __Pyx_GOTREF(__pyx_t_8);
12887 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_vza, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12888 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12889 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_raa);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 289, __pyx_L3_error)
12890 __Pyx_GOTREF(__pyx_t_8);
12891 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_raa, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12892 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12901 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_wnd);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 290, __pyx_L3_error)
12902 __Pyx_GOTREF(__pyx_t_8);
12903 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_wnd, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12904 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12905 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_aot);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 290, __pyx_L3_error)
12906 __Pyx_GOTREF(__pyx_t_8);
12907 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_aot, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12908 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12909 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fmf);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 290, __pyx_L3_error)
12910 __Pyx_GOTREF(__pyx_t_8);
12911 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_fmf, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12912 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12921 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_sse);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 291, __pyx_L3_error)
12922 __Pyx_GOTREF(__pyx_t_8);
12923 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_sse, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12924 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12925 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_type);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 291, __pyx_L3_error)
12926 __Pyx_GOTREF(__pyx_t_8);
12927 if (PyDict_SetItem(__pyx_t_7, __pyx_n_u_type, __pyx_t_8) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12928 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12930 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
12931 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4);
12932 if (likely(__pyx_t_8)) {
12933 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
12934 __Pyx_INCREF(__pyx_t_8);
12935 __Pyx_INCREF(
function);
12936 __Pyx_DECREF_SET(__pyx_t_4,
function);
12939 __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7);
12940 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
12941 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
12942 if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 288, __pyx_L3_error)
12943 __Pyx_GOTREF(__pyx_t_5);
12944 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12953 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ds, __pyx_t_5) < 0) __PYX_ERR(0, 288, __pyx_L3_error)
12954 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12964 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
12965 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
12966 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12967 goto __pyx_L8_try_end;
12969 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
12970 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
12971 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
12972 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
12973 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
12982 __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
12984 __Pyx_AddTraceback(
"dtocean.output.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
12985 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_7) < 0) __PYX_ERR(0, 292, __pyx_L5_except_error)
12986 __Pyx_GOTREF(__pyx_t_5);
12987 __Pyx_GOTREF(__pyx_t_4);
12988 __Pyx_GOTREF(__pyx_t_7);
12989 __Pyx_INCREF(__pyx_t_4);
12990 __pyx_v_inst = __pyx_t_4;
13000 __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, ((PyObject *)Py_TYPE(__pyx_v_inst)));
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 293, __pyx_L14_error)
13001 __Pyx_GOTREF(__pyx_t_8);
13002 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13011 __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_v_inst);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 294, __pyx_L14_error)
13012 __Pyx_GOTREF(__pyx_t_8);
13013 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13022 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__20,
NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 295, __pyx_L14_error)
13023 __Pyx_GOTREF(__pyx_t_8);
13024 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13033 __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_sys);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 296, __pyx_L14_error)
13034 __Pyx_GOTREF(__pyx_t_6);
13035 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_exit);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 296, __pyx_L14_error)
13036 __Pyx_GOTREF(__pyx_t_10);
13037 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
13039 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) {
13040 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_10);
13041 if (likely(__pyx_t_6)) {
13042 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_10);
13043 __Pyx_INCREF(__pyx_t_6);
13044 __Pyx_INCREF(
function);
13045 __Pyx_DECREF_SET(__pyx_t_10,
function);
13048 __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_10);
13049 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
13050 if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 296, __pyx_L14_error)
13051 __Pyx_GOTREF(__pyx_t_8);
13052 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
13053 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13065 __Pyx_DECREF(__pyx_v_inst);
13066 __pyx_v_inst =
NULL;
13071 __Pyx_PyThreadState_declare
13072 __Pyx_PyThreadState_assign
13073 __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
13074 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
13075 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
13076 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
13077 if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
13078 if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
13079 __Pyx_XGOTREF(__pyx_t_13);
13080 __Pyx_XGOTREF(__pyx_t_14);
13081 __Pyx_XGOTREF(__pyx_t_15);
13082 __Pyx_XGOTREF(__pyx_t_16);
13083 __Pyx_XGOTREF(__pyx_t_17);
13084 __Pyx_XGOTREF(__pyx_t_18);
13085 __pyx_t_9 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
13087 __Pyx_DECREF(__pyx_v_inst);
13088 __pyx_v_inst =
NULL;
13090 if (PY_MAJOR_VERSION >= 3) {
13091 __Pyx_XGIVEREF(__pyx_t_16);
13092 __Pyx_XGIVEREF(__pyx_t_17);
13093 __Pyx_XGIVEREF(__pyx_t_18);
13094 __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
13096 __Pyx_XGIVEREF(__pyx_t_13);
13097 __Pyx_XGIVEREF(__pyx_t_14);
13098 __Pyx_XGIVEREF(__pyx_t_15);
13099 __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15);
13100 __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
13101 __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_12;
13102 goto __pyx_L5_except_error;
13106 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
13107 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
13108 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
13109 goto __pyx_L4_exception_handled;
13111 goto __pyx_L5_except_error;
13112 __pyx_L5_except_error:;
13121 __Pyx_XGIVEREF(__pyx_t_1);
13122 __Pyx_XGIVEREF(__pyx_t_2);
13123 __Pyx_XGIVEREF(__pyx_t_3);
13124 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
13125 goto __pyx_L1_error;
13126 __pyx_L4_exception_handled:;
13127 __Pyx_XGIVEREF(__pyx_t_1);
13128 __Pyx_XGIVEREF(__pyx_t_2);
13129 __Pyx_XGIVEREF(__pyx_t_3);
13130 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
13143 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13146 __Pyx_XDECREF(__pyx_t_4);
13147 __Pyx_XDECREF(__pyx_t_5);
13148 __Pyx_XDECREF(__pyx_t_6);
13149 __Pyx_XDECREF(__pyx_t_7);
13150 __Pyx_XDECREF(__pyx_t_8);
13151 __Pyx_XDECREF(__pyx_t_10);
13152 __Pyx_AddTraceback(
"dtocean.output.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13155 __Pyx_XDECREF(__pyx_v_inst);
13156 __Pyx_XGIVEREF(__pyx_r);
13157 __Pyx_RefNannyFinishContext();
13170 static PyObject *__pyx_pw_7dtocean_6output_3write(PyObject *__pyx_self, PyObject *__pyx_v_self);
13171 static PyMethodDef __pyx_mdef_7dtocean_6output_3write = {
"write", (PyCFunction)__pyx_pw_7dtocean_6output_3write, METH_O, 0};
13172 static PyObject *__pyx_pw_7dtocean_6output_3write(PyObject *__pyx_self, PyObject *__pyx_v_self) {
13173 PyObject *__pyx_r = 0;
13174 __Pyx_RefNannyDeclarations
13175 __Pyx_RefNannySetupContext(
"write (wrapper)", 0);
13176 __pyx_r = __pyx_pf_7dtocean_6output_2write(__pyx_self, ((PyObject *)__pyx_v_self));
13179 __Pyx_RefNannyFinishContext();
13183 static PyObject *__pyx_pf_7dtocean_6output_2write(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
13184 PyObject *__pyx_r =
NULL;
13185 __Pyx_RefNannyDeclarations
13186 PyObject *__pyx_t_1 =
NULL;
13187 PyObject *__pyx_t_2 =
NULL;
13188 PyObject *__pyx_t_3 =
NULL;
13189 PyObject *__pyx_t_4 =
NULL;
13190 int __pyx_lineno = 0;
13191 const char *__pyx_filename =
NULL;
13192 int __pyx_clineno = 0;
13193 __Pyx_RefNannySetupContext(
"write", 0);
13202 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ofile);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error)
13203 __Pyx_GOTREF(__pyx_t_1);
13204 __pyx_t_2 = PyNumber_Add(__pyx_kp_u_Writing_to_file, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error)
13205 __Pyx_GOTREF(__pyx_t_2);
13206 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13207 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error)
13208 __Pyx_GOTREF(__pyx_t_1);
13209 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13210 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13219 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ds);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L1_error)
13220 __Pyx_GOTREF(__pyx_t_2);
13221 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_to_netcdf);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 300, __pyx_L1_error)
13222 __Pyx_GOTREF(__pyx_t_3);
13223 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13224 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ofile);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L1_error)
13225 __Pyx_GOTREF(__pyx_t_2);
13227 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
13228 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
13229 if (likely(__pyx_t_4)) {
13230 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
13231 __Pyx_INCREF(__pyx_t_4);
13232 __Pyx_INCREF(
function);
13233 __Pyx_DECREF_SET(__pyx_t_3,
function);
13236 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
13237 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
13238 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13239 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error)
13240 __Pyx_GOTREF(__pyx_t_1);
13241 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13242 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13253 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13256 __Pyx_XDECREF(__pyx_t_1);
13257 __Pyx_XDECREF(__pyx_t_2);
13258 __Pyx_XDECREF(__pyx_t_3);
13259 __Pyx_XDECREF(__pyx_t_4);
13260 __Pyx_AddTraceback(
"dtocean.output.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
13263 __Pyx_XGIVEREF(__pyx_r);
13264 __Pyx_RefNannyFinishContext();
13277 static PyObject *__pyx_pw_7dtocean_1main(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused);
13278 static PyMethodDef __pyx_mdef_7dtocean_1main = {
"main", (PyCFunction)__pyx_pw_7dtocean_1main, METH_NOARGS, 0};
13279 static PyObject *__pyx_pw_7dtocean_1main(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
13280 PyObject *__pyx_r = 0;
13281 __Pyx_RefNannyDeclarations
13282 __Pyx_RefNannySetupContext(
"main (wrapper)", 0);
13283 __pyx_r = __pyx_pf_7dtocean_main(__pyx_self);
13286 __Pyx_RefNannyFinishContext();
13290 static PyObject *__pyx_pf_7dtocean_main(CYTHON_UNUSED PyObject *__pyx_self) {
13291 PyObject *__pyx_v_parser =
NULL;
13292 PyObject *__pyx_v_args =
NULL;
13293 PyObject *__pyx_v_vin =
NULL;
13294 PyObject *__pyx_v_vout =
NULL;
13295 PyObject *__pyx_v_dto =
NULL;
13296 PyObject *__pyx_v_iy =
NULL;
13297 PyObject *__pyx_v_ix =
NULL;
13298 PyObject *__pyx_v_fmf =
NULL;
13299 PyObject *__pyx_v_aot =
NULL;
13300 PyObject *__pyx_v_sse =
NULL;
13301 PyObject *__pyx_v_type =
NULL;
13302 PyObject *__pyx_r =
NULL;
13303 __Pyx_RefNannyDeclarations
13304 PyObject *__pyx_t_1 =
NULL;
13305 PyObject *__pyx_t_2 =
NULL;
13306 PyObject *__pyx_t_3 =
NULL;
13307 PyObject *__pyx_t_4 =
NULL;
13308 PyObject *__pyx_t_5 =
NULL;
13309 PyObject *__pyx_t_6 =
NULL;
13311 PyObject *__pyx_t_8 =
NULL;
13312 Py_ssize_t __pyx_t_9;
13313 PyObject *(*__pyx_t_10)(PyObject *);
13314 Py_ssize_t __pyx_t_11;
13315 PyObject *(*__pyx_t_12)(PyObject *);
13317 PyObject *__pyx_t_14 =
NULL;
13318 PyObject *__pyx_t_15 =
NULL;
13319 PyObject *__pyx_t_16 =
NULL;
13320 PyObject *__pyx_t_17 =
NULL;
13321 PyObject *(*__pyx_t_18)(PyObject *);
13322 int __pyx_lineno = 0;
13323 const char *__pyx_filename =
NULL;
13324 int __pyx_clineno = 0;
13325 __Pyx_RefNannySetupContext(
"main", 0);
13334 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_argparse);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 304, __pyx_L1_error)
13335 __Pyx_GOTREF(__pyx_t_2);
13336 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ArgumentParser);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 304, __pyx_L1_error)
13337 __Pyx_GOTREF(__pyx_t_3);
13338 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13340 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
13341 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
13342 if (likely(__pyx_t_2)) {
13343 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
13344 __Pyx_INCREF(__pyx_t_2);
13345 __Pyx_INCREF(
function);
13346 __Pyx_DECREF_SET(__pyx_t_3,
function);
13349 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
13350 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
13351 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error)
13352 __Pyx_GOTREF(__pyx_t_1);
13353 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13354 __pyx_v_parser = __pyx_t_1;
13364 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 305, __pyx_L1_error)
13365 __Pyx_GOTREF(__pyx_t_1);
13366 __pyx_t_3 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 305, __pyx_L1_error)
13367 __Pyx_GOTREF(__pyx_t_3);
13368 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_argparse);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 305, __pyx_L1_error)
13369 __Pyx_GOTREF(__pyx_t_4);
13370 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_FileType);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 305, __pyx_L1_error)
13371 __Pyx_GOTREF(__pyx_t_5);
13372 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13374 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
13375 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
13376 if (likely(__pyx_t_4)) {
13377 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
13378 __Pyx_INCREF(__pyx_t_4);
13379 __Pyx_INCREF(
function);
13380 __Pyx_DECREF_SET(__pyx_t_5,
function);
13383 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_n_u_r) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_u_r);
13384 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
13385 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 305, __pyx_L1_error)
13386 __Pyx_GOTREF(__pyx_t_2);
13387 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13388 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_t_2) < 0) __PYX_ERR(0, 305, __pyx_L1_error)
13389 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13390 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_input_file) < 0) __PYX_ERR(0, 305, __pyx_L1_error)
13399 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_required, Py_True) < 0) __PYX_ERR(0, 305, __pyx_L1_error)
13408 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__21, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 305, __pyx_L1_error)
13409 __Pyx_GOTREF(__pyx_t_2);
13410 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13411 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13412 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13421 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 307, __pyx_L1_error)
13422 __Pyx_GOTREF(__pyx_t_2);
13423 __pyx_t_3 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 307, __pyx_L1_error)
13424 __Pyx_GOTREF(__pyx_t_3);
13425 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_argparse);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 307, __pyx_L1_error)
13426 __Pyx_GOTREF(__pyx_t_5);
13427 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_FileType);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 307, __pyx_L1_error)
13428 __Pyx_GOTREF(__pyx_t_4);
13429 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13431 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
13432 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
13433 if (likely(__pyx_t_5)) {
13434 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
13435 __Pyx_INCREF(__pyx_t_5);
13436 __Pyx_INCREF(
function);
13437 __Pyx_DECREF_SET(__pyx_t_4,
function);
13440 __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_n_u_w) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_w);
13441 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
13442 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
13443 __Pyx_GOTREF(__pyx_t_1);
13444 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13445 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_t_1) < 0) __PYX_ERR(0, 307, __pyx_L1_error)
13446 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13447 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_output_file) < 0) __PYX_ERR(0, 307, __pyx_L1_error)
13456 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_required, Py_False) < 0) __PYX_ERR(0, 307, __pyx_L1_error)
13465 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__22, __pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
13466 __Pyx_GOTREF(__pyx_t_1);
13467 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13468 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13469 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13478 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error)
13479 __Pyx_GOTREF(__pyx_t_1);
13480 __pyx_t_3 = __Pyx_PyDict_NewPresized(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 309, __pyx_L1_error)
13481 __Pyx_GOTREF(__pyx_t_3);
13482 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_argparse);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 309, __pyx_L1_error)
13483 __Pyx_GOTREF(__pyx_t_4);
13484 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_FileType);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 309, __pyx_L1_error)
13485 __Pyx_GOTREF(__pyx_t_5);
13486 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13488 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
13489 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
13490 if (likely(__pyx_t_4)) {
13491 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
13492 __Pyx_INCREF(__pyx_t_4);
13493 __Pyx_INCREF(
function);
13494 __Pyx_DECREF_SET(__pyx_t_5,
function);
13497 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_n_u_r) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_u_r);
13498 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
13499 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 309, __pyx_L1_error)
13500 __Pyx_GOTREF(__pyx_t_2);
13501 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13502 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_t_2) < 0) __PYX_ERR(0, 309, __pyx_L1_error)
13503 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13504 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_lookup_table_file) < 0) __PYX_ERR(0, 309, __pyx_L1_error)
13513 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_required, Py_True) < 0) __PYX_ERR(0, 309, __pyx_L1_error)
13522 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__23, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 309, __pyx_L1_error)
13523 __Pyx_GOTREF(__pyx_t_2);
13524 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13525 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13526 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13535 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L1_error)
13536 __Pyx_GOTREF(__pyx_t_2);
13537 __pyx_t_3 = __Pyx_PyDict_NewPresized(4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L1_error)
13538 __Pyx_GOTREF(__pyx_t_3);
13539 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, ((PyObject*)&PyBool_Type)) < 0) __PYX_ERR(0, 311, __pyx_L1_error)
13540 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_default, Py_False) < 0) __PYX_ERR(0, 311, __pyx_L1_error)
13541 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_plot_pixel_data) < 0) __PYX_ERR(0, 311, __pyx_L1_error)
13550 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_required, Py_False) < 0) __PYX_ERR(0, 311, __pyx_L1_error)
13559 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__24, __pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L1_error)
13560 __Pyx_GOTREF(__pyx_t_1);
13561 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13562 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13563 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13572 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 313, __pyx_L1_error)
13573 __Pyx_GOTREF(__pyx_t_1);
13574 __pyx_t_3 = __Pyx_PyDict_NewPresized(4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 313, __pyx_L1_error)
13575 __Pyx_GOTREF(__pyx_t_3);
13576 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, ((PyObject *)(&PyInt_Type))) < 0) __PYX_ERR(0, 313, __pyx_L1_error)
13577 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_default, __pyx_int_0) < 0) __PYX_ERR(0, 313, __pyx_L1_error)
13578 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_mode_option) < 0) __PYX_ERR(0, 313, __pyx_L1_error)
13587 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_required, Py_False) < 0) __PYX_ERR(0, 313, __pyx_L1_error)
13596 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__25, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 313, __pyx_L1_error)
13597 __Pyx_GOTREF(__pyx_t_2);
13598 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13599 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13600 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13609 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 315, __pyx_L1_error)
13610 __Pyx_GOTREF(__pyx_t_2);
13611 __pyx_t_3 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 315, __pyx_L1_error)
13612 __Pyx_GOTREF(__pyx_t_3);
13613 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, ((PyObject *)(&PyInt_Type))) < 0) __PYX_ERR(0, 315, __pyx_L1_error)
13614 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_start_line) < 0) __PYX_ERR(0, 315, __pyx_L1_error)
13615 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__26, __pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 315, __pyx_L1_error)
13616 __Pyx_GOTREF(__pyx_t_1);
13617 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13618 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13619 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13628 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 316, __pyx_L1_error)
13629 __Pyx_GOTREF(__pyx_t_1);
13630 __pyx_t_3 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 316, __pyx_L1_error)
13631 __Pyx_GOTREF(__pyx_t_3);
13632 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, ((PyObject *)(&PyInt_Type))) < 0) __PYX_ERR(0, 316, __pyx_L1_error)
13633 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_start_pixel) < 0) __PYX_ERR(0, 316, __pyx_L1_error)
13634 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__27, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L1_error)
13635 __Pyx_GOTREF(__pyx_t_2);
13636 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13637 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13638 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13647 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_add_argument);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 317, __pyx_L1_error)
13648 __Pyx_GOTREF(__pyx_t_2);
13649 __pyx_t_3 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 317, __pyx_L1_error)
13650 __Pyx_GOTREF(__pyx_t_3);
13651 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, ((PyObject *)(&PyInt_Type))) < 0) __PYX_ERR(0, 317, __pyx_L1_error)
13652 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_help, __pyx_kp_u_square_side) < 0) __PYX_ERR(0, 317, __pyx_L1_error)
13653 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__28, __pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 317, __pyx_L1_error)
13654 __Pyx_GOTREF(__pyx_t_1);
13655 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13656 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13657 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13666 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_parse_args);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 319, __pyx_L1_error)
13667 __Pyx_GOTREF(__pyx_t_3);
13669 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
13670 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
13671 if (likely(__pyx_t_2)) {
13672 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
13673 __Pyx_INCREF(__pyx_t_2);
13674 __Pyx_INCREF(
function);
13675 __Pyx_DECREF_SET(__pyx_t_3,
function);
13678 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
13679 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
13680 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 319, __pyx_L1_error)
13681 __Pyx_GOTREF(__pyx_t_1);
13682 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13683 __pyx_v_args = __pyx_t_1;
13693 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_input);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 320, __pyx_L1_error)
13694 __Pyx_GOTREF(__pyx_t_3);
13695 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_ifile);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 320, __pyx_L1_error)
13696 __Pyx_GOTREF(__pyx_t_2);
13697 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 320, __pyx_L1_error)
13698 __Pyx_GOTREF(__pyx_t_5);
13699 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13701 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
13702 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
13703 if (likely(__pyx_t_2)) {
13704 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
13705 __Pyx_INCREF(__pyx_t_2);
13706 __Pyx_INCREF(
function);
13707 __Pyx_DECREF_SET(__pyx_t_3,
function);
13710 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5);
13711 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
13712 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13713 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 320, __pyx_L1_error)
13714 __Pyx_GOTREF(__pyx_t_1);
13715 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13716 __pyx_v_vin = __pyx_t_1;
13726 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_output);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 321, __pyx_L1_error)
13727 __Pyx_GOTREF(__pyx_t_3);
13728 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_ofile);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 321, __pyx_L1_error)
13729 __Pyx_GOTREF(__pyx_t_5);
13730 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_name);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
13731 __Pyx_GOTREF(__pyx_t_2);
13732 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13733 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_z);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 321, __pyx_L1_error)
13734 __Pyx_GOTREF(__pyx_t_5);
13735 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_z);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 321, __pyx_L1_error)
13736 __Pyx_GOTREF(__pyx_t_4);
13739 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
13740 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
13741 if (likely(__pyx_t_6)) {
13742 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
13743 __Pyx_INCREF(__pyx_t_6);
13744 __Pyx_INCREF(
function);
13745 __Pyx_DECREF_SET(__pyx_t_3,
function);
13749 #if CYTHON_FAST_PYCALL
13750 if (PyFunction_Check(__pyx_t_3)) {
13751 PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_2, __pyx_t_5, __pyx_t_4};
13752 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 321, __pyx_L1_error)
13753 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
13754 __Pyx_GOTREF(__pyx_t_1);
13755 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13756 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13757 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13760 #if CYTHON_FAST_PYCCALL
13761 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
13762 PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_2, __pyx_t_5, __pyx_t_4};
13763 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 321, __pyx_L1_error)
13764 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
13765 __Pyx_GOTREF(__pyx_t_1);
13766 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13767 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13768 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13772 __pyx_t_8 = PyTuple_New(3+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 321, __pyx_L1_error)
13773 __Pyx_GOTREF(__pyx_t_8);
13775 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 =
NULL;
13777 __Pyx_GIVEREF(__pyx_t_2);
13778 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2);
13779 __Pyx_GIVEREF(__pyx_t_5);
13780 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5);
13781 __Pyx_GIVEREF(__pyx_t_4);
13782 PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_4);
13786 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8,
NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 321, __pyx_L1_error)
13787 __Pyx_GOTREF(__pyx_t_1);
13788 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13790 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13791 __pyx_v_vout = __pyx_t_1;
13801 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_dtocean);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 322, __pyx_L1_error)
13802 __Pyx_GOTREF(__pyx_t_3);
13803 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_lut_2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 322, __pyx_L1_error)
13804 __Pyx_GOTREF(__pyx_t_8);
13805 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_name);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 322, __pyx_L1_error)
13806 __Pyx_GOTREF(__pyx_t_4);
13807 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13808 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_mode);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 322, __pyx_L1_error)
13809 __Pyx_GOTREF(__pyx_t_8);
13812 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
13813 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
13814 if (likely(__pyx_t_5)) {
13815 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
13816 __Pyx_INCREF(__pyx_t_5);
13817 __Pyx_INCREF(
function);
13818 __Pyx_DECREF_SET(__pyx_t_3,
function);
13822 #if CYTHON_FAST_PYCALL
13823 if (PyFunction_Check(__pyx_t_3)) {
13824 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
13825 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 322, __pyx_L1_error)
13826 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
13827 __Pyx_GOTREF(__pyx_t_1);
13828 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13829 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13832 #if CYTHON_FAST_PYCCALL
13833 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
13834 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
13835 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 322, __pyx_L1_error)
13836 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
13837 __Pyx_GOTREF(__pyx_t_1);
13838 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13839 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13843 __pyx_t_2 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 322, __pyx_L1_error)
13844 __Pyx_GOTREF(__pyx_t_2);
13846 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 =
NULL;
13848 __Pyx_GIVEREF(__pyx_t_4);
13849 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_7, __pyx_t_4);
13850 __Pyx_GIVEREF(__pyx_t_8);
13851 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_7, __pyx_t_8);
13854 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2,
NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 322, __pyx_L1_error)
13855 __Pyx_GOTREF(__pyx_t_1);
13856 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13858 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13859 __pyx_v_dto = __pyx_t_1;
13869 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Processing_mode_0, __pyx_n_s_format);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 324, __pyx_L1_error)
13870 __Pyx_GOTREF(__pyx_t_3);
13871 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_mode);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 324, __pyx_L1_error)
13872 __Pyx_GOTREF(__pyx_t_2);
13874 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
13875 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
13876 if (likely(__pyx_t_8)) {
13877 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
13878 __Pyx_INCREF(__pyx_t_8);
13879 __Pyx_INCREF(
function);
13880 __Pyx_DECREF_SET(__pyx_t_3,
function);
13883 __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_8, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
13884 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
13885 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13886 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 324, __pyx_L1_error)
13887 __Pyx_GOTREF(__pyx_t_1);
13888 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13889 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 324, __pyx_L1_error)
13890 __Pyx_GOTREF(__pyx_t_3);
13891 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13892 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13901 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 325, __pyx_L1_error)
13902 __Pyx_GOTREF(__pyx_t_3);
13903 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 325, __pyx_L1_error)
13904 __Pyx_GOTREF(__pyx_t_1);
13905 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_z);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 325, __pyx_L1_error)
13906 __Pyx_GOTREF(__pyx_t_2);
13907 __pyx_t_8 = PyNumber_Add(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 325, __pyx_L1_error)
13908 __Pyx_GOTREF(__pyx_t_8);
13909 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13910 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13911 __pyx_t_2 = PyTuple_New(2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 325, __pyx_L1_error)
13912 __Pyx_GOTREF(__pyx_t_2);
13913 __Pyx_GIVEREF(__pyx_t_3);
13914 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
13915 __Pyx_GIVEREF(__pyx_t_8);
13916 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_8);
13919 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_2,
NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 325, __pyx_L1_error)
13920 __Pyx_GOTREF(__pyx_t_8);
13921 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13922 if (likely(PyList_CheckExact(__pyx_t_8)) || PyTuple_CheckExact(__pyx_t_8)) {
13923 __pyx_t_2 = __pyx_t_8; __Pyx_INCREF(__pyx_t_2); __pyx_t_9 = 0;
13926 __pyx_t_9 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_8);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 325, __pyx_L1_error)
13927 __Pyx_GOTREF(__pyx_t_2);
13928 __pyx_t_10 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 325, __pyx_L1_error)
13930 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13932 if (likely(!__pyx_t_10)) {
13933 if (likely(PyList_CheckExact(__pyx_t_2))) {
13934 if (__pyx_t_9 >= PyList_GET_SIZE(__pyx_t_2))
break;
13935 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
13936 __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_8); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 325, __pyx_L1_error)
13938 __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 325, __pyx_L1_error)
13939 __Pyx_GOTREF(__pyx_t_8);
13942 if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
13943 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
13944 __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_8); __pyx_t_9++;
if (unlikely(0 < 0)) __PYX_ERR(0, 325, __pyx_L1_error)
13946 __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++;
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 325, __pyx_L1_error)
13947 __Pyx_GOTREF(__pyx_t_8);
13951 __pyx_t_8 = __pyx_t_10(__pyx_t_2);
13952 if (unlikely(!__pyx_t_8)) {
13953 PyObject* exc_type = PyErr_Occurred();
13955 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
13956 else __PYX_ERR(0, 325, __pyx_L1_error)
13960 __Pyx_GOTREF(__pyx_t_8);
13962 __Pyx_XDECREF_SET(__pyx_v_iy, __pyx_t_8);
13972 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 326, __pyx_L1_error)
13973 __Pyx_GOTREF(__pyx_t_8);
13974 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 326, __pyx_L1_error)
13975 __Pyx_GOTREF(__pyx_t_3);
13976 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_z);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 326, __pyx_L1_error)
13977 __Pyx_GOTREF(__pyx_t_1);
13978 __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 326, __pyx_L1_error)
13979 __Pyx_GOTREF(__pyx_t_4);
13980 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13981 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13982 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 326, __pyx_L1_error)
13983 __Pyx_GOTREF(__pyx_t_1);
13984 __Pyx_GIVEREF(__pyx_t_8);
13985 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8);
13986 __Pyx_GIVEREF(__pyx_t_4);
13987 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
13990 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_1,
NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 326, __pyx_L1_error)
13991 __Pyx_GOTREF(__pyx_t_4);
13992 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13993 if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
13994 __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1); __pyx_t_11 = 0;
13997 __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 326, __pyx_L1_error)
13998 __Pyx_GOTREF(__pyx_t_1);
13999 __pyx_t_12 = Py_TYPE(__pyx_t_1)->tp_iternext;
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 326, __pyx_L1_error)
14001 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
14003 if (likely(!__pyx_t_12)) {
14004 if (likely(PyList_CheckExact(__pyx_t_1))) {
14005 if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_1))
break;
14006 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
14007 __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_4); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 326, __pyx_L1_error)
14009 __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 326, __pyx_L1_error)
14010 __Pyx_GOTREF(__pyx_t_4);
14013 if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_1))
break;
14014 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
14015 __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11); __Pyx_INCREF(__pyx_t_4); __pyx_t_11++;
if (unlikely(0 < 0)) __PYX_ERR(0, 326, __pyx_L1_error)
14017 __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_11); __pyx_t_11++;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 326, __pyx_L1_error)
14018 __Pyx_GOTREF(__pyx_t_4);
14022 __pyx_t_4 = __pyx_t_12(__pyx_t_1);
14023 if (unlikely(!__pyx_t_4)) {
14024 PyObject* exc_type = PyErr_Occurred();
14026 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
14027 else __PYX_ERR(0, 326, __pyx_L1_error)
14031 __Pyx_GOTREF(__pyx_t_4);
14033 __Pyx_XDECREF_SET(__pyx_v_ix, __pyx_t_4);
14043 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_cld);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 328, __pyx_L1_error)
14044 __Pyx_GOTREF(__pyx_t_4);
14045 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 328, __pyx_L1_error)
14046 __Pyx_GOTREF(__pyx_t_8);
14047 __Pyx_INCREF(__pyx_v_iy);
14048 __Pyx_GIVEREF(__pyx_v_iy);
14049 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_iy);
14050 __Pyx_INCREF(__pyx_v_ix);
14051 __Pyx_GIVEREF(__pyx_v_ix);
14052 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_ix);
14053 __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 328, __pyx_L1_error)
14054 __Pyx_GOTREF(__pyx_t_3);
14055 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
14056 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14057 __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_13 < 0)) __PYX_ERR(0, 328, __pyx_L1_error)
14058 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14068 __pyx_t_3 = __pyx_float_neg_999_9;
14069 __Pyx_INCREF(__pyx_t_3);
14070 __pyx_t_8 = __pyx_float_neg_999_9;
14071 __Pyx_INCREF(__pyx_t_8);
14072 __pyx_t_4 = __pyx_float_neg_999_9;
14073 __Pyx_INCREF(__pyx_t_4);
14074 __pyx_t_5 = __pyx_int_neg_999;
14075 __Pyx_INCREF(__pyx_t_5);
14076 __Pyx_XDECREF_SET(__pyx_v_fmf, __pyx_t_3);
14078 __Pyx_XDECREF_SET(__pyx_v_aot, __pyx_t_8);
14080 __Pyx_XDECREF_SET(__pyx_v_sse, __pyx_t_4);
14082 __Pyx_XDECREF_SET(__pyx_v_type, __pyx_t_5);
14103 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_dto, __pyx_n_s_process);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 331, __pyx_L1_error)
14104 __Pyx_GOTREF(__pyx_t_4);
14105 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 331, __pyx_L1_error)
14106 __Pyx_GOTREF(__pyx_t_8);
14107 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 331, __pyx_L1_error)
14108 __Pyx_GOTREF(__pyx_t_3);
14109 __Pyx_INCREF(__pyx_v_iy);
14110 __Pyx_GIVEREF(__pyx_v_iy);
14111 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_iy);
14112 __Pyx_INCREF(__pyx_v_ix);
14113 __Pyx_GIVEREF(__pyx_v_ix);
14114 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ix);
14115 __Pyx_INCREF(__pyx_slice__4);
14116 __Pyx_GIVEREF(__pyx_slice__4);
14117 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_slice__4);
14118 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 331, __pyx_L1_error)
14119 __Pyx_GOTREF(__pyx_t_6);
14120 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14121 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14122 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_sza);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 331, __pyx_L1_error)
14123 __Pyx_GOTREF(__pyx_t_3);
14124 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 331, __pyx_L1_error)
14125 __Pyx_GOTREF(__pyx_t_8);
14126 __Pyx_INCREF(__pyx_v_iy);
14127 __Pyx_GIVEREF(__pyx_v_iy);
14128 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_iy);
14129 __Pyx_INCREF(__pyx_v_ix);
14130 __Pyx_GIVEREF(__pyx_v_ix);
14131 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_ix);
14132 __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 331, __pyx_L1_error)
14133 __Pyx_GOTREF(__pyx_t_14);
14134 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14135 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14144 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_vza);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 332, __pyx_L1_error)
14145 __Pyx_GOTREF(__pyx_t_8);
14146 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 332, __pyx_L1_error)
14147 __Pyx_GOTREF(__pyx_t_3);
14148 __Pyx_INCREF(__pyx_v_iy);
14149 __Pyx_GIVEREF(__pyx_v_iy);
14150 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_iy);
14151 __Pyx_INCREF(__pyx_v_ix);
14152 __Pyx_GIVEREF(__pyx_v_ix);
14153 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ix);
14154 __pyx_t_15 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_3);
if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 332, __pyx_L1_error)
14155 __Pyx_GOTREF(__pyx_t_15);
14156 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14157 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14158 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_raa);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 332, __pyx_L1_error)
14159 __Pyx_GOTREF(__pyx_t_3);
14160 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 332, __pyx_L1_error)
14161 __Pyx_GOTREF(__pyx_t_8);
14162 __Pyx_INCREF(__pyx_v_iy);
14163 __Pyx_GIVEREF(__pyx_v_iy);
14164 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_iy);
14165 __Pyx_INCREF(__pyx_v_ix);
14166 __Pyx_GIVEREF(__pyx_v_ix);
14167 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_ix);
14168 __pyx_t_16 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 332, __pyx_L1_error)
14169 __Pyx_GOTREF(__pyx_t_16);
14170 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14171 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14180 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_wnd);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 333, __pyx_L1_error)
14181 __Pyx_GOTREF(__pyx_t_8);
14182 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 333, __pyx_L1_error)
14183 __Pyx_GOTREF(__pyx_t_3);
14184 __Pyx_INCREF(__pyx_v_iy);
14185 __Pyx_GIVEREF(__pyx_v_iy);
14186 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_iy);
14187 __Pyx_INCREF(__pyx_v_ix);
14188 __Pyx_GIVEREF(__pyx_v_ix);
14189 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ix);
14190 __pyx_t_17 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_3);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 333, __pyx_L1_error)
14191 __Pyx_GOTREF(__pyx_t_17);
14192 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14193 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14196 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
14197 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
14198 if (likely(__pyx_t_3)) {
14199 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
14200 __Pyx_INCREF(__pyx_t_3);
14201 __Pyx_INCREF(
function);
14202 __Pyx_DECREF_SET(__pyx_t_4,
function);
14206 #if CYTHON_FAST_PYCALL
14207 if (PyFunction_Check(__pyx_t_4)) {
14208 PyObject *__pyx_temp[6] = {__pyx_t_3, __pyx_t_6, __pyx_t_14, __pyx_t_15, __pyx_t_16, __pyx_t_17};
14209 __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 331, __pyx_L1_error)
14210 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14211 __Pyx_GOTREF(__pyx_t_5);
14212 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
14213 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
14214 __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
14215 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14216 __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
14219 #if CYTHON_FAST_PYCCALL
14220 if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
14221 PyObject *__pyx_temp[6] = {__pyx_t_3, __pyx_t_6, __pyx_t_14, __pyx_t_15, __pyx_t_16, __pyx_t_17};
14222 __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 331, __pyx_L1_error)
14223 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14224 __Pyx_GOTREF(__pyx_t_5);
14225 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
14226 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
14227 __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
14228 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14229 __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
14233 __pyx_t_8 = PyTuple_New(5+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 331, __pyx_L1_error)
14234 __Pyx_GOTREF(__pyx_t_8);
14236 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3); __pyx_t_3 =
NULL;
14238 __Pyx_GIVEREF(__pyx_t_6);
14239 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_6);
14240 __Pyx_GIVEREF(__pyx_t_14);
14241 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_14);
14242 __Pyx_GIVEREF(__pyx_t_15);
14243 PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_15);
14244 __Pyx_GIVEREF(__pyx_t_16);
14245 PyTuple_SET_ITEM(__pyx_t_8, 3+__pyx_t_7, __pyx_t_16);
14246 __Pyx_GIVEREF(__pyx_t_17);
14247 PyTuple_SET_ITEM(__pyx_t_8, 4+__pyx_t_7, __pyx_t_17);
14253 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8,
NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 331, __pyx_L1_error)
14254 __Pyx_GOTREF(__pyx_t_5);
14255 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14257 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
14258 if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
14259 PyObject* sequence = __pyx_t_5;
14260 Py_ssize_t
size = __Pyx_PySequence_SIZE(sequence);
14261 if (unlikely(
size != 4)) {
14262 if (
size > 4) __Pyx_RaiseTooManyValuesError(4);
14263 else if (
size >= 0) __Pyx_RaiseNeedMoreValuesError(
size);
14264 __PYX_ERR(0, 331, __pyx_L1_error)
14266 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
14267 if (likely(PyTuple_CheckExact(sequence))) {
14268 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
14269 __pyx_t_8 = PyTuple_GET_ITEM(sequence, 1);
14270 __pyx_t_17 = PyTuple_GET_ITEM(sequence, 2);
14271 __pyx_t_16 = PyTuple_GET_ITEM(sequence, 3);
14273 __pyx_t_4 = PyList_GET_ITEM(sequence, 0);
14274 __pyx_t_8 = PyList_GET_ITEM(sequence, 1);
14275 __pyx_t_17 = PyList_GET_ITEM(sequence, 2);
14276 __pyx_t_16 = PyList_GET_ITEM(sequence, 3);
14278 __Pyx_INCREF(__pyx_t_4);
14279 __Pyx_INCREF(__pyx_t_8);
14280 __Pyx_INCREF(__pyx_t_17);
14281 __Pyx_INCREF(__pyx_t_16);
14285 PyObject** temps[4] = {&__pyx_t_4,&__pyx_t_8,&__pyx_t_17,&__pyx_t_16};
14286 for (
i=0;
i < 4;
i++) {
14287 PyObject*
item = PySequence_ITEM(sequence,
i);
if (unlikely(!
item)) __PYX_ERR(0, 331, __pyx_L1_error)
14288 __Pyx_GOTREF(
item);
14289 *(temps[
i]) =
item;
14293 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14295 Py_ssize_t
index = -1;
14296 PyObject** temps[4] = {&__pyx_t_4,&__pyx_t_8,&__pyx_t_17,&__pyx_t_16};
14297 __pyx_t_15 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 331, __pyx_L1_error)
14298 __Pyx_GOTREF(__pyx_t_15);
14299 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14300 __pyx_t_18 = Py_TYPE(__pyx_t_15)->tp_iternext;
14302 PyObject*
item = __pyx_t_18(__pyx_t_15);
if (unlikely(!
item))
goto __pyx_L8_unpacking_failed;
14303 __Pyx_GOTREF(
item);
14306 if (__Pyx_IternextUnpackEndCheck(__pyx_t_18(__pyx_t_15), 4) < 0) __PYX_ERR(0, 331, __pyx_L1_error)
14308 __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
14309 goto __pyx_L9_unpacking_done;
14310 __pyx_L8_unpacking_failed:;
14311 __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
14313 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(
index);
14314 __PYX_ERR(0, 331, __pyx_L1_error)
14315 __pyx_L9_unpacking_done:;
14325 __Pyx_XDECREF_SET(__pyx_v_fmf, __pyx_t_4);
14327 __Pyx_XDECREF_SET(__pyx_v_aot, __pyx_t_8);
14329 __Pyx_XDECREF_SET(__pyx_v_sse, __pyx_t_17);
14331 __Pyx_XDECREF_SET(__pyx_v_type, __pyx_t_16);
14341 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_plot);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 334, __pyx_L1_error)
14342 __Pyx_GOTREF(__pyx_t_5);
14343 __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_5);
if (unlikely(__pyx_t_13 < 0)) __PYX_ERR(0, 334, __pyx_L1_error)
14344 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14354 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_dto, __pyx_n_s_plot);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 335, __pyx_L1_error)
14355 __Pyx_GOTREF(__pyx_t_16);
14358 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_16))) {
14359 __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_16);
14360 if (likely(__pyx_t_17)) {
14361 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_16);
14362 __Pyx_INCREF(__pyx_t_17);
14363 __Pyx_INCREF(
function);
14364 __Pyx_DECREF_SET(__pyx_t_16,
function);
14368 #if CYTHON_FAST_PYCALL
14369 if (PyFunction_Check(__pyx_t_16)) {
14370 PyObject *__pyx_temp[3] = {__pyx_t_17, __pyx_v_iy, __pyx_v_ix};
14371 __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_16, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 335, __pyx_L1_error)
14372 __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
14373 __Pyx_GOTREF(__pyx_t_5);
14376 #if CYTHON_FAST_PYCCALL
14377 if (__Pyx_PyFastCFunction_Check(__pyx_t_16)) {
14378 PyObject *__pyx_temp[3] = {__pyx_t_17, __pyx_v_iy, __pyx_v_ix};
14379 __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_16, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 335, __pyx_L1_error)
14380 __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
14381 __Pyx_GOTREF(__pyx_t_5);
14385 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 335, __pyx_L1_error)
14386 __Pyx_GOTREF(__pyx_t_8);
14388 __Pyx_GIVEREF(__pyx_t_17); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_17); __pyx_t_17 =
NULL;
14390 __Pyx_INCREF(__pyx_v_iy);
14391 __Pyx_GIVEREF(__pyx_v_iy);
14392 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_v_iy);
14393 __Pyx_INCREF(__pyx_v_ix);
14394 __Pyx_GIVEREF(__pyx_v_ix);
14395 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_ix);
14396 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_16, __pyx_t_8,
NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 335, __pyx_L1_error)
14397 __Pyx_GOTREF(__pyx_t_5);
14398 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14400 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14401 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14421 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 337, __pyx_L1_error)
14422 __Pyx_GOTREF(__pyx_t_5);
14423 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 337, __pyx_L1_error)
14424 __Pyx_GOTREF(__pyx_t_16);
14425 __Pyx_INCREF(__pyx_v_iy);
14426 __Pyx_GIVEREF(__pyx_v_iy);
14427 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_v_iy);
14428 __Pyx_INCREF(__pyx_v_ix);
14429 __Pyx_GIVEREF(__pyx_v_ix);
14430 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_ix);
14431 __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_16);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 337, __pyx_L1_error)
14432 __Pyx_GOTREF(__pyx_t_8);
14433 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14434 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14435 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 337, __pyx_L1_error)
14436 __Pyx_GOTREF(__pyx_t_16);
14437 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_rfl);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 337, __pyx_L1_error)
14438 __Pyx_GOTREF(__pyx_t_5);
14439 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14440 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 337, __pyx_L1_error)
14441 __Pyx_GOTREF(__pyx_t_16);
14442 __pyx_t_17 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_16);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 337, __pyx_L1_error)
14443 __Pyx_GOTREF(__pyx_t_17);
14444 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14445 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 337, __pyx_L1_error)
14446 __Pyx_GOTREF(__pyx_t_16);
14447 __pyx_t_4 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_16);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 337, __pyx_L1_error)
14448 __Pyx_GOTREF(__pyx_t_4);
14449 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14450 __pyx_t_16 = PyTuple_New(3);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 337, __pyx_L1_error)
14451 __Pyx_GOTREF(__pyx_t_16);
14452 __Pyx_INCREF(__pyx_slice__4);
14453 __Pyx_GIVEREF(__pyx_slice__4);
14454 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_slice__4);
14455 __Pyx_GIVEREF(__pyx_t_17);
14456 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_17);
14457 __Pyx_GIVEREF(__pyx_t_4);
14458 PyTuple_SET_ITEM(__pyx_t_16, 2, __pyx_t_4);
14461 if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_t_16, __pyx_t_8) < 0)) __PYX_ERR(0, 337, __pyx_L1_error)
14462 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14463 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14464 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14473 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_lat);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 338, __pyx_L1_error)
14474 __Pyx_GOTREF(__pyx_t_8);
14475 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 338, __pyx_L1_error)
14476 __Pyx_GOTREF(__pyx_t_16);
14477 __Pyx_INCREF(__pyx_v_iy);
14478 __Pyx_GIVEREF(__pyx_v_iy);
14479 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_v_iy);
14480 __Pyx_INCREF(__pyx_v_ix);
14481 __Pyx_GIVEREF(__pyx_v_ix);
14482 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_ix);
14483 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_16);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 338, __pyx_L1_error)
14484 __Pyx_GOTREF(__pyx_t_5);
14485 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14486 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14487 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 338, __pyx_L1_error)
14488 __Pyx_GOTREF(__pyx_t_16);
14489 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_lat);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 338, __pyx_L1_error)
14490 __Pyx_GOTREF(__pyx_t_8);
14491 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14492 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 338, __pyx_L1_error)
14493 __Pyx_GOTREF(__pyx_t_16);
14494 __pyx_t_4 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_16);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 338, __pyx_L1_error)
14495 __Pyx_GOTREF(__pyx_t_4);
14496 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14497 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 338, __pyx_L1_error)
14498 __Pyx_GOTREF(__pyx_t_16);
14499 __pyx_t_17 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_16);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 338, __pyx_L1_error)
14500 __Pyx_GOTREF(__pyx_t_17);
14501 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14502 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 338, __pyx_L1_error)
14503 __Pyx_GOTREF(__pyx_t_16);
14504 __Pyx_GIVEREF(__pyx_t_4);
14505 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_4);
14506 __Pyx_GIVEREF(__pyx_t_17);
14507 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_17);
14510 if (unlikely(PyObject_SetItem(__pyx_t_8, __pyx_t_16, __pyx_t_5) < 0)) __PYX_ERR(0, 338, __pyx_L1_error)
14511 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14512 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14513 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14522 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_lon);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 339, __pyx_L1_error)
14523 __Pyx_GOTREF(__pyx_t_5);
14524 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 339, __pyx_L1_error)
14525 __Pyx_GOTREF(__pyx_t_16);
14526 __Pyx_INCREF(__pyx_v_iy);
14527 __Pyx_GIVEREF(__pyx_v_iy);
14528 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_v_iy);
14529 __Pyx_INCREF(__pyx_v_ix);
14530 __Pyx_GIVEREF(__pyx_v_ix);
14531 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_ix);
14532 __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_16);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 339, __pyx_L1_error)
14533 __Pyx_GOTREF(__pyx_t_8);
14534 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14535 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14536 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 339, __pyx_L1_error)
14537 __Pyx_GOTREF(__pyx_t_16);
14538 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_lon);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 339, __pyx_L1_error)
14539 __Pyx_GOTREF(__pyx_t_5);
14540 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14541 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 339, __pyx_L1_error)
14542 __Pyx_GOTREF(__pyx_t_16);
14543 __pyx_t_17 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_16);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 339, __pyx_L1_error)
14544 __Pyx_GOTREF(__pyx_t_17);
14545 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14546 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 339, __pyx_L1_error)
14547 __Pyx_GOTREF(__pyx_t_16);
14548 __pyx_t_4 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_16);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 339, __pyx_L1_error)
14549 __Pyx_GOTREF(__pyx_t_4);
14550 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14551 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 339, __pyx_L1_error)
14552 __Pyx_GOTREF(__pyx_t_16);
14553 __Pyx_GIVEREF(__pyx_t_17);
14554 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_17);
14555 __Pyx_GIVEREF(__pyx_t_4);
14556 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_4);
14559 if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_t_16, __pyx_t_8) < 0)) __PYX_ERR(0, 339, __pyx_L1_error)
14560 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14561 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14562 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14571 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_sza);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 340, __pyx_L1_error)
14572 __Pyx_GOTREF(__pyx_t_8);
14573 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 340, __pyx_L1_error)
14574 __Pyx_GOTREF(__pyx_t_16);
14575 __Pyx_INCREF(__pyx_v_iy);
14576 __Pyx_GIVEREF(__pyx_v_iy);
14577 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_v_iy);
14578 __Pyx_INCREF(__pyx_v_ix);
14579 __Pyx_GIVEREF(__pyx_v_ix);
14580 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_ix);
14581 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_16);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 340, __pyx_L1_error)
14582 __Pyx_GOTREF(__pyx_t_5);
14583 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14584 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14585 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 340, __pyx_L1_error)
14586 __Pyx_GOTREF(__pyx_t_16);
14587 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_sza);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 340, __pyx_L1_error)
14588 __Pyx_GOTREF(__pyx_t_8);
14589 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14590 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 340, __pyx_L1_error)
14591 __Pyx_GOTREF(__pyx_t_16);
14592 __pyx_t_4 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_16);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error)
14593 __Pyx_GOTREF(__pyx_t_4);
14594 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14595 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 340, __pyx_L1_error)
14596 __Pyx_GOTREF(__pyx_t_16);
14597 __pyx_t_17 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_16);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 340, __pyx_L1_error)
14598 __Pyx_GOTREF(__pyx_t_17);
14599 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14600 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 340, __pyx_L1_error)
14601 __Pyx_GOTREF(__pyx_t_16);
14602 __Pyx_GIVEREF(__pyx_t_4);
14603 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_4);
14604 __Pyx_GIVEREF(__pyx_t_17);
14605 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_17);
14608 if (unlikely(PyObject_SetItem(__pyx_t_8, __pyx_t_16, __pyx_t_5) < 0)) __PYX_ERR(0, 340, __pyx_L1_error)
14609 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14610 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14611 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14620 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_vza);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 341, __pyx_L1_error)
14621 __Pyx_GOTREF(__pyx_t_5);
14622 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 341, __pyx_L1_error)
14623 __Pyx_GOTREF(__pyx_t_16);
14624 __Pyx_INCREF(__pyx_v_iy);
14625 __Pyx_GIVEREF(__pyx_v_iy);
14626 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_v_iy);
14627 __Pyx_INCREF(__pyx_v_ix);
14628 __Pyx_GIVEREF(__pyx_v_ix);
14629 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_ix);
14630 __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_16);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 341, __pyx_L1_error)
14631 __Pyx_GOTREF(__pyx_t_8);
14632 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14633 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14634 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 341, __pyx_L1_error)
14635 __Pyx_GOTREF(__pyx_t_16);
14636 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_vza);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 341, __pyx_L1_error)
14637 __Pyx_GOTREF(__pyx_t_5);
14638 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14639 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 341, __pyx_L1_error)
14640 __Pyx_GOTREF(__pyx_t_16);
14641 __pyx_t_17 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_16);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 341, __pyx_L1_error)
14642 __Pyx_GOTREF(__pyx_t_17);
14643 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14644 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 341, __pyx_L1_error)
14645 __Pyx_GOTREF(__pyx_t_16);
14646 __pyx_t_4 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_16);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 341, __pyx_L1_error)
14647 __Pyx_GOTREF(__pyx_t_4);
14648 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14649 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 341, __pyx_L1_error)
14650 __Pyx_GOTREF(__pyx_t_16);
14651 __Pyx_GIVEREF(__pyx_t_17);
14652 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_17);
14653 __Pyx_GIVEREF(__pyx_t_4);
14654 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_4);
14657 if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_t_16, __pyx_t_8) < 0)) __PYX_ERR(0, 341, __pyx_L1_error)
14658 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14659 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14660 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14669 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_raa);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 342, __pyx_L1_error)
14670 __Pyx_GOTREF(__pyx_t_8);
14671 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 342, __pyx_L1_error)
14672 __Pyx_GOTREF(__pyx_t_16);
14673 __Pyx_INCREF(__pyx_v_iy);
14674 __Pyx_GIVEREF(__pyx_v_iy);
14675 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_v_iy);
14676 __Pyx_INCREF(__pyx_v_ix);
14677 __Pyx_GIVEREF(__pyx_v_ix);
14678 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_ix);
14679 __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_16);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 342, __pyx_L1_error)
14680 __Pyx_GOTREF(__pyx_t_5);
14681 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14682 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14683 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 342, __pyx_L1_error)
14684 __Pyx_GOTREF(__pyx_t_16);
14685 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_raa);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 342, __pyx_L1_error)
14686 __Pyx_GOTREF(__pyx_t_8);
14687 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14688 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 342, __pyx_L1_error)
14689 __Pyx_GOTREF(__pyx_t_16);
14690 __pyx_t_4 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_16);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error)
14691 __Pyx_GOTREF(__pyx_t_4);
14692 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14693 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 342, __pyx_L1_error)
14694 __Pyx_GOTREF(__pyx_t_16);
14695 __pyx_t_17 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_16);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 342, __pyx_L1_error)
14696 __Pyx_GOTREF(__pyx_t_17);
14697 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14698 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 342, __pyx_L1_error)
14699 __Pyx_GOTREF(__pyx_t_16);
14700 __Pyx_GIVEREF(__pyx_t_4);
14701 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_4);
14702 __Pyx_GIVEREF(__pyx_t_17);
14703 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_17);
14706 if (unlikely(PyObject_SetItem(__pyx_t_8, __pyx_t_16, __pyx_t_5) < 0)) __PYX_ERR(0, 342, __pyx_L1_error)
14707 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14708 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14709 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14718 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_vin, __pyx_n_s_wnd);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 343, __pyx_L1_error)
14719 __Pyx_GOTREF(__pyx_t_5);
14720 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 343, __pyx_L1_error)
14721 __Pyx_GOTREF(__pyx_t_16);
14722 __Pyx_INCREF(__pyx_v_iy);
14723 __Pyx_GIVEREF(__pyx_v_iy);
14724 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_v_iy);
14725 __Pyx_INCREF(__pyx_v_ix);
14726 __Pyx_GIVEREF(__pyx_v_ix);
14727 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_ix);
14728 __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_16);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 343, __pyx_L1_error)
14729 __Pyx_GOTREF(__pyx_t_8);
14730 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14731 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14732 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 343, __pyx_L1_error)
14733 __Pyx_GOTREF(__pyx_t_16);
14734 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_wnd);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 343, __pyx_L1_error)
14735 __Pyx_GOTREF(__pyx_t_5);
14736 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14737 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 343, __pyx_L1_error)
14738 __Pyx_GOTREF(__pyx_t_16);
14739 __pyx_t_17 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_16);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 343, __pyx_L1_error)
14740 __Pyx_GOTREF(__pyx_t_17);
14741 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14742 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 343, __pyx_L1_error)
14743 __Pyx_GOTREF(__pyx_t_16);
14744 __pyx_t_4 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_16);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 343, __pyx_L1_error)
14745 __Pyx_GOTREF(__pyx_t_4);
14746 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14747 __pyx_t_16 = PyTuple_New(2);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 343, __pyx_L1_error)
14748 __Pyx_GOTREF(__pyx_t_16);
14749 __Pyx_GIVEREF(__pyx_t_17);
14750 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_17);
14751 __Pyx_GIVEREF(__pyx_t_4);
14752 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_4);
14755 if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_t_16, __pyx_t_8) < 0)) __PYX_ERR(0, 343, __pyx_L1_error)
14756 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14757 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14758 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14767 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 344, __pyx_L1_error)
14768 __Pyx_GOTREF(__pyx_t_8);
14769 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_aot);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 344, __pyx_L1_error)
14770 __Pyx_GOTREF(__pyx_t_16);
14771 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14772 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 344, __pyx_L1_error)
14773 __Pyx_GOTREF(__pyx_t_8);
14774 __pyx_t_5 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 344, __pyx_L1_error)
14775 __Pyx_GOTREF(__pyx_t_5);
14776 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14777 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 344, __pyx_L1_error)
14778 __Pyx_GOTREF(__pyx_t_8);
14779 __pyx_t_4 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_8);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 344, __pyx_L1_error)
14780 __Pyx_GOTREF(__pyx_t_4);
14781 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14782 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 344, __pyx_L1_error)
14783 __Pyx_GOTREF(__pyx_t_8);
14784 __Pyx_GIVEREF(__pyx_t_5);
14785 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5);
14786 __Pyx_GIVEREF(__pyx_t_4);
14787 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_4);
14790 if (unlikely(PyObject_SetItem(__pyx_t_16, __pyx_t_8, __pyx_v_aot) < 0)) __PYX_ERR(0, 344, __pyx_L1_error)
14791 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14792 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14801 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 345, __pyx_L1_error)
14802 __Pyx_GOTREF(__pyx_t_8);
14803 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_fmf);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 345, __pyx_L1_error)
14804 __Pyx_GOTREF(__pyx_t_16);
14805 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14806 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 345, __pyx_L1_error)
14807 __Pyx_GOTREF(__pyx_t_8);
14808 __pyx_t_4 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_8);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 345, __pyx_L1_error)
14809 __Pyx_GOTREF(__pyx_t_4);
14810 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14811 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 345, __pyx_L1_error)
14812 __Pyx_GOTREF(__pyx_t_8);
14813 __pyx_t_5 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 345, __pyx_L1_error)
14814 __Pyx_GOTREF(__pyx_t_5);
14815 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14816 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 345, __pyx_L1_error)
14817 __Pyx_GOTREF(__pyx_t_8);
14818 __Pyx_GIVEREF(__pyx_t_4);
14819 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4);
14820 __Pyx_GIVEREF(__pyx_t_5);
14821 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_5);
14824 if (unlikely(PyObject_SetItem(__pyx_t_16, __pyx_t_8, __pyx_v_fmf) < 0)) __PYX_ERR(0, 345, __pyx_L1_error)
14825 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14826 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14835 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 346, __pyx_L1_error)
14836 __Pyx_GOTREF(__pyx_t_8);
14837 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_sse);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 346, __pyx_L1_error)
14838 __Pyx_GOTREF(__pyx_t_16);
14839 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14840 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 346, __pyx_L1_error)
14841 __Pyx_GOTREF(__pyx_t_8);
14842 __pyx_t_5 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 346, __pyx_L1_error)
14843 __Pyx_GOTREF(__pyx_t_5);
14844 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14845 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 346, __pyx_L1_error)
14846 __Pyx_GOTREF(__pyx_t_8);
14847 __pyx_t_4 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_8);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 346, __pyx_L1_error)
14848 __Pyx_GOTREF(__pyx_t_4);
14849 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14850 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 346, __pyx_L1_error)
14851 __Pyx_GOTREF(__pyx_t_8);
14852 __Pyx_GIVEREF(__pyx_t_5);
14853 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5);
14854 __Pyx_GIVEREF(__pyx_t_4);
14855 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_4);
14858 if (unlikely(PyObject_SetItem(__pyx_t_16, __pyx_t_8, __pyx_v_sse) < 0)) __PYX_ERR(0, 346, __pyx_L1_error)
14859 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14860 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14869 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_ds);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 347, __pyx_L1_error)
14870 __Pyx_GOTREF(__pyx_t_8);
14871 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_type);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 347, __pyx_L1_error)
14872 __Pyx_GOTREF(__pyx_t_16);
14873 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14874 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_y);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 347, __pyx_L1_error)
14875 __Pyx_GOTREF(__pyx_t_8);
14876 __pyx_t_4 = PyNumber_Subtract(__pyx_v_iy, __pyx_t_8);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 347, __pyx_L1_error)
14877 __Pyx_GOTREF(__pyx_t_4);
14878 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14879 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_args, __pyx_n_s_x);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 347, __pyx_L1_error)
14880 __Pyx_GOTREF(__pyx_t_8);
14881 __pyx_t_5 = PyNumber_Subtract(__pyx_v_ix, __pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 347, __pyx_L1_error)
14882 __Pyx_GOTREF(__pyx_t_5);
14883 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14884 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 347, __pyx_L1_error)
14885 __Pyx_GOTREF(__pyx_t_8);
14886 __Pyx_GIVEREF(__pyx_t_4);
14887 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4);
14888 __Pyx_GIVEREF(__pyx_t_5);
14889 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_5);
14892 if (unlikely(PyObject_SetItem(__pyx_t_16, __pyx_t_8, __pyx_v_type) < 0)) __PYX_ERR(0, 347, __pyx_L1_error)
14893 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
14894 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14904 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14913 __pyx_t_1 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 349, __pyx_L1_error)
14914 __Pyx_GOTREF(__pyx_t_1);
14915 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_end, __pyx_kp_u__30) < 0) __PYX_ERR(0, 349, __pyx_L1_error)
14916 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__29, __pyx_t_1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 349, __pyx_L1_error)
14917 __Pyx_GOTREF(__pyx_t_8);
14918 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14919 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14929 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14938 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__31,
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 350, __pyx_L1_error)
14939 __Pyx_GOTREF(__pyx_t_2);
14940 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14949 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_vout, __pyx_n_s_write);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 351, __pyx_L1_error)
14950 __Pyx_GOTREF(__pyx_t_8);
14952 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
14953 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8);
14954 if (likely(__pyx_t_1)) {
14955 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
14956 __Pyx_INCREF(__pyx_t_1);
14957 __Pyx_INCREF(
function);
14958 __Pyx_DECREF_SET(__pyx_t_8,
function);
14961 __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_8);
14962 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
14963 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 351, __pyx_L1_error)
14964 __Pyx_GOTREF(__pyx_t_2);
14965 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14966 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14977 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14980 __Pyx_XDECREF(__pyx_t_1);
14981 __Pyx_XDECREF(__pyx_t_2);
14982 __Pyx_XDECREF(__pyx_t_3);
14983 __Pyx_XDECREF(__pyx_t_4);
14984 __Pyx_XDECREF(__pyx_t_5);
14985 __Pyx_XDECREF(__pyx_t_6);
14986 __Pyx_XDECREF(__pyx_t_8);
14987 __Pyx_XDECREF(__pyx_t_14);
14988 __Pyx_XDECREF(__pyx_t_15);
14989 __Pyx_XDECREF(__pyx_t_16);
14990 __Pyx_XDECREF(__pyx_t_17);
14991 __Pyx_AddTraceback(
"dtocean.main", __pyx_clineno, __pyx_lineno, __pyx_filename);
14994 __Pyx_XDECREF(__pyx_v_parser);
14995 __Pyx_XDECREF(__pyx_v_args);
14996 __Pyx_XDECREF(__pyx_v_vin);
14997 __Pyx_XDECREF(__pyx_v_vout);
14998 __Pyx_XDECREF(__pyx_v_dto);
14999 __Pyx_XDECREF(__pyx_v_iy);
15000 __Pyx_XDECREF(__pyx_v_ix);
15001 __Pyx_XDECREF(__pyx_v_fmf);
15002 __Pyx_XDECREF(__pyx_v_aot);
15003 __Pyx_XDECREF(__pyx_v_sse);
15004 __Pyx_XDECREF(__pyx_v_type);
15005 __Pyx_XGIVEREF(__pyx_r);
15006 __Pyx_RefNannyFinishContext();
15010 static PyMethodDef __pyx_methods[] = {
15014 static int __pyx_import_star_set(PyObject *o, PyObject* py_name,
char *
name) {
15015 static const char* internal_type_names[] = {
15016 "__pyx_ctuple_4f4f2__long__and_long__and_long__and_long__and_long__and_long__and_long__etc",
15017 "__pyx_ctuple_4f4f2__long__and_long__and_long__and_long__and_long__and_long__and_long__etc_struct",
15018 "__pyx_ctuple_int",
15019 "__pyx_ctuple_int_struct",
15020 "__pyx_ctuple_long",
15021 "__pyx_ctuple_long__and_long__and_long",
15022 "__pyx_ctuple_long__and_long__and_long__and_long__and_long",
15023 "__pyx_ctuple_long__and_long__and_long__and_long__and_long_struct",
15024 "__pyx_ctuple_long__and_long__and_long_struct",
15025 "__pyx_ctuple_long_struct",
15028 const char** type_name = internal_type_names;
15029 while (*type_name) {
15030 if (__Pyx_StrEq(
name, *type_name)) {
15031 PyErr_Format(PyExc_TypeError,
"Cannot overwrite C type %s",
name);
15038 if (PyObject_SetAttr(__pyx_m, py_name, o) < 0)
goto bad;
15046 __Pyx_import_all_from(PyObject *locals, PyObject *
v)
15048 PyObject *all = PyObject_GetAttrString(
v,
"__all__");
15050 int skip_leading_underscores = 0;
15053 if (!PyErr_ExceptionMatches(PyExc_AttributeError))
15056 dict = PyObject_GetAttrString(
v,
"__dict__");
15057 if (dict ==
NULL) {
15058 if (!PyErr_ExceptionMatches(PyExc_AttributeError))
15060 PyErr_SetString(PyExc_ImportError,
15061 "from-import-* object has no __dict__ and no __all__");
15064 #if PY_MAJOR_VERSION < 3
15065 all = PyObject_CallMethod(dict, (
char *)
"keys",
NULL);
15067 all = PyMapping_Keys(dict);
15072 skip_leading_underscores = 1;
15075 name = PySequence_GetItem(all,
pos);
15077 if (!PyErr_ExceptionMatches(PyExc_IndexError))
15083 if (skip_leading_underscores &&
15084 #
if PY_MAJOR_VERSION < 3
15085 likely(PyString_Check(
name)) &&
15086 PyString_AS_STRING(
name)[0] ==
'_')
15088 likely(PyUnicode_Check(
name)) &&
15089 likely(__Pyx_PyUnicode_GET_LENGTH(
name)) &&
15090 __Pyx_PyUnicode_READ_CHAR(
name, 0) ==
'_')
15099 else if (PyDict_CheckExact(locals))
15111 static int __pyx_import_star(PyObject* m) {
15115 PyObject *locals = 0;
15116 PyObject *
list = 0;
15117 #if PY_MAJOR_VERSION >= 3
15118 PyObject *utf8_name = 0;
15122 locals = PyDict_New();
if (!locals)
goto bad;
15123 if (__Pyx_import_all_from(locals, m) < 0)
goto bad;
15124 list = PyDict_Items(locals);
if (!
list)
goto bad;
15125 for(
i=0;
i<PyList_GET_SIZE(
list);
i++) {
15126 name = PyTuple_GET_ITEM(PyList_GET_ITEM(
list,
i), 0);
15127 item = PyTuple_GET_ITEM(PyList_GET_ITEM(
list,
i), 1);
15128 #if PY_MAJOR_VERSION >= 3
15129 utf8_name = PyUnicode_AsUTF8String(
name);
15130 if (!utf8_name)
goto bad;
15131 s = PyBytes_AS_STRING(utf8_name);
15132 if (__pyx_import_star_set(
item,
name,
s) < 0)
goto bad;
15133 Py_DECREF(utf8_name); utf8_name = 0;
15135 s = PyString_AsString(
name);
15137 if (__pyx_import_star_set(
item,
name,
s) < 0)
goto bad;
15142 Py_XDECREF(locals);
15144 #if PY_MAJOR_VERSION >= 3
15145 Py_XDECREF(utf8_name);
15152 #if PY_MAJOR_VERSION >= 3
15153 #if CYTHON_PEP489_MULTI_PHASE_INIT
15154 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def);
15155 static int __pyx_pymod_exec_dtocean(PyObject* module);
15156 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
15157 {Py_mod_create, (
void*)__pyx_pymod_create},
15158 {Py_mod_exec, (
void*)__pyx_pymod_exec_dtocean},
15163 static struct PyModuleDef __pyx_moduledef = {
15164 PyModuleDef_HEAD_INIT,
15167 #if CYTHON_PEP489_MULTI_PHASE_INIT
15173 #if CYTHON_PEP489_MULTI_PHASE_INIT
15174 __pyx_moduledef_slots,
15183 #ifndef CYTHON_SMALL_CODE
15184 #if defined(__clang__)
15185 #define CYTHON_SMALL_CODE
15186 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
15187 #define CYTHON_SMALL_CODE __attribute__((cold))
15189 #define CYTHON_SMALL_CODE
15193 static __Pyx_StringTabEntry __pyx_string_tab[] = {
15194 {&__pyx_kp_u_3d, __pyx_k_3d,
sizeof(__pyx_k_3d), 0, 1, 0, 0},
15195 {&__pyx_n_u_AINTB, __pyx_k_AINTB,
sizeof(__pyx_k_AINTB), 0, 1, 0, 1},
15196 {&__pyx_n_u_AINTS, __pyx_k_AINTS,
sizeof(__pyx_k_AINTS), 0, 1, 0, 1},
15197 {&__pyx_n_s_ArgumentParser, __pyx_k_ArgumentParser,
sizeof(__pyx_k_ArgumentParser), 0, 0, 1, 1},
15198 {&__pyx_n_s_Axes3D, __pyx_k_Axes3D,
sizeof(__pyx_k_Axes3D), 0, 0, 1, 1},
15199 {&__pyx_n_s_D2R, __pyx_k_D2R,
sizeof(__pyx_k_D2R), 0, 0, 1, 1},
15200 {&__pyx_n_s_DataArray, __pyx_k_DataArray,
sizeof(__pyx_k_DataArray), 0, 0, 1, 1},
15201 {&__pyx_n_s_Dataset, __pyx_k_Dataset,
sizeof(__pyx_k_Dataset), 0, 0, 1, 1},
15202 {&__pyx_kp_u_Done, __pyx_k_Done,
sizeof(__pyx_k_Done), 0, 1, 0, 0},
15203 {&__pyx_n_s_FileType, __pyx_k_FileType,
sizeof(__pyx_k_FileType), 0, 0, 1, 1},
15204 {&__pyx_n_s_MaxNLocator, __pyx_k_MaxNLocator,
sizeof(__pyx_k_MaxNLocator), 0, 0, 1, 1},
15205 {&__pyx_n_s_NAOT, __pyx_k_NAOT,
sizeof(__pyx_k_NAOT), 0, 0, 1, 1},
15206 {&__pyx_n_s_NBIG, __pyx_k_NBIG,
sizeof(__pyx_k_NBIG), 0, 0, 1, 1},
15207 {&__pyx_n_s_NRAA, __pyx_k_NRAA,
sizeof(__pyx_k_NRAA), 0, 0, 1, 1},
15208 {&__pyx_n_s_NSMALL, __pyx_k_NSMALL,
sizeof(__pyx_k_NSMALL), 0, 0, 1, 1},
15209 {&__pyx_n_s_NSZA, __pyx_k_NSZA,
sizeof(__pyx_k_NSZA), 0, 0, 1, 1},
15210 {&__pyx_n_s_NVZA, __pyx_k_NVZA,
sizeof(__pyx_k_NVZA), 0, 0, 1, 1},
15211 {&__pyx_n_s_NWL, __pyx_k_NWL,
sizeof(__pyx_k_NWL), 0, 0, 1, 1},
15212 {&__pyx_n_s_NWS, __pyx_k_NWS,
sizeof(__pyx_k_NWS), 0, 0, 1, 1},
15213 {&__pyx_kp_u_OCEAN_AEROSOL, __pyx_k_OCEAN_AEROSOL,
sizeof(__pyx_k_OCEAN_AEROSOL), 0, 1, 0, 0},
15214 {&__pyx_n_u_PHC, __pyx_k_PHC,
sizeof(__pyx_k_PHC), 0, 1, 0, 1},
15215 {&__pyx_kp_u_Processing_mode_0, __pyx_k_Processing_mode_0,
sizeof(__pyx_k_Processing_mode_0), 0, 1, 0, 0},
15216 {&__pyx_n_u_REF_RAYALL, __pyx_k_REF_RAYALL,
sizeof(__pyx_k_REF_RAYALL), 0, 1, 0, 1},
15217 {&__pyx_kp_u_Reading_Darktarget_LUT, __pyx_k_Reading_Darktarget_LUT,
sizeof(__pyx_k_Reading_Darktarget_LUT), 0, 1, 0, 0},
15218 {&__pyx_kp_u_Reading_VIIRS_Data, __pyx_k_Reading_VIIRS_Data,
sizeof(__pyx_k_Reading_VIIRS_Data), 0, 1, 0, 0},
15219 {&__pyx_n_u_TAUAB, __pyx_k_TAUAB,
sizeof(__pyx_k_TAUAB), 0, 1, 0, 1},
15220 {&__pyx_n_u_TAUAS, __pyx_k_TAUAS,
sizeof(__pyx_k_TAUAS), 0, 1, 0, 1},
15221 {&__pyx_n_u_THET, __pyx_k_THET,
sizeof(__pyx_k_THET), 0, 1, 0, 1},
15222 {&__pyx_n_u_THET0, __pyx_k_THET0,
sizeof(__pyx_k_THET0), 0, 1, 0, 1},
15223 {&__pyx_kp_u_Unable_to_initialize_output_file, __pyx_k_Unable_to_initialize_output_file,
sizeof(__pyx_k_Unable_to_initialize_output_file), 0, 1, 0, 0},
15224 {&__pyx_kp_u_Unable_to_read_LUT_file_exiting, __pyx_k_Unable_to_read_LUT_file_exiting,
sizeof(__pyx_k_Unable_to_read_LUT_file_exiting), 0, 1, 0, 0},
15225 {&__pyx_kp_u_Unable_to_read_from_input_file_e, __pyx_k_Unable_to_read_from_input_file_e,
sizeof(__pyx_k_Unable_to_read_from_input_file_e), 0, 1, 0, 0},
15226 {&__pyx_n_s_W124, __pyx_k_W124,
sizeof(__pyx_k_W124), 0, 0, 1, 1},
15227 {&__pyx_n_s_W164, __pyx_k_W164,
sizeof(__pyx_k_W164), 0, 0, 1, 1},
15228 {&__pyx_n_s_W213, __pyx_k_W213,
sizeof(__pyx_k_W213), 0, 0, 1, 1},
15229 {&__pyx_n_s_W470, __pyx_k_W470,
sizeof(__pyx_k_W470), 0, 0, 1, 1},
15230 {&__pyx_n_s_W550, __pyx_k_W550,
sizeof(__pyx_k_W550), 0, 0, 1, 1},
15231 {&__pyx_n_u_W550, __pyx_k_W550,
sizeof(__pyx_k_W550), 0, 1, 0, 1},
15232 {&__pyx_n_s_W659, __pyx_k_W659,
sizeof(__pyx_k_W659), 0, 0, 1, 1},
15233 {&__pyx_n_u_W659, __pyx_k_W659,
sizeof(__pyx_k_W659), 0, 1, 0, 1},
15234 {&__pyx_n_s_W860, __pyx_k_W860,
sizeof(__pyx_k_W860), 0, 0, 1, 1},
15235 {&__pyx_n_u_W860, __pyx_k_W860,
sizeof(__pyx_k_W860), 0, 1, 0, 1},
15236 {&__pyx_n_u_WAVE, __pyx_k_WAVE,
sizeof(__pyx_k_WAVE), 0, 1, 0, 1},
15237 {&__pyx_kp_u_Writing_to_file, __pyx_k_Writing_to_file,
sizeof(__pyx_k_Writing_to_file), 0, 1, 0, 0},
15238 {&__pyx_kp_u__30, __pyx_k__30,
sizeof(__pyx_k__30), 0, 1, 0, 0},
15239 {&__pyx_n_s__32, __pyx_k__32,
sizeof(__pyx_k__32), 0, 0, 1, 1},
15240 {&__pyx_kp_u__8, __pyx_k__8,
sizeof(__pyx_k__8), 0, 1, 0, 0},
15241 {&__pyx_n_s_add_argument, __pyx_k_add_argument,
sizeof(__pyx_k_add_argument), 0, 0, 1, 1},
15242 {&__pyx_n_s_add_subplot, __pyx_k_add_subplot,
sizeof(__pyx_k_add_subplot), 0, 0, 1, 1},
15243 {&__pyx_kp_u_ancillary, __pyx_k_ancillary,
sizeof(__pyx_k_ancillary), 0, 1, 0, 0},
15244 {&__pyx_n_s_aot, __pyx_k_aot,
sizeof(__pyx_k_aot), 0, 0, 1, 1},
15245 {&__pyx_n_u_aot, __pyx_k_aot,
sizeof(__pyx_k_aot), 0, 1, 0, 1},
15246 {&__pyx_n_s_append, __pyx_k_append,
sizeof(__pyx_k_append), 0, 0, 1, 1},
15247 {&__pyx_n_s_arange, __pyx_k_arange,
sizeof(__pyx_k_arange), 0, 0, 1, 1},
15248 {&__pyx_n_s_argmin, __pyx_k_argmin,
sizeof(__pyx_k_argmin), 0, 0, 1, 1},
15249 {&__pyx_n_s_argparse, __pyx_k_argparse,
sizeof(__pyx_k_argparse), 0, 0, 1, 1},
15250 {&__pyx_n_s_args, __pyx_k_args,
sizeof(__pyx_k_args), 0, 0, 1, 1},
15251 {&__pyx_n_s_array, __pyx_k_array,
sizeof(__pyx_k_array), 0, 0, 1, 1},
15252 {&__pyx_n_s_astype, __pyx_k_astype,
sizeof(__pyx_k_astype), 0, 0, 1, 1},
15253 {&__pyx_n_s_ax, __pyx_k_ax,
sizeof(__pyx_k_ax), 0, 0, 1, 1},
15254 {&__pyx_n_s_axis, __pyx_k_axis,
sizeof(__pyx_k_axis), 0, 0, 1, 1},
15255 {&__pyx_n_s_b, __pyx_k_b,
sizeof(__pyx_k_b), 0, 0, 1, 1},
15256 {&__pyx_n_u_b, __pyx_k_b,
sizeof(__pyx_k_b), 0, 1, 0, 1},
15257 {&__pyx_n_s_big, __pyx_k_big,
sizeof(__pyx_k_big), 0, 0, 1, 1},
15258 {&__pyx_kp_u_big_model, __pyx_k_big_model,
sizeof(__pyx_k_big_model), 0, 1, 0, 0},
15259 {&__pyx_kp_u_big_small_continuum, __pyx_k_big_small_continuum,
sizeof(__pyx_k_big_small_continuum), 0, 1, 0, 0},
15260 {&__pyx_n_s_bspair, __pyx_k_bspair,
sizeof(__pyx_k_bspair), 0, 0, 1, 1},
15261 {&__pyx_n_s_c, __pyx_k_c,
sizeof(__pyx_k_c), 0, 0, 1, 1},
15262 {&__pyx_n_s_cld, __pyx_k_cld,
sizeof(__pyx_k_cld), 0, 0, 1, 1},
15263 {&__pyx_n_s_clf, __pyx_k_clf,
sizeof(__pyx_k_clf), 0, 0, 1, 1},
15264 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback,
sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
15265 {&__pyx_n_s_clip, __pyx_k_clip,
sizeof(__pyx_k_clip), 0, 0, 1, 1},
15266 {&__pyx_n_u_cloud_mask, __pyx_k_cloud_mask,
sizeof(__pyx_k_cloud_mask), 0, 1, 0, 1},
15267 {&__pyx_n_s_col, __pyx_k_col,
sizeof(__pyx_k_col), 0, 0, 1, 1},
15268 {&__pyx_n_s_color, __pyx_k_color,
sizeof(__pyx_k_color), 0, 0, 1, 1},
15269 {&__pyx_n_s_cos, __pyx_k_cos,
sizeof(__pyx_k_cos), 0, 0, 1, 1},
15270 {&__pyx_n_s_datetime, __pyx_k_datetime,
sizeof(__pyx_k_datetime), 0, 0, 1, 1},
15271 {&__pyx_n_s_default, __pyx_k_default,
sizeof(__pyx_k_default), 0, 0, 1, 1},
15272 {&__pyx_n_s_denom, __pyx_k_denom,
sizeof(__pyx_k_denom), 0, 0, 1, 1},
15273 {&__pyx_n_s_dims, __pyx_k_dims,
sizeof(__pyx_k_dims), 0, 0, 1, 1},
15274 {&__pyx_n_s_doc, __pyx_k_doc,
sizeof(__pyx_k_doc), 0, 0, 1, 1},
15275 {&__pyx_n_s_dot, __pyx_k_dot,
sizeof(__pyx_k_dot), 0, 0, 1, 1},
15276 {&__pyx_n_s_double, __pyx_k_double,
sizeof(__pyx_k_double), 0, 0, 1, 1},
15277 {&__pyx_n_s_ds, __pyx_k_ds,
sizeof(__pyx_k_ds), 0, 0, 1, 1},
15278 {&__pyx_n_s_dto, __pyx_k_dto,
sizeof(__pyx_k_dto), 0, 0, 1, 1},
15279 {&__pyx_n_s_dtocean, __pyx_k_dtocean,
sizeof(__pyx_k_dtocean), 0, 0, 1, 1},
15280 {&__pyx_n_s_dtocean___init, __pyx_k_dtocean___init,
sizeof(__pyx_k_dtocean___init), 0, 0, 1, 1},
15281 {&__pyx_n_s_dtocean_interp_extrap, __pyx_k_dtocean_interp_extrap,
sizeof(__pyx_k_dtocean_interp_extrap), 0, 0, 1, 1},
15282 {&__pyx_n_s_dtocean_plot, __pyx_k_dtocean_plot,
sizeof(__pyx_k_dtocean_plot), 0, 0, 1, 1},
15283 {&__pyx_n_s_dtocean_plot_points, __pyx_k_dtocean_plot_points,
sizeof(__pyx_k_dtocean_plot_points), 0, 0, 1, 1},
15284 {&__pyx_n_s_dtocean_proc_gran, __pyx_k_dtocean_proc_gran,
sizeof(__pyx_k_dtocean_proc_gran), 0, 0, 1, 1},
15285 {&__pyx_n_s_dtocean_process, __pyx_k_dtocean_process,
sizeof(__pyx_k_dtocean_process), 0, 0, 1, 1},
15286 {&__pyx_kp_s_dtocean_pyx, __pyx_k_dtocean_pyx,
sizeof(__pyx_k_dtocean_pyx), 0, 0, 1, 0},
15287 {&__pyx_kp_u_dtocean_y_3_x_4_aot_0_3f_fmf_1_3, __pyx_k_dtocean_y_3_x_4_aot_0_3f_fmf_1_3,
sizeof(__pyx_k_dtocean_y_3_x_4_aot_0_3f_fmf_1_3), 0, 1, 0, 0},
15288 {&__pyx_n_s_end, __pyx_k_end,
sizeof(__pyx_k_end), 0, 0, 1, 1},
15289 {&__pyx_n_s_err, __pyx_k_err,
sizeof(__pyx_k_err), 0, 0, 1, 1},
15290 {&__pyx_n_s_exit, __pyx_k_exit,
sizeof(__pyx_k_exit), 0, 0, 1, 1},
15291 {&__pyx_n_s_fig, __pyx_k_fig,
sizeof(__pyx_k_fig), 0, 0, 1, 1},
15292 {&__pyx_n_s_figure, __pyx_k_figure,
sizeof(__pyx_k_figure), 0, 0, 1, 1},
15293 {&__pyx_n_s_fmf, __pyx_k_fmf,
sizeof(__pyx_k_fmf), 0, 0, 1, 1},
15294 {&__pyx_n_u_fmf, __pyx_k_fmf,
sizeof(__pyx_k_fmf), 0, 1, 0, 1},
15295 {&__pyx_n_s_format, __pyx_k_format,
sizeof(__pyx_k_format), 0, 0, 1, 1},
15296 {&__pyx_n_u_g, __pyx_k_g,
sizeof(__pyx_k_g), 0, 1, 0, 1},
15297 {&__pyx_kp_u_geolocation, __pyx_k_geolocation,
sizeof(__pyx_k_geolocation), 0, 1, 0, 0},
15298 {&__pyx_n_s_grid, __pyx_k_grid,
sizeof(__pyx_k_grid), 0, 0, 1, 1},
15299 {&__pyx_n_s_group, __pyx_k_group,
sizeof(__pyx_k_group), 0, 0, 1, 1},
15300 {&__pyx_n_s_help, __pyx_k_help,
sizeof(__pyx_k_help), 0, 0, 1, 1},
15301 {&__pyx_kp_u_i, __pyx_k_i,
sizeof(__pyx_k_i), 0, 1, 0, 0},
15302 {&__pyx_n_s_i_2, __pyx_k_i_2,
sizeof(__pyx_k_i_2), 0, 0, 1, 1},
15303 {&__pyx_n_s_ibm, __pyx_k_ibm,
sizeof(__pyx_k_ibm), 0, 0, 1, 1},
15304 {&__pyx_n_s_ifile, __pyx_k_ifile,
sizeof(__pyx_k_ifile), 0, 0, 1, 1},
15305 {&__pyx_kp_u_ifile_2, __pyx_k_ifile_2,
sizeof(__pyx_k_ifile_2), 0, 1, 0, 0},
15306 {&__pyx_n_s_im, __pyx_k_im,
sizeof(__pyx_k_im), 0, 0, 1, 1},
15307 {&__pyx_n_s_import, __pyx_k_import,
sizeof(__pyx_k_import), 0, 0, 1, 1},
15308 {&__pyx_n_s_init, __pyx_k_init,
sizeof(__pyx_k_init), 0, 0, 1, 1},
15309 {&__pyx_n_s_input, __pyx_k_input,
sizeof(__pyx_k_input), 0, 0, 1, 1},
15310 {&__pyx_n_s_input___init, __pyx_k_input___init,
sizeof(__pyx_k_input___init), 0, 0, 1, 1},
15311 {&__pyx_kp_u_input_file, __pyx_k_input_file,
sizeof(__pyx_k_input_file), 0, 1, 0, 0},
15312 {&__pyx_n_s_inst, __pyx_k_inst,
sizeof(__pyx_k_inst), 0, 0, 1, 1},
15313 {&__pyx_n_s_interp, __pyx_k_interp,
sizeof(__pyx_k_interp), 0, 0, 1, 1},
15314 {&__pyx_n_s_interp_extrap, __pyx_k_interp_extrap,
sizeof(__pyx_k_interp_extrap), 0, 0, 1, 1},
15315 {&__pyx_n_s_interpn, __pyx_k_interpn,
sizeof(__pyx_k_interpn), 0, 0, 1, 1},
15316 {&__pyx_kp_u_interpolate_to_reflectance_for_e, __pyx_k_interpolate_to_reflectance_for_e,
sizeof(__pyx_k_interpolate_to_reflectance_for_e), 0, 1, 0, 0},
15317 {&__pyx_n_s_iph, __pyx_k_iph,
sizeof(__pyx_k_iph), 0, 0, 1, 1},
15318 {&__pyx_n_s_ism, __pyx_k_ism,
sizeof(__pyx_k_ism), 0, 0, 1, 1},
15319 {&__pyx_n_s_isz, __pyx_k_isz,
sizeof(__pyx_k_isz), 0, 0, 1, 1},
15320 {&__pyx_n_s_itau, __pyx_k_itau,
sizeof(__pyx_k_itau), 0, 0, 1, 1},
15321 {&__pyx_n_s_ith, __pyx_k_ith,
sizeof(__pyx_k_ith), 0, 0, 1, 1},
15322 {&__pyx_n_s_iwl, __pyx_k_iwl,
sizeof(__pyx_k_iwl), 0, 0, 1, 1},
15323 {&__pyx_n_s_iwn, __pyx_k_iwn,
sizeof(__pyx_k_iwn), 0, 0, 1, 1},
15324 {&__pyx_n_s_ix, __pyx_k_ix,
sizeof(__pyx_k_ix), 0, 0, 1, 1},
15325 {&__pyx_n_s_iy, __pyx_k_iy,
sizeof(__pyx_k_iy), 0, 0, 1, 1},
15326 {&__pyx_n_u_k, __pyx_k_k,
sizeof(__pyx_k_k), 0, 1, 0, 1},
15327 {&__pyx_kp_u_l, __pyx_k_l,
sizeof(__pyx_k_l), 0, 1, 0, 0},
15328 {&__pyx_n_s_l1b_filepath, __pyx_k_l1b_filepath,
sizeof(__pyx_k_l1b_filepath), 0, 0, 1, 1},
15329 {&__pyx_n_s_label, __pyx_k_label,
sizeof(__pyx_k_label), 0, 0, 1, 1},
15330 {&__pyx_n_s_lat, __pyx_k_lat,
sizeof(__pyx_k_lat), 0, 0, 1, 1},
15331 {&__pyx_n_u_lat, __pyx_k_lat,
sizeof(__pyx_k_lat), 0, 1, 0, 1},
15332 {&__pyx_n_u_latitude, __pyx_k_latitude,
sizeof(__pyx_k_latitude), 0, 1, 0, 1},
15333 {&__pyx_n_s_lb, __pyx_k_lb,
sizeof(__pyx_k_lb), 0, 0, 1, 1},
15334 {&__pyx_n_s_legend, __pyx_k_legend,
sizeof(__pyx_k_legend), 0, 0, 1, 1},
15335 {&__pyx_n_s_linspace, __pyx_k_linspace,
sizeof(__pyx_k_linspace), 0, 0, 1, 1},
15336 {&__pyx_n_s_load_dataset, __pyx_k_load_dataset,
sizeof(__pyx_k_load_dataset), 0, 0, 1, 1},
15337 {&__pyx_n_s_loc, __pyx_k_loc,
sizeof(__pyx_k_loc), 0, 0, 1, 1},
15338 {&__pyx_n_s_lon, __pyx_k_lon,
sizeof(__pyx_k_lon), 0, 0, 1, 1},
15339 {&__pyx_n_u_lon, __pyx_k_lon,
sizeof(__pyx_k_lon), 0, 1, 0, 1},
15340 {&__pyx_n_u_longitude, __pyx_k_longitude,
sizeof(__pyx_k_longitude), 0, 1, 0, 1},
15341 {&__pyx_kp_u_lookup_table_file, __pyx_k_lookup_table_file,
sizeof(__pyx_k_lookup_table_file), 0, 1, 0, 0},
15342 {&__pyx_n_s_ls, __pyx_k_ls,
sizeof(__pyx_k_ls), 0, 0, 1, 1},
15343 {&__pyx_kp_u_lut, __pyx_k_lut,
sizeof(__pyx_k_lut), 0, 1, 0, 0},
15344 {&__pyx_n_s_lut_2, __pyx_k_lut_2,
sizeof(__pyx_k_lut_2), 0, 0, 1, 1},
15345 {&__pyx_n_s_lut_filepath, __pyx_k_lut_filepath,
sizeof(__pyx_k_lut_filepath), 0, 0, 1, 1},
15346 {&__pyx_kp_u_m, __pyx_k_m,
sizeof(__pyx_k_m), 0, 1, 0, 0},
15347 {&__pyx_n_s_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 0, 1, 1},
15348 {&__pyx_n_u_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 1, 0, 1},
15349 {&__pyx_n_s_main_2, __pyx_k_main_2,
sizeof(__pyx_k_main_2), 0, 0, 1, 1},
15350 {&__pyx_n_s_marker, __pyx_k_marker,
sizeof(__pyx_k_marker), 0, 0, 1, 1},
15351 {&__pyx_n_s_math, __pyx_k_math,
sizeof(__pyx_k_math), 0, 0, 1, 1},
15352 {&__pyx_n_s_matplotlib, __pyx_k_matplotlib,
sizeof(__pyx_k_matplotlib), 0, 0, 1, 1},
15353 {&__pyx_n_s_matplotlib_pyplot, __pyx_k_matplotlib_pyplot,
sizeof(__pyx_k_matplotlib_pyplot), 0, 0, 1, 1},
15354 {&__pyx_n_s_matplotlib_ticker, __pyx_k_matplotlib_ticker,
sizeof(__pyx_k_matplotlib_ticker), 0, 0, 1, 1},
15355 {&__pyx_n_s_max, __pyx_k_max,
sizeof(__pyx_k_max), 0, 0, 1, 1},
15356 {&__pyx_n_s_max_rfl, __pyx_k_max_rfl,
sizeof(__pyx_k_max_rfl), 0, 0, 1, 1},
15357 {&__pyx_n_u_measured, __pyx_k_measured,
sizeof(__pyx_k_measured), 0, 1, 0, 1},
15358 {&__pyx_n_s_meshgrid, __pyx_k_meshgrid,
sizeof(__pyx_k_meshgrid), 0, 0, 1, 1},
15359 {&__pyx_n_s_metaclass, __pyx_k_metaclass,
sizeof(__pyx_k_metaclass), 0, 0, 1, 1},
15360 {&__pyx_n_s_min, __pyx_k_min,
sizeof(__pyx_k_min), 0, 0, 1, 1},
15361 {&__pyx_n_s_min_rfl, __pyx_k_min_rfl,
sizeof(__pyx_k_min_rfl), 0, 0, 1, 1},
15362 {&__pyx_n_s_mode, __pyx_k_mode,
sizeof(__pyx_k_mode), 0, 0, 1, 1},
15363 {&__pyx_kp_u_mode_2, __pyx_k_mode_2,
sizeof(__pyx_k_mode_2), 0, 1, 0, 0},
15364 {&__pyx_kp_u_mode_option, __pyx_k_mode_option,
sizeof(__pyx_k_mode_option), 0, 1, 0, 0},
15365 {&__pyx_n_u_modeled, __pyx_k_modeled,
sizeof(__pyx_k_modeled), 0, 1, 0, 1},
15366 {&__pyx_n_s_module, __pyx_k_module,
sizeof(__pyx_k_module), 0, 0, 1, 1},
15367 {&__pyx_n_s_mpl_toolkits_mplot3d, __pyx_k_mpl_toolkits_mplot3d,
sizeof(__pyx_k_mpl_toolkits_mplot3d), 0, 0, 1, 1},
15368 {&__pyx_n_s_mrfl, __pyx_k_mrfl,
sizeof(__pyx_k_mrfl), 0, 0, 1, 1},
15369 {&__pyx_n_s_mrflb, __pyx_k_mrflb,
sizeof(__pyx_k_mrflb), 0, 0, 1, 1},
15370 {&__pyx_n_s_mrflr, __pyx_k_mrflr,
sizeof(__pyx_k_mrflr), 0, 0, 1, 1},
15371 {&__pyx_n_s_mrfls, __pyx_k_mrfls,
sizeof(__pyx_k_mrfls), 0, 0, 1, 1},
15372 {&__pyx_n_s_name, __pyx_k_name,
sizeof(__pyx_k_name), 0, 0, 1, 1},
15373 {&__pyx_n_s_name_2, __pyx_k_name_2,
sizeof(__pyx_k_name_2), 0, 0, 1, 1},
15374 {&__pyx_kp_u_navigation_data, __pyx_k_navigation_data,
sizeof(__pyx_k_navigation_data), 0, 1, 0, 0},
15375 {&__pyx_n_s_np, __pyx_k_np,
sizeof(__pyx_k_np), 0, 0, 1, 1},
15376 {&__pyx_n_s_num, __pyx_k_num,
sizeof(__pyx_k_num), 0, 0, 1, 1},
15377 {&__pyx_n_s_numpy, __pyx_k_numpy,
sizeof(__pyx_k_numpy), 0, 0, 1, 1},
15378 {&__pyx_n_u_o, __pyx_k_o,
sizeof(__pyx_k_o), 0, 1, 0, 1},
15379 {&__pyx_kp_u_o_2, __pyx_k_o_2,
sizeof(__pyx_k_o_2), 0, 1, 0, 0},
15380 {&__pyx_n_s_object, __pyx_k_object,
sizeof(__pyx_k_object), 0, 0, 1, 1},
15381 {&__pyx_n_s_ofile, __pyx_k_ofile,
sizeof(__pyx_k_ofile), 0, 0, 1, 1},
15382 {&__pyx_kp_u_ofile_2, __pyx_k_ofile_2,
sizeof(__pyx_k_ofile_2), 0, 1, 0, 0},
15383 {&__pyx_n_s_os, __pyx_k_os,
sizeof(__pyx_k_os), 0, 0, 1, 1},
15384 {&__pyx_n_s_out_filepath, __pyx_k_out_filepath,
sizeof(__pyx_k_out_filepath), 0, 0, 1, 1},
15385 {&__pyx_n_s_output, __pyx_k_output,
sizeof(__pyx_k_output), 0, 0, 1, 1},
15386 {&__pyx_n_s_output___init, __pyx_k_output___init,
sizeof(__pyx_k_output___init), 0, 0, 1, 1},
15387 {&__pyx_kp_u_output_file, __pyx_k_output_file,
sizeof(__pyx_k_output_file), 0, 1, 0, 0},
15388 {&__pyx_n_s_output_write, __pyx_k_output_write,
sizeof(__pyx_k_output_write), 0, 0, 1, 1},
15389 {&__pyx_kp_u_p, __pyx_k_p,
sizeof(__pyx_k_p), 0, 1, 0, 0},
15390 {&__pyx_n_s_parse_args, __pyx_k_parse_args,
sizeof(__pyx_k_parse_args), 0, 0, 1, 1},
15391 {&__pyx_n_s_parser, __pyx_k_parser,
sizeof(__pyx_k_parser), 0, 0, 1, 1},
15392 {&__pyx_n_s_pi, __pyx_k_pi,
sizeof(__pyx_k_pi), 0, 0, 1, 1},
15393 {&__pyx_n_s_plot, __pyx_k_plot,
sizeof(__pyx_k_plot), 0, 0, 1, 1},
15394 {&__pyx_kp_u_plot_2, __pyx_k_plot_2,
sizeof(__pyx_k_plot_2), 0, 1, 0, 0},
15395 {&__pyx_kp_u_plot_pixel_data, __pyx_k_plot_pixel_data,
sizeof(__pyx_k_plot_pixel_data), 0, 1, 0, 0},
15396 {&__pyx_n_s_plot_points, __pyx_k_plot_points,
sizeof(__pyx_k_plot_points), 0, 0, 1, 1},
15397 {&__pyx_n_s_plot_wireframe, __pyx_k_plot_wireframe,
sizeof(__pyx_k_plot_wireframe), 0, 0, 1, 1},
15398 {&__pyx_n_s_plt, __pyx_k_plt,
sizeof(__pyx_k_plt), 0, 0, 1, 1},
15399 {&__pyx_n_s_prepare, __pyx_k_prepare,
sizeof(__pyx_k_prepare), 0, 0, 1, 1},
15400 {&__pyx_n_s_print, __pyx_k_print,
sizeof(__pyx_k_print), 0, 0, 1, 1},
15401 {&__pyx_n_s_proc_gran, __pyx_k_proc_gran,
sizeof(__pyx_k_proc_gran), 0, 0, 1, 1},
15402 {&__pyx_n_s_process, __pyx_k_process,
sizeof(__pyx_k_process), 0, 0, 1, 1},
15403 {&__pyx_n_s_projection, __pyx_k_projection,
sizeof(__pyx_k_projection), 0, 0, 1, 1},
15404 {&__pyx_n_s_pts, __pyx_k_pts,
sizeof(__pyx_k_pts), 0, 0, 1, 1},
15405 {&__pyx_n_s_qualname, __pyx_k_qualname,
sizeof(__pyx_k_qualname), 0, 0, 1, 1},
15406 {&__pyx_n_u_r, __pyx_k_r,
sizeof(__pyx_k_r), 0, 1, 0, 1},
15407 {&__pyx_n_s_r_pts, __pyx_k_r_pts,
sizeof(__pyx_k_r_pts), 0, 0, 1, 1},
15408 {&__pyx_n_s_raa, __pyx_k_raa,
sizeof(__pyx_k_raa), 0, 0, 1, 1},
15409 {&__pyx_n_u_raa, __pyx_k_raa,
sizeof(__pyx_k_raa), 0, 1, 0, 1},
15410 {&__pyx_n_s_raa_pts, __pyx_k_raa_pts,
sizeof(__pyx_k_raa_pts), 0, 0, 1, 1},
15411 {&__pyx_n_s_range, __pyx_k_range,
sizeof(__pyx_k_range), 0, 0, 1, 1},
15412 {&__pyx_n_s_rayl, __pyx_k_rayl,
sizeof(__pyx_k_rayl), 0, 0, 1, 1},
15413 {&__pyx_n_s_rbdif, __pyx_k_rbdif,
sizeof(__pyx_k_rbdif), 0, 0, 1, 1},
15414 {&__pyx_n_s_rbsb, __pyx_k_rbsb,
sizeof(__pyx_k_rbsb), 0, 0, 1, 1},
15415 {&__pyx_n_u_reflectance, __pyx_k_reflectance,
sizeof(__pyx_k_reflectance), 0, 1, 0, 1},
15416 {&__pyx_kp_u_reflectance_2, __pyx_k_reflectance_2,
sizeof(__pyx_k_reflectance_2), 0, 1, 0, 0},
15417 {&__pyx_n_u_relative_azimuth, __pyx_k_relative_azimuth,
sizeof(__pyx_k_relative_azimuth), 0, 1, 0, 1},
15418 {&__pyx_n_s_required, __pyx_k_required,
sizeof(__pyx_k_required), 0, 0, 1, 1},
15419 {&__pyx_n_u_residual, __pyx_k_residual,
sizeof(__pyx_k_residual), 0, 1, 0, 1},
15420 {&__pyx_n_s_rfl, __pyx_k_rfl,
sizeof(__pyx_k_rfl), 0, 0, 1, 1},
15421 {&__pyx_n_u_rfl, __pyx_k_rfl,
sizeof(__pyx_k_rfl), 0, 1, 0, 1},
15422 {&__pyx_n_s_rfl_pts, __pyx_k_rfl_pts,
sizeof(__pyx_k_rfl_pts), 0, 0, 1, 1},
15423 {&__pyx_n_s_row, __pyx_k_row,
sizeof(__pyx_k_row), 0, 0, 1, 1},
15424 {&__pyx_n_s_rsd, __pyx_k_rsd,
sizeof(__pyx_k_rsd), 0, 0, 1, 1},
15425 {&__pyx_n_s_s, __pyx_k_s,
sizeof(__pyx_k_s), 0, 0, 1, 1},
15426 {&__pyx_n_s_sb2, __pyx_k_sb2,
sizeof(__pyx_k_sb2), 0, 0, 1, 1},
15427 {&__pyx_n_s_sbdif, __pyx_k_sbdif,
sizeof(__pyx_k_sbdif), 0, 0, 1, 1},
15428 {&__pyx_n_s_scatter, __pyx_k_scatter,
sizeof(__pyx_k_scatter), 0, 0, 1, 1},
15429 {&__pyx_n_s_scipy_interpolate, __pyx_k_scipy_interpolate,
sizeof(__pyx_k_scipy_interpolate), 0, 0, 1, 1},
15430 {&__pyx_n_s_self, __pyx_k_self,
sizeof(__pyx_k_self), 0, 0, 1, 1},
15431 {&__pyx_n_u_sensor_zenith, __pyx_k_sensor_zenith,
sizeof(__pyx_k_sensor_zenith), 0, 1, 0, 1},
15432 {&__pyx_n_s_set_xlabel, __pyx_k_set_xlabel,
sizeof(__pyx_k_set_xlabel), 0, 0, 1, 1},
15433 {&__pyx_n_s_set_ylabel, __pyx_k_set_ylabel,
sizeof(__pyx_k_set_ylabel), 0, 0, 1, 1},
15434 {&__pyx_n_s_set_zlabel, __pyx_k_set_zlabel,
sizeof(__pyx_k_set_zlabel), 0, 0, 1, 1},
15435 {&__pyx_n_s_shape, __pyx_k_shape,
sizeof(__pyx_k_shape), 0, 0, 1, 1},
15436 {&__pyx_n_s_show, __pyx_k_show,
sizeof(__pyx_k_show), 0, 0, 1, 1},
15437 {&__pyx_n_s_shpb, __pyx_k_shpb,
sizeof(__pyx_k_shpb), 0, 0, 1, 1},
15438 {&__pyx_n_s_shps, __pyx_k_shps,
sizeof(__pyx_k_shps), 0, 0, 1, 1},
15439 {&__pyx_n_s_small, __pyx_k_small,
sizeof(__pyx_k_small), 0, 0, 1, 1},
15440 {&__pyx_kp_u_small_model, __pyx_k_small_model,
sizeof(__pyx_k_small_model), 0, 1, 0, 0},
15441 {&__pyx_n_u_solar_zenith, __pyx_k_solar_zenith,
sizeof(__pyx_k_solar_zenith), 0, 1, 0, 1},
15442 {&__pyx_kp_u_square_side, __pyx_k_square_side,
sizeof(__pyx_k_square_side), 0, 1, 0, 0},
15443 {&__pyx_n_s_sse, __pyx_k_sse,
sizeof(__pyx_k_sse), 0, 0, 1, 1},
15444 {&__pyx_n_u_sse, __pyx_k_sse,
sizeof(__pyx_k_sse), 0, 1, 0, 1},
15445 {&__pyx_n_s_stack, __pyx_k_stack,
sizeof(__pyx_k_stack), 0, 0, 1, 1},
15446 {&__pyx_kp_u_start_line, __pyx_k_start_line,
sizeof(__pyx_k_start_line), 0, 1, 0, 0},
15447 {&__pyx_kp_u_start_pixel, __pyx_k_start_pixel,
sizeof(__pyx_k_start_pixel), 0, 1, 0, 0},
15448 {&__pyx_n_s_sys, __pyx_k_sys,
sizeof(__pyx_k_sys), 0, 0, 1, 1},
15449 {&__pyx_n_s_sza, __pyx_k_sza,
sizeof(__pyx_k_sza), 0, 0, 1, 1},
15450 {&__pyx_n_u_sza, __pyx_k_sza,
sizeof(__pyx_k_sza), 0, 1, 0, 1},
15451 {&__pyx_n_s_sza_pts, __pyx_k_sza_pts,
sizeof(__pyx_k_sza_pts), 0, 0, 1, 1},
15452 {&__pyx_n_s_tau_pts, __pyx_k_tau_pts,
sizeof(__pyx_k_tau_pts), 0, 0, 1, 1},
15453 {&__pyx_n_s_taub, __pyx_k_taub,
sizeof(__pyx_k_taub), 0, 0, 1, 1},
15454 {&__pyx_n_s_taus, __pyx_k_taus,
sizeof(__pyx_k_taus), 0, 0, 1, 1},
15455 {&__pyx_n_s_tauxb, __pyx_k_tauxb,
sizeof(__pyx_k_tauxb), 0, 0, 1, 1},
15456 {&__pyx_n_s_tauxs, __pyx_k_tauxs,
sizeof(__pyx_k_tauxs), 0, 0, 1, 1},
15457 {&__pyx_n_s_tblut, __pyx_k_tblut,
sizeof(__pyx_k_tblut), 0, 0, 1, 1},
15458 {&__pyx_n_s_test, __pyx_k_test,
sizeof(__pyx_k_test), 0, 0, 1, 1},
15459 {&__pyx_n_s_title, __pyx_k_title,
sizeof(__pyx_k_title), 0, 0, 1, 1},
15460 {&__pyx_n_s_to_netcdf, __pyx_k_to_netcdf,
sizeof(__pyx_k_to_netcdf), 0, 0, 1, 1},
15461 {&__pyx_n_u_toa_reflectance, __pyx_k_toa_reflectance,
sizeof(__pyx_k_toa_reflectance), 0, 1, 0, 1},
15462 {&__pyx_n_s_toab, __pyx_k_toab,
sizeof(__pyx_k_toab), 0, 0, 1, 1},
15463 {&__pyx_n_s_toabt, __pyx_k_toabt,
sizeof(__pyx_k_toabt), 0, 0, 1, 1},
15464 {&__pyx_n_s_toar, __pyx_k_toar,
sizeof(__pyx_k_toar), 0, 0, 1, 1},
15465 {&__pyx_n_s_toas, __pyx_k_toas,
sizeof(__pyx_k_toas), 0, 0, 1, 1},
15466 {&__pyx_n_s_toast, __pyx_k_toast,
sizeof(__pyx_k_toast), 0, 0, 1, 1},
15467 {&__pyx_n_s_transpose, __pyx_k_transpose,
sizeof(__pyx_k_transpose), 0, 0, 1, 1},
15468 {&__pyx_n_s_trflb, __pyx_k_trflb,
sizeof(__pyx_k_trflb), 0, 0, 1, 1},
15469 {&__pyx_n_s_trfls, __pyx_k_trfls,
sizeof(__pyx_k_trfls), 0, 0, 1, 1},
15470 {&__pyx_n_s_ts, __pyx_k_ts,
sizeof(__pyx_k_ts), 0, 0, 1, 1},
15471 {&__pyx_n_s_tslut, __pyx_k_tslut,
sizeof(__pyx_k_tslut), 0, 0, 1, 1},
15472 {&__pyx_n_s_tstr, __pyx_k_tstr,
sizeof(__pyx_k_tstr), 0, 0, 1, 1},
15473 {&__pyx_n_s_type, __pyx_k_type,
sizeof(__pyx_k_type), 0, 0, 1, 1},
15474 {&__pyx_n_u_type, __pyx_k_type,
sizeof(__pyx_k_type), 0, 1, 0, 1},
15475 {&__pyx_n_s_units, __pyx_k_units,
sizeof(__pyx_k_units), 0, 0, 1, 1},
15476 {&__pyx_kp_u_upper_right, __pyx_k_upper_right,
sizeof(__pyx_k_upper_right), 0, 1, 0, 0},
15477 {&__pyx_n_s_values, __pyx_k_values,
sizeof(__pyx_k_values), 0, 0, 1, 1},
15478 {&__pyx_n_s_vin, __pyx_k_vin,
sizeof(__pyx_k_vin), 0, 0, 1, 1},
15479 {&__pyx_n_s_vout, __pyx_k_vout,
sizeof(__pyx_k_vout), 0, 0, 1, 1},
15480 {&__pyx_n_s_vza, __pyx_k_vza,
sizeof(__pyx_k_vza), 0, 0, 1, 1},
15481 {&__pyx_n_u_vza, __pyx_k_vza,
sizeof(__pyx_k_vza), 0, 1, 0, 1},
15482 {&__pyx_n_s_vza_pts, __pyx_k_vza_pts,
sizeof(__pyx_k_vza_pts), 0, 0, 1, 1},
15483 {&__pyx_n_u_w, __pyx_k_w,
sizeof(__pyx_k_w), 0, 1, 0, 1},
15484 {&__pyx_kp_u_wavelength_nm, __pyx_k_wavelength_nm,
sizeof(__pyx_k_wavelength_nm), 0, 1, 0, 0},
15485 {&__pyx_n_u_wind_speed, __pyx_k_wind_speed,
sizeof(__pyx_k_wind_speed), 0, 1, 0, 1},
15486 {&__pyx_n_u_wl, __pyx_k_wl,
sizeof(__pyx_k_wl), 0, 1, 0, 1},
15487 {&__pyx_n_s_wl_pts, __pyx_k_wl_pts,
sizeof(__pyx_k_wl_pts), 0, 0, 1, 1},
15488 {&__pyx_n_s_wnd, __pyx_k_wnd,
sizeof(__pyx_k_wnd), 0, 0, 1, 1},
15489 {&__pyx_n_u_wnd, __pyx_k_wnd,
sizeof(__pyx_k_wnd), 0, 1, 0, 1},
15490 {&__pyx_n_s_wnd_pts, __pyx_k_wnd_pts,
sizeof(__pyx_k_wnd_pts), 0, 0, 1, 1},
15491 {&__pyx_n_s_write, __pyx_k_write,
sizeof(__pyx_k_write), 0, 0, 1, 1},
15492 {&__pyx_n_s_ws, __pyx_k_ws,
sizeof(__pyx_k_ws), 0, 0, 1, 1},
15493 {&__pyx_n_s_x, __pyx_k_x,
sizeof(__pyx_k_x), 0, 0, 1, 1},
15494 {&__pyx_n_u_x, __pyx_k_x,
sizeof(__pyx_k_x), 0, 1, 0, 1},
15495 {&__pyx_n_s_xarray, __pyx_k_xarray,
sizeof(__pyx_k_xarray), 0, 0, 1, 1},
15496 {&__pyx_n_s_xb, __pyx_k_xb,
sizeof(__pyx_k_xb), 0, 0, 1, 1},
15497 {&__pyx_n_s_xdim, __pyx_k_xdim,
sizeof(__pyx_k_xdim), 0, 0, 1, 1},
15498 {&__pyx_n_s_xin, __pyx_k_xin,
sizeof(__pyx_k_xin), 0, 0, 1, 1},
15499 {&__pyx_n_s_xit, __pyx_k_xit,
sizeof(__pyx_k_xit), 0, 0, 1, 1},
15500 {&__pyx_n_s_xlabel, __pyx_k_xlabel,
sizeof(__pyx_k_xlabel), 0, 0, 1, 1},
15501 {&__pyx_n_s_xm, __pyx_k_xm,
sizeof(__pyx_k_xm), 0, 0, 1, 1},
15502 {&__pyx_n_s_xp, __pyx_k_xp,
sizeof(__pyx_k_xp), 0, 0, 1, 1},
15503 {&__pyx_n_s_xr, __pyx_k_xr,
sizeof(__pyx_k_xr), 0, 0, 1, 1},
15504 {&__pyx_n_s_xs, __pyx_k_xs,
sizeof(__pyx_k_xs), 0, 0, 1, 1},
15505 {&__pyx_n_s_y, __pyx_k_y,
sizeof(__pyx_k_y), 0, 0, 1, 1},
15506 {&__pyx_n_u_y, __pyx_k_y,
sizeof(__pyx_k_y), 0, 1, 0, 1},
15507 {&__pyx_n_s_yb, __pyx_k_yb,
sizeof(__pyx_k_yb), 0, 0, 1, 1},
15508 {&__pyx_n_s_ydim, __pyx_k_ydim,
sizeof(__pyx_k_ydim), 0, 0, 1, 1},
15509 {&__pyx_n_s_ylabel, __pyx_k_ylabel,
sizeof(__pyx_k_ylabel), 0, 0, 1, 1},
15510 {&__pyx_n_s_ym, __pyx_k_ym,
sizeof(__pyx_k_ym), 0, 0, 1, 1},
15511 {&__pyx_n_s_yout, __pyx_k_yout,
sizeof(__pyx_k_yout), 0, 0, 1, 1},
15512 {&__pyx_n_s_yp, __pyx_k_yp,
sizeof(__pyx_k_yp), 0, 0, 1, 1},
15513 {&__pyx_n_s_ys, __pyx_k_ys,
sizeof(__pyx_k_ys), 0, 0, 1, 1},
15514 {&__pyx_n_s_z, __pyx_k_z,
sizeof(__pyx_k_z), 0, 0, 1, 1},
15515 {&__pyx_n_u_z, __pyx_k_z,
sizeof(__pyx_k_z), 0, 1, 0, 1},
15516 {&__pyx_n_s_zb, __pyx_k_zb,
sizeof(__pyx_k_zb), 0, 0, 1, 1},
15517 {&__pyx_n_s_zeros, __pyx_k_zeros,
sizeof(__pyx_k_zeros), 0, 0, 1, 1},
15518 {&__pyx_n_s_zeros_like, __pyx_k_zeros_like,
sizeof(__pyx_k_zeros_like), 0, 0, 1, 1},
15519 {&__pyx_n_s_zm, __pyx_k_zm,
sizeof(__pyx_k_zm), 0, 0, 1, 1},
15520 {&__pyx_n_s_zp, __pyx_k_zp,
sizeof(__pyx_k_zp), 0, 0, 1, 1},
15521 {&__pyx_n_s_zs, __pyx_k_zs,
sizeof(__pyx_k_zs), 0, 0, 1, 1},
15522 {0, 0, 0, 0, 0, 0, 0}
15524 static CYTHON_SMALL_CODE
int __Pyx_InitCachedBuiltins(
void) {
15525 __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object);
if (!__pyx_builtin_object) __PYX_ERR(0, 33, __pyx_L1_error)
15526 __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print);
if (!__pyx_builtin_print) __PYX_ERR(0, 36, __pyx_L1_error)
15527 __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range);
if (!__pyx_builtin_range) __PYX_ERR(0, 73, __pyx_L1_error)
15533 static CYTHON_SMALL_CODE
int __Pyx_InitCachedConstants(
void) {
15534 __Pyx_RefNannyDeclarations
15535 __Pyx_RefNannySetupContext(
"__Pyx_InitCachedConstants", 0);
15544 __pyx_tuple_ = PyTuple_Pack(3, __pyx_int_0, __pyx_int_1, __pyx_int_2);
if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 52, __pyx_L1_error)
15545 __Pyx_GOTREF(__pyx_tuple_);
15546 __Pyx_GIVEREF(__pyx_tuple_);
15555 __pyx_tuple__2 = PyTuple_Pack(7, __pyx_int_3, __pyx_int_4, __pyx_int_5, __pyx_int_6, __pyx_int_0, __pyx_int_1, __pyx_int_2);
if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 54, __pyx_L1_error)
15556 __Pyx_GOTREF(__pyx_tuple__2);
15557 __Pyx_GIVEREF(__pyx_tuple__2);
15566 __pyx_tuple__3 = PyTuple_Pack(5, __pyx_int_1, __pyx_int_2, __pyx_int_3, __pyx_int_4, __pyx_int_0);
if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 56, __pyx_L1_error)
15567 __Pyx_GOTREF(__pyx_tuple__3);
15568 __Pyx_GIVEREF(__pyx_tuple__3);
15577 __pyx_slice__4 = PySlice_New(Py_None, Py_None, Py_None);
if (unlikely(!__pyx_slice__4)) __PYX_ERR(0, 58, __pyx_L1_error)
15578 __Pyx_GOTREF(__pyx_slice__4);
15579 __Pyx_GIVEREF(__pyx_slice__4);
15588 __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_Unable_to_read_LUT_file_exiting);
if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 63, __pyx_L1_error)
15589 __Pyx_GOTREF(__pyx_tuple__5);
15590 __Pyx_GIVEREF(__pyx_tuple__5);
15599 __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_interpolate_to_reflectance_for_e);
if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 112, __pyx_L1_error)
15600 __Pyx_GOTREF(__pyx_tuple__6);
15601 __Pyx_GIVEREF(__pyx_tuple__6);
15610 __pyx_slice__7 = PySlice_New(__pyx_int_1, Py_None, Py_None);
if (unlikely(!__pyx_slice__7)) __PYX_ERR(0, 157, __pyx_L1_error)
15611 __Pyx_GOTREF(__pyx_slice__7);
15612 __Pyx_GIVEREF(__pyx_slice__7);
15621 __pyx_tuple__9 = PyTuple_Pack(1, __pyx_int_111);
if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 195, __pyx_L1_error)
15622 __Pyx_GOTREF(__pyx_tuple__9);
15623 __Pyx_GIVEREF(__pyx_tuple__9);
15632 __pyx_slice__10 = PySlice_New(Py_None, __pyx_int_neg_1, Py_None);
if (unlikely(!__pyx_slice__10)) __PYX_ERR(0, 239, __pyx_L1_error)
15633 __Pyx_GOTREF(__pyx_slice__10);
15634 __Pyx_GIVEREF(__pyx_slice__10);
15635 __pyx_tuple__11 = PyTuple_Pack(2, __pyx_slice__4, __pyx_slice__10);
if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 239, __pyx_L1_error)
15636 __Pyx_GOTREF(__pyx_tuple__11);
15637 __Pyx_GIVEREF(__pyx_tuple__11);
15646 __pyx_slice__12 = PySlice_New(__pyx_int_2, __pyx_int_7, Py_None);
if (unlikely(!__pyx_slice__12)) __PYX_ERR(0, 253, __pyx_L1_error)
15647 __Pyx_GOTREF(__pyx_slice__12);
15648 __Pyx_GIVEREF(__pyx_slice__12);
15649 __pyx_tuple__13 = PyTuple_Pack(3, __pyx_slice__12, __pyx_slice__4, __pyx_slice__4);
if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 253, __pyx_L1_error)
15650 __Pyx_GOTREF(__pyx_tuple__13);
15651 __Pyx_GIVEREF(__pyx_tuple__13);
15660 __pyx_slice__14 = PySlice_New(__pyx_int_8, Py_None, Py_None);
if (unlikely(!__pyx_slice__14)) __PYX_ERR(0, 254, __pyx_L1_error)
15661 __Pyx_GOTREF(__pyx_slice__14);
15662 __Pyx_GIVEREF(__pyx_slice__14);
15663 __pyx_tuple__15 = PyTuple_Pack(3, __pyx_slice__14, __pyx_slice__4, __pyx_slice__4);
if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 254, __pyx_L1_error)
15664 __Pyx_GOTREF(__pyx_tuple__15);
15665 __Pyx_GIVEREF(__pyx_tuple__15);
15674 __pyx_tuple__16 = PyTuple_Pack(3, __pyx_int_1, __pyx_int_2, __pyx_int_0);
if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 262, __pyx_L1_error)
15675 __Pyx_GOTREF(__pyx_tuple__16);
15676 __Pyx_GIVEREF(__pyx_tuple__16);
15685 __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_u_Unable_to_read_from_input_file_e);
if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 266, __pyx_L1_error)
15686 __Pyx_GOTREF(__pyx_tuple__17);
15687 __Pyx_GIVEREF(__pyx_tuple__17);
15696 __pyx_tuple__18 = PyTuple_Pack(3, __pyx_n_u_wl, __pyx_n_u_y, __pyx_n_u_x);
if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 277, __pyx_L1_error)
15697 __Pyx_GOTREF(__pyx_tuple__18);
15698 __Pyx_GIVEREF(__pyx_tuple__18);
15707 __pyx_tuple__19 = PyTuple_Pack(2, __pyx_n_u_y, __pyx_n_u_x);
if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 278, __pyx_L1_error)
15708 __Pyx_GOTREF(__pyx_tuple__19);
15709 __Pyx_GIVEREF(__pyx_tuple__19);
15718 __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_u_Unable_to_initialize_output_file);
if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 295, __pyx_L1_error)
15719 __Pyx_GOTREF(__pyx_tuple__20);
15720 __Pyx_GIVEREF(__pyx_tuple__20);
15729 __pyx_tuple__21 = PyTuple_Pack(2, __pyx_kp_u_i, __pyx_kp_u_ifile_2);
if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 305, __pyx_L1_error)
15730 __Pyx_GOTREF(__pyx_tuple__21);
15731 __Pyx_GIVEREF(__pyx_tuple__21);
15740 __pyx_tuple__22 = PyTuple_Pack(2, __pyx_kp_u_o_2, __pyx_kp_u_ofile_2);
if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 307, __pyx_L1_error)
15741 __Pyx_GOTREF(__pyx_tuple__22);
15742 __Pyx_GIVEREF(__pyx_tuple__22);
15751 __pyx_tuple__23 = PyTuple_Pack(2, __pyx_kp_u_l, __pyx_kp_u_lut);
if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 309, __pyx_L1_error)
15752 __Pyx_GOTREF(__pyx_tuple__23);
15753 __Pyx_GIVEREF(__pyx_tuple__23);
15762 __pyx_tuple__24 = PyTuple_Pack(2, __pyx_kp_u_p, __pyx_kp_u_plot_2);
if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 311, __pyx_L1_error)
15763 __Pyx_GOTREF(__pyx_tuple__24);
15764 __Pyx_GIVEREF(__pyx_tuple__24);
15773 __pyx_tuple__25 = PyTuple_Pack(2, __pyx_kp_u_m, __pyx_kp_u_mode_2);
if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 313, __pyx_L1_error)
15774 __Pyx_GOTREF(__pyx_tuple__25);
15775 __Pyx_GIVEREF(__pyx_tuple__25);
15784 __pyx_tuple__26 = PyTuple_Pack(1, __pyx_n_u_y);
if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 315, __pyx_L1_error)
15785 __Pyx_GOTREF(__pyx_tuple__26);
15786 __Pyx_GIVEREF(__pyx_tuple__26);
15795 __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_u_x);
if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 316, __pyx_L1_error)
15796 __Pyx_GOTREF(__pyx_tuple__27);
15797 __Pyx_GIVEREF(__pyx_tuple__27);
15806 __pyx_tuple__28 = PyTuple_Pack(1, __pyx_n_u_z);
if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 317, __pyx_L1_error)
15807 __Pyx_GOTREF(__pyx_tuple__28);
15808 __Pyx_GIVEREF(__pyx_tuple__28);
15817 __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_u__8);
if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 349, __pyx_L1_error)
15818 __Pyx_GOTREF(__pyx_tuple__29);
15819 __Pyx_GIVEREF(__pyx_tuple__29);
15828 __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_u_Done);
if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 350, __pyx_L1_error)
15829 __Pyx_GOTREF(__pyx_tuple__31);
15830 __Pyx_GIVEREF(__pyx_tuple__31);
15839 __pyx_tuple__33 = PyTuple_Pack(1, __pyx_builtin_object);
if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 33, __pyx_L1_error)
15840 __Pyx_GOTREF(__pyx_tuple__33);
15841 __Pyx_GIVEREF(__pyx_tuple__33);
15850 __pyx_tuple__34 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_lut_filepath, __pyx_n_s_mode, __pyx_n_s_inst);
if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 35, __pyx_L1_error)
15851 __Pyx_GOTREF(__pyx_tuple__34);
15852 __Pyx_GIVEREF(__pyx_tuple__34);
15853 __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_init, 35, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__35)) __PYX_ERR(0, 35, __pyx_L1_error)
15862 __pyx_tuple__36 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_num, __pyx_n_s_xin, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_yout, __pyx_n_s_i_2);
if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 67, __pyx_L1_error)
15863 __Pyx_GOTREF(__pyx_tuple__36);
15864 __Pyx_GIVEREF(__pyx_tuple__36);
15865 __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(5, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_interp_extrap, 67, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(0, 67, __pyx_L1_error)
15874 __pyx_tuple__38 = PyTuple_Pack(23, __pyx_n_s_self, __pyx_n_s_rfl, __pyx_n_s_sza, __pyx_n_s_vza, __pyx_n_s_raa, __pyx_n_s_wnd, __pyx_n_s_xit, __pyx_n_s_mrfls, __pyx_n_s_mrflb, __pyx_n_s_mrflr, __pyx_n_s_units, __pyx_n_s_max_rfl, __pyx_n_s_min_rfl, __pyx_n_s_shps, __pyx_n_s_shpb, __pyx_n_s_iwl, __pyx_n_s_ism, __pyx_n_s_iwn, __pyx_n_s_isz, __pyx_n_s_ith, __pyx_n_s_iph, __pyx_n_s_itau, __pyx_n_s_ibm);
if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 79, __pyx_L1_error)
15875 __Pyx_GOTREF(__pyx_tuple__38);
15876 __Pyx_GIVEREF(__pyx_tuple__38);
15877 __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(6, 0, 23, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_proc_gran, 79, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__39)) __PYX_ERR(0, 79, __pyx_L1_error)
15886 __pyx_tuple__40 = PyTuple_Pack(30, __pyx_n_s_self, __pyx_n_s_rfl, __pyx_n_s_sza, __pyx_n_s_vza, __pyx_n_s_raa, __pyx_n_s_wnd, __pyx_n_s_xit, __pyx_n_s_units, __pyx_n_s_mrfls, __pyx_n_s_mrflb, __pyx_n_s_mrflr, __pyx_n_s_tauxs, __pyx_n_s_tauxb, __pyx_n_s_ism, __pyx_n_s_ibm, __pyx_n_s_trfls, __pyx_n_s_trflb, __pyx_n_s_iwl, __pyx_n_s_aot, __pyx_n_s_fmf, __pyx_n_s_sse, __pyx_n_s_denom, __pyx_n_s_rbdif, __pyx_n_s_sbdif, __pyx_n_s_sb2, __pyx_n_s_rbsb, __pyx_n_s_xm, __pyx_n_s_mrfl, __pyx_n_s_err, __pyx_n_s_im);
if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 124, __pyx_L1_error)
15887 __Pyx_GOTREF(__pyx_tuple__40);
15888 __Pyx_GIVEREF(__pyx_tuple__40);
15889 __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(6, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_process, 124, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__41)) __PYX_ERR(0, 124, __pyx_L1_error)
15898 __pyx_tuple__42 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_iy, __pyx_n_s_ix, __pyx_n_s_tstr);
if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 180, __pyx_L1_error)
15899 __Pyx_GOTREF(__pyx_tuple__42);
15900 __Pyx_GIVEREF(__pyx_tuple__42);
15901 __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__42, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_plot, 180, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__43)) __PYX_ERR(0, 180, __pyx_L1_error)
15910 __pyx_tuple__44 = PyTuple_Pack(21, __pyx_n_s_self, __pyx_n_s_fig, __pyx_n_s_ax, __pyx_n_s_s, __pyx_n_s_xs, __pyx_n_s_ys, __pyx_n_s_zs, __pyx_n_s_b, __pyx_n_s_xb, __pyx_n_s_yb, __pyx_n_s_zb, __pyx_n_s_xp, __pyx_n_s_yp, __pyx_n_s_zp, __pyx_n_s_xm, __pyx_n_s_ym, __pyx_n_s_zm, __pyx_n_s_ws, __pyx_n_s_ts, __pyx_n_s_ls, __pyx_n_s_lb);
if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 193, __pyx_L1_error)
15911 __Pyx_GOTREF(__pyx_tuple__44);
15912 __Pyx_GIVEREF(__pyx_tuple__44);
15913 __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(1, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_plot_points, 193, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__45)) __PYX_ERR(0, 193, __pyx_L1_error)
15922 __pyx_tuple__46 = PyTuple_Pack(1, __pyx_builtin_object);
if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 247, __pyx_L1_error)
15923 __Pyx_GOTREF(__pyx_tuple__46);
15924 __Pyx_GIVEREF(__pyx_tuple__46);
15933 __pyx_tuple__47 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_l1b_filepath, __pyx_n_s_inst);
if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 249, __pyx_L1_error)
15934 __Pyx_GOTREF(__pyx_tuple__47);
15935 __Pyx_GIVEREF(__pyx_tuple__47);
15936 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_init, 249, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 249, __pyx_L1_error)
15945 __pyx_tuple__49 = PyTuple_Pack(1, __pyx_builtin_object);
if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 270, __pyx_L1_error)
15946 __Pyx_GOTREF(__pyx_tuple__49);
15947 __Pyx_GIVEREF(__pyx_tuple__49);
15956 __pyx_tuple__50 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_out_filepath, __pyx_n_s_ydim, __pyx_n_s_xdim, __pyx_n_s_inst);
if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 272, __pyx_L1_error)
15957 __Pyx_GOTREF(__pyx_tuple__50);
15958 __Pyx_GIVEREF(__pyx_tuple__50);
15959 __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_init, 272, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(0, 272, __pyx_L1_error)
15968 __pyx_tuple__52 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 298, __pyx_L1_error)
15969 __Pyx_GOTREF(__pyx_tuple__52);
15970 __Pyx_GIVEREF(__pyx_tuple__52);
15971 __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__52, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_write, 298, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 298, __pyx_L1_error)
15980 __pyx_tuple__54 = PyTuple_Pack(11, __pyx_n_s_parser, __pyx_n_s_args, __pyx_n_s_vin, __pyx_n_s_vout, __pyx_n_s_dto, __pyx_n_s_iy, __pyx_n_s_ix, __pyx_n_s_fmf, __pyx_n_s_aot, __pyx_n_s_sse, __pyx_n_s_type);
if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 302, __pyx_L1_error)
15981 __Pyx_GOTREF(__pyx_tuple__54);
15982 __Pyx_GIVEREF(__pyx_tuple__54);
15983 __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_dtocean_pyx, __pyx_n_s_main_2, 302, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 302, __pyx_L1_error)
15984 __Pyx_RefNannyFinishContext();
15987 __Pyx_RefNannyFinishContext();
15991 static CYTHON_SMALL_CODE
int __Pyx_InitGlobals(
void) {
15992 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
15993 __pyx_float_0_0 = PyFloat_FromDouble(0.0);
if (unlikely(!__pyx_float_0_0)) __PYX_ERR(0, 1, __pyx_L1_error)
15994 __pyx_float_0_5 = PyFloat_FromDouble(0.5);
if (unlikely(!__pyx_float_0_5)) __PYX_ERR(0, 1, __pyx_L1_error)
15995 __pyx_float_1_0 = PyFloat_FromDouble(1.0);
if (unlikely(!__pyx_float_1_0)) __PYX_ERR(0, 1, __pyx_L1_error)
15996 __pyx_float_1_2 = PyFloat_FromDouble(1.2);
if (unlikely(!__pyx_float_1_2)) __PYX_ERR(0, 1, __pyx_L1_error)
15997 __pyx_float_6_0 = PyFloat_FromDouble(6.0);
if (unlikely(!__pyx_float_6_0)) __PYX_ERR(0, 1, __pyx_L1_error)
15998 __pyx_float_0_01 = PyFloat_FromDouble(0.01);
if (unlikely(!__pyx_float_0_01)) __PYX_ERR(0, 1, __pyx_L1_error)
15999 __pyx_float_10_0 = PyFloat_FromDouble(10.0);
if (unlikely(!__pyx_float_10_0)) __PYX_ERR(0, 1, __pyx_L1_error)
16000 __pyx_float_16_0 = PyFloat_FromDouble(16.0);
if (unlikely(!__pyx_float_16_0)) __PYX_ERR(0, 1, __pyx_L1_error)
16001 __pyx_float_180_0 = PyFloat_FromDouble(180.0);
if (unlikely(!__pyx_float_180_0)) __PYX_ERR(0, 1, __pyx_L1_error)
16002 __pyx_float_neg_999_9 = PyFloat_FromDouble(-999.9);
if (unlikely(!__pyx_float_neg_999_9)) __PYX_ERR(0, 1, __pyx_L1_error)
16003 __pyx_int_0 = PyInt_FromLong(0);
if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
16004 __pyx_int_1 = PyInt_FromLong(1);
if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
16005 __pyx_int_2 = PyInt_FromLong(2);
if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
16006 __pyx_int_3 = PyInt_FromLong(3);
if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
16007 __pyx_int_4 = PyInt_FromLong(4);
if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error)
16008 __pyx_int_5 = PyInt_FromLong(5);
if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error)
16009 __pyx_int_6 = PyInt_FromLong(6);
if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error)
16010 __pyx_int_7 = PyInt_FromLong(7);
if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error)
16011 __pyx_int_8 = PyInt_FromLong(8);
if (unlikely(!__pyx_int_8)) __PYX_ERR(0, 1, __pyx_L1_error)
16012 __pyx_int_11 = PyInt_FromLong(11);
if (unlikely(!__pyx_int_11)) __PYX_ERR(0, 1, __pyx_L1_error)
16013 __pyx_int_16 = PyInt_FromLong(16);
if (unlikely(!__pyx_int_16)) __PYX_ERR(0, 1, __pyx_L1_error)
16014 __pyx_int_50 = PyInt_FromLong(50);
if (unlikely(!__pyx_int_50)) __PYX_ERR(0, 1, __pyx_L1_error)
16015 __pyx_int_111 = PyInt_FromLong(111);
if (unlikely(!__pyx_int_111)) __PYX_ERR(0, 1, __pyx_L1_error)
16016 __pyx_int_neg_1 = PyInt_FromLong(-1);
if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error)
16017 __pyx_int_neg_999 = PyInt_FromLong(-999);
if (unlikely(!__pyx_int_neg_999)) __PYX_ERR(0, 1, __pyx_L1_error)
16023 static CYTHON_SMALL_CODE
int __Pyx_modinit_global_init_code(
void);
16024 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_export_code(
void);
16025 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_export_code(
void);
16026 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_init_code(
void);
16027 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_import_code(
void);
16028 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_import_code(
void);
16029 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_import_code(
void);
16031 static int __Pyx_modinit_global_init_code(
void) {
16032 __Pyx_RefNannyDeclarations
16033 __Pyx_RefNannySetupContext(
"__Pyx_modinit_global_init_code", 0);
16035 __Pyx_RefNannyFinishContext();
16039 static int __Pyx_modinit_variable_export_code(
void) {
16040 __Pyx_RefNannyDeclarations
16041 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_export_code", 0);
16043 __Pyx_RefNannyFinishContext();
16047 static int __Pyx_modinit_function_export_code(
void) {
16048 __Pyx_RefNannyDeclarations
16049 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_export_code", 0);
16051 __Pyx_RefNannyFinishContext();
16055 static int __Pyx_modinit_type_init_code(
void) {
16056 __Pyx_RefNannyDeclarations
16057 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_init_code", 0);
16059 __Pyx_RefNannyFinishContext();
16063 static int __Pyx_modinit_type_import_code(
void) {
16064 __Pyx_RefNannyDeclarations
16065 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_import_code", 0);
16067 __Pyx_RefNannyFinishContext();
16071 static int __Pyx_modinit_variable_import_code(
void) {
16072 __Pyx_RefNannyDeclarations
16073 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_import_code", 0);
16075 __Pyx_RefNannyFinishContext();
16079 static int __Pyx_modinit_function_import_code(
void) {
16080 __Pyx_RefNannyDeclarations
16081 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_import_code", 0);
16083 __Pyx_RefNannyFinishContext();
16088 #ifndef CYTHON_NO_PYINIT_EXPORT
16089 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
16090 #elif PY_MAJOR_VERSION < 3
16092 #define __Pyx_PyMODINIT_FUNC extern "C" void
16094 #define __Pyx_PyMODINIT_FUNC void
16098 #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
16100 #define __Pyx_PyMODINIT_FUNC PyObject *
16105 #if PY_MAJOR_VERSION < 3
16106 __Pyx_PyMODINIT_FUNC initdtocean(
void) CYTHON_SMALL_CODE;
16107 __Pyx_PyMODINIT_FUNC initdtocean(
void)
16109 __Pyx_PyMODINIT_FUNC PyInit_dtocean(
void) CYTHON_SMALL_CODE;
16110 __Pyx_PyMODINIT_FUNC PyInit_dtocean(
void)
16111 #if CYTHON_PEP489_MULTI_PHASE_INIT
16113 return PyModuleDef_Init(&__pyx_moduledef);
16115 static CYTHON_SMALL_CODE
int __Pyx_check_single_interpreter(
void) {
16116 #if PY_VERSION_HEX >= 0x030700A1
16117 static PY_INT64_T main_interpreter_id = -1;
16118 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->
interp);
16119 if (main_interpreter_id == -1) {
16120 main_interpreter_id = current_id;
16121 return (unlikely(current_id == -1)) ? -1 : 0;
16122 }
else if (unlikely(main_interpreter_id != current_id))
16124 static PyInterpreterState *main_interpreter =
NULL;
16125 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
16126 if (!main_interpreter) {
16127 main_interpreter = current_interpreter;
16128 }
else if (unlikely(main_interpreter != current_interpreter))
16133 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
16138 static CYTHON_SMALL_CODE
int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict,
const char* from_name,
const char* to_name,
int allow_none) {
16139 PyObject *
value = PyObject_GetAttrString(spec, from_name);
16141 if (likely(
value)) {
16142 if (allow_none ||
value != Py_None) {
16143 result = PyDict_SetItemString(moddict, to_name,
value);
16146 }
else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
16153 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
16154 PyObject *module =
NULL, *moddict, *modname;
16155 if (__Pyx_check_single_interpreter())
16158 return __Pyx_NewRef(__pyx_m);
16159 modname = PyObject_GetAttrString(spec,
"name");
16160 if (unlikely(!modname))
goto bad;
16161 module = PyModule_NewObject(modname);
16162 Py_DECREF(modname);
16163 if (unlikely(!module))
goto bad;
16164 moddict = PyModule_GetDict(module);
16165 if (unlikely(!moddict))
goto bad;
16166 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"loader",
"__loader__", 1) < 0))
goto bad;
16167 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"origin",
"__file__", 1) < 0))
goto bad;
16168 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"parent",
"__package__", 1) < 0))
goto bad;
16169 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"submodule_search_locations",
"__path__", 0) < 0))
goto bad;
16172 Py_XDECREF(module);
16177 static CYTHON_SMALL_CODE
int __pyx_pymod_exec_dtocean(PyObject *__pyx_pyinit_module)
16181 PyObject *__pyx_t_1 =
NULL;
16182 PyObject *__pyx_t_2 =
NULL;
16183 PyObject *__pyx_t_3 =
NULL;
16185 int __pyx_lineno = 0;
16186 const char *__pyx_filename =
NULL;
16187 int __pyx_clineno = 0;
16188 __Pyx_RefNannyDeclarations
16189 #if CYTHON_PEP489_MULTI_PHASE_INIT
16191 if (__pyx_m == __pyx_pyinit_module)
return 0;
16192 PyErr_SetString(PyExc_RuntimeError,
"Module 'dtocean' has already been imported. Re-initialisation is not supported.");
16195 #elif PY_MAJOR_VERSION >= 3
16196 if (__pyx_m)
return __Pyx_NewRef(__pyx_m);
16198 #if CYTHON_REFNANNY
16199 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"refnanny");
16200 if (!__Pyx_RefNanny) {
16202 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"Cython.Runtime.refnanny");
16203 if (!__Pyx_RefNanny)
16204 Py_FatalError(
"failed to import 'refnanny' module");
16207 __Pyx_RefNannySetupContext(
"__Pyx_PyMODINIT_FUNC PyInit_dtocean(void)", 0);
16208 if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16209 #ifdef __Pxy_PyFrame_Initialize_Offsets
16210 __Pxy_PyFrame_Initialize_Offsets();
16212 __pyx_empty_tuple = PyTuple_New(0);
if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
16213 __pyx_empty_bytes = PyBytes_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
16214 __pyx_empty_unicode = PyUnicode_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
16215 #ifdef __Pyx_CyFunction_USED
16216 if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16218 #ifdef __Pyx_FusedFunction_USED
16219 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16221 #ifdef __Pyx_Coroutine_USED
16222 if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16224 #ifdef __Pyx_Generator_USED
16225 if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16227 #ifdef __Pyx_AsyncGen_USED
16228 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16230 #ifdef __Pyx_StopAsyncIteration_USED
16231 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16235 #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
16237 PyEval_InitThreads();
16241 #if CYTHON_PEP489_MULTI_PHASE_INIT
16242 __pyx_m = __pyx_pyinit_module;
16243 Py_INCREF(__pyx_m);
16245 #if PY_MAJOR_VERSION < 3
16246 __pyx_m = Py_InitModule4(
"dtocean", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
16248 __pyx_m = PyModule_Create(&__pyx_moduledef);
16250 if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
16252 __pyx_d = PyModule_GetDict(__pyx_m);
if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
16253 Py_INCREF(__pyx_d);
16254 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
16255 Py_INCREF(__pyx_b);
16256 __pyx_cython_runtime = PyImport_AddModule((
char *)
"cython_runtime");
if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
16257 Py_INCREF(__pyx_cython_runtime);
16258 if (PyObject_SetAttrString(__pyx_m,
"__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
16260 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16261 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
16262 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16264 if (__pyx_module_is_main_dtocean) {
16265 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16267 #if PY_MAJOR_VERSION >= 3
16269 PyObject *modules = PyImport_GetModuleDict();
if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
16270 if (!PyDict_GetItemString(modules,
"dtocean")) {
16271 if (unlikely(PyDict_SetItemString(modules,
"dtocean", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
16276 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16278 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16280 (void)__Pyx_modinit_global_init_code();
16281 (void)__Pyx_modinit_variable_export_code();
16282 (void)__Pyx_modinit_function_export_code();
16283 (void)__Pyx_modinit_type_init_code();
16284 (void)__Pyx_modinit_type_import_code();
16285 (void)__Pyx_modinit_variable_import_code();
16286 (void)__Pyx_modinit_function_import_code();
16288 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
16289 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16299 __pyx_t_1 = __Pyx_Import(__pyx_n_s_os, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3, __pyx_L1_error)
16300 __Pyx_GOTREF(__pyx_t_1);
16301 if (PyDict_SetItem(__pyx_d, __pyx_n_s_os, __pyx_t_1) < 0) __PYX_ERR(0, 3, __pyx_L1_error)
16302 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16311 __pyx_t_1 = __Pyx_Import(__pyx_n_s_sys, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
16312 __Pyx_GOTREF(__pyx_t_1);
16313 if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_1) < 0) __PYX_ERR(0, 4, __pyx_L1_error)
16314 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16323 __pyx_t_1 = __Pyx_Import(__pyx_n_s_math, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error)
16324 __Pyx_GOTREF(__pyx_t_1);
16325 if (PyDict_SetItem(__pyx_d, __pyx_n_s_math, __pyx_t_1) < 0) __PYX_ERR(0, 5, __pyx_L1_error)
16326 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16335 __pyx_t_1 = __Pyx_Import(__pyx_n_s_argparse, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error)
16336 __Pyx_GOTREF(__pyx_t_1);
16337 if (PyDict_SetItem(__pyx_d, __pyx_n_s_argparse, __pyx_t_1) < 0) __PYX_ERR(0, 6, __pyx_L1_error)
16338 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16347 __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error)
16348 __Pyx_GOTREF(__pyx_t_1);
16349 if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 7, __pyx_L1_error)
16350 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16359 __pyx_t_1 = __Pyx_Import(__pyx_n_s_xarray, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
16360 __Pyx_GOTREF(__pyx_t_1);
16361 if (PyDict_SetItem(__pyx_d, __pyx_n_s_xr, __pyx_t_1) < 0) __PYX_ERR(0, 8, __pyx_L1_error)
16362 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16371 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error)
16372 __Pyx_GOTREF(__pyx_t_1);
16373 __Pyx_INCREF(__pyx_n_s__32);
16374 __Pyx_GIVEREF(__pyx_n_s__32);
16375 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s__32);
16376 __pyx_t_2 = __Pyx_Import(__pyx_n_s_matplotlib_pyplot, __pyx_t_1, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
16377 __Pyx_GOTREF(__pyx_t_2);
16378 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16379 if (PyDict_SetItem(__pyx_d, __pyx_n_s_plt, __pyx_t_2) < 0) __PYX_ERR(0, 9, __pyx_L1_error)
16380 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16389 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error)
16390 __Pyx_GOTREF(__pyx_t_2);
16391 __Pyx_INCREF(__pyx_n_s__32);
16392 __Pyx_GIVEREF(__pyx_n_s__32);
16393 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s__32);
16394 __pyx_t_1 = __Pyx_Import(__pyx_n_s_scipy_interpolate, __pyx_t_2, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error)
16395 __Pyx_GOTREF(__pyx_t_1);
16396 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16397 if (PyDict_SetItem(__pyx_d, __pyx_n_s_interp, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error)
16398 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16407 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error)
16408 __Pyx_GOTREF(__pyx_t_1);
16409 __Pyx_INCREF(__pyx_n_s__32);
16410 __Pyx_GIVEREF(__pyx_n_s__32);
16411 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s__32);
16412 __pyx_t_2 = __Pyx_Import(__pyx_n_s_matplotlib, __pyx_t_1, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error)
16413 __Pyx_GOTREF(__pyx_t_2);
16414 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16415 if (__pyx_import_star(__pyx_t_2) < 0) __PYX_ERR(0, 11, __pyx_L1_error);
16416 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16425 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error)
16426 __Pyx_GOTREF(__pyx_t_2);
16427 __Pyx_INCREF(__pyx_n_s_MaxNLocator);
16428 __Pyx_GIVEREF(__pyx_n_s_MaxNLocator);
16429 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_MaxNLocator);
16430 __pyx_t_1 = __Pyx_Import(__pyx_n_s_matplotlib_ticker, __pyx_t_2, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error)
16431 __Pyx_GOTREF(__pyx_t_1);
16432 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16433 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_MaxNLocator);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error)
16434 __Pyx_GOTREF(__pyx_t_2);
16435 if (PyDict_SetItem(__pyx_d, __pyx_n_s_MaxNLocator, __pyx_t_2) < 0) __PYX_ERR(0, 12, __pyx_L1_error)
16436 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16437 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16446 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error)
16447 __Pyx_GOTREF(__pyx_t_1);
16448 __Pyx_INCREF(__pyx_n_s_Axes3D);
16449 __Pyx_GIVEREF(__pyx_n_s_Axes3D);
16450 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Axes3D);
16451 __pyx_t_2 = __Pyx_Import(__pyx_n_s_mpl_toolkits_mplot3d, __pyx_t_1, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error)
16452 __Pyx_GOTREF(__pyx_t_2);
16453 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16454 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Axes3D);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error)
16455 __Pyx_GOTREF(__pyx_t_1);
16456 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Axes3D, __pyx_t_1) < 0) __PYX_ERR(0, 13, __pyx_L1_error)
16457 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16458 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16467 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
16468 __Pyx_GOTREF(__pyx_t_2);
16469 __Pyx_INCREF(__pyx_n_s_datetime);
16470 __Pyx_GIVEREF(__pyx_n_s_datetime);
16471 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_datetime);
16472 __pyx_t_1 = __Pyx_Import(__pyx_n_s_datetime, __pyx_t_2, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error)
16473 __Pyx_GOTREF(__pyx_t_1);
16474 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16475 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_datetime);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
16476 __Pyx_GOTREF(__pyx_t_2);
16477 if (PyDict_SetItem(__pyx_d, __pyx_n_s_datetime, __pyx_t_2) < 0) __PYX_ERR(0, 14, __pyx_L1_error)
16478 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16479 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16488 if (PyDict_SetItem(__pyx_d, __pyx_n_s_W470, __pyx_int_0) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
16497 if (PyDict_SetItem(__pyx_d, __pyx_n_s_W550, __pyx_int_1) < 0) __PYX_ERR(0, 17, __pyx_L1_error)
16506 if (PyDict_SetItem(__pyx_d, __pyx_n_s_W659, __pyx_int_2) < 0) __PYX_ERR(0, 18, __pyx_L1_error)
16515 if (PyDict_SetItem(__pyx_d, __pyx_n_s_W860, __pyx_int_3) < 0) __PYX_ERR(0, 19, __pyx_L1_error)
16524 if (PyDict_SetItem(__pyx_d, __pyx_n_s_W124, __pyx_int_4) < 0) __PYX_ERR(0, 20, __pyx_L1_error)
16533 if (PyDict_SetItem(__pyx_d, __pyx_n_s_W164, __pyx_int_5) < 0) __PYX_ERR(0, 21, __pyx_L1_error)
16542 if (PyDict_SetItem(__pyx_d, __pyx_n_s_W213, __pyx_int_6) < 0) __PYX_ERR(0, 22, __pyx_L1_error)
16551 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NWL, __pyx_int_7) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
16560 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NWS, __pyx_int_4) < 0) __PYX_ERR(0, 24, __pyx_L1_error)
16569 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NSZA, __pyx_int_11) < 0) __PYX_ERR(0, 25, __pyx_L1_error)
16578 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NVZA, __pyx_int_16) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
16587 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NRAA, __pyx_int_16) < 0) __PYX_ERR(0, 27, __pyx_L1_error)
16596 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NAOT, __pyx_int_6) < 0) __PYX_ERR(0, 28, __pyx_L1_error)
16605 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NBIG, __pyx_int_5) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
16614 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NSMALL, __pyx_int_4) < 0) __PYX_ERR(0, 30, __pyx_L1_error)
16623 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error)
16624 __Pyx_GOTREF(__pyx_t_1);
16625 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_pi);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error)
16626 __Pyx_GOTREF(__pyx_t_2);
16627 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16628 __pyx_t_1 = __Pyx_PyFloat_TrueDivideObjC(__pyx_t_2, __pyx_float_180_0, 180.0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error)
16629 __Pyx_GOTREF(__pyx_t_1);
16630 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16631 if (PyDict_SetItem(__pyx_d, __pyx_n_s_D2R, __pyx_t_1) < 0) __PYX_ERR(0, 31, __pyx_L1_error)
16632 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16641 __pyx_t_1 = __Pyx_CalculateMetaclass(
NULL, __pyx_tuple__33);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error)
16642 __Pyx_GOTREF(__pyx_t_1);
16643 __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_tuple__33, __pyx_n_s_dtocean, __pyx_n_s_dtocean, (PyObject *)
NULL, __pyx_n_s_dtocean, (PyObject *)
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error)
16644 __Pyx_GOTREF(__pyx_t_2);
16653 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_7dtocean_1__init__, 0, __pyx_n_s_dtocean___init,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__35));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error)
16654 __Pyx_GOTREF(__pyx_t_3);
16655 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 35, __pyx_L1_error)
16656 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16665 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_7dtocean_3interp_extrap, 0, __pyx_n_s_dtocean_interp_extrap,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__37));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error)
16666 __Pyx_GOTREF(__pyx_t_3);
16667 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_interp_extrap, __pyx_t_3) < 0) __PYX_ERR(0, 67, __pyx_L1_error)
16668 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16677 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_7dtocean_5proc_gran, 0, __pyx_n_s_dtocean_proc_gran,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__39));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 79, __pyx_L1_error)
16678 __Pyx_GOTREF(__pyx_t_3);
16679 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_proc_gran, __pyx_t_3) < 0) __PYX_ERR(0, 79, __pyx_L1_error)
16680 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16689 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_7dtocean_7process, 0, __pyx_n_s_dtocean_process,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__41));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error)
16690 __Pyx_GOTREF(__pyx_t_3);
16691 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_process, __pyx_t_3) < 0) __PYX_ERR(0, 124, __pyx_L1_error)
16692 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16701 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_7dtocean_9plot, 0, __pyx_n_s_dtocean_plot,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__43));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 180, __pyx_L1_error)
16702 __Pyx_GOTREF(__pyx_t_3);
16703 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_plot, __pyx_t_3) < 0) __PYX_ERR(0, 180, __pyx_L1_error)
16704 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16713 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_7dtocean_11plot_points, 0, __pyx_n_s_dtocean_plot_points,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__45));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error)
16714 __Pyx_GOTREF(__pyx_t_3);
16715 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_plot_points, __pyx_t_3) < 0) __PYX_ERR(0, 193, __pyx_L1_error)
16716 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16725 __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_dtocean, __pyx_tuple__33, __pyx_t_2,
NULL, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error)
16726 __Pyx_GOTREF(__pyx_t_3);
16727 if (PyDict_SetItem(__pyx_d, __pyx_n_s_dtocean, __pyx_t_3) < 0) __PYX_ERR(0, 33, __pyx_L1_error)
16728 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16729 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16730 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16739 __pyx_t_1 = __Pyx_CalculateMetaclass(
NULL, __pyx_tuple__46);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 247, __pyx_L1_error)
16740 __Pyx_GOTREF(__pyx_t_1);
16741 __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_tuple__46, __pyx_n_s_input, __pyx_n_s_input, (PyObject *)
NULL, __pyx_n_s_dtocean, (PyObject *)
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 247, __pyx_L1_error)
16742 __Pyx_GOTREF(__pyx_t_2);
16751 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_5input_1__init__, 0, __pyx_n_s_input___init,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__48));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 249, __pyx_L1_error)
16752 __Pyx_GOTREF(__pyx_t_3);
16753 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 249, __pyx_L1_error)
16754 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16763 __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_input, __pyx_tuple__46, __pyx_t_2,
NULL, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 247, __pyx_L1_error)
16764 __Pyx_GOTREF(__pyx_t_3);
16765 if (PyDict_SetItem(__pyx_d, __pyx_n_s_input, __pyx_t_3) < 0) __PYX_ERR(0, 247, __pyx_L1_error)
16766 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16767 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16768 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16777 __pyx_t_1 = __Pyx_CalculateMetaclass(
NULL, __pyx_tuple__49);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __pyx_L1_error)
16778 __Pyx_GOTREF(__pyx_t_1);
16779 __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_tuple__49, __pyx_n_s_output, __pyx_n_s_output, (PyObject *)
NULL, __pyx_n_s_dtocean, (PyObject *)
NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __pyx_L1_error)
16780 __Pyx_GOTREF(__pyx_t_2);
16789 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_6output_1__init__, 0, __pyx_n_s_output___init,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__51));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 272, __pyx_L1_error)
16790 __Pyx_GOTREF(__pyx_t_3);
16791 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 272, __pyx_L1_error)
16792 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16801 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_7dtocean_6output_3write, 0, __pyx_n_s_output_write,
NULL, __pyx_n_s_dtocean, __pyx_d, ((PyObject *)__pyx_codeobj__53));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 298, __pyx_L1_error)
16802 __Pyx_GOTREF(__pyx_t_3);
16803 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_write, __pyx_t_3) < 0) __PYX_ERR(0, 298, __pyx_L1_error)
16804 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16813 __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_output, __pyx_tuple__49, __pyx_t_2,
NULL, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __pyx_L1_error)
16814 __Pyx_GOTREF(__pyx_t_3);
16815 if (PyDict_SetItem(__pyx_d, __pyx_n_s_output, __pyx_t_3) < 0) __PYX_ERR(0, 270, __pyx_L1_error)
16816 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16817 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16818 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16827 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_7dtocean_1main,
NULL, __pyx_n_s_dtocean);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 302, __pyx_L1_error)
16828 __Pyx_GOTREF(__pyx_t_1);
16829 if (PyDict_SetItem(__pyx_d, __pyx_n_s_main_2, __pyx_t_1) < 0) __PYX_ERR(0, 302, __pyx_L1_error)
16830 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16839 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_name_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 353, __pyx_L1_error)
16840 __Pyx_GOTREF(__pyx_t_1);
16841 __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_main, Py_EQ));
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 353, __pyx_L1_error)
16842 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16850 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_main_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error)
16851 __Pyx_GOTREF(__pyx_t_1);
16852 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 355, __pyx_L1_error)
16853 __Pyx_GOTREF(__pyx_t_2);
16854 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16855 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16871 __pyx_t_2 = __Pyx_PyDict_NewPresized(0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
16872 __Pyx_GOTREF(__pyx_t_2);
16873 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16874 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16880 __Pyx_XDECREF(__pyx_t_1);
16881 __Pyx_XDECREF(__pyx_t_2);
16882 __Pyx_XDECREF(__pyx_t_3);
16885 __Pyx_AddTraceback(
"init dtocean", __pyx_clineno, __pyx_lineno, __pyx_filename);
16888 }
else if (!PyErr_Occurred()) {
16889 PyErr_SetString(PyExc_ImportError,
"init dtocean");
16892 __Pyx_RefNannyFinishContext();
16893 #if CYTHON_PEP489_MULTI_PHASE_INIT
16894 return (__pyx_m !=
NULL) ? 0 : -1;
16895 #elif PY_MAJOR_VERSION >= 3
16904 #if CYTHON_REFNANNY
16905 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname) {
16908 m = PyImport_ImportModule(modname);
16910 p = PyObject_GetAttrString(m,
"RefNannyAPI");
16912 r = PyLong_AsVoidPtr(
p);
16916 return (__Pyx_RefNannyAPIStruct *)
r;
16921 #if CYTHON_USE_TYPE_SLOTS
16922 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
16923 PyTypeObject*
tp = Py_TYPE(obj);
16924 if (likely(
tp->tp_getattro))
16925 return tp->tp_getattro(obj, attr_name);
16926 #if PY_MAJOR_VERSION < 3
16927 if (likely(
tp->tp_getattr))
16928 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
16930 return PyObject_GetAttr(obj, attr_name);
16935 static PyObject *__Pyx_GetBuiltinName(PyObject *
name) {
16936 PyObject*
result = __Pyx_PyObject_GetAttrStr(__pyx_b,
name);
16937 if (unlikely(!
result)) {
16938 PyErr_Format(PyExc_NameError,
16939 #
if PY_MAJOR_VERSION >= 3
16940 "name '%U' is not defined",
name);
16942 "name '%.200s' is not defined", PyString_AS_STRING(
name));
16949 static void __Pyx_RaiseArgtupleInvalid(
16950 const char* func_name,
16952 Py_ssize_t num_min,
16953 Py_ssize_t num_max,
16954 Py_ssize_t num_found)
16956 Py_ssize_t num_expected;
16957 const char *more_or_less;
16958 if (num_found < num_min) {
16959 num_expected = num_min;
16960 more_or_less =
"at least";
16962 num_expected = num_max;
16963 more_or_less =
"at most";
16966 more_or_less =
"exactly";
16968 PyErr_Format(PyExc_TypeError,
16969 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T
"d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T
"d given)",
16970 func_name, more_or_less, num_expected,
16971 (num_expected == 1) ?
"" :
"s", num_found);
16975 static void __Pyx_RaiseDoubleKeywordsError(
16976 const char* func_name,
16979 PyErr_Format(PyExc_TypeError,
16980 #
if PY_MAJOR_VERSION >= 3
16981 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
16983 "%s() got multiple values for keyword argument '%s'", func_name,
16984 PyString_AsString(kw_name));
16989 static int __Pyx_ParseOptionalKeywords(
16991 PyObject **argnames[],
16994 Py_ssize_t num_pos_args,
16995 const char* function_name)
16998 Py_ssize_t
pos = 0;
17000 PyObject*** first_kw_arg = argnames + num_pos_args;
17002 name = first_kw_arg;
17008 name = first_kw_arg;
17009 #if PY_MAJOR_VERSION < 3
17010 if (likely(PyString_Check(
key))) {
17012 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**
name) == PyString_GET_SIZE(
key))
17013 && _PyString_Eq(**
name,
key)) {
17019 if (*
name)
continue;
17021 PyObject*** argname = argnames;
17022 while (argname != first_kw_arg) {
17023 if ((**argname ==
key) || (
17024 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(
key))
17025 && _PyString_Eq(**argname,
key))) {
17026 goto arg_passed_twice;
17033 if (likely(PyUnicode_Check(
key))) {
17035 int cmp = (**
name ==
key) ? 0 :
17036 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
17037 (__Pyx_PyUnicode_GET_LENGTH(**
name) != __Pyx_PyUnicode_GET_LENGTH(
key)) ? 1 :
17039 PyUnicode_Compare(**
name,
key);
17040 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
17047 if (*
name)
continue;
17049 PyObject*** argname = argnames;
17050 while (argname != first_kw_arg) {
17051 int cmp = (**argname ==
key) ? 0 :
17052 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
17053 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(
key)) ? 1 :
17055 PyUnicode_Compare(**argname,
key);
17056 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
17057 if (cmp == 0)
goto arg_passed_twice;
17062 goto invalid_keyword_type;
17064 if (unlikely(PyDict_SetItem(kwds2,
key,
value)))
goto bad;
17066 goto invalid_keyword;
17071 __Pyx_RaiseDoubleKeywordsError(function_name,
key);
17073 invalid_keyword_type:
17074 PyErr_Format(PyExc_TypeError,
17075 "%.200s() keywords must be strings", function_name);
17078 PyErr_Format(PyExc_TypeError,
17079 #
if PY_MAJOR_VERSION < 3
17080 "%.200s() got an unexpected keyword argument '%.200s'",
17081 function_name, PyString_AsString(
key));
17083 "%s() got an unexpected keyword argument '%U'",
17084 function_name,
key);
17091 #if CYTHON_FAST_PYCCALL
17092 static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **
args, Py_ssize_t
nargs) {
17093 PyCFunctionObject *
func = (PyCFunctionObject*)func_obj;
17094 PyCFunction meth = PyCFunction_GET_FUNCTION(
func);
17095 PyObject *
self = PyCFunction_GET_SELF(
func);
17096 int flags = PyCFunction_GET_FLAGS(
func);
17097 assert(PyCFunction_Check(
func));
17098 assert(METH_FASTCALL == (
flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
17099 assert(
nargs >= 0);
17104 assert(!PyErr_Occurred());
17105 if ((PY_VERSION_HEX < 0x030700A0) || unlikely(
flags & METH_KEYWORDS)) {
17106 return (*((__Pyx_PyCFunctionFastWithKeywords)(
void*)meth)) (
self,
args,
nargs,
NULL);
17108 return (*((__Pyx_PyCFunctionFast)(
void*)meth)) (
self,
args,
nargs);
17114 #if CYTHON_FAST_PYCALL
17115 static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *
co, PyObject **
args, Py_ssize_t na,
17116 PyObject *globals) {
17118 PyThreadState *tstate = __Pyx_PyThreadState_Current;
17119 PyObject **fastlocals;
17122 assert(globals !=
NULL);
17127 assert(tstate !=
NULL);
17128 f = PyFrame_New(tstate,
co, globals,
NULL);
17132 fastlocals = __Pyx_PyFrame_GetLocalsplus(
f);
17133 for (
i = 0;
i < na;
i++) {
17135 fastlocals[
i] = *
args++;
17137 result = PyEval_EvalFrameEx(
f,0);
17138 ++tstate->recursion_depth;
17140 --tstate->recursion_depth;
17143 #if 1 || PY_VERSION_HEX < 0x030600B1
17144 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *
func, PyObject **
args, Py_ssize_t
nargs, PyObject *
kwargs) {
17145 PyCodeObject *
co = (PyCodeObject *)PyFunction_GET_CODE(
func);
17146 PyObject *globals = PyFunction_GET_GLOBALS(
func);
17147 PyObject *argdefs = PyFunction_GET_DEFAULTS(
func);
17149 #if PY_MAJOR_VERSION >= 3
17152 PyObject *kwtuple, **
k;
17159 if (Py_EnterRecursiveCall((
char*)
" while calling a Python object")) {
17163 #
if PY_MAJOR_VERSION >= 3
17164 co->co_kwonlyargcount == 0 &&
17167 co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
17168 if (argdefs ==
NULL &&
co->co_argcount ==
nargs) {
17173 &&
co->co_argcount == Py_SIZE(argdefs)) {
17176 args = &PyTuple_GET_ITEM(argdefs, 0);
17177 result =__Pyx_PyFunction_FastCallNoKw(
co,
args, Py_SIZE(argdefs), globals);
17183 kwtuple = PyTuple_New(2 * nk);
17184 if (kwtuple ==
NULL) {
17188 k = &PyTuple_GET_ITEM(kwtuple, 0);
17201 closure = PyFunction_GET_CLOSURE(
func);
17202 #if PY_MAJOR_VERSION >= 3
17203 kwdefs = PyFunction_GET_KW_DEFAULTS(
func);
17205 if (argdefs !=
NULL) {
17206 d = &PyTuple_GET_ITEM(argdefs, 0);
17207 nd = Py_SIZE(argdefs);
17213 #if PY_MAJOR_VERSION >= 3
17214 result = PyEval_EvalCodeEx((PyObject*)
co, globals, (PyObject *)
NULL,
17217 d, (
int)nd, kwdefs, closure);
17219 result = PyEval_EvalCodeEx(
co, globals, (PyObject *)
NULL,
17222 d, (
int)nd, closure);
17224 Py_XDECREF(kwtuple);
17226 Py_LeaveRecursiveCall();
17233 #if CYTHON_COMPILING_IN_CPYTHON
17234 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *
func, PyObject *arg, PyObject *kw) {
17236 ternaryfunc
call =
func->ob_type->tp_call;
17237 if (unlikely(!
call))
17238 return PyObject_Call(
func, arg, kw);
17239 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
17242 Py_LeaveRecursiveCall();
17243 if (unlikely(!
result) && unlikely(!PyErr_Occurred())) {
17246 "NULL result without error in PyObject_Call");
17253 #if CYTHON_COMPILING_IN_CPYTHON
17254 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *
func, PyObject *arg) {
17255 PyObject *
self, *
result;
17257 cfunc = PyCFunction_GET_FUNCTION(
func);
17258 self = PyCFunction_GET_SELF(
func);
17259 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
17261 result = cfunc(
self, arg);
17262 Py_LeaveRecursiveCall();
17263 if (unlikely(!
result) && unlikely(!PyErr_Occurred())) {
17266 "NULL result without error in PyObject_Call");
17273 #if CYTHON_COMPILING_IN_CPYTHON
17274 static PyObject* __Pyx__PyObject_CallOneArg(PyObject *
func, PyObject *arg) {
17276 PyObject *
args = PyTuple_New(1);
17279 PyTuple_SET_ITEM(
args, 0, arg);
17284 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *
func, PyObject *arg) {
17285 #if CYTHON_FAST_PYCALL
17286 if (PyFunction_Check(
func)) {
17287 return __Pyx_PyFunction_FastCall(
func, &arg, 1);
17290 if (likely(PyCFunction_Check(
func))) {
17291 if (likely(PyCFunction_GET_FLAGS(
func) & METH_O)) {
17292 return __Pyx_PyObject_CallMethO(
func, arg);
17293 #if CYTHON_FAST_PYCCALL
17294 }
else if (PyCFunction_GET_FLAGS(
func) & METH_FASTCALL) {
17295 return __Pyx_PyCFunction_FastCall(
func, &arg, 1);
17299 return __Pyx__PyObject_CallOneArg(
func, arg);
17302 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *
func, PyObject *arg) {
17304 PyObject *
args = PyTuple_Pack(1, arg);
17313 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
17314 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
17315 PyObject *dict = Py_TYPE(obj)->tp_dict;
17316 return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
17318 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
17319 PyObject **dictptr =
NULL;
17320 Py_ssize_t
offset = Py_TYPE(obj)->tp_dictoffset;
17322 #if CYTHON_COMPILING_IN_CPYTHON
17323 dictptr = (likely(
offset > 0)) ? (PyObject **) ((
char *)obj +
offset) : _PyObject_GetDictPtr(obj);
17325 dictptr = _PyObject_GetDictPtr(obj);
17328 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
17330 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
17331 PyObject *dict = Py_TYPE(obj)->tp_dict;
17332 if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
17334 return obj_dict_version == __Pyx_get_object_dict_version(obj);
17339 #if CYTHON_USE_DICT_VERSIONS
17340 static PyObject *__Pyx__GetModuleGlobalName(PyObject *
name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
17342 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *
name)
17346 #if !CYTHON_AVOID_BORROWED_REFS
17347 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
17348 result = _PyDict_GetItem_KnownHash(__pyx_d,
name, ((PyASCIIObject *)
name)->hash);
17349 __PYX_UPDATE_DICT_CACHE(__pyx_d,
result, *dict_cached_value, *dict_version)
17351 return __Pyx_NewRef(
result);
17352 }
else if (unlikely(PyErr_Occurred())) {
17357 __PYX_UPDATE_DICT_CACHE(__pyx_d,
result, *dict_cached_value, *dict_version)
17359 return __Pyx_NewRef(
result);
17364 __PYX_UPDATE_DICT_CACHE(__pyx_d,
result, *dict_cached_value, *dict_version)
17366 return __Pyx_NewRef(
result);
17370 return __Pyx_GetBuiltinName(
name);
17374 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2) {
17376 #if CYTHON_FAST_PYCALL
17377 if (PyFunction_Check(
function)) {
17378 PyObject *
args[2] = {arg1, arg2};
17379 return __Pyx_PyFunction_FastCall(
function,
args, 2);
17382 #if CYTHON_FAST_PYCCALL
17383 if (__Pyx_PyFastCFunction_Check(
function)) {
17384 PyObject *
args[2] = {arg1, arg2};
17385 return __Pyx_PyCFunction_FastCall(
function,
args, 2);
17388 args = PyTuple_New(2);
17389 if (unlikely(!
args))
goto done;
17391 PyTuple_SET_ITEM(
args, 0, arg1);
17393 PyTuple_SET_ITEM(
args, 1, arg2);
17394 Py_INCREF(
function);
17397 Py_DECREF(
function);
17403 #if CYTHON_USE_TYPE_SLOTS
17404 static CYTHON_INLINE
int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject*
value) {
17405 PyTypeObject*
tp = Py_TYPE(obj);
17406 if (likely(
tp->tp_setattro))
17407 return tp->tp_setattro(obj, attr_name,
value);
17408 #if PY_MAJOR_VERSION < 3
17409 if (likely(
tp->tp_setattr))
17410 return tp->tp_setattr(obj, PyString_AS_STRING(attr_name),
value);
17412 return PyObject_SetAttr(obj, attr_name,
value);
17417 #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
17418 static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject*
key) {
17420 value = PyDict_GetItemWithError(d,
key);
17421 if (unlikely(!
value)) {
17422 if (!PyErr_Occurred()) {
17423 if (unlikely(PyTuple_Check(
key))) {
17424 PyObject*
args = PyTuple_Pack(1,
key);
17425 if (likely(
args)) {
17426 PyErr_SetObject(PyExc_KeyError,
args);
17430 PyErr_SetObject(PyExc_KeyError,
key);
17441 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject*
j) {
17443 if (!
j)
return NULL;
17444 r = PyObject_GetItem(o,
j);
17448 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t
i,
17449 CYTHON_NCP_UNUSED
int wraparound,
17450 CYTHON_NCP_UNUSED
int boundscheck) {
17451 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
17452 Py_ssize_t wrapped_i =
i;
17453 if (wraparound & unlikely(
i < 0)) {
17454 wrapped_i += PyList_GET_SIZE(o);
17456 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
17457 PyObject *
r = PyList_GET_ITEM(o, wrapped_i);
17461 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(
i));
17463 return PySequence_GetItem(o,
i);
17466 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t
i,
17467 CYTHON_NCP_UNUSED
int wraparound,
17468 CYTHON_NCP_UNUSED
int boundscheck) {
17469 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
17470 Py_ssize_t wrapped_i =
i;
17471 if (wraparound & unlikely(
i < 0)) {
17472 wrapped_i += PyTuple_GET_SIZE(o);
17474 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
17475 PyObject *
r = PyTuple_GET_ITEM(o, wrapped_i);
17479 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(
i));
17481 return PySequence_GetItem(o,
i);
17484 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t
i,
int is_list,
17485 CYTHON_NCP_UNUSED
int wraparound,
17486 CYTHON_NCP_UNUSED
int boundscheck) {
17487 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
17488 if (is_list || PyList_CheckExact(o)) {
17489 Py_ssize_t n = ((!wraparound) | likely(
i >= 0)) ?
i :
i + PyList_GET_SIZE(o);
17490 if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
17491 PyObject *
r = PyList_GET_ITEM(o, n);
17496 else if (PyTuple_CheckExact(o)) {
17497 Py_ssize_t n = ((!wraparound) | likely(
i >= 0)) ?
i :
i + PyTuple_GET_SIZE(o);
17498 if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
17499 PyObject *
r = PyTuple_GET_ITEM(o, n);
17504 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
17505 if (likely(m && m->sq_item)) {
17506 if (wraparound && unlikely(
i < 0) && likely(m->sq_length)) {
17507 Py_ssize_t l = m->sq_length(o);
17508 if (likely(l >= 0)) {
17511 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
17516 return m->sq_item(o,
i);
17520 if (is_list || PySequence_Check(o)) {
17521 return PySequence_GetItem(o,
i);
17524 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(
i));
17528 #if CYTHON_USE_TYPE_SLOTS
17529 static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject*
index) {
17531 Py_ssize_t key_value;
17532 PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
17533 if (unlikely(!(m && m->sq_item))) {
17534 PyErr_Format(PyExc_TypeError,
"'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
17537 key_value = __Pyx_PyIndex_AsSsize_t(
index);
17538 if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
17539 return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
17541 if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
17543 PyErr_Format(PyExc_IndexError,
"cannot fit '%.200s' into an index-sized integer", Py_TYPE(
index)->tp_name);
17547 static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject*
key) {
17548 PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
17549 if (likely(m && m->mp_subscript)) {
17550 return m->mp_subscript(obj,
key);
17552 return __Pyx_PyObject_GetIndex(obj,
key);
17557 #if CYTHON_USE_EXC_INFO_STACK
17558 static _PyErr_StackItem *
17559 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
17561 _PyErr_StackItem *exc_info = tstate->exc_info;
17562 while ((exc_info->exc_type ==
NULL || exc_info->exc_type == Py_None) &&
17563 exc_info->previous_item !=
NULL)
17565 exc_info = exc_info->previous_item;
17572 #if CYTHON_FAST_THREAD_STATE
17573 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb) {
17574 #if CYTHON_USE_EXC_INFO_STACK
17575 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
17576 *
type = exc_info->exc_type;
17577 *
value = exc_info->exc_value;
17578 *tb = exc_info->exc_traceback;
17580 *
type = tstate->exc_type;
17581 *
value = tstate->exc_value;
17582 *tb = tstate->exc_traceback;
17585 Py_XINCREF(*
value);
17588 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *
type, PyObject *
value, PyObject *tb) {
17589 PyObject *tmp_type, *tmp_value, *tmp_tb;
17590 #if CYTHON_USE_EXC_INFO_STACK
17591 _PyErr_StackItem *exc_info = tstate->exc_info;
17592 tmp_type = exc_info->exc_type;
17593 tmp_value = exc_info->exc_value;
17594 tmp_tb = exc_info->exc_traceback;
17595 exc_info->exc_type =
type;
17596 exc_info->exc_value =
value;
17597 exc_info->exc_traceback = tb;
17599 tmp_type = tstate->exc_type;
17600 tmp_value = tstate->exc_value;
17601 tmp_tb = tstate->exc_traceback;
17602 tstate->exc_type =
type;
17603 tstate->exc_value =
value;
17604 tstate->exc_traceback = tb;
17606 Py_XDECREF(tmp_type);
17607 Py_XDECREF(tmp_value);
17608 Py_XDECREF(tmp_tb);
17613 #if CYTHON_FAST_THREAD_STATE
17614 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
17616 n = PyTuple_GET_SIZE(tuple);
17617 #if PY_MAJOR_VERSION >= 3
17618 for (
i=0;
i<n;
i++) {
17619 if (exc_type == PyTuple_GET_ITEM(tuple,
i))
return 1;
17622 for (
i=0;
i<n;
i++) {
17623 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple,
i)))
return 1;
17627 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject*
err) {
17628 PyObject *exc_type = tstate->curexc_type;
17629 if (exc_type ==
err)
return 1;
17630 if (unlikely(!exc_type))
return 0;
17631 if (unlikely(PyTuple_Check(
err)))
17632 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type,
err);
17633 return __Pyx_PyErr_GivenExceptionMatches(exc_type,
err);
17638 #if CYTHON_FAST_THREAD_STATE
17639 static int __Pyx__GetException(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb)
17641 static int __Pyx_GetException(PyObject **
type, PyObject **
value, PyObject **tb)
17644 PyObject *local_type, *local_value, *local_tb;
17645 #if CYTHON_FAST_THREAD_STATE
17646 PyObject *tmp_type, *tmp_value, *tmp_tb;
17647 local_type = tstate->curexc_type;
17648 local_value = tstate->curexc_value;
17649 local_tb = tstate->curexc_traceback;
17650 tstate->curexc_type = 0;
17651 tstate->curexc_value = 0;
17652 tstate->curexc_traceback = 0;
17654 PyErr_Fetch(&local_type, &local_value, &local_tb);
17656 PyErr_NormalizeException(&local_type, &local_value, &local_tb);
17657 #if CYTHON_FAST_THREAD_STATE
17658 if (unlikely(tstate->curexc_type))
17660 if (unlikely(PyErr_Occurred()))
17663 #if PY_MAJOR_VERSION >= 3
17665 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
17669 Py_XINCREF(local_tb);
17670 Py_XINCREF(local_type);
17671 Py_XINCREF(local_value);
17672 *
type = local_type;
17673 *
value = local_value;
17675 #if CYTHON_FAST_THREAD_STATE
17676 #if CYTHON_USE_EXC_INFO_STACK
17678 _PyErr_StackItem *exc_info = tstate->exc_info;
17679 tmp_type = exc_info->exc_type;
17680 tmp_value = exc_info->exc_value;
17681 tmp_tb = exc_info->exc_traceback;
17682 exc_info->exc_type = local_type;
17683 exc_info->exc_value = local_value;
17684 exc_info->exc_traceback = local_tb;
17687 tmp_type = tstate->exc_type;
17688 tmp_value = tstate->exc_value;
17689 tmp_tb = tstate->exc_traceback;
17690 tstate->exc_type = local_type;
17691 tstate->exc_value = local_value;
17692 tstate->exc_traceback = local_tb;
17694 Py_XDECREF(tmp_type);
17695 Py_XDECREF(tmp_value);
17696 Py_XDECREF(tmp_tb);
17698 PyErr_SetExcInfo(local_type, local_value, local_tb);
17705 Py_XDECREF(local_type);
17706 Py_XDECREF(local_value);
17707 Py_XDECREF(local_tb);
17712 #if CYTHON_COMPILING_IN_CPYTHON
17713 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *
func) {
17714 #if CYTHON_FAST_PYCALL
17715 if (PyFunction_Check(
func)) {
17716 return __Pyx_PyFunction_FastCall(
func,
NULL, 0);
17719 #ifdef __Pyx_CyFunction_USED
17720 if (likely(PyCFunction_Check(
func) || __Pyx_CyFunction_Check(
func)))
17722 if (likely(PyCFunction_Check(
func)))
17725 if (likely(PyCFunction_GET_FLAGS(
func) & METH_NOARGS)) {
17726 return __Pyx_PyObject_CallMethO(
func,
NULL);
17729 return __Pyx_PyObject_Call(
func, __pyx_empty_tuple,
NULL);
17734 #if CYTHON_FAST_THREAD_STATE
17735 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *
type, PyObject *
value, PyObject *tb) {
17736 PyObject *tmp_type, *tmp_value, *tmp_tb;
17737 tmp_type = tstate->curexc_type;
17738 tmp_value = tstate->curexc_value;
17739 tmp_tb = tstate->curexc_traceback;
17740 tstate->curexc_type =
type;
17741 tstate->curexc_value =
value;
17742 tstate->curexc_traceback = tb;
17743 Py_XDECREF(tmp_type);
17744 Py_XDECREF(tmp_value);
17745 Py_XDECREF(tmp_tb);
17747 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb) {
17748 *
type = tstate->curexc_type;
17749 *
value = tstate->curexc_value;
17750 *tb = tstate->curexc_traceback;
17751 tstate->curexc_type = 0;
17752 tstate->curexc_value = 0;
17753 tstate->curexc_traceback = 0;
17758 #if CYTHON_FAST_THREAD_STATE
17759 static CYTHON_INLINE
void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **
type, PyObject **
value, PyObject **tb) {
17760 PyObject *tmp_type, *tmp_value, *tmp_tb;
17761 #if CYTHON_USE_EXC_INFO_STACK
17762 _PyErr_StackItem *exc_info = tstate->exc_info;
17763 tmp_type = exc_info->exc_type;
17764 tmp_value = exc_info->exc_value;
17765 tmp_tb = exc_info->exc_traceback;
17766 exc_info->exc_type = *
type;
17767 exc_info->exc_value = *
value;
17768 exc_info->exc_traceback = *tb;
17770 tmp_type = tstate->exc_type;
17771 tmp_value = tstate->exc_value;
17772 tmp_tb = tstate->exc_traceback;
17773 tstate->exc_type = *
type;
17774 tstate->exc_value = *
value;
17775 tstate->exc_traceback = *tb;
17778 *
value = tmp_value;
17782 static CYTHON_INLINE
void __Pyx_ExceptionSwap(PyObject **
type, PyObject **
value, PyObject **tb) {
17783 PyObject *tmp_type, *tmp_value, *tmp_tb;
17784 PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
17787 *
value = tmp_value;
17793 #if !CYTHON_COMPILING_IN_PYPY
17794 static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval,
int inplace,
int zerodivision_check) {
17796 (void)zerodivision_check;
17797 #if PY_MAJOR_VERSION < 3
17798 if (likely(PyInt_CheckExact(op1))) {
17799 const long b = intval;
17801 long a = PyInt_AS_LONG(op1);
17802 x = (long)((
unsigned long)
a -
b);
17803 if (likely((
x^
a) >= 0 || (
x^~
b) >= 0))
17804 return PyInt_FromLong(
x);
17805 return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
17808 #if CYTHON_USE_PYLONG_INTERNALS
17809 if (likely(PyLong_CheckExact(op1))) {
17810 const long b = intval;
17812 #ifdef HAVE_LONG_LONG
17813 const PY_LONG_LONG llb = intval;
17814 PY_LONG_LONG lla, llx;
17816 const digit* digits = ((PyLongObject*)op1)->ob_digit;
17817 const Py_ssize_t
size = Py_SIZE(op1);
17818 if (likely(__Pyx_sst_abs(
size) <= 1)) {
17819 a = likely(
size) ? digits[0] : 0;
17824 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
17825 a = -(long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17827 #ifdef HAVE_LONG_LONG
17828 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
17829 lla = -(PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17833 CYTHON_FALLTHROUGH;
17835 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
17836 a = (long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17838 #ifdef HAVE_LONG_LONG
17839 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
17840 lla = (PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17844 CYTHON_FALLTHROUGH;
17846 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
17847 a = -(long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17849 #ifdef HAVE_LONG_LONG
17850 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
17851 lla = -(PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17855 CYTHON_FALLTHROUGH;
17857 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
17858 a = (long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17860 #ifdef HAVE_LONG_LONG
17861 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
17862 lla = (PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17866 CYTHON_FALLTHROUGH;
17868 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
17869 a = -(long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17871 #ifdef HAVE_LONG_LONG
17872 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
17873 lla = -(PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17877 CYTHON_FALLTHROUGH;
17879 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
17880 a = (long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17882 #ifdef HAVE_LONG_LONG
17883 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
17884 lla = (PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17888 CYTHON_FALLTHROUGH;
17889 default:
return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
17893 return PyLong_FromLong(
x);
17894 #ifdef HAVE_LONG_LONG
17897 return PyLong_FromLongLong(llx);
17903 if (PyFloat_CheckExact(op1)) {
17904 const long b = intval;
17905 double a = PyFloat_AS_DOUBLE(op1);
17907 PyFPE_START_PROTECT(
"subtract",
return NULL)
17909 PyFPE_END_PROTECT(
result)
17910 return PyFloat_FromDouble(
result);
17912 return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
17917 #if !CYTHON_COMPILING_IN_PYPY
17918 static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval,
int inplace,
int zerodivision_check) {
17920 (void)zerodivision_check;
17921 #if PY_MAJOR_VERSION < 3
17922 if (likely(PyInt_CheckExact(op1))) {
17923 const long b = intval;
17925 long a = PyInt_AS_LONG(op1);
17926 x = (long)((
unsigned long)
a +
b);
17927 if (likely((
x^
a) >= 0 || (
x^
b) >= 0))
17928 return PyInt_FromLong(
x);
17929 return PyLong_Type.tp_as_number->nb_add(op1, op2);
17932 #if CYTHON_USE_PYLONG_INTERNALS
17933 if (likely(PyLong_CheckExact(op1))) {
17934 const long b = intval;
17936 #ifdef HAVE_LONG_LONG
17937 const PY_LONG_LONG llb = intval;
17938 PY_LONG_LONG lla, llx;
17940 const digit* digits = ((PyLongObject*)op1)->ob_digit;
17941 const Py_ssize_t
size = Py_SIZE(op1);
17942 if (likely(__Pyx_sst_abs(
size) <= 1)) {
17943 a = likely(
size) ? digits[0] : 0;
17948 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
17949 a = -(long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17951 #ifdef HAVE_LONG_LONG
17952 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
17953 lla = -(PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17957 CYTHON_FALLTHROUGH;
17959 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
17960 a = (long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17962 #ifdef HAVE_LONG_LONG
17963 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
17964 lla = (PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17968 CYTHON_FALLTHROUGH;
17970 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
17971 a = -(long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17973 #ifdef HAVE_LONG_LONG
17974 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
17975 lla = -(PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17979 CYTHON_FALLTHROUGH;
17981 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
17982 a = (long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17984 #ifdef HAVE_LONG_LONG
17985 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
17986 lla = (PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
17990 CYTHON_FALLTHROUGH;
17992 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
17993 a = -(long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
17995 #ifdef HAVE_LONG_LONG
17996 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
17997 lla = -(PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
18001 CYTHON_FALLTHROUGH;
18003 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
18004 a = (long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18006 #ifdef HAVE_LONG_LONG
18007 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
18008 lla = (PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
18012 CYTHON_FALLTHROUGH;
18013 default:
return PyLong_Type.tp_as_number->nb_add(op1, op2);
18017 return PyLong_FromLong(
x);
18018 #ifdef HAVE_LONG_LONG
18021 return PyLong_FromLongLong(llx);
18027 if (PyFloat_CheckExact(op1)) {
18028 const long b = intval;
18029 double a = PyFloat_AS_DOUBLE(op1);
18031 PyFPE_START_PROTECT(
"add",
return NULL)
18033 PyFPE_END_PROTECT(
result)
18034 return PyFloat_FromDouble(
result);
18036 return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
18041 static CYTHON_INLINE
void __Pyx_RaiseUnboundLocalError(
const char *varname) {
18042 PyErr_Format(PyExc_UnboundLocalError,
"local variable '%s' referenced before assignment", varname);
18046 #if !CYTHON_COMPILING_IN_PYPY
18047 static PyObject* __Pyx_PyFloat_AddObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check) {
18048 const double b = floatval;
18051 (void)zerodivision_check;
18052 if (likely(PyFloat_CheckExact(op1))) {
18053 a = PyFloat_AS_DOUBLE(op1);
18056 #if PY_MAJOR_VERSION < 3
18057 if (likely(PyInt_CheckExact(op1))) {
18058 a = (
double) PyInt_AS_LONG(op1);
18062 if (likely(PyLong_CheckExact(op1))) {
18063 #if CYTHON_USE_PYLONG_INTERNALS
18064 const digit* digits = ((PyLongObject*)op1)->ob_digit;
18065 const Py_ssize_t
size = Py_SIZE(op1);
18067 case 0:
a = 0.0;
break;
18068 case -1:
a = -(
double) digits[0];
break;
18069 case 1:
a = (
double) digits[0];
break;
18072 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (1 * PyLong_SHIFT < 53))) {
18073 a = (
double) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18074 if ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53) || (
a < (
double) ((PY_LONG_LONG)1 << 53))) {
18080 CYTHON_FALLTHROUGH;
18083 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53))) {
18084 a = (
double) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18085 if ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53) || (
a < (
double) ((PY_LONG_LONG)1 << 53))) {
18091 CYTHON_FALLTHROUGH;
18094 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53))) {
18095 a = (
double) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18096 if ((8 *
sizeof(
unsigned long) < 53) || (4 * PyLong_SHIFT < 53) || (
a < (
double) ((PY_LONG_LONG)1 << 53))) {
18102 CYTHON_FALLTHROUGH;
18107 a = PyLong_AsDouble(op1);
18108 if (unlikely(
a == -1.0 && PyErr_Occurred()))
return NULL;
18112 return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
18115 PyFPE_START_PROTECT(
"add",
return NULL)
18117 PyFPE_END_PROTECT(
result)
18118 return PyFloat_FromDouble(
result);
18123 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
18124 Py_ssize_t cstart, Py_ssize_t cstop,
18125 PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
18126 int has_cstart,
int has_cstop, CYTHON_UNUSED
int wraparound) {
18127 #if CYTHON_USE_TYPE_SLOTS
18128 PyMappingMethods* mp;
18129 #if PY_MAJOR_VERSION < 3
18130 PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence;
18131 if (likely(ms && ms->sq_slice)) {
18133 if (_py_start && (*_py_start != Py_None)) {
18134 cstart = __Pyx_PyIndex_AsSsize_t(*_py_start);
18135 if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred())
goto bad;
18140 if (_py_stop && (*_py_stop != Py_None)) {
18141 cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop);
18142 if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred())
goto bad;
18144 cstop = PY_SSIZE_T_MAX;
18146 if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) {
18147 Py_ssize_t l = ms->sq_length(obj);
18148 if (likely(l >= 0)) {
18151 if (cstop < 0) cstop = 0;
18155 if (cstart < 0) cstart = 0;
18158 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
18163 return ms->sq_slice(obj, cstart, cstop);
18166 mp = Py_TYPE(obj)->tp_as_mapping;
18167 if (likely(mp && mp->mp_subscript))
18171 PyObject *py_slice, *py_start, *py_stop;
18173 py_slice = *_py_slice;
18175 PyObject* owned_start =
NULL;
18176 PyObject* owned_stop =
NULL;
18178 py_start = *_py_start;
18181 owned_start = py_start = PyInt_FromSsize_t(cstart);
18182 if (unlikely(!py_start))
goto bad;
18184 py_start = Py_None;
18187 py_stop = *_py_stop;
18190 owned_stop = py_stop = PyInt_FromSsize_t(cstop);
18191 if (unlikely(!py_stop)) {
18192 Py_XDECREF(owned_start);
18198 py_slice = PySlice_New(py_start, py_stop, Py_None);
18199 Py_XDECREF(owned_start);
18200 Py_XDECREF(owned_stop);
18201 if (unlikely(!py_slice))
goto bad;
18203 #if CYTHON_USE_TYPE_SLOTS
18204 result = mp->mp_subscript(obj, py_slice);
18206 result = PyObject_GetItem(obj, py_slice);
18209 Py_DECREF(py_slice);
18213 PyErr_Format(PyExc_TypeError,
18214 "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name);
18220 #if !CYTHON_COMPILING_IN_PYPY
18221 static PyObject* __Pyx_PyFloat_SubtractCObj(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check) {
18222 const double a = floatval;
18225 (void)zerodivision_check;
18226 if (likely(PyFloat_CheckExact(op2))) {
18227 b = PyFloat_AS_DOUBLE(op2);
18230 #if PY_MAJOR_VERSION < 3
18231 if (likely(PyInt_CheckExact(op2))) {
18232 b = (
double) PyInt_AS_LONG(op2);
18236 if (likely(PyLong_CheckExact(op2))) {
18237 #if CYTHON_USE_PYLONG_INTERNALS
18238 const digit* digits = ((PyLongObject*)op2)->ob_digit;
18239 const Py_ssize_t
size = Py_SIZE(op2);
18241 case 0:
b = 0.0;
break;
18242 case -1:
b = -(
double) digits[0];
break;
18243 case 1:
b = (
double) digits[0];
break;
18246 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (1 * PyLong_SHIFT < 53))) {
18247 b = (
double) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18248 if ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53) || (
b < (
double) ((PY_LONG_LONG)1 << 53))) {
18254 CYTHON_FALLTHROUGH;
18257 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53))) {
18258 b = (
double) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18259 if ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53) || (
b < (
double) ((PY_LONG_LONG)1 << 53))) {
18265 CYTHON_FALLTHROUGH;
18268 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53))) {
18269 b = (
double) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18270 if ((8 *
sizeof(
unsigned long) < 53) || (4 * PyLong_SHIFT < 53) || (
b < (
double) ((PY_LONG_LONG)1 << 53))) {
18276 CYTHON_FALLTHROUGH;
18281 b = PyLong_AsDouble(op2);
18282 if (unlikely(
b == -1.0 && PyErr_Occurred()))
return NULL;
18286 return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
18289 PyFPE_START_PROTECT(
"subtract",
return NULL)
18291 PyFPE_END_PROTECT(
result)
18292 return PyFloat_FromDouble(
result);
18297 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
18298 PyErr_Format(PyExc_ValueError,
18299 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T
"d)", expected);
18303 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t
index) {
18304 PyErr_Format(PyExc_ValueError,
18305 "need more than %" CYTHON_FORMAT_SSIZE_T
"d value%.1s to unpack",
18310 static CYTHON_INLINE
int __Pyx_IterFinish(
void) {
18311 #if CYTHON_FAST_THREAD_STATE
18312 PyThreadState *tstate = __Pyx_PyThreadState_Current;
18313 PyObject* exc_type = tstate->curexc_type;
18314 if (unlikely(exc_type)) {
18315 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
18316 PyObject *exc_value, *exc_tb;
18317 exc_value = tstate->curexc_value;
18318 exc_tb = tstate->curexc_traceback;
18319 tstate->curexc_type = 0;
18320 tstate->curexc_value = 0;
18321 tstate->curexc_traceback = 0;
18322 Py_DECREF(exc_type);
18323 Py_XDECREF(exc_value);
18324 Py_XDECREF(exc_tb);
18332 if (unlikely(PyErr_Occurred())) {
18333 if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
18345 static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
18346 if (unlikely(retval)) {
18348 __Pyx_RaiseTooManyValuesError(expected);
18351 return __Pyx_IterFinish();
18357 static PyObject *__Pyx_Import(PyObject *
name, PyObject *from_list,
int level) {
18358 PyObject *empty_list = 0;
18359 PyObject *module = 0;
18360 PyObject *global_dict = 0;
18361 PyObject *empty_dict = 0;
18363 #if PY_MAJOR_VERSION < 3
18364 PyObject *py_import;
18365 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
18372 empty_list = PyList_New(0);
18377 global_dict = PyModule_GetDict(__pyx_m);
18380 empty_dict = PyDict_New();
18384 #if PY_MAJOR_VERSION >= 3
18386 if ((1) && (strchr(__Pyx_MODULE_NAME,
'.'))) {
18387 module = PyImport_ImportModuleLevelObject(
18388 name, global_dict, empty_dict,
list, 1);
18390 if (!PyErr_ExceptionMatches(PyExc_ImportError))
18399 #if PY_MAJOR_VERSION < 3
18400 PyObject *py_level = PyInt_FromLong(
level);
18403 module = PyObject_CallFunctionObjArgs(py_import,
18404 name, global_dict, empty_dict,
list, py_level, (PyObject *)
NULL);
18405 Py_DECREF(py_level);
18407 module = PyImport_ImportModuleLevelObject(
18413 #if PY_MAJOR_VERSION < 3
18414 Py_XDECREF(py_import);
18416 Py_XDECREF(empty_list);
18417 Py_XDECREF(empty_dict);
18422 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject*
name) {
18423 PyObject*
value = __Pyx_PyObject_GetAttrStr(module,
name);
18424 if (unlikely(!
value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
18425 PyErr_Format(PyExc_ImportError,
18426 #
if PY_MAJOR_VERSION < 3
18427 "cannot import name %.230s", PyString_AS_STRING(
name));
18429 "cannot import name %S",
name);
18436 #if !CYTHON_COMPILING_IN_PYPY
18437 static PyObject* __Pyx_PyFloat_TrueDivideObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check) {
18438 const double b = floatval;
18441 (void)zerodivision_check;
18442 if (likely(PyFloat_CheckExact(op1))) {
18443 a = PyFloat_AS_DOUBLE(op1);
18446 #if PY_MAJOR_VERSION < 3
18447 if (likely(PyInt_CheckExact(op1))) {
18448 a = (
double) PyInt_AS_LONG(op1);
18452 if (likely(PyLong_CheckExact(op1))) {
18453 #if CYTHON_USE_PYLONG_INTERNALS
18454 const digit* digits = ((PyLongObject*)op1)->ob_digit;
18455 const Py_ssize_t
size = Py_SIZE(op1);
18457 case 0:
a = 0.0;
break;
18458 case -1:
a = -(
double) digits[0];
break;
18459 case 1:
a = (
double) digits[0];
break;
18462 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (1 * PyLong_SHIFT < 53))) {
18463 a = (
double) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18464 if ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53) || (
a < (
double) ((PY_LONG_LONG)1 << 53))) {
18470 CYTHON_FALLTHROUGH;
18473 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53))) {
18474 a = (
double) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18475 if ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53) || (
a < (
double) ((PY_LONG_LONG)1 << 53))) {
18481 CYTHON_FALLTHROUGH;
18484 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53))) {
18485 a = (
double) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
18486 if ((8 *
sizeof(
unsigned long) < 53) || (4 * PyLong_SHIFT < 53) || (
a < (
double) ((PY_LONG_LONG)1 << 53))) {
18492 CYTHON_FALLTHROUGH;
18497 a = PyLong_AsDouble(op1);
18498 if (unlikely(
a == -1.0 && PyErr_Occurred()))
return NULL;
18502 return (inplace ? PyNumber_InPlaceTrueDivide : PyNumber_TrueDivide)(op1, op2);
18505 PyFPE_START_PROTECT(
"divide",
return NULL)
18507 PyFPE_END_PROTECT(
result)
18508 return PyFloat_FromDouble(
result);
18513 static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
18514 Py_ssize_t
i, nbases = PyTuple_GET_SIZE(bases);
18515 for (
i=0;
i < nbases;
i++) {
18516 PyTypeObject *tmptype;
18517 PyObject *
tmp = PyTuple_GET_ITEM(bases,
i);
18518 tmptype = Py_TYPE(
tmp);
18519 #if PY_MAJOR_VERSION < 3
18520 if (tmptype == &PyClass_Type)
18524 metaclass = tmptype;
18527 if (PyType_IsSubtype(metaclass, tmptype))
18529 if (PyType_IsSubtype(tmptype, metaclass)) {
18530 metaclass = tmptype;
18533 PyErr_SetString(PyExc_TypeError,
18534 "metaclass conflict: "
18535 "the metaclass of a derived class "
18536 "must be a (non-strict) subclass "
18537 "of the metaclasses of all its bases");
18541 #if PY_MAJOR_VERSION < 3
18542 metaclass = &PyClass_Type;
18544 metaclass = &PyType_Type;
18547 Py_INCREF((PyObject*) metaclass);
18548 return (PyObject*) metaclass;
18552 static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject*
type) {
18553 PyObject* fake_module;
18554 PyTypeObject* cached_type =
NULL;
18555 fake_module = PyImport_AddModule((
char*)
"_cython_" CYTHON_ABI);
18556 if (!fake_module)
return NULL;
18557 Py_INCREF(fake_module);
18558 cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module,
type->tp_name);
18560 if (!PyType_Check((PyObject*)cached_type)) {
18561 PyErr_Format(PyExc_TypeError,
18562 "Shared Cython type %.200s is not a type object",
18566 if (cached_type->tp_basicsize !=
type->tp_basicsize) {
18567 PyErr_Format(PyExc_TypeError,
18568 "Shared Cython type %.200s has the wrong size, try recompiling",
18573 if (!PyErr_ExceptionMatches(PyExc_AttributeError))
goto bad;
18575 if (PyType_Ready(
type) < 0)
goto bad;
18576 if (PyObject_SetAttrString(fake_module,
type->tp_name, (PyObject*)
type) < 0)
18579 cached_type =
type;
18582 Py_DECREF(fake_module);
18583 return cached_type;
18585 Py_XDECREF(cached_type);
18586 cached_type =
NULL;
18591 #include <structmember.h>
18593 __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *closure)
18595 if (unlikely(op->func_doc ==
NULL)) {
18596 if (op->func.m_ml->ml_doc) {
18597 #if PY_MAJOR_VERSION >= 3
18598 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc);
18600 op->func_doc = PyString_FromString(op->func.m_ml->ml_doc);
18602 if (unlikely(op->func_doc ==
NULL))
18605 Py_INCREF(Py_None);
18609 Py_INCREF(op->func_doc);
18610 return op->func_doc;
18613 __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *
value, CYTHON_UNUSED
void *context)
18615 PyObject *
tmp = op->func_doc;
18620 op->func_doc =
value;
18625 __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
18627 if (unlikely(op->func_name ==
NULL)) {
18628 #if PY_MAJOR_VERSION >= 3
18629 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name);
18631 op->func_name = PyString_InternFromString(op->func.m_ml->ml_name);
18633 if (unlikely(op->func_name ==
NULL))
18636 Py_INCREF(op->func_name);
18637 return op->func_name;
18640 __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *
value, CYTHON_UNUSED
void *context)
18643 #if PY_MAJOR_VERSION >= 3
18649 PyErr_SetString(PyExc_TypeError,
18650 "__name__ must be set to a string object");
18653 tmp = op->func_name;
18655 op->func_name =
value;
18660 __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
18662 Py_INCREF(op->func_qualname);
18663 return op->func_qualname;
18666 __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *
value, CYTHON_UNUSED
void *context)
18669 #if PY_MAJOR_VERSION >= 3
18675 PyErr_SetString(PyExc_TypeError,
18676 "__qualname__ must be set to a string object");
18679 tmp = op->func_qualname;
18681 op->func_qualname =
value;
18686 __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED
void *closure)
18689 self = m->func_closure;
18696 __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
18698 if (unlikely(op->func_dict ==
NULL)) {
18699 op->func_dict = PyDict_New();
18700 if (unlikely(op->func_dict ==
NULL))
18703 Py_INCREF(op->func_dict);
18704 return op->func_dict;
18707 __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *
value, CYTHON_UNUSED
void *context)
18711 PyErr_SetString(PyExc_TypeError,
18712 "function's dictionary may not be deleted");
18715 if (unlikely(!PyDict_Check(
value))) {
18716 PyErr_SetString(PyExc_TypeError,
18717 "setting function's dictionary to a non-dict");
18720 tmp = op->func_dict;
18722 op->func_dict =
value;
18727 __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
18729 Py_INCREF(op->func_globals);
18730 return op->func_globals;
18733 __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
18735 Py_INCREF(Py_None);
18739 __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
18741 PyObject*
result = (op->func_code) ? op->func_code : Py_None;
18746 __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
18748 PyObject *
res = op->defaults_getter((PyObject *) op);
18749 if (unlikely(!
res))
18751 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
18752 op->defaults_tuple = PyTuple_GET_ITEM(
res, 0);
18753 Py_INCREF(op->defaults_tuple);
18754 op->defaults_kwdict = PyTuple_GET_ITEM(
res, 1);
18755 Py_INCREF(op->defaults_kwdict);
18757 op->defaults_tuple = PySequence_ITEM(
res, 0);
18758 if (unlikely(!op->defaults_tuple))
result = -1;
18760 op->defaults_kwdict = PySequence_ITEM(
res, 1);
18761 if (unlikely(!op->defaults_kwdict))
result = -1;
18768 __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject*
value, CYTHON_UNUSED
void *context) {
18772 }
else if (
value != Py_None && !PyTuple_Check(
value)) {
18773 PyErr_SetString(PyExc_TypeError,
18774 "__defaults__ must be set to a tuple object");
18778 tmp = op->defaults_tuple;
18779 op->defaults_tuple =
value;
18784 __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context) {
18785 PyObject*
result = op->defaults_tuple;
18786 if (unlikely(!
result)) {
18787 if (op->defaults_getter) {
18788 if (__Pyx_CyFunction_init_defaults(op) < 0)
return NULL;
18789 result = op->defaults_tuple;
18798 __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject*
value, CYTHON_UNUSED
void *context) {
18802 }
else if (
value != Py_None && !PyDict_Check(
value)) {
18803 PyErr_SetString(PyExc_TypeError,
18804 "__kwdefaults__ must be set to a dict object");
18808 tmp = op->defaults_kwdict;
18809 op->defaults_kwdict =
value;
18814 __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context) {
18815 PyObject*
result = op->defaults_kwdict;
18816 if (unlikely(!
result)) {
18817 if (op->defaults_getter) {
18818 if (__Pyx_CyFunction_init_defaults(op) < 0)
return NULL;
18819 result = op->defaults_kwdict;
18828 __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject*
value, CYTHON_UNUSED
void *context) {
18832 }
else if (!PyDict_Check(
value)) {
18833 PyErr_SetString(PyExc_TypeError,
18834 "__annotations__ must be set to a dict object");
18838 tmp = op->func_annotations;
18839 op->func_annotations =
value;
18844 __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context) {
18845 PyObject*
result = op->func_annotations;
18846 if (unlikely(!
result)) {
18849 op->func_annotations =
result;
18854 static PyGetSetDef __pyx_CyFunction_getsets[] = {
18855 {(
char *)
"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
18856 {(
char *)
"__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
18857 {(
char *)
"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
18858 {(
char *)
"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
18859 {(
char *)
"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
18860 {(
char *)
"__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0},
18861 {(
char *)
"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
18862 {(
char *)
"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
18863 {(
char *)
"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
18864 {(
char *)
"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
18865 {(
char *)
"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
18866 {(
char *)
"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
18867 {(
char *)
"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
18868 {(
char *)
"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
18869 {(
char *)
"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
18870 {(
char *)
"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
18871 {(
char *)
"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
18872 {(
char *)
"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
18875 static PyMemberDef __pyx_CyFunction_members[] = {
18876 {(
char *)
"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), PY_WRITE_RESTRICTED, 0},
18880 __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *
args)
18882 #if PY_MAJOR_VERSION >= 3
18883 return PyUnicode_FromString(m->func.m_ml->ml_name);
18885 return PyString_FromString(m->func.m_ml->ml_name);
18888 static PyMethodDef __pyx_CyFunction_methods[] = {
18889 {
"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
18892 #if PY_VERSION_HEX < 0x030500A0
18893 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
18895 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist)
18897 static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *
ml,
int flags, PyObject* qualname,
18898 PyObject *closure, PyObject *module, PyObject* globals, PyObject*
code) {
18899 if (unlikely(op ==
NULL))
18902 __Pyx_CyFunction_weakreflist(op) =
NULL;
18903 op->func.m_ml =
ml;
18904 op->func.m_self = (PyObject *) op;
18905 Py_XINCREF(closure);
18906 op->func_closure = closure;
18907 Py_XINCREF(module);
18908 op->func.m_module = module;
18909 op->func_dict =
NULL;
18910 op->func_name =
NULL;
18911 Py_INCREF(qualname);
18912 op->func_qualname = qualname;
18913 op->func_doc =
NULL;
18914 op->func_classobj =
NULL;
18915 op->func_globals = globals;
18916 Py_INCREF(op->func_globals);
18918 op->func_code =
code;
18919 op->defaults_pyobjects = 0;
18920 op->defaults_size = 0;
18921 op->defaults =
NULL;
18922 op->defaults_tuple =
NULL;
18923 op->defaults_kwdict =
NULL;
18924 op->defaults_getter =
NULL;
18925 op->func_annotations =
NULL;
18926 return (PyObject *) op;
18929 __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
18931 Py_CLEAR(m->func_closure);
18932 Py_CLEAR(m->func.m_module);
18933 Py_CLEAR(m->func_dict);
18934 Py_CLEAR(m->func_name);
18935 Py_CLEAR(m->func_qualname);
18936 Py_CLEAR(m->func_doc);
18937 Py_CLEAR(m->func_globals);
18938 Py_CLEAR(m->func_code);
18939 Py_CLEAR(m->func_classobj);
18940 Py_CLEAR(m->defaults_tuple);
18941 Py_CLEAR(m->defaults_kwdict);
18942 Py_CLEAR(m->func_annotations);
18944 PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
18946 for (
i = 0;
i < m->defaults_pyobjects;
i++)
18947 Py_XDECREF(pydefaults[
i]);
18948 PyObject_Free(m->defaults);
18949 m->defaults =
NULL;
18953 static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
18955 if (__Pyx_CyFunction_weakreflist(m) !=
NULL)
18956 PyObject_ClearWeakRefs((PyObject *) m);
18957 __Pyx_CyFunction_clear(m);
18958 PyObject_GC_Del(m);
18960 static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
18962 PyObject_GC_UnTrack(m);
18963 __Pyx__CyFunction_dealloc(m);
18965 static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit,
void *arg)
18967 Py_VISIT(m->func_closure);
18968 Py_VISIT(m->func.m_module);
18969 Py_VISIT(m->func_dict);
18970 Py_VISIT(m->func_name);
18971 Py_VISIT(m->func_qualname);
18972 Py_VISIT(m->func_doc);
18973 Py_VISIT(m->func_globals);
18974 Py_VISIT(m->func_code);
18975 Py_VISIT(m->func_classobj);
18976 Py_VISIT(m->defaults_tuple);
18977 Py_VISIT(m->defaults_kwdict);
18979 PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
18981 for (
i = 0;
i < m->defaults_pyobjects;
i++)
18982 Py_VISIT(pydefaults[
i]);
18986 static PyObject *__Pyx_CyFunction_descr_get(PyObject *
func, PyObject *obj, PyObject *
type)
18988 #if PY_MAJOR_VERSION < 3
18989 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *)
func;
18990 if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) {
18994 if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) {
18996 type = (PyObject *)(Py_TYPE(obj));
18997 return __Pyx_PyMethod_New(
func,
type, (PyObject *)(Py_TYPE(
type)));
18999 if (obj == Py_None)
19002 return __Pyx_PyMethod_New(
func, obj,
type);
19005 __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
19007 #if PY_MAJOR_VERSION >= 3
19008 return PyUnicode_FromFormat(
"<cyfunction %U at %p>",
19009 op->func_qualname, (
void *)op);
19011 return PyString_FromFormat(
"<cyfunction %s at %p>",
19012 PyString_AsString(op->func_qualname), (
void *)op);
19015 static PyObject * __Pyx_CyFunction_CallMethod(PyObject *
func, PyObject *
self, PyObject *arg, PyObject *kw) {
19016 PyCFunctionObject*
f = (PyCFunctionObject*)
func;
19017 PyCFunction meth =
f->m_ml->ml_meth;
19019 switch (
f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
19021 if (likely(kw ==
NULL || PyDict_Size(kw) == 0))
19022 return (*meth)(
self, arg);
19024 case METH_VARARGS | METH_KEYWORDS:
19025 return (*(PyCFunctionWithKeywords)(
void*)meth)(
self, arg, kw);
19027 if (likely(kw ==
NULL || PyDict_Size(kw) == 0)) {
19028 size = PyTuple_GET_SIZE(arg);
19029 if (likely(
size == 0))
19030 return (*meth)(
self,
NULL);
19031 PyErr_Format(PyExc_TypeError,
19032 "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T
"d given)",
19033 f->m_ml->ml_name,
size);
19038 if (likely(kw ==
NULL || PyDict_Size(kw) == 0)) {
19039 size = PyTuple_GET_SIZE(arg);
19040 if (likely(
size == 1)) {
19041 PyObject *
result, *arg0;
19042 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
19043 arg0 = PyTuple_GET_ITEM(arg, 0);
19045 arg0 = PySequence_ITEM(arg, 0);
if (unlikely(!arg0))
return NULL;
19047 result = (*meth)(
self, arg0);
19048 #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
19053 PyErr_Format(PyExc_TypeError,
19054 "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T
"d given)",
19055 f->m_ml->ml_name,
size);
19060 PyErr_SetString(PyExc_SystemError,
"Bad call flags in "
19061 "__Pyx_CyFunction_Call. METH_OLDARGS is no "
19062 "longer supported!");
19065 PyErr_Format(PyExc_TypeError,
"%.200s() takes no keyword arguments",
19069 static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *
func, PyObject *arg, PyObject *kw) {
19070 return __Pyx_CyFunction_CallMethod(
func, ((PyCFunctionObject*)
func)->m_self, arg, kw);
19072 static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *
func, PyObject *
args, PyObject *kw) {
19074 __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)
func;
19075 if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
19077 PyObject *new_args;
19079 argc = PyTuple_GET_SIZE(
args);
19080 new_args = PyTuple_GetSlice(
args, 1, argc);
19081 if (unlikely(!new_args))
19083 self = PyTuple_GetItem(
args, 0);
19084 if (unlikely(!
self)) {
19085 Py_DECREF(new_args);
19088 result = __Pyx_CyFunction_CallMethod(
func,
self, new_args, kw);
19089 Py_DECREF(new_args);
19095 static PyTypeObject __pyx_CyFunctionType_type = {
19096 PyVarObject_HEAD_INIT(0, 0)
19097 "cython_function_or_method",
19098 sizeof(__pyx_CyFunctionObject),
19100 (destructor) __Pyx_CyFunction_dealloc,
19104 #if PY_MAJOR_VERSION < 3
19109 (reprfunc) __Pyx_CyFunction_repr,
19114 __Pyx_CyFunction_CallAsMethod,
19119 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
19121 (traverseproc) __Pyx_CyFunction_traverse,
19122 (inquiry) __Pyx_CyFunction_clear,
19124 #
if PY_VERSION_HEX < 0x030500A0
19125 offsetof(__pyx_CyFunctionObject, func_weakreflist),
19127 offsetof(PyCFunctionObject, m_weakreflist),
19131 __pyx_CyFunction_methods,
19132 __pyx_CyFunction_members,
19133 __pyx_CyFunction_getsets,
19136 __Pyx_CyFunction_descr_get,
19138 offsetof(__pyx_CyFunctionObject, func_dict),
19151 #if PY_VERSION_HEX >= 0x030400a1
19154 #if PY_VERSION_HEX >= 0x030800b1
19157 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
19161 static int __pyx_CyFunction_init(
void) {
19162 __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type);
19163 if (unlikely(__pyx_CyFunctionType ==
NULL)) {
19168 static CYTHON_INLINE
void *__Pyx_CyFunction_InitDefaults(PyObject *
func,
size_t size,
int pyobjects) {
19169 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *)
func;
19170 m->defaults = PyObject_Malloc(
size);
19171 if (unlikely(!m->defaults))
19172 return PyErr_NoMemory();
19173 memset(m->defaults, 0,
size);
19174 m->defaults_pyobjects = pyobjects;
19175 m->defaults_size =
size;
19176 return m->defaults;
19178 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsTuple(PyObject *
func, PyObject *tuple) {
19179 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *)
func;
19180 m->defaults_tuple = tuple;
19183 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *
func, PyObject *dict) {
19184 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *)
func;
19185 m->defaults_kwdict = dict;
19188 static CYTHON_INLINE
void __Pyx_CyFunction_SetAnnotationsDict(PyObject *
func, PyObject *dict) {
19189 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *)
func;
19190 m->func_annotations = dict;
19195 static PyObject *__Pyx_CyFunction_New(PyMethodDef *
ml,
int flags, PyObject* qualname,
19196 PyObject *closure, PyObject *module, PyObject* globals, PyObject*
code) {
19197 PyObject *op = __Pyx_CyFunction_Init(
19198 PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType),
19199 ml,
flags, qualname, closure, module, globals,
code
19202 PyObject_GC_Track(op);
19208 static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *
name,
19209 PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
19212 PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare);
19214 PyObject *pargs = PyTuple_Pack(2,
name, bases);
19215 if (unlikely(!pargs)) {
19219 ns = PyObject_Call(prep, pargs, mkw);
19223 if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError)))
19233 if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0))
goto bad;
19234 if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0))
goto bad;
19235 if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0))
goto bad;
19241 static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *
name, PyObject *bases,
19242 PyObject *dict, PyObject *mkw,
19243 int calculate_metaclass,
int allow_py2_metaclass) {
19244 PyObject *
result, *margs;
19245 PyObject *owned_metaclass =
NULL;
19246 if (allow_py2_metaclass) {
19247 owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass);
19248 if (owned_metaclass) {
19249 metaclass = owned_metaclass;
19250 }
else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
19256 if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
19257 metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
19258 Py_XDECREF(owned_metaclass);
19259 if (unlikely(!metaclass))
19261 owned_metaclass = metaclass;
19263 margs = PyTuple_Pack(3,
name, bases, dict);
19264 if (unlikely(!margs)) {
19267 result = PyObject_Call(metaclass, margs, mkw);
19270 Py_XDECREF(owned_metaclass);
19275 static CYTHON_INLINE
int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2,
int equals) {
19276 #if CYTHON_COMPILING_IN_PYPY
19277 return PyObject_RichCompareBool(s1, s2, equals);
19280 return (equals == Py_EQ);
19281 }
else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
19282 const char *ps1, *ps2;
19283 Py_ssize_t length = PyBytes_GET_SIZE(s1);
19284 if (length != PyBytes_GET_SIZE(s2))
19285 return (equals == Py_NE);
19286 ps1 = PyBytes_AS_STRING(s1);
19287 ps2 = PyBytes_AS_STRING(s2);
19288 if (ps1[0] != ps2[0]) {
19289 return (equals == Py_NE);
19290 }
else if (length == 1) {
19291 return (equals == Py_EQ);
19294 #if CYTHON_USE_UNICODE_INTERNALS
19295 Py_hash_t hash1, hash2;
19296 hash1 = ((PyBytesObject*)s1)->ob_shash;
19297 hash2 = ((PyBytesObject*)s2)->ob_shash;
19298 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
19299 return (equals == Py_NE);
19302 result = memcmp(ps1, ps2, (
size_t)length);
19303 return (equals == Py_EQ) ? (
result == 0) : (
result != 0);
19305 }
else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
19306 return (equals == Py_NE);
19307 }
else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
19308 return (equals == Py_NE);
19311 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
19314 result = __Pyx_PyObject_IsTrue(py_result);
19315 Py_DECREF(py_result);
19322 static CYTHON_INLINE
int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2,
int equals) {
19323 #if CYTHON_COMPILING_IN_PYPY
19324 return PyObject_RichCompareBool(s1, s2, equals);
19326 #if PY_MAJOR_VERSION < 3
19327 PyObject* owned_ref =
NULL;
19329 int s1_is_unicode, s2_is_unicode;
19333 s1_is_unicode = PyUnicode_CheckExact(s1);
19334 s2_is_unicode = PyUnicode_CheckExact(s2);
19335 #if PY_MAJOR_VERSION < 3
19336 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
19337 owned_ref = PyUnicode_FromObject(s2);
19338 if (unlikely(!owned_ref))
19342 }
else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
19343 owned_ref = PyUnicode_FromObject(s1);
19344 if (unlikely(!owned_ref))
19348 }
else if (((!s2_is_unicode) & (!s1_is_unicode))) {
19349 return __Pyx_PyBytes_Equals(s1, s2, equals);
19352 if (s1_is_unicode & s2_is_unicode) {
19355 void *data1, *data2;
19356 if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
19358 length = __Pyx_PyUnicode_GET_LENGTH(s1);
19359 if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
19362 #if CYTHON_USE_UNICODE_INTERNALS
19364 Py_hash_t hash1, hash2;
19365 #if CYTHON_PEP393_ENABLED
19366 hash1 = ((PyASCIIObject*)s1)->hash;
19367 hash2 = ((PyASCIIObject*)s2)->hash;
19369 hash1 = ((PyUnicodeObject*)s1)->hash;
19370 hash2 = ((PyUnicodeObject*)s2)->hash;
19372 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
19377 kind = __Pyx_PyUnicode_KIND(s1);
19378 if (kind != __Pyx_PyUnicode_KIND(s2)) {
19381 data1 = __Pyx_PyUnicode_DATA(s1);
19382 data2 = __Pyx_PyUnicode_DATA(s2);
19383 if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
19385 }
else if (length == 1) {
19388 int result = memcmp(data1, data2, (
size_t)(length * kind));
19389 #if PY_MAJOR_VERSION < 3
19390 Py_XDECREF(owned_ref);
19392 return (equals == Py_EQ) ? (
result == 0) : (
result != 0);
19394 }
else if ((s1 == Py_None) & s2_is_unicode) {
19396 }
else if ((s2 == Py_None) & s1_is_unicode) {
19400 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
19401 #if PY_MAJOR_VERSION < 3
19402 Py_XDECREF(owned_ref);
19406 result = __Pyx_PyObject_IsTrue(py_result);
19407 Py_DECREF(py_result);
19411 #if PY_MAJOR_VERSION < 3
19412 Py_XDECREF(owned_ref);
19414 return (equals == Py_EQ);
19416 #if PY_MAJOR_VERSION < 3
19417 Py_XDECREF(owned_ref);
19419 return (equals == Py_NE);
19424 #ifndef CYTHON_CLINE_IN_TRACEBACK
19425 static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate,
int c_line) {
19426 PyObject *use_cline;
19427 PyObject *ptype, *pvalue, *ptraceback;
19428 #if CYTHON_COMPILING_IN_CPYTHON
19429 PyObject **cython_runtime_dict;
19431 if (unlikely(!__pyx_cython_runtime)) {
19434 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
19435 #if CYTHON_COMPILING_IN_CPYTHON
19436 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
19437 if (likely(cython_runtime_dict)) {
19438 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
19439 use_cline, *cython_runtime_dict,
19440 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
19444 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
19445 if (use_cline_obj) {
19446 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
19447 Py_DECREF(use_cline_obj);
19455 PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
19457 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
19460 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
19466 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line) {
19468 if (end >= 0 && code_line > entries[end].code_line) {
19471 while (
start < end) {
19473 if (code_line < entries[mid].code_line) {
19475 }
else if (code_line > entries[mid].code_line) {
19481 if (code_line <= entries[mid].code_line) {
19487 static PyCodeObject *__pyx_find_code_object(
int code_line) {
19488 PyCodeObject* code_object;
19490 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
19493 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
19494 if (unlikely(
pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[
pos].code_line != code_line)) {
19497 code_object = __pyx_code_cache.entries[
pos].code_object;
19498 Py_INCREF(code_object);
19499 return code_object;
19501 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object) {
19503 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
19504 if (unlikely(!code_line)) {
19507 if (unlikely(!entries)) {
19508 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*
sizeof(__Pyx_CodeObjectCacheEntry));
19509 if (likely(entries)) {
19510 __pyx_code_cache.entries = entries;
19511 __pyx_code_cache.max_count = 64;
19512 __pyx_code_cache.count = 1;
19513 entries[0].code_line = code_line;
19514 entries[0].code_object = code_object;
19515 Py_INCREF(code_object);
19519 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
19520 if ((
pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[
pos].code_line == code_line)) {
19521 PyCodeObject*
tmp = entries[
pos].code_object;
19522 entries[
pos].code_object = code_object;
19526 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
19527 int new_max = __pyx_code_cache.max_count + 64;
19528 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
19529 __pyx_code_cache.entries, ((
size_t)new_max) *
sizeof(__Pyx_CodeObjectCacheEntry));
19530 if (unlikely(!entries)) {
19533 __pyx_code_cache.entries = entries;
19534 __pyx_code_cache.max_count = new_max;
19536 for (
i=__pyx_code_cache.count;
i>
pos;
i--) {
19537 entries[
i] = entries[
i-1];
19539 entries[
pos].code_line = code_line;
19540 entries[
pos].code_object = code_object;
19541 __pyx_code_cache.count++;
19542 Py_INCREF(code_object);
19546 #include "compile.h"
19547 #include "frameobject.h"
19548 #include "traceback.h"
19549 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
19550 const char *funcname,
int c_line,
19551 int py_line,
const char *
filename) {
19552 PyCodeObject *py_code = 0;
19553 PyObject *py_srcfile = 0;
19554 PyObject *py_funcname = 0;
19555 #if PY_MAJOR_VERSION < 3
19556 py_srcfile = PyString_FromString(
filename);
19558 py_srcfile = PyUnicode_FromString(
filename);
19560 if (!py_srcfile)
goto bad;
19562 #if PY_MAJOR_VERSION < 3
19563 py_funcname = PyString_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
19565 py_funcname = PyUnicode_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
19569 #if PY_MAJOR_VERSION < 3
19570 py_funcname = PyString_FromString(funcname);
19572 py_funcname = PyUnicode_FromString(funcname);
19575 if (!py_funcname)
goto bad;
19576 py_code = __Pyx_PyCode_New(
19593 Py_DECREF(py_srcfile);
19594 Py_DECREF(py_funcname);
19597 Py_XDECREF(py_srcfile);
19598 Py_XDECREF(py_funcname);
19601 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
19602 int py_line,
const char *
filename) {
19603 PyCodeObject *py_code = 0;
19604 PyFrameObject *py_frame = 0;
19605 PyThreadState *tstate = __Pyx_PyThreadState_Current;
19607 c_line = __Pyx_CLineForTraceback(tstate, c_line);
19609 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
19611 py_code = __Pyx_CreateCodeObjectForTraceback(
19612 funcname, c_line, py_line,
filename);
19613 if (!py_code)
goto bad;
19614 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
19616 py_frame = PyFrame_New(
19622 if (!py_frame)
goto bad;
19623 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
19624 PyTraceBack_Here(py_frame);
19626 Py_XDECREF(py_code);
19627 Py_XDECREF(py_frame);
19631 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value) {
19632 const long neg_one = (long) ((
long) 0 - (long) 1), const_zero = (long) 0;
19633 const int is_unsigned = neg_one > const_zero;
19635 if (
sizeof(
long) <
sizeof(long)) {
19636 return PyInt_FromLong((
long)
value);
19637 }
else if (
sizeof(
long) <=
sizeof(
unsigned long)) {
19638 return PyLong_FromUnsignedLong((
unsigned long)
value);
19639 #ifdef HAVE_LONG_LONG
19640 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
19641 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG)
value);
19645 if (
sizeof(
long) <=
sizeof(
long)) {
19646 return PyInt_FromLong((
long)
value);
19647 #ifdef HAVE_LONG_LONG
19648 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
19649 return PyLong_FromLongLong((PY_LONG_LONG)
value);
19654 int one = 1;
int little = (
int)*(
unsigned char *)&one;
19655 unsigned char *bytes = (
unsigned char *)&
value;
19656 return _PyLong_FromByteArray(bytes,
sizeof(
long),
19657 little, !is_unsigned);
19662 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
19663 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
19664 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
19665 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
19666 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
19668 func_type value = func_value;\
19669 if (sizeof(target_type) < sizeof(func_type)) {\
19670 if (unlikely(value != (func_type) (target_type) value)) {\
19671 func_type zero = 0;\
19672 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
19673 return (target_type) -1;\
19674 if (is_unsigned && unlikely(value < zero))\
19675 goto raise_neg_overflow;\
19677 goto raise_overflow;\
19680 return (target_type) value;\
19684 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *
x) {
19685 const long neg_one = (long) ((
long) 0 - (long) 1), const_zero = (long) 0;
19686 const int is_unsigned = neg_one > const_zero;
19687 #if PY_MAJOR_VERSION < 3
19688 if (likely(PyInt_Check(
x))) {
19689 if (
sizeof(
long) <
sizeof(long)) {
19690 __PYX_VERIFY_RETURN_INT(
long,
long, PyInt_AS_LONG(
x))
19692 long val = PyInt_AS_LONG(
x);
19693 if (is_unsigned && unlikely(
val < 0)) {
19694 goto raise_neg_overflow;
19700 if (likely(PyLong_Check(
x))) {
19702 #if CYTHON_USE_PYLONG_INTERNALS
19703 const digit* digits = ((PyLongObject*)
x)->ob_digit;
19704 switch (Py_SIZE(
x)) {
19705 case 0:
return (
long) 0;
19706 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, digits[0])
19708 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
19709 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19710 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19711 }
else if (8 *
sizeof(
long) >= 2 * PyLong_SHIFT) {
19712 return (
long) (((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
19717 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
19718 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19719 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19720 }
else if (8 *
sizeof(
long) >= 3 * PyLong_SHIFT) {
19721 return (
long) (((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
19726 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
19727 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19728 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19729 }
else if (8 *
sizeof(
long) >= 4 * PyLong_SHIFT) {
19730 return (
long) (((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
19736 #if CYTHON_COMPILING_IN_CPYTHON
19737 if (unlikely(Py_SIZE(
x) < 0)) {
19738 goto raise_neg_overflow;
19742 int result = PyObject_RichCompareBool(
x, Py_False, Py_LT);
19743 if (unlikely(
result < 0))
19745 if (unlikely(
result == 1))
19746 goto raise_neg_overflow;
19749 if (
sizeof(
long) <=
sizeof(
unsigned long)) {
19750 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned long, PyLong_AsUnsignedLong(
x))
19751 #ifdef HAVE_LONG_LONG
19752 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
19753 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(
x))
19757 #if CYTHON_USE_PYLONG_INTERNALS
19758 const digit* digits = ((PyLongObject*)
x)->ob_digit;
19759 switch (Py_SIZE(
x)) {
19760 case 0:
return (
long) 0;
19761 case -1: __PYX_VERIFY_RETURN_INT(
long, sdigit, (sdigit) (-(sdigit)digits[0]))
19762 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, +digits[0])
19764 if (8 *
sizeof(
long) - 1 > 1 * PyLong_SHIFT) {
19765 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19766 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19767 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
19768 return (
long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19773 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
19774 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19775 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19776 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
19777 return (
long) ((((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19782 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
19783 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19784 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19785 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
19786 return (
long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
19791 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
19792 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19793 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19794 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
19795 return (
long) ((((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
19800 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
19801 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19802 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19803 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
19804 return (
long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19809 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
19810 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19811 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19812 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
19813 return (
long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19819 if (
sizeof(
long) <=
sizeof(long)) {
19820 __PYX_VERIFY_RETURN_INT_EXC(
long,
long, PyLong_AsLong(
x))
19821 #ifdef HAVE_LONG_LONG
19822 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
19823 __PYX_VERIFY_RETURN_INT_EXC(
long, PY_LONG_LONG, PyLong_AsLongLong(
x))
19828 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
19829 PyErr_SetString(PyExc_RuntimeError,
19830 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
19833 PyObject *
v = __Pyx_PyNumber_IntOrLong(
x);
19834 #if PY_MAJOR_VERSION < 3
19835 if (likely(
v) && !PyLong_Check(
v)) {
19837 v = PyNumber_Long(
tmp);
19842 int one = 1;
int is_little = (
int)*(
unsigned char *)&one;
19843 unsigned char *bytes = (
unsigned char *)&
val;
19844 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
19845 bytes,
sizeof(
val),
19846 is_little, !is_unsigned);
19856 PyObject *
tmp = __Pyx_PyNumber_IntOrLong(
x);
19857 if (!
tmp)
return (
long) -1;
19858 val = __Pyx_PyInt_As_long(
tmp);
19863 PyErr_SetString(PyExc_OverflowError,
19864 "value too large to convert to long");
19866 raise_neg_overflow:
19867 PyErr_SetString(PyExc_OverflowError,
19868 "can't convert negative value to long");
19873 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *
x) {
19874 const int neg_one = (
int) ((
int) 0 - (
int) 1), const_zero = (
int) 0;
19875 const int is_unsigned = neg_one > const_zero;
19876 #if PY_MAJOR_VERSION < 3
19877 if (likely(PyInt_Check(
x))) {
19878 if (
sizeof(
int) <
sizeof(long)) {
19879 __PYX_VERIFY_RETURN_INT(
int,
long, PyInt_AS_LONG(
x))
19881 long val = PyInt_AS_LONG(
x);
19882 if (is_unsigned && unlikely(
val < 0)) {
19883 goto raise_neg_overflow;
19889 if (likely(PyLong_Check(
x))) {
19891 #if CYTHON_USE_PYLONG_INTERNALS
19892 const digit* digits = ((PyLongObject*)
x)->ob_digit;
19893 switch (Py_SIZE(
x)) {
19894 case 0:
return (
int) 0;
19895 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, digits[0])
19897 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
19898 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19899 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19900 }
else if (8 *
sizeof(
int) >= 2 * PyLong_SHIFT) {
19901 return (
int) (((((
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
19906 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
19907 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19908 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19909 }
else if (8 *
sizeof(
int) >= 3 * PyLong_SHIFT) {
19910 return (
int) (((((((
int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
19915 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
19916 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19917 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19918 }
else if (8 *
sizeof(
int) >= 4 * PyLong_SHIFT) {
19919 return (
int) (((((((((
int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
19925 #if CYTHON_COMPILING_IN_CPYTHON
19926 if (unlikely(Py_SIZE(
x) < 0)) {
19927 goto raise_neg_overflow;
19931 int result = PyObject_RichCompareBool(
x, Py_False, Py_LT);
19932 if (unlikely(
result < 0))
19934 if (unlikely(
result == 1))
19935 goto raise_neg_overflow;
19938 if (
sizeof(
int) <=
sizeof(
unsigned long)) {
19939 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned long, PyLong_AsUnsignedLong(
x))
19940 #ifdef HAVE_LONG_LONG
19941 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
19942 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(
x))
19946 #if CYTHON_USE_PYLONG_INTERNALS
19947 const digit* digits = ((PyLongObject*)
x)->ob_digit;
19948 switch (Py_SIZE(
x)) {
19949 case 0:
return (
int) 0;
19950 case -1: __PYX_VERIFY_RETURN_INT(
int, sdigit, (sdigit) (-(sdigit)digits[0]))
19951 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, +digits[0])
19953 if (8 *
sizeof(
int) - 1 > 1 * PyLong_SHIFT) {
19954 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19955 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19956 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
19957 return (
int) (((
int)-1)*(((((
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19962 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
19963 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19964 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19965 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
19966 return (
int) ((((((
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19971 if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
19972 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19973 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19974 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
19975 return (
int) (((
int)-1)*(((((((
int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19980 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
19981 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19982 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19983 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
19984 return (
int) ((((((((
int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19989 if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
19990 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19991 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19992 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
19993 return (
int) (((
int)-1)*(((((((((
int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19998 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
19999 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
20000 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
20001 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
20002 return (
int) ((((((((((
int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
20008 if (
sizeof(
int) <=
sizeof(long)) {
20009 __PYX_VERIFY_RETURN_INT_EXC(
int,
long, PyLong_AsLong(
x))
20010 #ifdef HAVE_LONG_LONG
20011 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
20012 __PYX_VERIFY_RETURN_INT_EXC(
int, PY_LONG_LONG, PyLong_AsLongLong(
x))
20017 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
20018 PyErr_SetString(PyExc_RuntimeError,
20019 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
20022 PyObject *
v = __Pyx_PyNumber_IntOrLong(
x);
20023 #if PY_MAJOR_VERSION < 3
20024 if (likely(
v) && !PyLong_Check(
v)) {
20026 v = PyNumber_Long(
tmp);
20031 int one = 1;
int is_little = (
int)*(
unsigned char *)&one;
20032 unsigned char *bytes = (
unsigned char *)&
val;
20033 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
20034 bytes,
sizeof(
val),
20035 is_little, !is_unsigned);
20045 PyObject *
tmp = __Pyx_PyNumber_IntOrLong(
x);
20046 if (!
tmp)
return (
int) -1;
20047 val = __Pyx_PyInt_As_int(
tmp);
20052 PyErr_SetString(PyExc_OverflowError,
20053 "value too large to convert to int");
20055 raise_neg_overflow:
20056 PyErr_SetString(PyExc_OverflowError,
20057 "can't convert negative value to int");
20062 #if CYTHON_COMPILING_IN_CPYTHON
20063 static int __Pyx_InBases(PyTypeObject *
a, PyTypeObject *
b) {
20069 return b == &PyBaseObject_Type;
20071 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *
a, PyTypeObject *
b) {
20073 if (
a ==
b)
return 1;
20077 n = PyTuple_GET_SIZE(mro);
20078 for (
i = 0;
i < n;
i++) {
20079 if (PyTuple_GET_ITEM(mro,
i) == (PyObject *)
b)
20084 return __Pyx_InBases(
a,
b);
20086 #if PY_MAJOR_VERSION == 2
20087 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *
err, PyObject* exc_type1, PyObject* exc_type2) {
20088 PyObject *exception, *
value, *tb;
20090 __Pyx_PyThreadState_declare
20091 __Pyx_PyThreadState_assign
20092 __Pyx_ErrFetch(&exception, &
value, &tb);
20093 res = exc_type1 ? PyObject_IsSubclass(
err, exc_type1) : 0;
20094 if (unlikely(
res == -1)) {
20095 PyErr_WriteUnraisable(
err);
20099 res = PyObject_IsSubclass(
err, exc_type2);
20100 if (unlikely(
res == -1)) {
20101 PyErr_WriteUnraisable(
err);
20105 __Pyx_ErrRestore(exception,
value, tb);
20109 static CYTHON_INLINE
int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *
err, PyObject* exc_type1, PyObject *exc_type2) {
20110 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)
err, (PyTypeObject*)exc_type1) : 0;
20112 res = __Pyx_IsSubtype((PyTypeObject*)
err, (PyTypeObject*)exc_type2);
20117 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
20119 assert(PyExceptionClass_Check(exc_type));
20120 n = PyTuple_GET_SIZE(tuple);
20121 #if PY_MAJOR_VERSION >= 3
20122 for (
i=0;
i<n;
i++) {
20123 if (exc_type == PyTuple_GET_ITEM(tuple,
i))
return 1;
20126 for (
i=0;
i<n;
i++) {
20127 PyObject *
t = PyTuple_GET_ITEM(tuple,
i);
20128 #if PY_MAJOR_VERSION < 3
20129 if (likely(exc_type ==
t))
return 1;
20131 if (likely(PyExceptionClass_Check(
t))) {
20132 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type,
NULL,
t))
return 1;
20138 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *
err, PyObject* exc_type) {
20139 if (likely(
err == exc_type))
return 1;
20140 if (likely(PyExceptionClass_Check(
err))) {
20141 if (likely(PyExceptionClass_Check(exc_type))) {
20142 return __Pyx_inner_PyErr_GivenExceptionMatches2(
err,
NULL, exc_type);
20143 }
else if (likely(PyTuple_Check(exc_type))) {
20144 return __Pyx_PyErr_GivenExceptionMatchesTuple(
err, exc_type);
20148 return PyErr_GivenExceptionMatches(
err, exc_type);
20150 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *
err, PyObject *exc_type1, PyObject *exc_type2) {
20151 assert(PyExceptionClass_Check(exc_type1));
20152 assert(PyExceptionClass_Check(exc_type2));
20153 if (likely(
err == exc_type1 ||
err == exc_type2))
return 1;
20154 if (likely(PyExceptionClass_Check(
err))) {
20155 return __Pyx_inner_PyErr_GivenExceptionMatches2(
err, exc_type1, exc_type2);
20157 return (PyErr_GivenExceptionMatches(
err, exc_type1) || PyErr_GivenExceptionMatches(
err, exc_type2));
20162 static CYTHON_INLINE
int __Pyx_StrEq(
const char *s1,
const char *s2) {
20163 while (*s1 !=
'\0' && *s1 == *s2) { s1++; s2++; }
20168 static int __Pyx_check_binary_version(
void) {
20169 char ctversion[4], rtversion[4];
20170 PyOS_snprintf(ctversion, 4,
"%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
20171 PyOS_snprintf(rtversion, 4,
"%s", Py_GetVersion());
20172 if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
20175 "compiletime version %s of module '%.100s' "
20176 "does not match runtime version %s",
20177 ctversion, __Pyx_MODULE_NAME, rtversion);
20184 static int __Pyx_InitStrings(__Pyx_StringTabEntry *
t) {
20186 #if PY_MAJOR_VERSION < 3
20187 if (
t->is_unicode) {
20188 *
t->p = PyUnicode_DecodeUTF8(
t->s,
t->n - 1,
NULL);
20189 }
else if (
t->intern) {
20190 *
t->p = PyString_InternFromString(
t->s);
20192 *
t->p = PyString_FromStringAndSize(
t->s,
t->n - 1);
20195 if (
t->is_unicode |
t->is_str) {
20197 *
t->p = PyUnicode_InternFromString(
t->s);
20198 }
else if (
t->encoding) {
20199 *
t->p = PyUnicode_Decode(
t->s,
t->n - 1,
t->encoding,
NULL);
20201 *
t->p = PyUnicode_FromStringAndSize(
t->s,
t->n - 1);
20204 *
t->p = PyBytes_FromStringAndSize(
t->s,
t->n - 1);
20209 if (PyObject_Hash(*
t->p) == -1)
20216 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char* c_str) {
20217 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
20219 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject* o) {
20221 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
20223 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
20224 #if !CYTHON_PEP393_ENABLED
20225 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
20227 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o,
NULL);
20228 if (!defenc)
return NULL;
20229 defenc_c = PyBytes_AS_STRING(defenc);
20230 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
20232 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
20234 for (
c = defenc_c;
c < end;
c++) {
20235 if ((
unsigned char) (*
c) >= 128) {
20236 PyUnicode_AsASCIIString(o);
20242 *length = PyBytes_GET_SIZE(defenc);
20246 static CYTHON_INLINE
const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
20247 if (unlikely(__Pyx_PyUnicode_READY(o) == -1))
return NULL;
20248 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
20249 if (likely(PyUnicode_IS_ASCII(o))) {
20250 *length = PyUnicode_GET_LENGTH(o);
20251 return PyUnicode_AsUTF8(o);
20253 PyUnicode_AsASCIIString(o);
20257 return PyUnicode_AsUTF8AndSize(o, length);
20262 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
20263 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
20265 #
if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
20266 __Pyx_sys_getdefaultencoding_not_ascii &&
20268 PyUnicode_Check(o)) {
20269 return __Pyx_PyUnicode_AsStringAndSize(o, length);
20272 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
20273 if (PyByteArray_Check(o)) {
20274 *length = PyByteArray_GET_SIZE(o);
20275 return PyByteArray_AS_STRING(o);
20280 int r = PyBytes_AsStringAndSize(o, &
result, length);
20281 if (unlikely(
r < 0)) {
20288 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject*
x) {
20289 int is_true =
x == Py_True;
20290 if (is_true | (
x == Py_False) | (
x == Py_None))
return is_true;
20291 else return PyObject_IsTrue(
x);
20293 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject*
x) {
20295 if (unlikely(!
x))
return -1;
20296 retval = __Pyx_PyObject_IsTrue(
x);
20300 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject*
result,
const char* type_name) {
20301 #if PY_MAJOR_VERSION >= 3
20302 if (PyLong_Check(
result)) {
20303 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
20304 "__int__ returned non-int (type %.200s). "
20305 "The ability to return an instance of a strict subclass of int "
20306 "is deprecated, and may be removed in a future version of Python.",
20307 Py_TYPE(
result)->tp_name)) {
20314 PyErr_Format(PyExc_TypeError,
20315 "__%.4s__ returned non-%.4s (type %.200s)",
20316 type_name, type_name, Py_TYPE(
result)->tp_name);
20320 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject*
x) {
20321 #if CYTHON_USE_TYPE_SLOTS
20322 PyNumberMethods *m;
20326 #if PY_MAJOR_VERSION < 3
20327 if (likely(PyInt_Check(
x) || PyLong_Check(
x)))
20329 if (likely(PyLong_Check(
x)))
20331 return __Pyx_NewRef(
x);
20332 #if CYTHON_USE_TYPE_SLOTS
20333 m = Py_TYPE(
x)->tp_as_number;
20334 #if PY_MAJOR_VERSION < 3
20335 if (m && m->nb_int) {
20337 res = m->nb_int(
x);
20339 else if (m && m->nb_long) {
20341 res = m->nb_long(
x);
20344 if (likely(m && m->nb_int)) {
20346 res = m->nb_int(
x);
20350 if (!PyBytes_CheckExact(
x) && !PyUnicode_CheckExact(
x)) {
20351 res = PyNumber_Int(
x);
20355 #if PY_MAJOR_VERSION < 3
20356 if (unlikely(!PyInt_Check(
res) && !PyLong_Check(
res))) {
20358 if (unlikely(!PyLong_CheckExact(
res))) {
20360 return __Pyx_PyNumber_IntOrLongWrongResultType(
res,
name);
20363 else if (!PyErr_Occurred()) {
20364 PyErr_SetString(PyExc_TypeError,
20365 "an integer is required");
20369 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*
b) {
20372 #if PY_MAJOR_VERSION < 3
20373 if (likely(PyInt_CheckExact(
b))) {
20374 if (
sizeof(Py_ssize_t) >=
sizeof(
long))
20375 return PyInt_AS_LONG(
b);
20377 return PyInt_AsSsize_t(
b);
20380 if (likely(PyLong_CheckExact(
b))) {
20381 #if CYTHON_USE_PYLONG_INTERNALS
20382 const digit* digits = ((PyLongObject*)
b)->ob_digit;
20383 const Py_ssize_t
size = Py_SIZE(
b);
20384 if (likely(__Pyx_sst_abs(
size) <= 1)) {
20385 ival = likely(
size) ? digits[0] : 0;
20386 if (
size == -1) ival = -ival;
20391 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
20392 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
20396 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
20397 return -(Py_ssize_t) (((((
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
20401 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
20402 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
20406 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
20407 return -(Py_ssize_t) (((((((
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
20411 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
20412 return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
20416 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
20417 return -(Py_ssize_t) (((((((((
size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
20423 return PyLong_AsSsize_t(
b);
20425 x = PyNumber_Index(
b);
20427 ival = PyInt_AsSsize_t(
x);
20431 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b) {
20432 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
20434 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t ival) {
20435 return PyInt_FromSize_t(ival);