obliquetree 1.0.3__cp310-cp310-macosx_11_0_arm64.whl → 1.0.4__cp310-cp310-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of obliquetree might be problematic. Click here for more details.
- obliquetree/__init__.py +1 -1
- obliquetree/src/base.cpp +371 -331
- obliquetree/src/base.cpython-310-darwin.so +0 -0
- obliquetree/src/ccp.cpp +109 -74
- obliquetree/src/ccp.cpython-310-darwin.so +0 -0
- obliquetree/src/metric.cpp +263 -219
- obliquetree/src/metric.cpython-310-darwin.so +0 -0
- obliquetree/src/oblique.cpp +377 -342
- obliquetree/src/oblique.cpython-310-darwin.so +0 -0
- obliquetree/src/tree.cpp +609 -565
- obliquetree/src/tree.cpython-310-darwin.so +0 -0
- obliquetree/src/utils.cpp +160 -120
- obliquetree/src/utils.cpython-310-darwin.so +0 -0
- {obliquetree-1.0.3.dist-info → obliquetree-1.0.4.dist-info}/METADATA +1 -1
- obliquetree-1.0.4.dist-info/RECORD +21 -0
- obliquetree-1.0.3.dist-info/RECORD +0 -21
- {obliquetree-1.0.3.dist-info → obliquetree-1.0.4.dist-info}/WHEEL +0 -0
- {obliquetree-1.0.3.dist-info → obliquetree-1.0.4.dist-info}/licenses/LICENSE +0 -0
- {obliquetree-1.0.3.dist-info → obliquetree-1.0.4.dist-info}/top_level.txt +0 -0
obliquetree/src/utils.cpp
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Cython 3.1.
|
|
1
|
+
/* Generated by Cython 3.1.6 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"-std=c++17"
|
|
20
20
|
],
|
|
21
21
|
"include_dirs": [
|
|
22
|
-
"/private/var/folders/
|
|
22
|
+
"/private/var/folders/xc/cl1fyykn2pj4ryhdw6r1mqtc0000gn/T/build-env-t9k0vrz7/lib/python3.10/site-packages/numpy/_core/include"
|
|
23
23
|
],
|
|
24
24
|
"language": "c++",
|
|
25
25
|
"name": "obliquetree.src.utils",
|
|
@@ -35,8 +35,16 @@ END: Cython Metadata */
|
|
|
35
35
|
#define PY_SSIZE_T_CLEAN
|
|
36
36
|
#endif /* PY_SSIZE_T_CLEAN */
|
|
37
37
|
/* InitLimitedAPI */
|
|
38
|
-
#if defined(Py_LIMITED_API)
|
|
38
|
+
#if defined(Py_LIMITED_API)
|
|
39
|
+
#if !defined(CYTHON_LIMITED_API)
|
|
39
40
|
#define CYTHON_LIMITED_API 1
|
|
41
|
+
#endif
|
|
42
|
+
#elif defined(CYTHON_LIMITED_API)
|
|
43
|
+
#ifdef _MSC_VER
|
|
44
|
+
#pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
|
|
45
|
+
#else
|
|
46
|
+
#warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
|
|
47
|
+
#endif
|
|
40
48
|
#endif
|
|
41
49
|
|
|
42
50
|
#include "Python.h"
|
|
@@ -45,8 +53,8 @@ END: Cython Metadata */
|
|
|
45
53
|
#elif PY_VERSION_HEX < 0x03080000
|
|
46
54
|
#error Cython requires Python 3.8+.
|
|
47
55
|
#else
|
|
48
|
-
#define __PYX_ABI_VERSION "
|
|
49
|
-
#define CYTHON_HEX_VERSION
|
|
56
|
+
#define __PYX_ABI_VERSION "3_1_6"
|
|
57
|
+
#define CYTHON_HEX_VERSION 0x030106F0
|
|
50
58
|
#define CYTHON_FUTURE_DIVISION 1
|
|
51
59
|
/* CModulePreamble */
|
|
52
60
|
#include <stddef.h>
|
|
@@ -409,6 +417,9 @@ END: Cython Metadata */
|
|
|
409
417
|
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
|
|
410
418
|
#endif
|
|
411
419
|
#endif
|
|
420
|
+
#ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
|
|
421
|
+
#define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
|
|
422
|
+
#endif
|
|
412
423
|
#ifndef __has_attribute
|
|
413
424
|
#define __has_attribute(x) 0
|
|
414
425
|
#endif
|
|
@@ -1335,6 +1346,7 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
|
|
|
1335
1346
|
typedef sdigit __Pyx_compact_pylong;
|
|
1336
1347
|
typedef digit __Pyx_compact_upylong;
|
|
1337
1348
|
#endif
|
|
1349
|
+
static CYTHON_INLINE int __Pyx_PyLong_CompactAsLong(PyObject *x, long *return_value);
|
|
1338
1350
|
#if PY_VERSION_HEX >= 0x030C00A5
|
|
1339
1351
|
#define __Pyx_PyLong_Digits(x) (((PyLongObject*)x)->long_value.ob_digit)
|
|
1340
1352
|
#else
|
|
@@ -2694,22 +2706,22 @@ static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k);
|
|
|
2694
2706
|
static int __Pyx_setup_reduce(PyObject* type_obj);
|
|
2695
2707
|
|
|
2696
2708
|
/* TypeImport.proto */
|
|
2697
|
-
#ifndef
|
|
2698
|
-
#define
|
|
2709
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_1_6
|
|
2710
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_1_6
|
|
2699
2711
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2700
2712
|
#include <stdalign.h>
|
|
2701
2713
|
#endif
|
|
2702
2714
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2703
|
-
#define
|
|
2715
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_6(s) alignof(s)
|
|
2704
2716
|
#else
|
|
2705
|
-
#define
|
|
2717
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_6(s) sizeof(void*)
|
|
2706
2718
|
#endif
|
|
2707
|
-
enum
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2719
|
+
enum __Pyx_ImportType_CheckSize_3_1_6 {
|
|
2720
|
+
__Pyx_ImportType_CheckSize_Error_3_1_6 = 0,
|
|
2721
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_6 = 1,
|
|
2722
|
+
__Pyx_ImportType_CheckSize_Ignore_3_1_6 = 2
|
|
2711
2723
|
};
|
|
2712
|
-
static PyTypeObject *
|
|
2724
|
+
static PyTypeObject *__Pyx_ImportType_3_1_6(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_6 check_size);
|
|
2713
2725
|
#endif
|
|
2714
2726
|
|
|
2715
2727
|
/* FetchSharedCythonModule.proto */
|
|
@@ -3924,7 +3936,7 @@ static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, P
|
|
|
3924
3936
|
default: goto __pyx_L5_argtuple_error;
|
|
3925
3937
|
}
|
|
3926
3938
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
3927
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < 0) __PYX_ERR(1, 129, __pyx_L3_error)
|
|
3939
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(1, 129, __pyx_L3_error)
|
|
3928
3940
|
if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_c));
|
|
3929
3941
|
for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
|
|
3930
3942
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, i); __PYX_ERR(1, 129, __pyx_L3_error) }
|
|
@@ -5538,7 +5550,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
5538
5550
|
default: goto __pyx_L5_argtuple_error;
|
|
5539
5551
|
}
|
|
5540
5552
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
5541
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < 0) __PYX_ERR(1, 3, __pyx_L3_error)
|
|
5553
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(1, 3, __pyx_L3_error)
|
|
5542
5554
|
for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
|
|
5543
5555
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(1, 3, __pyx_L3_error) }
|
|
5544
5556
|
}
|
|
@@ -5883,7 +5895,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize
|
|
|
5883
5895
|
__pyx_t_4 = 0;
|
|
5884
5896
|
__pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 273, __pyx_L1_error)
|
|
5885
5897
|
__Pyx_GOTREF(__pyx_t_4);
|
|
5886
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_allocate_buffer, Py_False) < 0) __PYX_ERR(1, 273, __pyx_L1_error)
|
|
5898
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_allocate_buffer, Py_False) < (0)) __PYX_ERR(1, 273, __pyx_L1_error)
|
|
5887
5899
|
__pyx_t_3 = ((PyObject *)__pyx_tp_new_array(((PyTypeObject *)__pyx_mstate_global->__pyx_array_type), __pyx_t_1, __pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 273, __pyx_L1_error)
|
|
5888
5900
|
__Pyx_GOTREF((PyObject *)__pyx_t_3);
|
|
5889
5901
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
@@ -5978,7 +5990,7 @@ static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_ar
|
|
|
5978
5990
|
default: goto __pyx_L5_argtuple_error;
|
|
5979
5991
|
}
|
|
5980
5992
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
5981
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < 0) __PYX_ERR(1, 302, __pyx_L3_error)
|
|
5993
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(1, 302, __pyx_L3_error)
|
|
5982
5994
|
for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
|
|
5983
5995
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(1, 302, __pyx_L3_error) }
|
|
5984
5996
|
}
|
|
@@ -6415,7 +6427,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
6415
6427
|
default: goto __pyx_L5_argtuple_error;
|
|
6416
6428
|
}
|
|
6417
6429
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
6418
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < 0) __PYX_ERR(1, 16, __pyx_L3_error)
|
|
6430
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(1, 16, __pyx_L3_error)
|
|
6419
6431
|
for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
|
|
6420
6432
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(1, 16, __pyx_L3_error) }
|
|
6421
6433
|
}
|
|
@@ -6540,7 +6552,7 @@ static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_ar
|
|
|
6540
6552
|
default: goto __pyx_L5_argtuple_error;
|
|
6541
6553
|
}
|
|
6542
6554
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
6543
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < 0) __PYX_ERR(1, 347, __pyx_L3_error)
|
|
6555
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(1, 347, __pyx_L3_error)
|
|
6544
6556
|
for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
|
|
6545
6557
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, i); __PYX_ERR(1, 347, __pyx_L3_error) }
|
|
6546
6558
|
}
|
|
@@ -10857,7 +10869,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
10857
10869
|
default: goto __pyx_L5_argtuple_error;
|
|
10858
10870
|
}
|
|
10859
10871
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
10860
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < 0) __PYX_ERR(1, 3, __pyx_L3_error)
|
|
10872
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(1, 3, __pyx_L3_error)
|
|
10861
10873
|
for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
|
|
10862
10874
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(1, 3, __pyx_L3_error) }
|
|
10863
10875
|
}
|
|
@@ -13744,7 +13756,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
13744
13756
|
default: goto __pyx_L5_argtuple_error;
|
|
13745
13757
|
}
|
|
13746
13758
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
13747
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < 0) __PYX_ERR(1, 3, __pyx_L3_error)
|
|
13759
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(1, 3, __pyx_L3_error)
|
|
13748
13760
|
for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
|
|
13749
13761
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(1, 3, __pyx_L3_error) }
|
|
13750
13762
|
}
|
|
@@ -16903,7 +16915,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
16903
16915
|
default: goto __pyx_L5_argtuple_error;
|
|
16904
16916
|
}
|
|
16905
16917
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
16906
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__pyx_unpickle_Enum", 0) < 0) __PYX_ERR(1, 1, __pyx_L3_error)
|
|
16918
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__pyx_unpickle_Enum", 0) < (0)) __PYX_ERR(1, 1, __pyx_L3_error)
|
|
16907
16919
|
for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
|
|
16908
16920
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, i); __PYX_ERR(1, 1, __pyx_L3_error) }
|
|
16909
16921
|
}
|
|
@@ -17376,7 +17388,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17376
17388
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17377
17389
|
__pyx_t_2 = __Pyx_PyLong_From_int(__pyx_cur_scope->__pyx_v_node->n_samples); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
17378
17390
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17379
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_n_samples, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
17391
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_n_samples, __pyx_t_2) < (0)) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
17380
17392
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17381
17393
|
|
|
17382
17394
|
/* "obliquetree/src/utils.pyx":9
|
|
@@ -17388,7 +17400,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17388
17400
|
*/
|
|
17389
17401
|
__pyx_t_2 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_node->impurity); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
|
|
17390
17402
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17391
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_impurity, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
17403
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_impurity, __pyx_t_2) < (0)) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
17392
17404
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17393
17405
|
|
|
17394
17406
|
/* "obliquetree/src/utils.pyx":10
|
|
@@ -17400,7 +17412,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17400
17412
|
*/
|
|
17401
17413
|
__pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_cur_scope->__pyx_v_node->is_leaf); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error)
|
|
17402
17414
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17403
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_is_leaf, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
17415
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_is_leaf, __pyx_t_2) < (0)) __PYX_ERR(0, 8, __pyx_L1_error)
|
|
17404
17416
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17405
17417
|
__pyx_v_base = ((PyObject*)__pyx_t_1);
|
|
17406
17418
|
__pyx_t_1 = 0;
|
|
@@ -17447,7 +17459,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17447
17459
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
17448
17460
|
}
|
|
17449
17461
|
} /* exit inner scope */
|
|
17450
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_values, __pyx_t_2) < 0) __PYX_ERR(0, 17, __pyx_L1_error)
|
|
17462
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_values, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error)
|
|
17451
17463
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17452
17464
|
|
|
17453
17465
|
/* "obliquetree/src/utils.pyx":16
|
|
@@ -17492,7 +17504,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17492
17504
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17493
17505
|
__pyx_t_1 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_node->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error)
|
|
17494
17506
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17495
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_value, __pyx_t_1) < 0) __PYX_ERR(0, 21, __pyx_L1_error)
|
|
17507
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_value, __pyx_t_1) < (0)) __PYX_ERR(0, 21, __pyx_L1_error)
|
|
17496
17508
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17497
17509
|
|
|
17498
17510
|
/* "obliquetree/src/utils.pyx":20
|
|
@@ -17541,7 +17553,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17541
17553
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17542
17554
|
__pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_cur_scope->__pyx_v_node->feature_idx == -2L)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
17543
17555
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17544
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_is_oblique, __pyx_t_2) < 0) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
17556
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_is_oblique, __pyx_t_2) < (0)) __PYX_ERR(0, 27, __pyx_L1_error)
|
|
17545
17557
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17546
17558
|
|
|
17547
17559
|
/* "obliquetree/src/utils.pyx":26
|
|
@@ -17588,7 +17600,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17588
17600
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
17589
17601
|
}
|
|
17590
17602
|
} /* exit inner scope */
|
|
17591
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_weights, __pyx_t_1) < 0) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
17603
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_weights, __pyx_t_1) < (0)) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
17592
17604
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17593
17605
|
{ /* enter inner scope */
|
|
17594
17606
|
|
|
@@ -17611,7 +17623,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17611
17623
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
17612
17624
|
}
|
|
17613
17625
|
} /* exit inner scope */
|
|
17614
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_features, __pyx_t_1) < 0) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
17626
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_features, __pyx_t_1) < (0)) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
17615
17627
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17616
17628
|
|
|
17617
17629
|
/* "obliquetree/src/utils.pyx":35
|
|
@@ -17623,7 +17635,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17623
17635
|
*/
|
|
17624
17636
|
__pyx_t_1 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_node->threshold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 35, __pyx_L1_error)
|
|
17625
17637
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17626
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_threshold, __pyx_t_1) < 0) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
17638
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_threshold, __pyx_t_1) < (0)) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
17627
17639
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17628
17640
|
|
|
17629
17641
|
/* "obliquetree/src/utils.pyx":32
|
|
@@ -17670,7 +17682,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17670
17682
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
17671
17683
|
}
|
|
17672
17684
|
} /* exit inner scope */
|
|
17673
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_values, __pyx_t_2) < 0) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
17685
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_values, __pyx_t_2) < (0)) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
17674
17686
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17675
17687
|
|
|
17676
17688
|
/* "obliquetree/src/utils.pyx":39
|
|
@@ -17715,7 +17727,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17715
17727
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17716
17728
|
__pyx_t_1 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_node->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error)
|
|
17717
17729
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17718
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_value, __pyx_t_1) < 0) __PYX_ERR(0, 44, __pyx_L1_error)
|
|
17730
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_value, __pyx_t_1) < (0)) __PYX_ERR(0, 44, __pyx_L1_error)
|
|
17719
17731
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17720
17732
|
|
|
17721
17733
|
/* "obliquetree/src/utils.pyx":43
|
|
@@ -17762,7 +17774,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17762
17774
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17763
17775
|
__pyx_t_2 = __Pyx_PyLong_From_int(__pyx_cur_scope->__pyx_v_node->feature_idx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
17764
17776
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17765
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_feature_idx, __pyx_t_2) < 0) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
17777
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_feature_idx, __pyx_t_2) < (0)) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
17766
17778
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17767
17779
|
|
|
17768
17780
|
/* "obliquetree/src/utils.pyx":51
|
|
@@ -17778,7 +17790,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17778
17790
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17779
17791
|
__pyx_t_2 = __Pyx_PyBool_FromLong((!(!__pyx_t_3))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error)
|
|
17780
17792
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17781
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_missing_go_left, __pyx_t_2) < 0) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
17793
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_missing_go_left, __pyx_t_2) < (0)) __PYX_ERR(0, 50, __pyx_L1_error)
|
|
17782
17794
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17783
17795
|
|
|
17784
17796
|
/* "obliquetree/src/utils.pyx":49
|
|
@@ -17825,7 +17837,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17825
17837
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
17826
17838
|
}
|
|
17827
17839
|
} /* exit inner scope */
|
|
17828
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_values, __pyx_t_1) < 0) __PYX_ERR(0, 57, __pyx_L1_error)
|
|
17840
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_values, __pyx_t_1) < (0)) __PYX_ERR(0, 57, __pyx_L1_error)
|
|
17829
17841
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17830
17842
|
|
|
17831
17843
|
/* "obliquetree/src/utils.pyx":56
|
|
@@ -17870,7 +17882,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17870
17882
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17871
17883
|
__pyx_t_2 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_node->value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error)
|
|
17872
17884
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17873
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_value, __pyx_t_2) < 0) __PYX_ERR(0, 61, __pyx_L1_error)
|
|
17885
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_value, __pyx_t_2) < (0)) __PYX_ERR(0, 61, __pyx_L1_error)
|
|
17874
17886
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17875
17887
|
|
|
17876
17888
|
/* "obliquetree/src/utils.pyx":60
|
|
@@ -17908,7 +17920,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17908
17920
|
__Pyx_GOTREF(__pyx_t_2);
|
|
17909
17921
|
__pyx_t_1 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_node->threshold); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error)
|
|
17910
17922
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17911
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_threshold, __pyx_t_1) < 0) __PYX_ERR(0, 67, __pyx_L1_error)
|
|
17923
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_threshold, __pyx_t_1) < (0)) __PYX_ERR(0, 67, __pyx_L1_error)
|
|
17912
17924
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17913
17925
|
|
|
17914
17926
|
/* "obliquetree/src/utils.pyx":66
|
|
@@ -17957,7 +17969,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17957
17969
|
__Pyx_GOTREF(__pyx_t_7);
|
|
17958
17970
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
17959
17971
|
if (unlikely((PyList_Sort(__pyx_t_7) < 0))) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
17960
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_category_left, __pyx_t_7) < 0) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
17972
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_category_left, __pyx_t_7) < (0)) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
17961
17973
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
17962
17974
|
|
|
17963
17975
|
/* "obliquetree/src/utils.pyx":70
|
|
@@ -17987,7 +17999,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17987
17999
|
__Pyx_GOTREF(__pyx_t_7);
|
|
17988
18000
|
__pyx_t_1 = __pyx_f_11obliquetree_3src_5utils__recurse(__pyx_cur_scope->__pyx_v_node->left); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 76, __pyx_L1_error)
|
|
17989
18001
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17990
|
-
if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_left, __pyx_t_1) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
|
|
18002
|
+
if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_left, __pyx_t_1) < (0)) __PYX_ERR(0, 76, __pyx_L1_error)
|
|
17991
18003
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17992
18004
|
|
|
17993
18005
|
/* "obliquetree/src/utils.pyx":77
|
|
@@ -17999,7 +18011,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils__recurse(struct __pyx_t_11obl
|
|
|
17999
18011
|
*/
|
|
18000
18012
|
__pyx_t_1 = __pyx_f_11obliquetree_3src_5utils__recurse(__pyx_cur_scope->__pyx_v_node->right); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 77, __pyx_L1_error)
|
|
18001
18013
|
__Pyx_GOTREF(__pyx_t_1);
|
|
18002
|
-
if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_right, __pyx_t_1) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
|
|
18014
|
+
if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_right, __pyx_t_1) < (0)) __PYX_ERR(0, 76, __pyx_L1_error)
|
|
18003
18015
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
18004
18016
|
|
|
18005
18017
|
/* "obliquetree/src/utils.pyx":75
|
|
@@ -18132,7 +18144,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18132
18144
|
__Pyx_GOTREF(__pyx_t_2);
|
|
18133
18145
|
__pyx_t_4 = __Pyx_PyLong_From_unsigned_char(__pyx_v_tree->max_depth); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18134
18146
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18135
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_max_depth, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18147
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_max_depth, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18136
18148
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18137
18149
|
|
|
18138
18150
|
/* "obliquetree/src/utils.pyx":103
|
|
@@ -18144,7 +18156,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18144
18156
|
*/
|
|
18145
18157
|
__pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_tree->min_samples_leaf); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 103, __pyx_L1_error)
|
|
18146
18158
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18147
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_min_samples_leaf, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18159
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_min_samples_leaf, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18148
18160
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18149
18161
|
|
|
18150
18162
|
/* "obliquetree/src/utils.pyx":104
|
|
@@ -18156,7 +18168,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18156
18168
|
*/
|
|
18157
18169
|
__pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_tree->min_samples_split); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
18158
18170
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18159
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_min_samples_split, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18171
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_min_samples_split, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18160
18172
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18161
18173
|
|
|
18162
18174
|
/* "obliquetree/src/utils.pyx":105
|
|
@@ -18168,7 +18180,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18168
18180
|
*/
|
|
18169
18181
|
__pyx_t_4 = PyFloat_FromDouble(__pyx_v_tree->min_impurity_decrease); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 105, __pyx_L1_error)
|
|
18170
18182
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18171
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_min_impurity_decrease, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18183
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_min_impurity_decrease, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18172
18184
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18173
18185
|
|
|
18174
18186
|
/* "obliquetree/src/utils.pyx":106
|
|
@@ -18180,7 +18192,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18180
18192
|
*/
|
|
18181
18193
|
__pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_tree->random_state); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L1_error)
|
|
18182
18194
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18183
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_random_state, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18195
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_random_state, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18184
18196
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18185
18197
|
|
|
18186
18198
|
/* "obliquetree/src/utils.pyx":107
|
|
@@ -18192,7 +18204,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18192
18204
|
*/
|
|
18193
18205
|
__pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_tree->n_pair); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 107, __pyx_L1_error)
|
|
18194
18206
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18195
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_n_pair, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18207
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_n_pair, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18196
18208
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18197
18209
|
|
|
18198
18210
|
/* "obliquetree/src/utils.pyx":108
|
|
@@ -18204,7 +18216,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18204
18216
|
*/
|
|
18205
18217
|
__pyx_t_4 = PyFloat_FromDouble(__pyx_v_tree->gamma); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
18206
18218
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18207
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_gamma, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18219
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_gamma, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18208
18220
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18209
18221
|
|
|
18210
18222
|
/* "obliquetree/src/utils.pyx":109
|
|
@@ -18216,7 +18228,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18216
18228
|
*/
|
|
18217
18229
|
__pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_tree->max_iter); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L1_error)
|
|
18218
18230
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18219
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_max_iter, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18231
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_max_iter, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18220
18232
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18221
18233
|
|
|
18222
18234
|
/* "obliquetree/src/utils.pyx":110
|
|
@@ -18228,7 +18240,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18228
18240
|
*/
|
|
18229
18241
|
__pyx_t_4 = PyFloat_FromDouble(__pyx_v_tree->relative_change); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 110, __pyx_L1_error)
|
|
18230
18242
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18231
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_relative_change, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18243
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_relative_change, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18232
18244
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18233
18245
|
|
|
18234
18246
|
/* "obliquetree/src/utils.pyx":111
|
|
@@ -18240,7 +18252,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18240
18252
|
*/
|
|
18241
18253
|
__pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_tree->use_oblique); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L1_error)
|
|
18242
18254
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18243
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_use_oblique, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18255
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_use_oblique, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18244
18256
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18245
18257
|
|
|
18246
18258
|
/* "obliquetree/src/utils.pyx":112
|
|
@@ -18250,7 +18262,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18250
18262
|
* 'ccp_alpha': tree.ccp_alpha,
|
|
18251
18263
|
* 'task': tree.task,
|
|
18252
18264
|
*/
|
|
18253
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_categories, __pyx_v_tree->categories) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18265
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_categories, __pyx_v_tree->categories) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18254
18266
|
|
|
18255
18267
|
/* "obliquetree/src/utils.pyx":113
|
|
18256
18268
|
* 'use_oblique': tree.use_oblique,
|
|
@@ -18261,7 +18273,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18261
18273
|
*/
|
|
18262
18274
|
__pyx_t_4 = PyFloat_FromDouble(__pyx_v_tree->ccp_alpha); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 113, __pyx_L1_error)
|
|
18263
18275
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18264
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ccp_alpha, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18276
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ccp_alpha, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18265
18277
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18266
18278
|
|
|
18267
18279
|
/* "obliquetree/src/utils.pyx":114
|
|
@@ -18273,7 +18285,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18273
18285
|
*/
|
|
18274
18286
|
__pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_tree->task); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 114, __pyx_L1_error)
|
|
18275
18287
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18276
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_task, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18288
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_task, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18277
18289
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18278
18290
|
|
|
18279
18291
|
/* "obliquetree/src/utils.pyx":115
|
|
@@ -18285,7 +18297,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18285
18297
|
*/
|
|
18286
18298
|
__pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_tree->n_classes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error)
|
|
18287
18299
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18288
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_n_classes, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18300
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_n_classes, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18289
18301
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18290
18302
|
|
|
18291
18303
|
/* "obliquetree/src/utils.pyx":116
|
|
@@ -18297,7 +18309,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18297
18309
|
*/
|
|
18298
18310
|
__pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_tree->n_features); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
|
|
18299
18311
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18300
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_n_features, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18312
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_n_features, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18301
18313
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18302
18314
|
|
|
18303
18315
|
/* "obliquetree/src/utils.pyx":117
|
|
@@ -18309,7 +18321,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18309
18321
|
*/
|
|
18310
18322
|
__pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_tree->cat_); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
|
|
18311
18323
|
__Pyx_GOTREF(__pyx_t_4);
|
|
18312
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_cat, __pyx_t_4) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18324
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_cat, __pyx_t_4) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
|
|
18313
18325
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18314
18326
|
__pyx_v_params = ((PyObject*)__pyx_t_2);
|
|
18315
18327
|
__pyx_t_2 = 0;
|
|
@@ -18332,7 +18344,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18332
18344
|
*/
|
|
18333
18345
|
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
18334
18346
|
__Pyx_GOTREF(__pyx_t_2);
|
|
18335
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_params, __pyx_v_params) < 0) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
18347
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_params, __pyx_v_params) < (0)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
18336
18348
|
|
|
18337
18349
|
/* "obliquetree/src/utils.pyx":123
|
|
18338
18350
|
* return {
|
|
@@ -18351,7 +18363,7 @@ static PyObject *__pyx_f_11obliquetree_3src_5utils_export_tree(struct __pyx_obj_
|
|
|
18351
18363
|
__Pyx_INCREF(Py_None);
|
|
18352
18364
|
__pyx_t_4 = Py_None;
|
|
18353
18365
|
}
|
|
18354
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tree, __pyx_t_4) < 0) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
18366
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tree, __pyx_t_4) < (0)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
18355
18367
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
18356
18368
|
__pyx_r = ((PyObject*)__pyx_t_2);
|
|
18357
18369
|
__pyx_t_2 = 0;
|
|
@@ -18430,7 +18442,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
18430
18442
|
default: goto __pyx_L5_argtuple_error;
|
|
18431
18443
|
}
|
|
18432
18444
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
18433
|
-
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "export_tree", 0) < 0) __PYX_ERR(0, 83, __pyx_L3_error)
|
|
18445
|
+
if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "export_tree", 0) < (0)) __PYX_ERR(0, 83, __pyx_L3_error)
|
|
18434
18446
|
for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
|
|
18435
18447
|
if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("export_tree", 1, 1, 1, i); __PYX_ERR(0, 83, __pyx_L3_error) }
|
|
18436
18448
|
}
|
|
@@ -22571,14 +22583,14 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
22571
22583
|
/*--- Type init code ---*/
|
|
22572
22584
|
#if CYTHON_USE_TYPE_SPECS
|
|
22573
22585
|
__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse)) __PYX_ERR(0, 6, __pyx_L1_error)
|
|
22574
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse_spec, __pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse) < 0) __PYX_ERR(0, 6, __pyx_L1_error)
|
|
22586
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse_spec, __pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse) < (0)) __PYX_ERR(0, 6, __pyx_L1_error)
|
|
22575
22587
|
#else
|
|
22576
22588
|
__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse = &__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse;
|
|
22577
22589
|
#endif
|
|
22578
22590
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22579
22591
|
#endif
|
|
22580
22592
|
#if !CYTHON_USE_TYPE_SPECS
|
|
22581
|
-
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse) < 0) __PYX_ERR(0, 6, __pyx_L1_error)
|
|
22593
|
+
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse) < (0)) __PYX_ERR(0, 6, __pyx_L1_error)
|
|
22582
22594
|
#endif
|
|
22583
22595
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22584
22596
|
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse->tp_dictoffset && __pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct____pyx_f_11obliquetree_3src_5utils__recurse->tp_getattro == PyObject_GenericGetAttr)) {
|
|
@@ -22587,14 +22599,14 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
22587
22599
|
#endif
|
|
22588
22600
|
#if CYTHON_USE_TYPE_SPECS
|
|
22589
22601
|
__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr)) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
22590
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr_spec, __pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr) < 0) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
22602
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr_spec, __pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr) < (0)) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
22591
22603
|
#else
|
|
22592
22604
|
__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr = &__pyx_type_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr;
|
|
22593
22605
|
#endif
|
|
22594
22606
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22595
22607
|
#endif
|
|
22596
22608
|
#if !CYTHON_USE_TYPE_SPECS
|
|
22597
|
-
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr) < 0) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
22609
|
+
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr) < (0)) __PYX_ERR(0, 71, __pyx_L1_error)
|
|
22598
22610
|
#endif
|
|
22599
22611
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22600
22612
|
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_11obliquetree_3src_5utils___pyx_scope_struct_1_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
|
|
@@ -22617,35 +22629,35 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
22617
22629
|
#else
|
|
22618
22630
|
#warning "The buffer protocol is not supported in the Limited C-API < 3.11."
|
|
22619
22631
|
#endif
|
|
22620
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_array_spec, __pyx_mstate->__pyx_array_type) < 0) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22632
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_array_spec, __pyx_mstate->__pyx_array_type) < (0)) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22621
22633
|
#else
|
|
22622
22634
|
__pyx_mstate->__pyx_array_type = &__pyx_type___pyx_array;
|
|
22623
22635
|
#endif
|
|
22624
22636
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22625
22637
|
#endif
|
|
22626
22638
|
#if !CYTHON_USE_TYPE_SPECS
|
|
22627
|
-
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_array_type) < 0) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22639
|
+
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_array_type) < (0)) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22628
22640
|
#endif
|
|
22629
|
-
if (__Pyx_SetVtable(__pyx_mstate->__pyx_array_type, __pyx_vtabptr_array) < 0) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22630
|
-
if (__Pyx_MergeVtables(__pyx_mstate->__pyx_array_type) < 0) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22631
|
-
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_array_type) < 0) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22641
|
+
if (__Pyx_SetVtable(__pyx_mstate->__pyx_array_type, __pyx_vtabptr_array) < (0)) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22642
|
+
if (__Pyx_MergeVtables(__pyx_mstate->__pyx_array_type) < (0)) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22643
|
+
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_array_type) < (0)) __PYX_ERR(1, 110, __pyx_L1_error)
|
|
22632
22644
|
#if CYTHON_USE_TYPE_SPECS
|
|
22633
22645
|
__pyx_mstate->__pyx_MemviewEnum_type = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type___pyx_MemviewEnum_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_MemviewEnum_type)) __PYX_ERR(1, 299, __pyx_L1_error)
|
|
22634
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_MemviewEnum_spec, __pyx_mstate->__pyx_MemviewEnum_type) < 0) __PYX_ERR(1, 299, __pyx_L1_error)
|
|
22646
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_MemviewEnum_spec, __pyx_mstate->__pyx_MemviewEnum_type) < (0)) __PYX_ERR(1, 299, __pyx_L1_error)
|
|
22635
22647
|
#else
|
|
22636
22648
|
__pyx_mstate->__pyx_MemviewEnum_type = &__pyx_type___pyx_MemviewEnum;
|
|
22637
22649
|
#endif
|
|
22638
22650
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22639
22651
|
#endif
|
|
22640
22652
|
#if !CYTHON_USE_TYPE_SPECS
|
|
22641
|
-
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_MemviewEnum_type) < 0) __PYX_ERR(1, 299, __pyx_L1_error)
|
|
22653
|
+
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_MemviewEnum_type) < (0)) __PYX_ERR(1, 299, __pyx_L1_error)
|
|
22642
22654
|
#endif
|
|
22643
22655
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22644
22656
|
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_MemviewEnum_type->tp_dictoffset && __pyx_mstate->__pyx_MemviewEnum_type->tp_getattro == PyObject_GenericGetAttr)) {
|
|
22645
22657
|
__pyx_mstate->__pyx_MemviewEnum_type->tp_getattro = PyObject_GenericGetAttr;
|
|
22646
22658
|
}
|
|
22647
22659
|
#endif
|
|
22648
|
-
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_MemviewEnum_type) < 0) __PYX_ERR(1, 299, __pyx_L1_error)
|
|
22660
|
+
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_MemviewEnum_type) < (0)) __PYX_ERR(1, 299, __pyx_L1_error)
|
|
22649
22661
|
__pyx_vtabptr_memoryview = &__pyx_vtable_memoryview;
|
|
22650
22662
|
__pyx_vtable_memoryview.get_item_pointer = (char *(*)(struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_get_item_pointer;
|
|
22651
22663
|
__pyx_vtable_memoryview.is_slice = (PyObject *(*)(struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_is_slice;
|
|
@@ -22669,23 +22681,23 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
22669
22681
|
#else
|
|
22670
22682
|
#warning "The buffer protocol is not supported in the Limited C-API < 3.11."
|
|
22671
22683
|
#endif
|
|
22672
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_memoryview_spec, __pyx_mstate->__pyx_memoryview_type) < 0) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22684
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_memoryview_spec, __pyx_mstate->__pyx_memoryview_type) < (0)) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22673
22685
|
#else
|
|
22674
22686
|
__pyx_mstate->__pyx_memoryview_type = &__pyx_type___pyx_memoryview;
|
|
22675
22687
|
#endif
|
|
22676
22688
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22677
22689
|
#endif
|
|
22678
22690
|
#if !CYTHON_USE_TYPE_SPECS
|
|
22679
|
-
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_memoryview_type) < 0) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22691
|
+
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_memoryview_type) < (0)) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22680
22692
|
#endif
|
|
22681
22693
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22682
22694
|
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_memoryview_type->tp_dictoffset && __pyx_mstate->__pyx_memoryview_type->tp_getattro == PyObject_GenericGetAttr)) {
|
|
22683
22695
|
__pyx_mstate->__pyx_memoryview_type->tp_getattro = PyObject_GenericGetAttr;
|
|
22684
22696
|
}
|
|
22685
22697
|
#endif
|
|
22686
|
-
if (__Pyx_SetVtable(__pyx_mstate->__pyx_memoryview_type, __pyx_vtabptr_memoryview) < 0) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22687
|
-
if (__Pyx_MergeVtables(__pyx_mstate->__pyx_memoryview_type) < 0) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22688
|
-
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_memoryview_type) < 0) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22698
|
+
if (__Pyx_SetVtable(__pyx_mstate->__pyx_memoryview_type, __pyx_vtabptr_memoryview) < (0)) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22699
|
+
if (__Pyx_MergeVtables(__pyx_mstate->__pyx_memoryview_type) < (0)) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22700
|
+
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_memoryview_type) < (0)) __PYX_ERR(1, 334, __pyx_L1_error)
|
|
22689
22701
|
__pyx_vtabptr__memoryviewslice = &__pyx_vtable__memoryviewslice;
|
|
22690
22702
|
__pyx_vtable__memoryviewslice.__pyx_base = *__pyx_vtabptr_memoryview;
|
|
22691
22703
|
__pyx_vtable__memoryviewslice.__pyx_base.convert_item_to_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *))__pyx_memoryviewslice_convert_item_to_object;
|
|
@@ -22697,7 +22709,7 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
22697
22709
|
__pyx_mstate->__pyx_memoryviewslice_type = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type___pyx_memoryviewslice_spec, __pyx_t_1);
|
|
22698
22710
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
22699
22711
|
if (unlikely(!__pyx_mstate->__pyx_memoryviewslice_type)) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22700
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_memoryviewslice_spec, __pyx_mstate->__pyx_memoryviewslice_type) < 0) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22712
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type___pyx_memoryviewslice_spec, __pyx_mstate->__pyx_memoryviewslice_type) < (0)) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22701
22713
|
#else
|
|
22702
22714
|
__pyx_mstate->__pyx_memoryviewslice_type = &__pyx_type___pyx_memoryviewslice;
|
|
22703
22715
|
#endif
|
|
@@ -22705,16 +22717,16 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
22705
22717
|
__pyx_mstate_global->__pyx_memoryviewslice_type->tp_base = __pyx_mstate_global->__pyx_memoryview_type;
|
|
22706
22718
|
#endif
|
|
22707
22719
|
#if !CYTHON_USE_TYPE_SPECS
|
|
22708
|
-
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_memoryviewslice_type) < 0) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22720
|
+
if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_memoryviewslice_type) < (0)) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22709
22721
|
#endif
|
|
22710
22722
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
22711
22723
|
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_memoryviewslice_type->tp_dictoffset && __pyx_mstate->__pyx_memoryviewslice_type->tp_getattro == PyObject_GenericGetAttr)) {
|
|
22712
22724
|
__pyx_mstate->__pyx_memoryviewslice_type->tp_getattro = PyObject_GenericGetAttr;
|
|
22713
22725
|
}
|
|
22714
22726
|
#endif
|
|
22715
|
-
if (__Pyx_SetVtable(__pyx_mstate->__pyx_memoryviewslice_type, __pyx_vtabptr__memoryviewslice) < 0) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22716
|
-
if (__Pyx_MergeVtables(__pyx_mstate->__pyx_memoryviewslice_type) < 0) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22717
|
-
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_memoryviewslice_type) < 0) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22727
|
+
if (__Pyx_SetVtable(__pyx_mstate->__pyx_memoryviewslice_type, __pyx_vtabptr__memoryviewslice) < (0)) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22728
|
+
if (__Pyx_MergeVtables(__pyx_mstate->__pyx_memoryviewslice_type) < (0)) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22729
|
+
if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_memoryviewslice_type) < (0)) __PYX_ERR(1, 950, __pyx_L1_error)
|
|
22718
22730
|
__Pyx_RefNannyFinishContext();
|
|
22719
22731
|
return 0;
|
|
22720
22732
|
__pyx_L1_error:;
|
|
@@ -22734,15 +22746,15 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
22734
22746
|
/*--- Type import code ---*/
|
|
22735
22747
|
__pyx_t_1 = PyImport_ImportModule("obliquetree.src.base"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 4, __pyx_L1_error)
|
|
22736
22748
|
__Pyx_GOTREF(__pyx_t_1);
|
|
22737
|
-
__pyx_mstate->__pyx_ptype_11obliquetree_3src_4base_TreeClassifier =
|
|
22749
|
+
__pyx_mstate->__pyx_ptype_11obliquetree_3src_4base_TreeClassifier = __Pyx_ImportType_3_1_6(__pyx_t_1, "obliquetree.src.base", "TreeClassifier",
|
|
22738
22750
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
22739
|
-
sizeof(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier),
|
|
22751
|
+
sizeof(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier), __PYX_GET_STRUCT_ALIGNMENT_3_1_6(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier),
|
|
22740
22752
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
22741
|
-
sizeof(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier),
|
|
22753
|
+
sizeof(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier), __PYX_GET_STRUCT_ALIGNMENT_3_1_6(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier),
|
|
22742
22754
|
#else
|
|
22743
|
-
sizeof(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier),
|
|
22755
|
+
sizeof(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier), __PYX_GET_STRUCT_ALIGNMENT_3_1_6(struct __pyx_obj_11obliquetree_3src_4base_TreeClassifier),
|
|
22744
22756
|
#endif
|
|
22745
|
-
|
|
22757
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_6); if (!__pyx_mstate->__pyx_ptype_11obliquetree_3src_4base_TreeClassifier) __PYX_ERR(2, 4, __pyx_L1_error)
|
|
22746
22758
|
__pyx_vtabptr_11obliquetree_3src_4base_TreeClassifier = (struct __pyx_vtabstruct_11obliquetree_3src_4base_TreeClassifier*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_11obliquetree_3src_4base_TreeClassifier); if (unlikely(!__pyx_vtabptr_11obliquetree_3src_4base_TreeClassifier)) __PYX_ERR(2, 4, __pyx_L1_error)
|
|
22747
22759
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
22748
22760
|
__Pyx_RefNannyFinishContext();
|
|
@@ -23006,7 +23018,7 @@ if (!__Pyx_RefNanny) {
|
|
|
23006
23018
|
#endif
|
|
23007
23019
|
|
|
23008
23020
|
__Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
23009
|
-
if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23021
|
+
if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23010
23022
|
#ifdef __Pxy_PyFrame_Initialize_Offsets
|
|
23011
23023
|
__Pxy_PyFrame_Initialize_Offsets();
|
|
23012
23024
|
#endif
|
|
@@ -23014,30 +23026,30 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23014
23026
|
__pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23015
23027
|
__pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23016
23028
|
/*--- Initialize various global constants etc. ---*/
|
|
23017
|
-
if (__Pyx_InitConstants(__pyx_mstate) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23029
|
+
if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23018
23030
|
stringtab_initialized = 1;
|
|
23019
|
-
if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23031
|
+
if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23020
23032
|
#if 0 || defined(__Pyx_CyFunction_USED) || defined(__Pyx_FusedFunction_USED) || defined(__Pyx_Coroutine_USED) || defined(__Pyx_Generator_USED) || defined(__Pyx_AsyncGen_USED)
|
|
23021
|
-
if (__pyx_CommonTypesMetaclass_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23033
|
+
if (__pyx_CommonTypesMetaclass_init(__pyx_m) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23022
23034
|
#endif
|
|
23023
23035
|
#ifdef __Pyx_CyFunction_USED
|
|
23024
|
-
if (__pyx_CyFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23036
|
+
if (__pyx_CyFunction_init(__pyx_m) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23025
23037
|
#endif
|
|
23026
23038
|
#ifdef __Pyx_FusedFunction_USED
|
|
23027
|
-
if (__pyx_FusedFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23039
|
+
if (__pyx_FusedFunction_init(__pyx_m) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23028
23040
|
#endif
|
|
23029
23041
|
#ifdef __Pyx_Coroutine_USED
|
|
23030
|
-
if (__pyx_Coroutine_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23042
|
+
if (__pyx_Coroutine_init(__pyx_m) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23031
23043
|
#endif
|
|
23032
23044
|
#ifdef __Pyx_Generator_USED
|
|
23033
|
-
if (__pyx_Generator_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23045
|
+
if (__pyx_Generator_init(__pyx_m) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23034
23046
|
#endif
|
|
23035
23047
|
#ifdef __Pyx_AsyncGen_USED
|
|
23036
|
-
if (__pyx_AsyncGen_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23048
|
+
if (__pyx_AsyncGen_init(__pyx_m) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23037
23049
|
#endif
|
|
23038
23050
|
/*--- Library function declarations ---*/
|
|
23039
23051
|
if (__pyx_module_is_main_obliquetree__src__utils) {
|
|
23040
|
-
if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23052
|
+
if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23041
23053
|
}
|
|
23042
23054
|
{
|
|
23043
23055
|
PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
@@ -23046,10 +23058,10 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23046
23058
|
}
|
|
23047
23059
|
}
|
|
23048
23060
|
/*--- Builtin init code ---*/
|
|
23049
|
-
if (__Pyx_InitCachedBuiltins(__pyx_mstate) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23061
|
+
if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23050
23062
|
/*--- Constants init code ---*/
|
|
23051
|
-
if (__Pyx_InitCachedConstants(__pyx_mstate) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23052
|
-
if (__Pyx_CreateCodeObjects(__pyx_mstate) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23063
|
+
if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23064
|
+
if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23053
23065
|
/*--- Global type/function init code ---*/
|
|
23054
23066
|
(void)__Pyx_modinit_global_init_code(__pyx_mstate);
|
|
23055
23067
|
(void)__Pyx_modinit_variable_export_code(__pyx_mstate);
|
|
@@ -23200,7 +23212,7 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23200
23212
|
*/
|
|
23201
23213
|
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_collections_abc_Sequence, __pyx_mstate_global->__pyx_n_u_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 240, __pyx_L10_error)
|
|
23202
23214
|
__Pyx_GOTREF(__pyx_t_5);
|
|
23203
|
-
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_array_type, __pyx_mstate_global->__pyx_n_u_count, __pyx_t_5) < 0) __PYX_ERR(1, 240, __pyx_L10_error)
|
|
23215
|
+
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_array_type, __pyx_mstate_global->__pyx_n_u_count, __pyx_t_5) < (0)) __PYX_ERR(1, 240, __pyx_L10_error)
|
|
23204
23216
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
23205
23217
|
|
|
23206
23218
|
/* "View.MemoryView":241
|
|
@@ -23212,7 +23224,7 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23212
23224
|
*/
|
|
23213
23225
|
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_collections_abc_Sequence, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 241, __pyx_L10_error)
|
|
23214
23226
|
__Pyx_GOTREF(__pyx_t_5);
|
|
23215
|
-
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_array_type, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_5) < 0) __PYX_ERR(1, 241, __pyx_L10_error)
|
|
23227
|
+
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_array_type, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_5) < (0)) __PYX_ERR(1, 241, __pyx_L10_error)
|
|
23216
23228
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
23217
23229
|
|
|
23218
23230
|
/* "View.MemoryView":239
|
|
@@ -23422,7 +23434,7 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23422
23434
|
*/
|
|
23423
23435
|
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_collections_abc_Sequence, __pyx_mstate_global->__pyx_n_u_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 983, __pyx_L18_error)
|
|
23424
23436
|
__Pyx_GOTREF(__pyx_t_5);
|
|
23425
|
-
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_memoryviewslice_type, __pyx_mstate_global->__pyx_n_u_count, __pyx_t_5) < 0) __PYX_ERR(1, 983, __pyx_L18_error)
|
|
23437
|
+
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_memoryviewslice_type, __pyx_mstate_global->__pyx_n_u_count, __pyx_t_5) < (0)) __PYX_ERR(1, 983, __pyx_L18_error)
|
|
23426
23438
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
23427
23439
|
|
|
23428
23440
|
/* "View.MemoryView":984
|
|
@@ -23434,7 +23446,7 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23434
23446
|
*/
|
|
23435
23447
|
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_collections_abc_Sequence, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 984, __pyx_L18_error)
|
|
23436
23448
|
__Pyx_GOTREF(__pyx_t_5);
|
|
23437
|
-
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_memoryviewslice_type, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_5) < 0) __PYX_ERR(1, 984, __pyx_L18_error)
|
|
23449
|
+
if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_memoryviewslice_type, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_5) < (0)) __PYX_ERR(1, 984, __pyx_L18_error)
|
|
23438
23450
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
23439
23451
|
|
|
23440
23452
|
/* "View.MemoryView":982
|
|
@@ -23589,7 +23601,7 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23589
23601
|
*/
|
|
23590
23602
|
__pyx_t_5 = PyCFunction_NewEx(&__pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum, NULL, __pyx_mstate_global->__pyx_n_u_View_MemoryView); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1, __pyx_L1_error)
|
|
23591
23603
|
__Pyx_GOTREF(__pyx_t_5);
|
|
23592
|
-
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_Enum, __pyx_t_5) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
|
|
23604
|
+
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_Enum, __pyx_t_5) < (0)) __PYX_ERR(1, 1, __pyx_L1_error)
|
|
23593
23605
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
23594
23606
|
|
|
23595
23607
|
/* "obliquetree/src/utils.pyx":83
|
|
@@ -23601,7 +23613,7 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23601
23613
|
*/
|
|
23602
23614
|
__pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_11obliquetree_3src_5utils_1export_tree, 0, __pyx_mstate_global->__pyx_n_u_export_tree, NULL, __pyx_mstate_global->__pyx_n_u_obliquetree_src_utils, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error)
|
|
23603
23615
|
__Pyx_GOTREF(__pyx_t_5);
|
|
23604
|
-
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_export_tree, __pyx_t_5) < 0) __PYX_ERR(0, 83, __pyx_L1_error)
|
|
23616
|
+
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_export_tree, __pyx_t_5) < (0)) __PYX_ERR(0, 83, __pyx_L1_error)
|
|
23605
23617
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
23606
23618
|
|
|
23607
23619
|
/* "obliquetree/src/utils.pyx":1
|
|
@@ -23611,7 +23623,7 @@ __Pyx_RefNannySetupContext("PyInit_utils", 0);
|
|
|
23611
23623
|
*/
|
|
23612
23624
|
__pyx_t_5 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23613
23625
|
__Pyx_GOTREF(__pyx_t_5);
|
|
23614
|
-
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_5) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23626
|
+
if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_5) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
23615
23627
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
23616
23628
|
|
|
23617
23629
|
/*--- Wrapped vars code ---*/
|
|
@@ -24204,7 +24216,7 @@ __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
|
|
|
24204
24216
|
res = PyTuple_New(n);
|
|
24205
24217
|
if (unlikely(res == NULL)) return NULL;
|
|
24206
24218
|
for (i = 0; i < n; i++) {
|
|
24207
|
-
if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < 0)) {
|
|
24219
|
+
if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
|
|
24208
24220
|
Py_DECREF(res);
|
|
24209
24221
|
return NULL;
|
|
24210
24222
|
}
|
|
@@ -27080,6 +27092,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
27080
27092
|
changed = 1;
|
|
27081
27093
|
}
|
|
27082
27094
|
#endif // CYTHON_METH_FASTCALL
|
|
27095
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
27083
27096
|
else if (strcmp(memb->name, "__module__") == 0) {
|
|
27084
27097
|
PyObject *descr;
|
|
27085
27098
|
assert(memb->type == T_OBJECT);
|
|
@@ -27094,11 +27107,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
27094
27107
|
}
|
|
27095
27108
|
changed = 1;
|
|
27096
27109
|
}
|
|
27110
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
27097
27111
|
}
|
|
27098
27112
|
memb++;
|
|
27099
27113
|
}
|
|
27100
27114
|
}
|
|
27101
27115
|
#endif // !CYTHON_COMPILING_IN_LIMITED_API
|
|
27116
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
27102
27117
|
slot = spec->slots;
|
|
27103
27118
|
while (slot && slot->slot && slot->slot != Py_tp_getset)
|
|
27104
27119
|
slot++;
|
|
@@ -27130,6 +27145,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
27130
27145
|
++getset;
|
|
27131
27146
|
}
|
|
27132
27147
|
}
|
|
27148
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
27133
27149
|
if (changed)
|
|
27134
27150
|
PyType_Modified(type);
|
|
27135
27151
|
#endif // PY_VERSION_HEX > 0x030900B1
|
|
@@ -27234,6 +27250,13 @@ try_unpack:
|
|
|
27234
27250
|
|
|
27235
27251
|
/* PyObjectCallMethod0 */
|
|
27236
27252
|
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
|
|
27253
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
27254
|
+
PyObject *args[1] = {obj};
|
|
27255
|
+
(void) __Pyx_PyObject_GetMethod;
|
|
27256
|
+
(void) __Pyx_PyObject_CallOneArg;
|
|
27257
|
+
(void) __Pyx_PyObject_CallNoArg;
|
|
27258
|
+
return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
|
|
27259
|
+
#else
|
|
27237
27260
|
PyObject *method = NULL, *result = NULL;
|
|
27238
27261
|
int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
|
|
27239
27262
|
if (likely(is_method)) {
|
|
@@ -27246,6 +27269,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
|
|
|
27246
27269
|
Py_DECREF(method);
|
|
27247
27270
|
bad:
|
|
27248
27271
|
return result;
|
|
27272
|
+
#endif
|
|
27249
27273
|
}
|
|
27250
27274
|
|
|
27251
27275
|
/* ValidateBasesTuple */
|
|
@@ -27675,15 +27699,15 @@ __PYX_GOOD:
|
|
|
27675
27699
|
}
|
|
27676
27700
|
|
|
27677
27701
|
/* TypeImport */
|
|
27678
|
-
#ifndef
|
|
27679
|
-
#define
|
|
27680
|
-
static PyTypeObject *
|
|
27681
|
-
size_t size, size_t alignment, enum
|
|
27702
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_1_6
|
|
27703
|
+
#define __PYX_HAVE_RT_ImportType_3_1_6
|
|
27704
|
+
static PyTypeObject *__Pyx_ImportType_3_1_6(PyObject *module, const char *module_name, const char *class_name,
|
|
27705
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_6 check_size)
|
|
27682
27706
|
{
|
|
27683
27707
|
PyObject *result = 0;
|
|
27684
27708
|
Py_ssize_t basicsize;
|
|
27685
27709
|
Py_ssize_t itemsize;
|
|
27686
|
-
#if CYTHON_COMPILING_IN_LIMITED_API
|
|
27710
|
+
#if defined(Py_LIMITED_API) || (defined(CYTHON_COMPILING_IN_LIMITED_API) && CYTHON_COMPILING_IN_LIMITED_API)
|
|
27687
27711
|
PyObject *py_basicsize;
|
|
27688
27712
|
PyObject *py_itemsize;
|
|
27689
27713
|
#endif
|
|
@@ -27696,7 +27720,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
27696
27720
|
module_name, class_name);
|
|
27697
27721
|
goto bad;
|
|
27698
27722
|
}
|
|
27699
|
-
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
27723
|
+
#if !( defined(Py_LIMITED_API) || (defined(CYTHON_COMPILING_IN_LIMITED_API) && CYTHON_COMPILING_IN_LIMITED_API) )
|
|
27700
27724
|
basicsize = ((PyTypeObject *)result)->tp_basicsize;
|
|
27701
27725
|
itemsize = ((PyTypeObject *)result)->tp_itemsize;
|
|
27702
27726
|
#else
|
|
@@ -27734,7 +27758,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
27734
27758
|
module_name, class_name, size, basicsize+itemsize);
|
|
27735
27759
|
goto bad;
|
|
27736
27760
|
}
|
|
27737
|
-
if (check_size ==
|
|
27761
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_6 &&
|
|
27738
27762
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
27739
27763
|
PyErr_Format(PyExc_ValueError,
|
|
27740
27764
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -27742,7 +27766,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
27742
27766
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
27743
27767
|
goto bad;
|
|
27744
27768
|
}
|
|
27745
|
-
else if (check_size ==
|
|
27769
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_6 && (size_t)basicsize > size) {
|
|
27746
27770
|
if (PyErr_WarnFormat(NULL, 0,
|
|
27747
27771
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
27748
27772
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -27883,7 +27907,7 @@ bad:
|
|
|
27883
27907
|
}
|
|
27884
27908
|
|
|
27885
27909
|
/* CommonTypesMetaclass */
|
|
27886
|
-
PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
27910
|
+
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
27887
27911
|
return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
|
|
27888
27912
|
}
|
|
27889
27913
|
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
|
|
@@ -27912,6 +27936,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
|
|
|
27912
27936
|
return -1;
|
|
27913
27937
|
}
|
|
27914
27938
|
mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
|
|
27939
|
+
Py_DECREF(bases);
|
|
27915
27940
|
if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
|
|
27916
27941
|
return -1;
|
|
27917
27942
|
}
|
|
@@ -30718,7 +30743,7 @@ static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator) {
|
|
|
30718
30743
|
}
|
|
30719
30744
|
|
|
30720
30745
|
/* PyObjectCallMethod1 */
|
|
30721
|
-
#if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
|
|
30746
|
+
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
|
|
30722
30747
|
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
30723
30748
|
PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
|
|
30724
30749
|
Py_DECREF(method);
|
|
@@ -30726,7 +30751,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
|
30726
30751
|
}
|
|
30727
30752
|
#endif
|
|
30728
30753
|
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
|
|
30729
|
-
#if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
|
|
30754
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
30730
30755
|
PyObject *args[2] = {obj, arg};
|
|
30731
30756
|
(void) __Pyx_PyObject_GetMethod;
|
|
30732
30757
|
(void) __Pyx_PyObject_CallOneArg;
|
|
@@ -31987,6 +32012,10 @@ bad:
|
|
|
31987
32012
|
PyCode_NewWithPosOnlyArgs
|
|
31988
32013
|
#endif
|
|
31989
32014
|
(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
|
|
32015
|
+
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
|
|
32016
|
+
if (likely(result))
|
|
32017
|
+
result->_co_firsttraceable = 0;
|
|
32018
|
+
#endif
|
|
31990
32019
|
return result;
|
|
31991
32020
|
}
|
|
31992
32021
|
#elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
|
|
@@ -32314,6 +32343,17 @@ static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
|
|
|
32314
32343
|
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
|
|
32315
32344
|
return PyLong_FromSize_t(ival);
|
|
32316
32345
|
}
|
|
32346
|
+
#if CYTHON_USE_PYLONG_INTERNALS
|
|
32347
|
+
static CYTHON_INLINE int __Pyx_PyLong_CompactAsLong(PyObject *x, long *return_value) {
|
|
32348
|
+
if (unlikely(!__Pyx_PyLong_IsCompact(x)))
|
|
32349
|
+
return 0;
|
|
32350
|
+
Py_ssize_t value = __Pyx_PyLong_CompactValue(x);
|
|
32351
|
+
if ((sizeof(long) < sizeof(Py_ssize_t)) && unlikely(value != (long) value))
|
|
32352
|
+
return 0;
|
|
32353
|
+
*return_value = (long) value;
|
|
32354
|
+
return 1;
|
|
32355
|
+
}
|
|
32356
|
+
#endif
|
|
32317
32357
|
|
|
32318
32358
|
|
|
32319
32359
|
/* MultiPhaseInitModuleState */
|