biotite 0.38.0__cp310-cp310-macosx_11_0_arm64.whl → 0.40.0__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 biotite might be problematic. Click here for more details.

Files changed (124) hide show
  1. biotite/__init__.py +3 -3
  2. biotite/application/application.py +33 -28
  3. biotite/application/dssp/app.py +18 -18
  4. biotite/application/sra/__init__.py +5 -0
  5. biotite/application/sra/app.py +337 -55
  6. biotite/database/entrez/__init__.py +2 -1
  7. biotite/database/entrez/check.py +14 -3
  8. biotite/database/entrez/download.py +20 -13
  9. biotite/database/entrez/key.py +44 -0
  10. biotite/database/entrez/query.py +38 -34
  11. biotite/database/pubchem/query.py +44 -44
  12. biotite/database/rcsb/download.py +19 -14
  13. biotite/database/rcsb/query.py +46 -46
  14. biotite/sequence/align/__init__.py +5 -1
  15. biotite/sequence/align/banded.c +1408 -1025
  16. biotite/sequence/align/banded.cpython-310-darwin.so +0 -0
  17. biotite/sequence/align/buckets.py +69 -0
  18. biotite/sequence/align/cigar.py +389 -0
  19. biotite/sequence/align/kmeralphabet.c +3220 -2850
  20. biotite/sequence/align/kmeralphabet.cpython-310-darwin.so +0 -0
  21. biotite/sequence/align/kmersimilarity.c +713 -663
  22. biotite/sequence/align/kmersimilarity.cpython-310-darwin.so +0 -0
  23. biotite/sequence/align/kmertable.cpp +68398 -0
  24. biotite/sequence/align/kmertable.cpython-310-darwin.so +0 -0
  25. biotite/sequence/align/localgapped.c +1507 -1074
  26. biotite/sequence/align/localgapped.cpython-310-darwin.so +0 -0
  27. biotite/sequence/align/localungapped.c +1143 -833
  28. biotite/sequence/align/localungapped.cpython-310-darwin.so +0 -0
  29. biotite/sequence/align/multiple.c +1569 -1092
  30. biotite/sequence/align/multiple.cpython-310-darwin.so +0 -0
  31. biotite/sequence/align/pairwise.c +1612 -1212
  32. biotite/sequence/align/pairwise.cpython-310-darwin.so +0 -0
  33. biotite/sequence/align/permutation.c +33259 -0
  34. biotite/sequence/align/permutation.cpython-310-darwin.so +0 -0
  35. biotite/sequence/align/primes.txt +821 -0
  36. biotite/sequence/align/{kmertable.c → selector.c} +9129 -16497
  37. biotite/sequence/align/selector.cpython-310-darwin.so +0 -0
  38. biotite/sequence/align/tracetable.c +685 -646
  39. biotite/sequence/align/tracetable.cpython-310-darwin.so +0 -0
  40. biotite/sequence/codec.c +1159 -841
  41. biotite/sequence/codec.cpython-310-darwin.so +0 -0
  42. biotite/sequence/graphics/alignment.py +212 -2
  43. biotite/sequence/io/genbank/annotation.py +11 -11
  44. biotite/sequence/phylo/nj.c +684 -636
  45. biotite/sequence/phylo/nj.cpython-310-darwin.so +0 -0
  46. biotite/sequence/phylo/tree.c +970 -673
  47. biotite/sequence/phylo/tree.cpython-310-darwin.so +0 -0
  48. biotite/sequence/phylo/upgma.c +672 -626
  49. biotite/sequence/phylo/upgma.cpython-310-darwin.so +0 -0
  50. biotite/structure/__init__.py +1 -1
  51. biotite/structure/atoms.py +1 -1
  52. biotite/structure/basepairs.py +7 -12
  53. biotite/structure/bonds.c +3861 -3749
  54. biotite/structure/bonds.cpython-310-darwin.so +0 -0
  55. biotite/structure/celllist.c +727 -707
  56. biotite/structure/celllist.cpython-310-darwin.so +0 -0
  57. biotite/structure/charges.c +1561 -1560
  58. biotite/structure/charges.cpython-310-darwin.so +0 -0
  59. biotite/structure/filter.py +30 -37
  60. biotite/structure/info/__init__.py +5 -8
  61. biotite/structure/info/atoms.py +25 -67
  62. biotite/structure/info/bonds.py +46 -100
  63. biotite/structure/info/ccd/README.rst +8 -0
  64. biotite/structure/info/ccd/amino_acids.txt +1646 -0
  65. biotite/structure/info/ccd/carbohydrates.txt +1133 -0
  66. biotite/structure/info/ccd/components.bcif +0 -0
  67. biotite/structure/info/ccd/nucleotides.txt +797 -0
  68. biotite/structure/info/ccd.py +95 -0
  69. biotite/structure/info/groups.py +90 -0
  70. biotite/structure/info/masses.py +21 -20
  71. biotite/structure/info/misc.py +11 -22
  72. biotite/structure/info/standardize.py +17 -12
  73. biotite/structure/io/__init__.py +2 -4
  74. biotite/structure/io/ctab.py +1 -1
  75. biotite/structure/io/general.py +37 -43
  76. biotite/structure/io/mmtf/__init__.py +3 -0
  77. biotite/structure/io/mmtf/convertarray.c +528 -365
  78. biotite/structure/io/mmtf/convertarray.cpython-310-darwin.so +0 -0
  79. biotite/structure/io/mmtf/convertfile.c +725 -676
  80. biotite/structure/io/mmtf/convertfile.cpython-310-darwin.so +0 -0
  81. biotite/structure/io/mmtf/decode.c +1070 -754
  82. biotite/structure/io/mmtf/decode.cpython-310-darwin.so +0 -0
  83. biotite/structure/io/mmtf/encode.c +727 -677
  84. biotite/structure/io/mmtf/encode.cpython-310-darwin.so +0 -0
  85. biotite/structure/io/mmtf/file.py +34 -26
  86. biotite/structure/io/npz/__init__.py +3 -0
  87. biotite/structure/io/npz/file.py +21 -18
  88. biotite/structure/io/pdb/__init__.py +3 -3
  89. biotite/structure/io/pdb/file.py +72 -70
  90. biotite/structure/io/pdb/hybrid36.c +540 -478
  91. biotite/structure/io/pdb/hybrid36.cpython-310-darwin.so +0 -0
  92. biotite/structure/io/pdbqt/file.py +82 -68
  93. biotite/structure/io/pdbx/__init__.py +13 -6
  94. biotite/structure/io/pdbx/bcif.py +649 -0
  95. biotite/structure/io/pdbx/cif.py +1028 -0
  96. biotite/structure/io/pdbx/component.py +243 -0
  97. biotite/structure/io/pdbx/convert.py +707 -359
  98. biotite/structure/io/pdbx/encoding.c +112813 -0
  99. biotite/structure/io/pdbx/encoding.cpython-310-darwin.so +0 -0
  100. biotite/structure/io/pdbx/error.py +14 -0
  101. biotite/structure/io/pdbx/legacy.py +267 -0
  102. biotite/structure/molecules.py +151 -151
  103. biotite/structure/residues.py +40 -40
  104. biotite/structure/sasa.c +713 -644
  105. biotite/structure/sasa.cpython-310-darwin.so +0 -0
  106. biotite/structure/superimpose.py +158 -115
  107. biotite/visualize.py +9 -11
  108. {biotite-0.38.0.dist-info → biotite-0.40.0.dist-info}/METADATA +2 -2
  109. {biotite-0.38.0.dist-info → biotite-0.40.0.dist-info}/RECORD +112 -102
  110. {biotite-0.38.0.dist-info → biotite-0.40.0.dist-info}/WHEEL +1 -1
  111. biotite/structure/info/amino_acids.json +0 -1556
  112. biotite/structure/info/amino_acids.py +0 -42
  113. biotite/structure/info/carbohydrates.json +0 -1122
  114. biotite/structure/info/carbohydrates.py +0 -39
  115. biotite/structure/info/intra_bonds.msgpack +0 -0
  116. biotite/structure/info/link_types.msgpack +0 -1
  117. biotite/structure/info/nucleotides.json +0 -772
  118. biotite/structure/info/nucleotides.py +0 -39
  119. biotite/structure/info/residue_masses.msgpack +0 -0
  120. biotite/structure/info/residue_names.msgpack +0 -3
  121. biotite/structure/info/residues.msgpack +0 -0
  122. biotite/structure/io/pdbx/file.py +0 -652
  123. {biotite-0.38.0.dist-info → biotite-0.40.0.dist-info}/LICENSE.rst +0 -0
  124. {biotite-0.38.0.dist-info → biotite-0.40.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.0.2 */
1
+ /* Generated by Cython 3.0.10 */
2
2
 
3
3
  /* BEGIN: Cython Metadata
4
4
  {
@@ -32,15 +32,15 @@ END: Cython Metadata */
32
32
  #elif PY_VERSION_HEX < 0x02070000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
33
33
  #error Cython requires Python 2.7+ or Python 3.3+.
34
34
  #else
35
- #if CYTHON_LIMITED_API
35
+ #if defined(CYTHON_LIMITED_API) && CYTHON_LIMITED_API
36
36
  #define __PYX_EXTRA_ABI_MODULE_NAME "limited"
37
37
  #else
38
38
  #define __PYX_EXTRA_ABI_MODULE_NAME ""
39
39
  #endif
40
- #define CYTHON_ABI "3_0_2" __PYX_EXTRA_ABI_MODULE_NAME
40
+ #define CYTHON_ABI "3_0_10" __PYX_EXTRA_ABI_MODULE_NAME
41
41
  #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
42
42
  #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
43
- #define CYTHON_HEX_VERSION 0x030002F0
43
+ #define CYTHON_HEX_VERSION 0x03000AF0
44
44
  #define CYTHON_FUTURE_DIVISION 1
45
45
  #include <stddef.h>
46
46
  #ifndef offsetof
@@ -132,6 +132,8 @@ END: Cython Metadata */
132
132
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
133
133
  #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
134
134
  #endif
135
+ #undef CYTHON_USE_FREELISTS
136
+ #define CYTHON_USE_FREELISTS 0
135
137
  #elif defined(PYPY_VERSION)
136
138
  #define CYTHON_COMPILING_IN_PYPY 1
137
139
  #define CYTHON_COMPILING_IN_CPYTHON 0
@@ -193,6 +195,8 @@ END: Cython Metadata */
193
195
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
194
196
  #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
195
197
  #endif
198
+ #undef CYTHON_USE_FREELISTS
199
+ #define CYTHON_USE_FREELISTS 0
196
200
  #elif defined(CYTHON_LIMITED_API)
197
201
  #ifdef Py_LIMITED_API
198
202
  #undef __PYX_LIMITED_VERSION_HEX
@@ -254,7 +258,9 @@ END: Cython Metadata */
254
258
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
255
259
  #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
256
260
  #endif
257
- #elif defined(PY_NOGIL)
261
+ #undef CYTHON_USE_FREELISTS
262
+ #define CYTHON_USE_FREELISTS 0
263
+ #elif defined(Py_GIL_DISABLED) || defined(Py_NOGIL)
258
264
  #define CYTHON_COMPILING_IN_PYPY 0
259
265
  #define CYTHON_COMPILING_IN_CPYTHON 0
260
266
  #define CYTHON_COMPILING_IN_LIMITED_API 0
@@ -263,11 +269,17 @@ END: Cython Metadata */
263
269
  #ifndef CYTHON_USE_TYPE_SLOTS
264
270
  #define CYTHON_USE_TYPE_SLOTS 1
265
271
  #endif
272
+ #ifndef CYTHON_USE_TYPE_SPECS
273
+ #define CYTHON_USE_TYPE_SPECS 0
274
+ #endif
266
275
  #undef CYTHON_USE_PYTYPE_LOOKUP
267
276
  #define CYTHON_USE_PYTYPE_LOOKUP 0
268
277
  #ifndef CYTHON_USE_ASYNC_SLOTS
269
278
  #define CYTHON_USE_ASYNC_SLOTS 1
270
279
  #endif
280
+ #ifndef CYTHON_USE_PYLONG_INTERNALS
281
+ #define CYTHON_USE_PYLONG_INTERNALS 0
282
+ #endif
271
283
  #undef CYTHON_USE_PYLIST_INTERNALS
272
284
  #define CYTHON_USE_PYLIST_INTERNALS 0
273
285
  #ifndef CYTHON_USE_UNICODE_INTERNALS
@@ -275,8 +287,6 @@ END: Cython Metadata */
275
287
  #endif
276
288
  #undef CYTHON_USE_UNICODE_WRITER
277
289
  #define CYTHON_USE_UNICODE_WRITER 0
278
- #undef CYTHON_USE_PYLONG_INTERNALS
279
- #define CYTHON_USE_PYLONG_INTERNALS 0
280
290
  #ifndef CYTHON_AVOID_BORROWED_REFS
281
291
  #define CYTHON_AVOID_BORROWED_REFS 0
282
292
  #endif
@@ -288,11 +298,22 @@ END: Cython Metadata */
288
298
  #endif
289
299
  #undef CYTHON_FAST_THREAD_STATE
290
300
  #define CYTHON_FAST_THREAD_STATE 0
301
+ #undef CYTHON_FAST_GIL
302
+ #define CYTHON_FAST_GIL 0
303
+ #ifndef CYTHON_METH_FASTCALL
304
+ #define CYTHON_METH_FASTCALL 1
305
+ #endif
291
306
  #undef CYTHON_FAST_PYCALL
292
307
  #define CYTHON_FAST_PYCALL 0
308
+ #ifndef CYTHON_PEP487_INIT_SUBCLASS
309
+ #define CYTHON_PEP487_INIT_SUBCLASS 1
310
+ #endif
293
311
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
294
312
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
295
313
  #endif
314
+ #ifndef CYTHON_USE_MODULE_STATE
315
+ #define CYTHON_USE_MODULE_STATE 0
316
+ #endif
296
317
  #ifndef CYTHON_USE_TP_FINALIZE
297
318
  #define CYTHON_USE_TP_FINALIZE 1
298
319
  #endif
@@ -300,6 +321,12 @@ END: Cython Metadata */
300
321
  #define CYTHON_USE_DICT_VERSIONS 0
301
322
  #undef CYTHON_USE_EXC_INFO_STACK
302
323
  #define CYTHON_USE_EXC_INFO_STACK 0
324
+ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
325
+ #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
326
+ #endif
327
+ #ifndef CYTHON_USE_FREELISTS
328
+ #define CYTHON_USE_FREELISTS 0
329
+ #endif
303
330
  #else
304
331
  #define CYTHON_COMPILING_IN_PYPY 0
305
332
  #define CYTHON_COMPILING_IN_CPYTHON 1
@@ -390,6 +417,9 @@ END: Cython Metadata */
390
417
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
391
418
  #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
392
419
  #endif
420
+ #ifndef CYTHON_USE_FREELISTS
421
+ #define CYTHON_USE_FREELISTS 1
422
+ #endif
393
423
  #endif
394
424
  #if !defined(CYTHON_FAST_PYCCALL)
395
425
  #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
@@ -581,17 +611,20 @@ END: Cython Metadata */
581
611
  PyObject *name, int fline, PyObject *lnos) {
582
612
  PyObject *exception_table = NULL;
583
613
  PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
584
- PyObject *version_info; // borrowed
614
+ #if __PYX_LIMITED_VERSION_HEX < 0x030B0000
615
+ PyObject *version_info;
585
616
  PyObject *py_minor_version = NULL;
617
+ #endif
586
618
  long minor_version = 0;
587
619
  PyObject *type, *value, *traceback;
588
620
  PyErr_Fetch(&type, &value, &traceback);
589
621
  #if __PYX_LIMITED_VERSION_HEX >= 0x030B0000
590
- minor_version = 11; // we don't yet need to distinguish between versions > 11
622
+ minor_version = 11;
591
623
  #else
592
624
  if (!(version_info = PySys_GetObject("version_info"))) goto end;
593
625
  if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
594
626
  minor_version = PyLong_AsLong(py_minor_version);
627
+ Py_DECREF(py_minor_version);
595
628
  if (minor_version == -1 && PyErr_Occurred()) goto end;
596
629
  #endif
597
630
  if (!(types_module = PyImport_ImportModule("types"))) goto end;
@@ -612,7 +645,6 @@ END: Cython Metadata */
612
645
  Py_XDECREF(code_type);
613
646
  Py_XDECREF(exception_table);
614
647
  Py_XDECREF(types_module);
615
- Py_XDECREF(py_minor_version);
616
648
  if (type) {
617
649
  PyErr_Restore(type, value, traceback);
618
650
  }
@@ -645,7 +677,7 @@ END: Cython Metadata */
645
677
  PyObject *fv, PyObject *cell, PyObject* fn,
646
678
  PyObject *name, int fline, PyObject *lnos) {
647
679
  PyCodeObject *result;
648
- PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); // we don't have access to __pyx_empty_bytes here
680
+ PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0);
649
681
  if (!empty_bytes) return NULL;
650
682
  result =
651
683
  #if PY_VERSION_HEX >= 0x030C0000
@@ -731,8 +763,13 @@ END: Cython Metadata */
731
763
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
732
764
  Py_ssize_t nargs, PyObject *kwnames);
733
765
  #else
734
- #define __Pyx_PyCFunctionFast _PyCFunctionFast
735
- #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
766
+ #if PY_VERSION_HEX >= 0x030d00A4
767
+ # define __Pyx_PyCFunctionFast PyCFunctionFast
768
+ # define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
769
+ #else
770
+ # define __Pyx_PyCFunctionFast _PyCFunctionFast
771
+ # define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
772
+ #endif
736
773
  #endif
737
774
  #if CYTHON_METH_FASTCALL
738
775
  #define __Pyx_METH_FASTCALL METH_FASTCALL
@@ -756,6 +793,31 @@ END: Cython Metadata */
756
793
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET 0
757
794
  #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(n))
758
795
  #endif
796
+ #if PY_MAJOR_VERSION >= 0x030900B1
797
+ #define __Pyx_PyCFunction_CheckExact(func) PyCFunction_CheckExact(func)
798
+ #else
799
+ #define __Pyx_PyCFunction_CheckExact(func) PyCFunction_Check(func)
800
+ #endif
801
+ #define __Pyx_CyOrPyCFunction_Check(func) PyCFunction_Check(func)
802
+ #if CYTHON_COMPILING_IN_CPYTHON
803
+ #define __Pyx_CyOrPyCFunction_GET_FUNCTION(func) (((PyCFunctionObject*)(func))->m_ml->ml_meth)
804
+ #elif !CYTHON_COMPILING_IN_LIMITED_API
805
+ #define __Pyx_CyOrPyCFunction_GET_FUNCTION(func) PyCFunction_GET_FUNCTION(func)
806
+ #endif
807
+ #if CYTHON_COMPILING_IN_CPYTHON
808
+ #define __Pyx_CyOrPyCFunction_GET_FLAGS(func) (((PyCFunctionObject*)(func))->m_ml->ml_flags)
809
+ static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
810
+ return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
811
+ }
812
+ #endif
813
+ static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void *cfunc) {
814
+ #if CYTHON_COMPILING_IN_LIMITED_API
815
+ return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
816
+ #else
817
+ return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
818
+ #endif
819
+ }
820
+ #define __Pyx_IsSameCFunction(func, cfunc) __Pyx__IsSameCFunction(func, cfunc)
759
821
  #if __PYX_LIMITED_VERSION_HEX < 0x030900B1
760
822
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b) ((void)m, PyType_FromSpecWithBases(s, b))
761
823
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
@@ -782,6 +844,8 @@ END: Cython Metadata */
782
844
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
783
845
  #elif !CYTHON_FAST_THREAD_STATE
784
846
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
847
+ #elif PY_VERSION_HEX >= 0x030d00A1
848
+ #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
785
849
  #elif PY_VERSION_HEX >= 0x03060000
786
850
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
787
851
  #elif PY_VERSION_HEX >= 0x03000000
@@ -857,7 +921,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
857
921
  }
858
922
  #endif
859
923
  #endif
860
- #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
924
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000 || defined(_PyDict_NewPresized)
861
925
  #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
862
926
  #else
863
927
  #define __Pyx_PyDict_NewPresized(n) PyDict_New()
@@ -869,7 +933,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
869
933
  #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
870
934
  #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
871
935
  #endif
872
- #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B4 && CYTHON_USE_UNICODE_INTERNALS
936
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B4 && PY_VERSION_HEX < 0x030d0000 && CYTHON_USE_UNICODE_INTERNALS
873
937
  #define __Pyx_PyDict_GetItemStrWithError(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
874
938
  static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
875
939
  PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
@@ -913,7 +977,7 @@ static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict,
913
977
  #endif
914
978
  #if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX >= 0x03080000
915
979
  #define __Pyx_PyHeapTypeObject_GC_Del(obj) {\
916
- PyTypeObject *type = Py_TYPE(obj);\
980
+ PyTypeObject *type = Py_TYPE((PyObject*)obj);\
917
981
  assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
918
982
  PyObject_GC_Del(obj);\
919
983
  Py_DECREF(type);\
@@ -1057,6 +1121,15 @@ static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict,
1057
1121
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
1058
1122
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
1059
1123
  #endif
1124
+ #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
1125
+ #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
1126
+ #else
1127
+ static CYTHON_INLINE PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
1128
+ PyObject *module = PyImport_AddModule(name);
1129
+ Py_XINCREF(module);
1130
+ return module;
1131
+ }
1132
+ #endif
1060
1133
  #if PY_MAJOR_VERSION >= 3
1061
1134
  #define PyIntObject PyLongObject
1062
1135
  #define PyInt_Type PyLong_Type
@@ -1135,7 +1208,7 @@ static CYTHON_INLINE float __PYX_NAN() {
1135
1208
  #endif
1136
1209
 
1137
1210
  #define __PYX_MARK_ERR_POS(f_index, lineno) \
1138
- { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
1211
+ { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
1139
1212
  #define __PYX_ERR(f_index, lineno, Ln_error) \
1140
1213
  { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
1141
1214
 
@@ -1219,9 +1292,10 @@ static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
1219
1292
  #else
1220
1293
  #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
1221
1294
  #endif
1295
+ static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
1222
1296
  static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
1223
1297
  static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
1224
- #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
1298
+ static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
1225
1299
  #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
1226
1300
  #define __Pyx_PyBytes_FromString PyBytes_FromString
1227
1301
  #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
@@ -1249,24 +1323,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
1249
1323
  #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
1250
1324
  #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
1251
1325
  #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
1252
- #if CYTHON_COMPILING_IN_LIMITED_API
1253
- static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u)
1254
- {
1255
- const wchar_t *u_end = u;
1256
- while (*u_end++) ;
1257
- return (size_t)(u_end - u - 1);
1258
- }
1259
- #else
1260
- static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
1261
- {
1262
- const Py_UNICODE *u_end = u;
1263
- while (*u_end++) ;
1264
- return (size_t)(u_end - u - 1);
1265
- }
1266
- #endif
1267
1326
  #define __Pyx_PyUnicode_FromOrdinal(o) PyUnicode_FromOrdinal((int)o)
1268
- #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
1269
- #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
1270
1327
  #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
1271
1328
  #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
1272
1329
  #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
@@ -1316,7 +1373,7 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
1316
1373
  #endif
1317
1374
  typedef Py_ssize_t __Pyx_compact_pylong;
1318
1375
  typedef size_t __Pyx_compact_upylong;
1319
- #else // Py < 3.12
1376
+ #else
1320
1377
  #define __Pyx_PyLong_IsNeg(x) (Py_SIZE(x) < 0)
1321
1378
  #define __Pyx_PyLong_IsNonNeg(x) (Py_SIZE(x) >= 0)
1322
1379
  #define __Pyx_PyLong_IsZero(x) (Py_SIZE(x) == 0)
@@ -1337,6 +1394,7 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
1337
1394
  #endif
1338
1395
  #endif
1339
1396
  #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
1397
+ #include <string.h>
1340
1398
  static int __Pyx_sys_getdefaultencoding_not_ascii;
1341
1399
  static int __Pyx_init_sys_getdefaultencoding_params(void) {
1342
1400
  PyObject* sys;
@@ -1387,6 +1445,7 @@ bad:
1387
1445
  #else
1388
1446
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
1389
1447
  #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
1448
+ #include <string.h>
1390
1449
  static char* __PYX_DEFAULT_STRING_ENCODING;
1391
1450
  static int __Pyx_init_sys_getdefaultencoding_params(void) {
1392
1451
  PyObject* sys;
@@ -1434,7 +1493,7 @@ static const char *__pyx_filename;
1434
1493
  #if !defined(CYTHON_CCOMPLEX)
1435
1494
  #if defined(__cplusplus)
1436
1495
  #define CYTHON_CCOMPLEX 1
1437
- #elif (defined(_Complex_I) && !defined(_MSC_VER)) || ((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_COMPLEX__))
1496
+ #elif (defined(_Complex_I) && !defined(_MSC_VER)) || ((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_COMPLEX__) && !defined(_MSC_VER))
1438
1497
  #define CYTHON_CCOMPLEX 1
1439
1498
  #else
1440
1499
  #define CYTHON_CCOMPLEX 0
@@ -1564,6 +1623,7 @@ typedef struct {
1564
1623
  #include <intrin.h>
1565
1624
  #undef __pyx_atomic_int_type
1566
1625
  #define __pyx_atomic_int_type long
1626
+ #undef __pyx_nonatomic_int_type
1567
1627
  #define __pyx_nonatomic_int_type long
1568
1628
  #pragma intrinsic (_InterlockedExchangeAdd)
1569
1629
  #define __pyx_atomic_incr_aligned(value) _InterlockedExchangeAdd(value, 1)
@@ -1603,7 +1663,7 @@ typedef struct {
1603
1663
 
1604
1664
  /* #### Code section: numeric_typedefs ### */
1605
1665
 
1606
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":732
1666
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":732
1607
1667
  * # in Cython to enable them only on the right systems.
1608
1668
  *
1609
1669
  * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
@@ -1612,7 +1672,7 @@ typedef struct {
1612
1672
  */
1613
1673
  typedef npy_int8 __pyx_t_5numpy_int8_t;
1614
1674
 
1615
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":733
1675
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":733
1616
1676
  *
1617
1677
  * ctypedef npy_int8 int8_t
1618
1678
  * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
@@ -1621,7 +1681,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t;
1621
1681
  */
1622
1682
  typedef npy_int16 __pyx_t_5numpy_int16_t;
1623
1683
 
1624
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":734
1684
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":734
1625
1685
  * ctypedef npy_int8 int8_t
1626
1686
  * ctypedef npy_int16 int16_t
1627
1687
  * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
@@ -1630,7 +1690,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t;
1630
1690
  */
1631
1691
  typedef npy_int32 __pyx_t_5numpy_int32_t;
1632
1692
 
1633
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":735
1693
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":735
1634
1694
  * ctypedef npy_int16 int16_t
1635
1695
  * ctypedef npy_int32 int32_t
1636
1696
  * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
@@ -1639,7 +1699,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t;
1639
1699
  */
1640
1700
  typedef npy_int64 __pyx_t_5numpy_int64_t;
1641
1701
 
1642
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":739
1702
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":739
1643
1703
  * #ctypedef npy_int128 int128_t
1644
1704
  *
1645
1705
  * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
@@ -1648,7 +1708,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t;
1648
1708
  */
1649
1709
  typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1650
1710
 
1651
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":740
1711
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":740
1652
1712
  *
1653
1713
  * ctypedef npy_uint8 uint8_t
1654
1714
  * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
@@ -1657,7 +1717,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1657
1717
  */
1658
1718
  typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1659
1719
 
1660
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":741
1720
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":741
1661
1721
  * ctypedef npy_uint8 uint8_t
1662
1722
  * ctypedef npy_uint16 uint16_t
1663
1723
  * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
@@ -1666,7 +1726,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1666
1726
  */
1667
1727
  typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1668
1728
 
1669
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":742
1729
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":742
1670
1730
  * ctypedef npy_uint16 uint16_t
1671
1731
  * ctypedef npy_uint32 uint32_t
1672
1732
  * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
@@ -1675,7 +1735,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1675
1735
  */
1676
1736
  typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1677
1737
 
1678
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":746
1738
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":746
1679
1739
  * #ctypedef npy_uint128 uint128_t
1680
1740
  *
1681
1741
  * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
@@ -1684,7 +1744,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1684
1744
  */
1685
1745
  typedef npy_float32 __pyx_t_5numpy_float32_t;
1686
1746
 
1687
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":747
1747
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":747
1688
1748
  *
1689
1749
  * ctypedef npy_float32 float32_t
1690
1750
  * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
@@ -1693,7 +1753,7 @@ typedef npy_float32 __pyx_t_5numpy_float32_t;
1693
1753
  */
1694
1754
  typedef npy_float64 __pyx_t_5numpy_float64_t;
1695
1755
 
1696
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":756
1756
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":756
1697
1757
  * # The int types are mapped a bit surprising --
1698
1758
  * # numpy.int corresponds to 'l' and numpy.long to 'q'
1699
1759
  * ctypedef npy_long int_t # <<<<<<<<<<<<<<
@@ -1702,7 +1762,7 @@ typedef npy_float64 __pyx_t_5numpy_float64_t;
1702
1762
  */
1703
1763
  typedef npy_long __pyx_t_5numpy_int_t;
1704
1764
 
1705
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":757
1765
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":757
1706
1766
  * # numpy.int corresponds to 'l' and numpy.long to 'q'
1707
1767
  * ctypedef npy_long int_t
1708
1768
  * ctypedef npy_longlong long_t # <<<<<<<<<<<<<<
@@ -1711,7 +1771,7 @@ typedef npy_long __pyx_t_5numpy_int_t;
1711
1771
  */
1712
1772
  typedef npy_longlong __pyx_t_5numpy_long_t;
1713
1773
 
1714
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":758
1774
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":758
1715
1775
  * ctypedef npy_long int_t
1716
1776
  * ctypedef npy_longlong long_t
1717
1777
  * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
@@ -1720,7 +1780,7 @@ typedef npy_longlong __pyx_t_5numpy_long_t;
1720
1780
  */
1721
1781
  typedef npy_longlong __pyx_t_5numpy_longlong_t;
1722
1782
 
1723
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":760
1783
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":760
1724
1784
  * ctypedef npy_longlong longlong_t
1725
1785
  *
1726
1786
  * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
@@ -1729,7 +1789,7 @@ typedef npy_longlong __pyx_t_5numpy_longlong_t;
1729
1789
  */
1730
1790
  typedef npy_ulong __pyx_t_5numpy_uint_t;
1731
1791
 
1732
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":761
1792
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":761
1733
1793
  *
1734
1794
  * ctypedef npy_ulong uint_t
1735
1795
  * ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<<
@@ -1738,7 +1798,7 @@ typedef npy_ulong __pyx_t_5numpy_uint_t;
1738
1798
  */
1739
1799
  typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1740
1800
 
1741
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":762
1801
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":762
1742
1802
  * ctypedef npy_ulong uint_t
1743
1803
  * ctypedef npy_ulonglong ulong_t
1744
1804
  * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
@@ -1747,7 +1807,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1747
1807
  */
1748
1808
  typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1749
1809
 
1750
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":764
1810
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":764
1751
1811
  * ctypedef npy_ulonglong ulonglong_t
1752
1812
  *
1753
1813
  * ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
@@ -1756,7 +1816,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1756
1816
  */
1757
1817
  typedef npy_intp __pyx_t_5numpy_intp_t;
1758
1818
 
1759
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":765
1819
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":765
1760
1820
  *
1761
1821
  * ctypedef npy_intp intp_t
1762
1822
  * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
@@ -1765,7 +1825,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t;
1765
1825
  */
1766
1826
  typedef npy_uintp __pyx_t_5numpy_uintp_t;
1767
1827
 
1768
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":767
1828
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":767
1769
1829
  * ctypedef npy_uintp uintp_t
1770
1830
  *
1771
1831
  * ctypedef npy_double float_t # <<<<<<<<<<<<<<
@@ -1774,7 +1834,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t;
1774
1834
  */
1775
1835
  typedef npy_double __pyx_t_5numpy_float_t;
1776
1836
 
1777
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":768
1837
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":768
1778
1838
  *
1779
1839
  * ctypedef npy_double float_t
1780
1840
  * ctypedef npy_double double_t # <<<<<<<<<<<<<<
@@ -1783,7 +1843,7 @@ typedef npy_double __pyx_t_5numpy_float_t;
1783
1843
  */
1784
1844
  typedef npy_double __pyx_t_5numpy_double_t;
1785
1845
 
1786
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":769
1846
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":769
1787
1847
  * ctypedef npy_double float_t
1788
1848
  * ctypedef npy_double double_t
1789
1849
  * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
@@ -1896,7 +1956,7 @@ struct __pyx_MemviewEnum_obj;
1896
1956
  struct __pyx_memoryview_obj;
1897
1957
  struct __pyx_memoryviewslice_obj;
1898
1958
 
1899
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":771
1959
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":771
1900
1960
  * ctypedef npy_longdouble longdouble_t
1901
1961
  *
1902
1962
  * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
@@ -1905,7 +1965,7 @@ struct __pyx_memoryviewslice_obj;
1905
1965
  */
1906
1966
  typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1907
1967
 
1908
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":772
1968
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":772
1909
1969
  *
1910
1970
  * ctypedef npy_cfloat cfloat_t
1911
1971
  * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
@@ -1914,7 +1974,7 @@ typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1914
1974
  */
1915
1975
  typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1916
1976
 
1917
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":773
1977
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":773
1918
1978
  * ctypedef npy_cfloat cfloat_t
1919
1979
  * ctypedef npy_cdouble cdouble_t
1920
1980
  * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
@@ -1923,7 +1983,7 @@ typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1923
1983
  */
1924
1984
  typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1925
1985
 
1926
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":775
1986
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":775
1927
1987
  * ctypedef npy_clongdouble clongdouble_t
1928
1988
  *
1929
1989
  * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
@@ -2234,8 +2294,8 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int
2234
2294
  #define __Pyx_Arg_NewRef_VARARGS(arg) __Pyx_NewRef(arg)
2235
2295
  #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg)
2236
2296
  #else
2237
- #define __Pyx_Arg_NewRef_VARARGS(arg) arg // no-op
2238
- #define __Pyx_Arg_XDECREF_VARARGS(arg) // no-op - arg is borrowed
2297
+ #define __Pyx_Arg_NewRef_VARARGS(arg) arg
2298
+ #define __Pyx_Arg_XDECREF_VARARGS(arg)
2239
2299
  #endif
2240
2300
  #define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
2241
2301
  #define __Pyx_KwValues_VARARGS(args, nargs) NULL
@@ -2246,9 +2306,14 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int
2246
2306
  #define __Pyx_NumKwargs_FASTCALL(kwds) PyTuple_GET_SIZE(kwds)
2247
2307
  #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
2248
2308
  static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
2309
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
2310
+ CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
2311
+ #else
2249
2312
  #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
2250
- #define __Pyx_Arg_NewRef_FASTCALL(arg) arg // no-op, __Pyx_Arg_FASTCALL is direct and this needs
2251
- #define __Pyx_Arg_XDECREF_FASTCALL(arg) // no-op - arg was returned from array
2313
+ #endif
2314
+ #define __Pyx_Arg_NewRef_FASTCALL(arg) arg /* no-op, __Pyx_Arg_FASTCALL is direct and this needs
2315
+ to have the same reference counting */
2316
+ #define __Pyx_Arg_XDECREF_FASTCALL(arg)
2252
2317
  #else
2253
2318
  #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS
2254
2319
  #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
@@ -2571,9 +2636,6 @@ static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple)
2571
2636
  static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple);
2572
2637
  #endif
2573
2638
 
2574
- /* ssize_strlen.proto */
2575
- static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
2576
-
2577
2639
  /* FastTypeChecks.proto */
2578
2640
  #if CYTHON_COMPILING_IN_CPYTHON
2579
2641
  #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
@@ -2599,7 +2661,11 @@ static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
2599
2661
  Py_ssize_t len = Py_SIZE(list);
2600
2662
  if (likely(L->allocated > len)) {
2601
2663
  Py_INCREF(x);
2664
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
2665
+ L->ob_item[len] = x;
2666
+ #else
2602
2667
  PyList_SET_ITEM(list, len, x);
2668
+ #endif
2603
2669
  __Pyx_SET_SIZE(list, len + 1);
2604
2670
  return 0;
2605
2671
  }
@@ -2639,7 +2705,11 @@ static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* s
2639
2705
  static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
2640
2706
 
2641
2707
  /* HasAttr.proto */
2708
+ #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
2709
+ #define __Pyx_HasAttr(o, n) PyObject_HasAttrWithError(o, n)
2710
+ #else
2642
2711
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
2712
+ #endif
2643
2713
 
2644
2714
  /* DictGetItem.proto */
2645
2715
  #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
@@ -2751,22 +2821,22 @@ static int __Pyx_setup_reduce(PyObject* type_obj);
2751
2821
  #endif
2752
2822
 
2753
2823
  /* TypeImport.proto */
2754
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_2
2755
- #define __PYX_HAVE_RT_ImportType_proto_3_0_2
2824
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_10
2825
+ #define __PYX_HAVE_RT_ImportType_proto_3_0_10
2756
2826
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2757
2827
  #include <stdalign.h>
2758
2828
  #endif
2759
2829
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2760
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_2(s) alignof(s)
2830
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) alignof(s)
2761
2831
  #else
2762
- #define __PYX_GET_STRUCT_ALIGNMENT_3_0_2(s) sizeof(void*)
2832
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) sizeof(void*)
2763
2833
  #endif
2764
- enum __Pyx_ImportType_CheckSize_3_0_2 {
2765
- __Pyx_ImportType_CheckSize_Error_3_0_2 = 0,
2766
- __Pyx_ImportType_CheckSize_Warn_3_0_2 = 1,
2767
- __Pyx_ImportType_CheckSize_Ignore_3_0_2 = 2
2834
+ enum __Pyx_ImportType_CheckSize_3_0_10 {
2835
+ __Pyx_ImportType_CheckSize_Error_3_0_10 = 0,
2836
+ __Pyx_ImportType_CheckSize_Warn_3_0_10 = 1,
2837
+ __Pyx_ImportType_CheckSize_Ignore_3_0_10 = 2
2768
2838
  };
2769
- static PyTypeObject *__Pyx_ImportType_3_0_2(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_2 check_size);
2839
+ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size);
2770
2840
  #endif
2771
2841
 
2772
2842
  /* FetchSharedCythonModule.proto */
@@ -2859,7 +2929,7 @@ typedef struct {
2859
2929
  #endif
2860
2930
  void *defaults;
2861
2931
  int defaults_pyobjects;
2862
- size_t defaults_size; // used by FusedFunction for copying defaults
2932
+ size_t defaults_size;
2863
2933
  int flags;
2864
2934
  PyObject *defaults_tuple;
2865
2935
  PyObject *defaults_kwdict;
@@ -2867,9 +2937,13 @@ typedef struct {
2867
2937
  PyObject *func_annotations;
2868
2938
  PyObject *func_is_coroutine;
2869
2939
  } __pyx_CyFunctionObject;
2940
+ #undef __Pyx_CyOrPyCFunction_Check
2870
2941
  #define __Pyx_CyFunction_Check(obj) __Pyx_TypeCheck(obj, __pyx_CyFunctionType)
2871
- #define __Pyx_IsCyOrPyCFunction(obj) __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type)
2942
+ #define __Pyx_CyOrPyCFunction_Check(obj) __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type)
2872
2943
  #define __Pyx_CyFunction_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_CyFunctionType)
2944
+ static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc);
2945
+ #undef __Pyx_IsSameCFunction
2946
+ #define __Pyx_IsSameCFunction(func, cfunc) __Pyx__IsSameCyOrCFunction(func, cfunc)
2873
2947
  static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
2874
2948
  int flags, PyObject* qualname,
2875
2949
  PyObject *closure,
@@ -3166,7 +3240,8 @@ typedef const char *__Pyx_TypeName;
3166
3240
  #endif
3167
3241
 
3168
3242
  /* CheckBinaryVersion.proto */
3169
- static int __Pyx_check_binary_version(void);
3243
+ static unsigned long __Pyx_get_runtime_version(void);
3244
+ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
3170
3245
 
3171
3246
  /* InitStrings.proto */
3172
3247
  static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
@@ -3289,7 +3364,7 @@ static const char __pyx_k_j[] = "j";
3289
3364
  static const char __pyx_k_m[] = "m";
3290
3365
  static const char __pyx_k_U1[] = "U1";
3291
3366
  static const char __pyx_k_U2[] = "U2";
3292
- static const char __pyx_k_U3[] = "U3";
3367
+ static const char __pyx_k_U5[] = "U5";
3293
3368
  static const char __pyx_k_U6[] = "U6";
3294
3369
  static const char __pyx_k__2[] = ".";
3295
3370
  static const char __pyx_k__3[] = "*";
@@ -3557,7 +3632,7 @@ static const char __pyx_k_The_model_index_must_not_be_0[] = "The model index mus
3557
3632
  static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate array data.";
3558
3633
  static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
3559
3634
  static const char __pyx_k_filter_highest_occupancy_altloc[] = "filter_highest_occupancy_altloc";
3560
- static const char __pyx_k_get_structure_file_model_None_a[] = "\n get_structure(file, model=None, altloc=[], extra_fields=[],\n include_bonds=False)\n \n Get an :class:`AtomArray` or :class:`AtomArrayStack` from the MMTF file.\n \n Parameters\n ----------\n file : MMTFFile\n The file object.\n model : int, optional\n If this parameter is given, the function will return an\n :class:`AtomArray` from the atoms corresponding to the given\n model number (starting at 1).\n Negative values are used to index models starting from the last\n model insted of the first model.\n If this parameter is omitted, an :class:`AtomArrayStack`\n containing all models will be returned, even if the structure\n contains only one model.\n altloc : {'first', 'occupancy', 'all'}\n This parameter defines how *altloc* IDs are handled:\n - ``'first'`` - Use atoms that have the first *altloc* ID\n appearing in a residue.\n - ``'occupancy'`` - Use atoms that have the *altloc* ID\n with the highest occupancy for a residue.\n - ``'all'`` - Use all atoms.\n Note that this leads to duplicate atoms.\n When this option is chosen, the ``altloc_id`` annotation\n array is added to the returned structure.\n extra_fields : list of str, optional\n The strings in the list are optional annotation categories\n that should be stored in the output array or stack.\n These are valid values:\n ``'atom_id'``, ``'b_factor'``, ``'occupancy'`` and ``'charge'``.\n include_bonds : bool, optional\n If set to true, a :class:`BondList` will be created for the\n resulting :class:`AtomArray` containing the bond information\n from the file.\n \n Returns\n -------\n array : AtomArray or AtomArrayStack\n The return type depends on the `model` parameter.\n \n Examples\n --------\n\n >>> import os.path""\n >>> file = MMTFFile.read(os.path.join(path_to_structures, \"1l2y.mmtf\"))\n >>> array = get_structure(file, model=1)\n >>> print(array.array_length())\n 304\n >>> stack = get_structure(file)\n >>> print(stack.stack_depth(), stack.array_length())\n 38 304\n ";
3635
+ static const char __pyx_k_get_structure_file_model_None_a[] = "\n get_structure(file, model=None, altloc=[], extra_fields=[],\n include_bonds=False)\n\n Get an :class:`AtomArray` or :class:`AtomArrayStack` from the MMTF file.\n\n Parameters\n ----------\n file : MMTFFile\n The file object.\n model : int, optional\n If this parameter is given, the function will return an\n :class:`AtomArray` from the atoms corresponding to the given\n model number (starting at 1).\n Negative values are used to index models starting from the last\n model insted of the first model.\n If this parameter is omitted, an :class:`AtomArrayStack`\n containing all models will be returned, even if the structure\n contains only one model.\n altloc : {'first', 'occupancy', 'all'}\n This parameter defines how *altloc* IDs are handled:\n - ``'first'`` - Use atoms that have the first *altloc* ID\n appearing in a residue.\n - ``'occupancy'`` - Use atoms that have the *altloc* ID\n with the highest occupancy for a residue.\n - ``'all'`` - Use all atoms.\n Note that this leads to duplicate atoms.\n When this option is chosen, the ``altloc_id`` annotation\n array is added to the returned structure.\n extra_fields : list of str, optional\n The strings in the list are optional annotation categories\n that should be stored in the output array or stack.\n These are valid values:\n ``'atom_id'``, ``'b_factor'``, ``'occupancy'`` and ``'charge'``.\n include_bonds : bool, optional\n If set to true, a :class:`BondList` will be created for the\n resulting :class:`AtomArray` containing the bond information\n from the file.\n\n Returns\n -------\n array : AtomArray or AtomArrayStack\n The return type depends on the `model` parameter.\n\n Examples\n --------\n\n >>> import os.path\n >>> file = ""MMTFFile.read(os.path.join(path_to_structures, \"1l2y.mmtf\"))\n >>> array = get_structure(file, model=1)\n >>> print(array.array_length())\n 304\n >>> stack = get_structure(file)\n >>> print(stack.stack_depth(), stack.array_length())\n 38 304\n ";
3561
3636
  static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
3562
3637
  static const char __pyx_k_All_dimensions_preceding_dimensi[] = "All dimensions preceding dimension %d must be indexed and not sliced";
3563
3638
  static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
@@ -3753,7 +3828,7 @@ typedef struct {
3753
3828
  PyObject *__pyx_n_s_TypeError;
3754
3829
  PyObject *__pyx_n_u_U1;
3755
3830
  PyObject *__pyx_n_u_U2;
3756
- PyObject *__pyx_n_u_U3;
3831
+ PyObject *__pyx_n_u_U5;
3757
3832
  PyObject *__pyx_n_u_U6;
3758
3833
  PyObject *__pyx_kp_s_Unable_to_convert_item_to_object;
3759
3834
  PyObject *__pyx_n_s_ValueError;
@@ -4166,7 +4241,7 @@ static int __pyx_m_clear(PyObject *m) {
4166
4241
  Py_CLEAR(clear_module_state->__pyx_n_s_TypeError);
4167
4242
  Py_CLEAR(clear_module_state->__pyx_n_u_U1);
4168
4243
  Py_CLEAR(clear_module_state->__pyx_n_u_U2);
4169
- Py_CLEAR(clear_module_state->__pyx_n_u_U3);
4244
+ Py_CLEAR(clear_module_state->__pyx_n_u_U5);
4170
4245
  Py_CLEAR(clear_module_state->__pyx_n_u_U6);
4171
4246
  Py_CLEAR(clear_module_state->__pyx_kp_s_Unable_to_convert_item_to_object);
4172
4247
  Py_CLEAR(clear_module_state->__pyx_n_s_ValueError);
@@ -4557,7 +4632,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4557
4632
  Py_VISIT(traverse_module_state->__pyx_n_s_TypeError);
4558
4633
  Py_VISIT(traverse_module_state->__pyx_n_u_U1);
4559
4634
  Py_VISIT(traverse_module_state->__pyx_n_u_U2);
4560
- Py_VISIT(traverse_module_state->__pyx_n_u_U3);
4635
+ Py_VISIT(traverse_module_state->__pyx_n_u_U5);
4561
4636
  Py_VISIT(traverse_module_state->__pyx_n_u_U6);
4562
4637
  Py_VISIT(traverse_module_state->__pyx_kp_s_Unable_to_convert_item_to_object);
4563
4638
  Py_VISIT(traverse_module_state->__pyx_n_s_ValueError);
@@ -4982,7 +5057,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
4982
5057
  #define __pyx_n_s_TypeError __pyx_mstate_global->__pyx_n_s_TypeError
4983
5058
  #define __pyx_n_u_U1 __pyx_mstate_global->__pyx_n_u_U1
4984
5059
  #define __pyx_n_u_U2 __pyx_mstate_global->__pyx_n_u_U2
4985
- #define __pyx_n_u_U3 __pyx_mstate_global->__pyx_n_u_U3
5060
+ #define __pyx_n_u_U5 __pyx_mstate_global->__pyx_n_u_U5
4986
5061
  #define __pyx_n_u_U6 __pyx_mstate_global->__pyx_n_u_U6
4987
5062
  #define __pyx_kp_s_Unable_to_convert_item_to_object __pyx_mstate_global->__pyx_kp_s_Unable_to_convert_item_to_object
4988
5063
  #define __pyx_n_s_ValueError __pyx_mstate_global->__pyx_n_s_ValueError
@@ -5313,8 +5388,7 @@ static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, P
5313
5388
  #if CYTHON_ASSUME_SAFE_MACROS
5314
5389
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
5315
5390
  #else
5316
- __pyx_nargs = PyTuple_Size(__pyx_args);
5317
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 131, __pyx_L3_error)
5391
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
5318
5392
  #endif
5319
5393
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
5320
5394
  {
@@ -5415,10 +5489,11 @@ static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, P
5415
5489
  __pyx_v_allocate_buffer = ((int)1);
5416
5490
  }
5417
5491
  }
5418
- goto __pyx_L4_argument_unpacking_done;
5492
+ goto __pyx_L6_skip;
5419
5493
  __pyx_L5_argtuple_error:;
5420
5494
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 3, 5, __pyx_nargs); __PYX_ERR(1, 131, __pyx_L3_error)
5421
- goto __pyx_L3_error;
5495
+ __pyx_L6_skip:;
5496
+ goto __pyx_L4_argument_unpacking_done;
5422
5497
  __pyx_L3_error:;
5423
5498
  {
5424
5499
  Py_ssize_t __pyx_temp;
@@ -5701,13 +5776,20 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
5701
5776
  * raise ValueError, f"Invalid shape in axis {idx}: {dim}."
5702
5777
  */
5703
5778
  __pyx_t_7 = 0;
5704
- __pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4); __pyx_t_1 = 0;
5779
+ __pyx_t_4 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_4);
5780
+ __pyx_t_1 = 0;
5705
5781
  for (;;) {
5706
- if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
5782
+ {
5783
+ Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
5784
+ #if !CYTHON_ASSUME_SAFE_MACROS
5785
+ if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 159, __pyx_L1_error)
5786
+ #endif
5787
+ if (__pyx_t_1 >= __pyx_temp) break;
5788
+ }
5707
5789
  #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5708
5790
  __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(1, 159, __pyx_L1_error)
5709
5791
  #else
5710
- __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 159, __pyx_L1_error)
5792
+ __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 159, __pyx_L1_error)
5711
5793
  __Pyx_GOTREF(__pyx_t_5);
5712
5794
  #endif
5713
5795
  __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 159, __pyx_L1_error)
@@ -6350,10 +6432,8 @@ static void __pyx_array___dealloc__(PyObject *__pyx_v_self) {
6350
6432
  }
6351
6433
 
6352
6434
  static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struct __pyx_array_obj *__pyx_v_self) {
6353
- __Pyx_RefNannyDeclarations
6354
6435
  int __pyx_t_1;
6355
6436
  int __pyx_t_2;
6356
- __Pyx_RefNannySetupContext("__dealloc__", 0);
6357
6437
 
6358
6438
  /* "View.MemoryView":211
6359
6439
  *
@@ -6465,7 +6545,6 @@ static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struc
6465
6545
  */
6466
6546
 
6467
6547
  /* function exit code */
6468
- __Pyx_RefNannyFinishContext();
6469
6548
  }
6470
6549
 
6471
6550
  /* "View.MemoryView":219
@@ -6498,7 +6577,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct _
6498
6577
  int __pyx_lineno = 0;
6499
6578
  const char *__pyx_filename = NULL;
6500
6579
  int __pyx_clineno = 0;
6501
- __Pyx_RefNannySetupContext("__get__", 0);
6580
+ __Pyx_RefNannySetupContext("__get__", 1);
6502
6581
 
6503
6582
  /* "View.MemoryView":221
6504
6583
  * @property
@@ -6551,7 +6630,7 @@ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self) {
6551
6630
  int __pyx_lineno = 0;
6552
6631
  const char *__pyx_filename = NULL;
6553
6632
  int __pyx_clineno = 0;
6554
- __Pyx_RefNannySetupContext("get_memview", 0);
6633
+ __Pyx_RefNannySetupContext("get_memview", 1);
6555
6634
 
6556
6635
  /* "View.MemoryView":225
6557
6636
  * @cname('get_memview')
@@ -6638,8 +6717,6 @@ static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self) {
6638
6717
 
6639
6718
  static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(struct __pyx_array_obj *__pyx_v_self) {
6640
6719
  Py_ssize_t __pyx_r;
6641
- __Pyx_RefNannyDeclarations
6642
- __Pyx_RefNannySetupContext("__len__", 0);
6643
6720
 
6644
6721
  /* "View.MemoryView":229
6645
6722
  *
@@ -6661,7 +6738,6 @@ static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(str
6661
6738
 
6662
6739
  /* function exit code */
6663
6740
  __pyx_L0:;
6664
- __Pyx_RefNannyFinishContext();
6665
6741
  return __pyx_r;
6666
6742
  }
6667
6743
 
@@ -6696,7 +6772,7 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(
6696
6772
  int __pyx_lineno = 0;
6697
6773
  const char *__pyx_filename = NULL;
6698
6774
  int __pyx_clineno = 0;
6699
- __Pyx_RefNannySetupContext("__getattr__", 0);
6775
+ __Pyx_RefNannySetupContext("__getattr__", 1);
6700
6776
 
6701
6777
  /* "View.MemoryView":232
6702
6778
  *
@@ -6766,7 +6842,7 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__
6766
6842
  int __pyx_lineno = 0;
6767
6843
  const char *__pyx_filename = NULL;
6768
6844
  int __pyx_clineno = 0;
6769
- __Pyx_RefNannySetupContext("__getitem__", 0);
6845
+ __Pyx_RefNannySetupContext("__getitem__", 1);
6770
6846
 
6771
6847
  /* "View.MemoryView":235
6772
6848
  *
@@ -6835,7 +6911,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struc
6835
6911
  int __pyx_lineno = 0;
6836
6912
  const char *__pyx_filename = NULL;
6837
6913
  int __pyx_clineno = 0;
6838
- __Pyx_RefNannySetupContext("__setitem__", 0);
6914
+ __Pyx_RefNannySetupContext("__setitem__", 1);
6839
6915
 
6840
6916
  /* "View.MemoryView":238
6841
6917
  *
@@ -6894,9 +6970,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6894
6970
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
6895
6971
  #endif
6896
6972
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
6897
- int __pyx_lineno = 0;
6898
- const char *__pyx_filename = NULL;
6899
- int __pyx_clineno = 0;
6900
6973
  PyObject *__pyx_r = 0;
6901
6974
  __Pyx_RefNannyDeclarations
6902
6975
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
@@ -6904,21 +6977,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6904
6977
  #if CYTHON_ASSUME_SAFE_MACROS
6905
6978
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
6906
6979
  #else
6907
- __pyx_nargs = PyTuple_Size(__pyx_args);
6908
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 1, __pyx_L3_error)
6980
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
6909
6981
  #endif
6910
6982
  #endif
6911
6983
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
6912
6984
  if (unlikely(__pyx_nargs > 0)) {
6913
6985
  __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;}
6914
6986
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL;
6915
- goto __pyx_L4_argument_unpacking_done;
6916
- goto __pyx_L3_error;
6917
- __pyx_L3_error:;
6918
- __Pyx_AddTraceback("View.MemoryView.array.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6919
- __Pyx_RefNannyFinishContext();
6920
- return NULL;
6921
- __pyx_L4_argument_unpacking_done:;
6922
6987
  __pyx_r = __pyx_pf___pyx_array___reduce_cython__(((struct __pyx_array_obj *)__pyx_v_self));
6923
6988
 
6924
6989
  /* function exit code */
@@ -6932,7 +6997,7 @@ static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __p
6932
6997
  int __pyx_lineno = 0;
6933
6998
  const char *__pyx_filename = NULL;
6934
6999
  int __pyx_clineno = 0;
6935
- __Pyx_RefNannySetupContext("__reduce_cython__", 0);
7000
+ __Pyx_RefNannySetupContext("__reduce_cython__", 1);
6936
7001
 
6937
7002
  /* "(tree fragment)":2
6938
7003
  * def __reduce_cython__(self):
@@ -6996,8 +7061,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6996
7061
  #if CYTHON_ASSUME_SAFE_MACROS
6997
7062
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
6998
7063
  #else
6999
- __pyx_nargs = PyTuple_Size(__pyx_args);
7000
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 3, __pyx_L3_error)
7064
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
7001
7065
  #endif
7002
7066
  #endif
7003
7067
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -7032,10 +7096,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
7032
7096
  }
7033
7097
  __pyx_v___pyx_state = values[0];
7034
7098
  }
7035
- goto __pyx_L4_argument_unpacking_done;
7099
+ goto __pyx_L6_skip;
7036
7100
  __pyx_L5_argtuple_error:;
7037
7101
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 3, __pyx_L3_error)
7038
- goto __pyx_L3_error;
7102
+ __pyx_L6_skip:;
7103
+ goto __pyx_L4_argument_unpacking_done;
7039
7104
  __pyx_L3_error:;
7040
7105
  {
7041
7106
  Py_ssize_t __pyx_temp;
@@ -7066,7 +7131,7 @@ static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct
7066
7131
  int __pyx_lineno = 0;
7067
7132
  const char *__pyx_filename = NULL;
7068
7133
  int __pyx_clineno = 0;
7069
- __Pyx_RefNannySetupContext("__setstate_cython__", 0);
7134
+ __Pyx_RefNannySetupContext("__setstate_cython__", 1);
7070
7135
 
7071
7136
  /* "(tree fragment)":4
7072
7137
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
@@ -7104,7 +7169,6 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) {
7104
7169
  Py_ssize_t __pyx_v_i;
7105
7170
  PyObject **__pyx_v_p;
7106
7171
  int __pyx_r;
7107
- __Pyx_RefNannyDeclarations
7108
7172
  int __pyx_t_1;
7109
7173
  Py_ssize_t __pyx_t_2;
7110
7174
  Py_ssize_t __pyx_t_3;
@@ -7112,7 +7176,6 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) {
7112
7176
  int __pyx_lineno = 0;
7113
7177
  const char *__pyx_filename = NULL;
7114
7178
  int __pyx_clineno = 0;
7115
- __Pyx_RefNannySetupContext("_allocate_buffer", 0);
7116
7179
 
7117
7180
  /* "View.MemoryView":254
7118
7181
  * cdef PyObject **p
@@ -7250,7 +7313,6 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) {
7250
7313
  __Pyx_AddTraceback("View.MemoryView._allocate_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
7251
7314
  __pyx_r = -1;
7252
7315
  __pyx_L0:;
7253
- __Pyx_RefNannyFinishContext();
7254
7316
  return __pyx_r;
7255
7317
  }
7256
7318
 
@@ -7274,7 +7336,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize
7274
7336
  int __pyx_lineno = 0;
7275
7337
  const char *__pyx_filename = NULL;
7276
7338
  int __pyx_clineno = 0;
7277
- __Pyx_RefNannySetupContext("array_cwrapper", 0);
7339
+ __Pyx_RefNannySetupContext("array_cwrapper", 1);
7278
7340
 
7279
7341
  /* "View.MemoryView":270
7280
7342
  * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format, char *c_mode, char *buf):
@@ -7451,8 +7513,7 @@ static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_ar
7451
7513
  #if CYTHON_ASSUME_SAFE_MACROS
7452
7514
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
7453
7515
  #else
7454
- __pyx_nargs = PyTuple_Size(__pyx_args);
7455
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 304, __pyx_L3_error)
7516
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
7456
7517
  #endif
7457
7518
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
7458
7519
  {
@@ -7486,10 +7547,11 @@ static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_ar
7486
7547
  }
7487
7548
  __pyx_v_name = values[0];
7488
7549
  }
7489
- goto __pyx_L4_argument_unpacking_done;
7550
+ goto __pyx_L6_skip;
7490
7551
  __pyx_L5_argtuple_error:;
7491
7552
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 304, __pyx_L3_error)
7492
- goto __pyx_L3_error;
7553
+ __pyx_L6_skip:;
7554
+ goto __pyx_L4_argument_unpacking_done;
7493
7555
  __pyx_L3_error:;
7494
7556
  {
7495
7557
  Py_ssize_t __pyx_temp;
@@ -7517,7 +7579,7 @@ static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_ar
7517
7579
  static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name) {
7518
7580
  int __pyx_r;
7519
7581
  __Pyx_RefNannyDeclarations
7520
- __Pyx_RefNannySetupContext("__init__", 0);
7582
+ __Pyx_RefNannySetupContext("__init__", 1);
7521
7583
 
7522
7584
  /* "View.MemoryView":305
7523
7585
  * cdef object name
@@ -7572,7 +7634,7 @@ static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self) {
7572
7634
  static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(struct __pyx_MemviewEnum_obj *__pyx_v_self) {
7573
7635
  PyObject *__pyx_r = NULL;
7574
7636
  __Pyx_RefNannyDeclarations
7575
- __Pyx_RefNannySetupContext("__repr__", 0);
7637
+ __Pyx_RefNannySetupContext("__repr__", 1);
7576
7638
 
7577
7639
  /* "View.MemoryView":307
7578
7640
  * self.name = name
@@ -7626,9 +7688,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
7626
7688
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
7627
7689
  #endif
7628
7690
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
7629
- int __pyx_lineno = 0;
7630
- const char *__pyx_filename = NULL;
7631
- int __pyx_clineno = 0;
7632
7691
  PyObject *__pyx_r = 0;
7633
7692
  __Pyx_RefNannyDeclarations
7634
7693
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
@@ -7636,21 +7695,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
7636
7695
  #if CYTHON_ASSUME_SAFE_MACROS
7637
7696
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
7638
7697
  #else
7639
- __pyx_nargs = PyTuple_Size(__pyx_args);
7640
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 1, __pyx_L3_error)
7698
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
7641
7699
  #endif
7642
7700
  #endif
7643
7701
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
7644
7702
  if (unlikely(__pyx_nargs > 0)) {
7645
7703
  __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;}
7646
7704
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL;
7647
- goto __pyx_L4_argument_unpacking_done;
7648
- goto __pyx_L3_error;
7649
- __pyx_L3_error:;
7650
- __Pyx_AddTraceback("View.MemoryView.Enum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7651
- __Pyx_RefNannyFinishContext();
7652
- return NULL;
7653
- __pyx_L4_argument_unpacking_done:;
7654
7705
  __pyx_r = __pyx_pf___pyx_MemviewEnum___reduce_cython__(((struct __pyx_MemviewEnum_obj *)__pyx_v_self));
7655
7706
 
7656
7707
  /* function exit code */
@@ -7671,7 +7722,7 @@ static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(struct __pyx_Memvi
7671
7722
  int __pyx_lineno = 0;
7672
7723
  const char *__pyx_filename = NULL;
7673
7724
  int __pyx_clineno = 0;
7674
- __Pyx_RefNannySetupContext("__reduce_cython__", 0);
7725
+ __Pyx_RefNannySetupContext("__reduce_cython__", 1);
7675
7726
 
7676
7727
  /* "(tree fragment)":5
7677
7728
  * cdef object _dict
@@ -7908,8 +7959,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
7908
7959
  #if CYTHON_ASSUME_SAFE_MACROS
7909
7960
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
7910
7961
  #else
7911
- __pyx_nargs = PyTuple_Size(__pyx_args);
7912
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 16, __pyx_L3_error)
7962
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
7913
7963
  #endif
7914
7964
  #endif
7915
7965
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -7944,10 +7994,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
7944
7994
  }
7945
7995
  __pyx_v___pyx_state = values[0];
7946
7996
  }
7947
- goto __pyx_L4_argument_unpacking_done;
7997
+ goto __pyx_L6_skip;
7948
7998
  __pyx_L5_argtuple_error:;
7949
7999
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 16, __pyx_L3_error)
7950
- goto __pyx_L3_error;
8000
+ __pyx_L6_skip:;
8001
+ goto __pyx_L4_argument_unpacking_done;
7951
8002
  __pyx_L3_error:;
7952
8003
  {
7953
8004
  Py_ssize_t __pyx_temp;
@@ -7979,7 +8030,7 @@ static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_Me
7979
8030
  int __pyx_lineno = 0;
7980
8031
  const char *__pyx_filename = NULL;
7981
8032
  int __pyx_clineno = 0;
7982
- __Pyx_RefNannySetupContext("__setstate_cython__", 0);
8033
+ __Pyx_RefNannySetupContext("__setstate_cython__", 1);
7983
8034
 
7984
8035
  /* "(tree fragment)":17
7985
8036
  * return __pyx_unpickle_Enum, (type(self), 0x82a3537, state)
@@ -8037,8 +8088,7 @@ static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_ar
8037
8088
  #if CYTHON_ASSUME_SAFE_MACROS
8038
8089
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
8039
8090
  #else
8040
- __pyx_nargs = PyTuple_Size(__pyx_args);
8041
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 349, __pyx_L3_error)
8091
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
8042
8092
  #endif
8043
8093
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
8044
8094
  {
@@ -8104,10 +8154,11 @@ static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_ar
8104
8154
  __pyx_v_dtype_is_object = ((int)0);
8105
8155
  }
8106
8156
  }
8107
- goto __pyx_L4_argument_unpacking_done;
8157
+ goto __pyx_L6_skip;
8108
8158
  __pyx_L5_argtuple_error:;
8109
8159
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, __pyx_nargs); __PYX_ERR(1, 349, __pyx_L3_error)
8110
- goto __pyx_L3_error;
8160
+ __pyx_L6_skip:;
8161
+ goto __pyx_L4_argument_unpacking_done;
8111
8162
  __pyx_L3_error:;
8112
8163
  {
8113
8164
  Py_ssize_t __pyx_temp;
@@ -8143,7 +8194,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_
8143
8194
  int __pyx_lineno = 0;
8144
8195
  const char *__pyx_filename = NULL;
8145
8196
  int __pyx_clineno = 0;
8146
- __Pyx_RefNannySetupContext("__cinit__", 0);
8197
+ __Pyx_RefNannySetupContext("__cinit__", 1);
8147
8198
 
8148
8199
  /* "View.MemoryView":350
8149
8200
  *
@@ -8478,14 +8529,12 @@ static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self) {
8478
8529
 
8479
8530
  static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(struct __pyx_memoryview_obj *__pyx_v_self) {
8480
8531
  int __pyx_v_i;
8481
- __Pyx_RefNannyDeclarations
8482
8532
  int __pyx_t_1;
8483
8533
  int __pyx_t_2;
8484
8534
  int __pyx_t_3;
8485
8535
  int __pyx_t_4;
8486
8536
  PyThread_type_lock __pyx_t_5;
8487
8537
  PyThread_type_lock __pyx_t_6;
8488
- __Pyx_RefNannySetupContext("__dealloc__", 0);
8489
8538
 
8490
8539
  /* "View.MemoryView":377
8491
8540
  *
@@ -8683,7 +8732,6 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal
8683
8732
  */
8684
8733
 
8685
8734
  /* function exit code */
8686
- __Pyx_RefNannyFinishContext();
8687
8735
  }
8688
8736
 
8689
8737
  /* "View.MemoryView":397
@@ -8710,7 +8758,7 @@ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__py
8710
8758
  int __pyx_lineno = 0;
8711
8759
  const char *__pyx_filename = NULL;
8712
8760
  int __pyx_clineno = 0;
8713
- __Pyx_RefNannySetupContext("get_item_pointer", 0);
8761
+ __Pyx_RefNannySetupContext("get_item_pointer", 1);
8714
8762
 
8715
8763
  /* "View.MemoryView":399
8716
8764
  * cdef char *get_item_pointer(memoryview self, object index) except NULL:
@@ -8730,7 +8778,8 @@ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__py
8730
8778
  */
8731
8779
  __pyx_t_1 = 0;
8732
8780
  if (likely(PyList_CheckExact(__pyx_v_index)) || PyTuple_CheckExact(__pyx_v_index)) {
8733
- __pyx_t_2 = __pyx_v_index; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
8781
+ __pyx_t_2 = __pyx_v_index; __Pyx_INCREF(__pyx_t_2);
8782
+ __pyx_t_3 = 0;
8734
8783
  __pyx_t_4 = NULL;
8735
8784
  } else {
8736
8785
  __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 401, __pyx_L1_error)
@@ -8740,19 +8789,31 @@ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__py
8740
8789
  for (;;) {
8741
8790
  if (likely(!__pyx_t_4)) {
8742
8791
  if (likely(PyList_CheckExact(__pyx_t_2))) {
8743
- if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
8792
+ {
8793
+ Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
8794
+ #if !CYTHON_ASSUME_SAFE_MACROS
8795
+ if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 401, __pyx_L1_error)
8796
+ #endif
8797
+ if (__pyx_t_3 >= __pyx_temp) break;
8798
+ }
8744
8799
  #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
8745
8800
  __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely((0 < 0))) __PYX_ERR(1, 401, __pyx_L1_error)
8746
8801
  #else
8747
- __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 401, __pyx_L1_error)
8802
+ __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 401, __pyx_L1_error)
8748
8803
  __Pyx_GOTREF(__pyx_t_5);
8749
8804
  #endif
8750
8805
  } else {
8751
- if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
8806
+ {
8807
+ Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
8808
+ #if !CYTHON_ASSUME_SAFE_MACROS
8809
+ if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 401, __pyx_L1_error)
8810
+ #endif
8811
+ if (__pyx_t_3 >= __pyx_temp) break;
8812
+ }
8752
8813
  #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
8753
8814
  __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely((0 < 0))) __PYX_ERR(1, 401, __pyx_L1_error)
8754
8815
  #else
8755
- __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 401, __pyx_L1_error)
8816
+ __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 401, __pyx_L1_error)
8756
8817
  __Pyx_GOTREF(__pyx_t_5);
8757
8818
  #endif
8758
8819
  }
@@ -8861,7 +8922,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_
8861
8922
  int __pyx_lineno = 0;
8862
8923
  const char *__pyx_filename = NULL;
8863
8924
  int __pyx_clineno = 0;
8864
- __Pyx_RefNannySetupContext("__getitem__", 0);
8925
+ __Pyx_RefNannySetupContext("__getitem__", 1);
8865
8926
 
8866
8927
  /* "View.MemoryView":408
8867
8928
  *
@@ -9472,7 +9533,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryvi
9472
9533
  int __pyx_lineno = 0;
9473
9534
  const char *__pyx_filename = NULL;
9474
9535
  int __pyx_clineno = 0;
9475
- __Pyx_RefNannySetupContext("setitem_slice_assignment", 0);
9536
+ __Pyx_RefNannySetupContext("setitem_slice_assignment", 1);
9476
9537
 
9477
9538
  /* "View.MemoryView":448
9478
9539
  * cdef __Pyx_memviewslice dst_slice
@@ -9565,7 +9626,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor
9565
9626
  int __pyx_lineno = 0;
9566
9627
  const char *__pyx_filename = NULL;
9567
9628
  int __pyx_clineno = 0;
9568
- __Pyx_RefNannySetupContext("setitem_slice_assign_scalar", 0);
9629
+ __Pyx_RefNannySetupContext("setitem_slice_assign_scalar", 1);
9569
9630
 
9570
9631
  /* "View.MemoryView":455
9571
9632
  * cdef setitem_slice_assign_scalar(self, memoryview dst, value):
@@ -9838,7 +9899,7 @@ static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *_
9838
9899
  int __pyx_lineno = 0;
9839
9900
  const char *__pyx_filename = NULL;
9840
9901
  int __pyx_clineno = 0;
9841
- __Pyx_RefNannySetupContext("setitem_indexed", 0);
9902
+ __Pyx_RefNannySetupContext("setitem_indexed", 1);
9842
9903
 
9843
9904
  /* "View.MemoryView":486
9844
9905
  *
@@ -9909,7 +9970,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview
9909
9970
  int __pyx_lineno = 0;
9910
9971
  const char *__pyx_filename = NULL;
9911
9972
  int __pyx_clineno = 0;
9912
- __Pyx_RefNannySetupContext("convert_item_to_object", 0);
9973
+ __Pyx_RefNannySetupContext("convert_item_to_object", 1);
9913
9974
 
9914
9975
  /* "View.MemoryView":492
9915
9976
  * """Only used if instantiated manually by the user, or if Cython doesn't
@@ -10159,7 +10220,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
10159
10220
  int __pyx_lineno = 0;
10160
10221
  const char *__pyx_filename = NULL;
10161
10222
  int __pyx_clineno = 0;
10162
- __Pyx_RefNannySetupContext("assign_item_from_object", 0);
10223
+ __Pyx_RefNannySetupContext("assign_item_from_object", 1);
10163
10224
 
10164
10225
  /* "View.MemoryView":508
10165
10226
  * """Only used if instantiated manually by the user, or if Cython doesn't
@@ -10712,7 +10773,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct _
10712
10773
  int __pyx_lineno = 0;
10713
10774
  const char *__pyx_filename = NULL;
10714
10775
  int __pyx_clineno = 0;
10715
- __Pyx_RefNannySetupContext("__get__", 0);
10776
+ __Pyx_RefNannySetupContext("__get__", 1);
10716
10777
 
10717
10778
  /* "View.MemoryView":556
10718
10779
  * @property
@@ -10798,7 +10859,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struc
10798
10859
  int __pyx_lineno = 0;
10799
10860
  const char *__pyx_filename = NULL;
10800
10861
  int __pyx_clineno = 0;
10801
- __Pyx_RefNannySetupContext("__get__", 0);
10862
+ __Pyx_RefNannySetupContext("__get__", 1);
10802
10863
 
10803
10864
  /* "View.MemoryView":562
10804
10865
  * @property
@@ -10844,7 +10905,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struc
10844
10905
  static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v_self) {
10845
10906
  PyObject *__pyx_r = NULL;
10846
10907
  __Pyx_RefNannyDeclarations
10847
- __Pyx_RefNannySetupContext("_get_base", 0);
10908
+ __Pyx_RefNannySetupContext("_get_base", 1);
10848
10909
 
10849
10910
  /* "View.MemoryView":565
10850
10911
  *
@@ -10908,7 +10969,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(stru
10908
10969
  int __pyx_lineno = 0;
10909
10970
  const char *__pyx_filename = NULL;
10910
10971
  int __pyx_clineno = 0;
10911
- __Pyx_RefNannySetupContext("__get__", 0);
10972
+ __Pyx_RefNannySetupContext("__get__", 1);
10912
10973
 
10913
10974
  /* "View.MemoryView":569
10914
10975
  * @property
@@ -10994,7 +11055,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(st
10994
11055
  int __pyx_lineno = 0;
10995
11056
  const char *__pyx_filename = NULL;
10996
11057
  int __pyx_clineno = 0;
10997
- __Pyx_RefNannySetupContext("__get__", 0);
11058
+ __Pyx_RefNannySetupContext("__get__", 1);
10998
11059
 
10999
11060
  /* "View.MemoryView":573
11000
11061
  * @property
@@ -11109,7 +11170,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get_
11109
11170
  int __pyx_lineno = 0;
11110
11171
  const char *__pyx_filename = NULL;
11111
11172
  int __pyx_clineno = 0;
11112
- __Pyx_RefNannySetupContext("__get__", 0);
11173
+ __Pyx_RefNannySetupContext("__get__", 1);
11113
11174
 
11114
11175
  /* "View.MemoryView":581
11115
11176
  * @property
@@ -11222,7 +11283,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struc
11222
11283
  int __pyx_lineno = 0;
11223
11284
  const char *__pyx_filename = NULL;
11224
11285
  int __pyx_clineno = 0;
11225
- __Pyx_RefNannySetupContext("__get__", 0);
11286
+ __Pyx_RefNannySetupContext("__get__", 1);
11226
11287
 
11227
11288
  /* "View.MemoryView":588
11228
11289
  * @property
@@ -11287,7 +11348,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(s
11287
11348
  int __pyx_lineno = 0;
11288
11349
  const char *__pyx_filename = NULL;
11289
11350
  int __pyx_clineno = 0;
11290
- __Pyx_RefNannySetupContext("__get__", 0);
11351
+ __Pyx_RefNannySetupContext("__get__", 1);
11291
11352
 
11292
11353
  /* "View.MemoryView":592
11293
11354
  * @property
@@ -11354,7 +11415,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(str
11354
11415
  int __pyx_lineno = 0;
11355
11416
  const char *__pyx_filename = NULL;
11356
11417
  int __pyx_clineno = 0;
11357
- __Pyx_RefNannySetupContext("__get__", 0);
11418
+ __Pyx_RefNannySetupContext("__get__", 1);
11358
11419
 
11359
11420
  /* "View.MemoryView":596
11360
11421
  * @property
@@ -11433,7 +11494,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc
11433
11494
  int __pyx_lineno = 0;
11434
11495
  const char *__pyx_filename = NULL;
11435
11496
  int __pyx_clineno = 0;
11436
- __Pyx_RefNannySetupContext("__get__", 0);
11497
+ __Pyx_RefNannySetupContext("__get__", 1);
11437
11498
 
11438
11499
  /* "View.MemoryView":600
11439
11500
  * @property
@@ -11563,9 +11624,7 @@ static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self) {
11563
11624
 
11564
11625
  static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(struct __pyx_memoryview_obj *__pyx_v_self) {
11565
11626
  Py_ssize_t __pyx_r;
11566
- __Pyx_RefNannyDeclarations
11567
11627
  int __pyx_t_1;
11568
- __Pyx_RefNannySetupContext("__len__", 0);
11569
11628
 
11570
11629
  /* "View.MemoryView":611
11571
11630
  *
@@ -11616,7 +11675,6 @@ static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_1
11616
11675
 
11617
11676
  /* function exit code */
11618
11677
  __pyx_L0:;
11619
- __Pyx_RefNannyFinishContext();
11620
11678
  return __pyx_r;
11621
11679
  }
11622
11680
 
@@ -11652,7 +11710,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12
11652
11710
  int __pyx_lineno = 0;
11653
11711
  const char *__pyx_filename = NULL;
11654
11712
  int __pyx_clineno = 0;
11655
- __Pyx_RefNannySetupContext("__repr__", 0);
11713
+ __Pyx_RefNannySetupContext("__repr__", 1);
11656
11714
 
11657
11715
  /* "View.MemoryView":617
11658
11716
  *
@@ -11755,7 +11813,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14
11755
11813
  int __pyx_lineno = 0;
11756
11814
  const char *__pyx_filename = NULL;
11757
11815
  int __pyx_clineno = 0;
11758
- __Pyx_RefNannySetupContext("__str__", 0);
11816
+ __Pyx_RefNannySetupContext("__str__", 1);
11759
11817
 
11760
11818
  /* "View.MemoryView":621
11761
11819
  *
@@ -11832,9 +11890,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
11832
11890
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
11833
11891
  #endif
11834
11892
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
11835
- int __pyx_lineno = 0;
11836
- const char *__pyx_filename = NULL;
11837
- int __pyx_clineno = 0;
11838
11893
  PyObject *__pyx_r = 0;
11839
11894
  __Pyx_RefNannyDeclarations
11840
11895
  __Pyx_RefNannySetupContext("is_c_contig (wrapper)", 0);
@@ -11842,21 +11897,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
11842
11897
  #if CYTHON_ASSUME_SAFE_MACROS
11843
11898
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
11844
11899
  #else
11845
- __pyx_nargs = PyTuple_Size(__pyx_args);
11846
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 624, __pyx_L3_error)
11900
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
11847
11901
  #endif
11848
11902
  #endif
11849
11903
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
11850
11904
  if (unlikely(__pyx_nargs > 0)) {
11851
11905
  __Pyx_RaiseArgtupleInvalid("is_c_contig", 1, 0, 0, __pyx_nargs); return NULL;}
11852
11906
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_c_contig", 0))) return NULL;
11853
- goto __pyx_L4_argument_unpacking_done;
11854
- goto __pyx_L3_error;
11855
- __pyx_L3_error:;
11856
- __Pyx_AddTraceback("View.MemoryView.memoryview.is_c_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
11857
- __Pyx_RefNannyFinishContext();
11858
- return NULL;
11859
- __pyx_L4_argument_unpacking_done:;
11860
11907
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(((struct __pyx_memoryview_obj *)__pyx_v_self));
11861
11908
 
11862
11909
  /* function exit code */
@@ -11874,7 +11921,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16
11874
11921
  int __pyx_lineno = 0;
11875
11922
  const char *__pyx_filename = NULL;
11876
11923
  int __pyx_clineno = 0;
11877
- __Pyx_RefNannySetupContext("is_c_contig", 0);
11924
+ __Pyx_RefNannySetupContext("is_c_contig", 1);
11878
11925
 
11879
11926
  /* "View.MemoryView":627
11880
11927
  * cdef __Pyx_memviewslice *mslice
@@ -11946,9 +11993,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
11946
11993
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
11947
11994
  #endif
11948
11995
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
11949
- int __pyx_lineno = 0;
11950
- const char *__pyx_filename = NULL;
11951
- int __pyx_clineno = 0;
11952
11996
  PyObject *__pyx_r = 0;
11953
11997
  __Pyx_RefNannyDeclarations
11954
11998
  __Pyx_RefNannySetupContext("is_f_contig (wrapper)", 0);
@@ -11956,21 +12000,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
11956
12000
  #if CYTHON_ASSUME_SAFE_MACROS
11957
12001
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
11958
12002
  #else
11959
- __pyx_nargs = PyTuple_Size(__pyx_args);
11960
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 630, __pyx_L3_error)
12003
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
11961
12004
  #endif
11962
12005
  #endif
11963
12006
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
11964
12007
  if (unlikely(__pyx_nargs > 0)) {
11965
12008
  __Pyx_RaiseArgtupleInvalid("is_f_contig", 1, 0, 0, __pyx_nargs); return NULL;}
11966
12009
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "is_f_contig", 0))) return NULL;
11967
- goto __pyx_L4_argument_unpacking_done;
11968
- goto __pyx_L3_error;
11969
- __pyx_L3_error:;
11970
- __Pyx_AddTraceback("View.MemoryView.memoryview.is_f_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
11971
- __Pyx_RefNannyFinishContext();
11972
- return NULL;
11973
- __pyx_L4_argument_unpacking_done:;
11974
12010
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(((struct __pyx_memoryview_obj *)__pyx_v_self));
11975
12011
 
11976
12012
  /* function exit code */
@@ -11988,7 +12024,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18
11988
12024
  int __pyx_lineno = 0;
11989
12025
  const char *__pyx_filename = NULL;
11990
12026
  int __pyx_clineno = 0;
11991
- __Pyx_RefNannySetupContext("is_f_contig", 0);
12027
+ __Pyx_RefNannySetupContext("is_f_contig", 1);
11992
12028
 
11993
12029
  /* "View.MemoryView":633
11994
12030
  * cdef __Pyx_memviewslice *mslice
@@ -12060,9 +12096,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12060
12096
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
12061
12097
  #endif
12062
12098
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
12063
- int __pyx_lineno = 0;
12064
- const char *__pyx_filename = NULL;
12065
- int __pyx_clineno = 0;
12066
12099
  PyObject *__pyx_r = 0;
12067
12100
  __Pyx_RefNannyDeclarations
12068
12101
  __Pyx_RefNannySetupContext("copy (wrapper)", 0);
@@ -12070,21 +12103,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12070
12103
  #if CYTHON_ASSUME_SAFE_MACROS
12071
12104
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
12072
12105
  #else
12073
- __pyx_nargs = PyTuple_Size(__pyx_args);
12074
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 636, __pyx_L3_error)
12106
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
12075
12107
  #endif
12076
12108
  #endif
12077
12109
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
12078
12110
  if (unlikely(__pyx_nargs > 0)) {
12079
12111
  __Pyx_RaiseArgtupleInvalid("copy", 1, 0, 0, __pyx_nargs); return NULL;}
12080
12112
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "copy", 0))) return NULL;
12081
- goto __pyx_L4_argument_unpacking_done;
12082
- goto __pyx_L3_error;
12083
- __pyx_L3_error:;
12084
- __Pyx_AddTraceback("View.MemoryView.memoryview.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
12085
- __Pyx_RefNannyFinishContext();
12086
- return NULL;
12087
- __pyx_L4_argument_unpacking_done:;
12088
12113
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(((struct __pyx_memoryview_obj *)__pyx_v_self));
12089
12114
 
12090
12115
  /* function exit code */
@@ -12102,7 +12127,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20
12102
12127
  int __pyx_lineno = 0;
12103
12128
  const char *__pyx_filename = NULL;
12104
12129
  int __pyx_clineno = 0;
12105
- __Pyx_RefNannySetupContext("copy", 0);
12130
+ __Pyx_RefNannySetupContext("copy", 1);
12106
12131
 
12107
12132
  /* "View.MemoryView":638
12108
12133
  * def copy(self):
@@ -12192,9 +12217,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12192
12217
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
12193
12218
  #endif
12194
12219
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
12195
- int __pyx_lineno = 0;
12196
- const char *__pyx_filename = NULL;
12197
- int __pyx_clineno = 0;
12198
12220
  PyObject *__pyx_r = 0;
12199
12221
  __Pyx_RefNannyDeclarations
12200
12222
  __Pyx_RefNannySetupContext("copy_fortran (wrapper)", 0);
@@ -12202,21 +12224,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12202
12224
  #if CYTHON_ASSUME_SAFE_MACROS
12203
12225
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
12204
12226
  #else
12205
- __pyx_nargs = PyTuple_Size(__pyx_args);
12206
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 648, __pyx_L3_error)
12227
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
12207
12228
  #endif
12208
12229
  #endif
12209
12230
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
12210
12231
  if (unlikely(__pyx_nargs > 0)) {
12211
12232
  __Pyx_RaiseArgtupleInvalid("copy_fortran", 1, 0, 0, __pyx_nargs); return NULL;}
12212
12233
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "copy_fortran", 0))) return NULL;
12213
- goto __pyx_L4_argument_unpacking_done;
12214
- goto __pyx_L3_error;
12215
- __pyx_L3_error:;
12216
- __Pyx_AddTraceback("View.MemoryView.memoryview.copy_fortran", __pyx_clineno, __pyx_lineno, __pyx_filename);
12217
- __Pyx_RefNannyFinishContext();
12218
- return NULL;
12219
- __pyx_L4_argument_unpacking_done:;
12220
12234
  __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(((struct __pyx_memoryview_obj *)__pyx_v_self));
12221
12235
 
12222
12236
  /* function exit code */
@@ -12235,7 +12249,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22
12235
12249
  int __pyx_lineno = 0;
12236
12250
  const char *__pyx_filename = NULL;
12237
12251
  int __pyx_clineno = 0;
12238
- __Pyx_RefNannySetupContext("copy_fortran", 0);
12252
+ __Pyx_RefNannySetupContext("copy_fortran", 1);
12239
12253
 
12240
12254
  /* "View.MemoryView":650
12241
12255
  * def copy_fortran(self):
@@ -12323,9 +12337,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12323
12337
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
12324
12338
  #endif
12325
12339
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
12326
- int __pyx_lineno = 0;
12327
- const char *__pyx_filename = NULL;
12328
- int __pyx_clineno = 0;
12329
12340
  PyObject *__pyx_r = 0;
12330
12341
  __Pyx_RefNannyDeclarations
12331
12342
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
@@ -12333,21 +12344,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12333
12344
  #if CYTHON_ASSUME_SAFE_MACROS
12334
12345
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
12335
12346
  #else
12336
- __pyx_nargs = PyTuple_Size(__pyx_args);
12337
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 1, __pyx_L3_error)
12347
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
12338
12348
  #endif
12339
12349
  #endif
12340
12350
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
12341
12351
  if (unlikely(__pyx_nargs > 0)) {
12342
12352
  __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;}
12343
12353
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL;
12344
- goto __pyx_L4_argument_unpacking_done;
12345
- goto __pyx_L3_error;
12346
- __pyx_L3_error:;
12347
- __Pyx_AddTraceback("View.MemoryView.memoryview.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
12348
- __Pyx_RefNannyFinishContext();
12349
- return NULL;
12350
- __pyx_L4_argument_unpacking_done:;
12351
12354
  __pyx_r = __pyx_pf___pyx_memoryview___reduce_cython__(((struct __pyx_memoryview_obj *)__pyx_v_self));
12352
12355
 
12353
12356
  /* function exit code */
@@ -12361,7 +12364,7 @@ static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struc
12361
12364
  int __pyx_lineno = 0;
12362
12365
  const char *__pyx_filename = NULL;
12363
12366
  int __pyx_clineno = 0;
12364
- __Pyx_RefNannySetupContext("__reduce_cython__", 0);
12367
+ __Pyx_RefNannySetupContext("__reduce_cython__", 1);
12365
12368
 
12366
12369
  /* "(tree fragment)":2
12367
12370
  * def __reduce_cython__(self):
@@ -12425,8 +12428,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12425
12428
  #if CYTHON_ASSUME_SAFE_MACROS
12426
12429
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
12427
12430
  #else
12428
- __pyx_nargs = PyTuple_Size(__pyx_args);
12429
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 3, __pyx_L3_error)
12431
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
12430
12432
  #endif
12431
12433
  #endif
12432
12434
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -12461,10 +12463,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
12461
12463
  }
12462
12464
  __pyx_v___pyx_state = values[0];
12463
12465
  }
12464
- goto __pyx_L4_argument_unpacking_done;
12466
+ goto __pyx_L6_skip;
12465
12467
  __pyx_L5_argtuple_error:;
12466
12468
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 3, __pyx_L3_error)
12467
- goto __pyx_L3_error;
12469
+ __pyx_L6_skip:;
12470
+ goto __pyx_L4_argument_unpacking_done;
12468
12471
  __pyx_L3_error:;
12469
12472
  {
12470
12473
  Py_ssize_t __pyx_temp;
@@ -12495,7 +12498,7 @@ static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED st
12495
12498
  int __pyx_lineno = 0;
12496
12499
  const char *__pyx_filename = NULL;
12497
12500
  int __pyx_clineno = 0;
12498
- __Pyx_RefNannySetupContext("__setstate_cython__", 0);
12501
+ __Pyx_RefNannySetupContext("__setstate_cython__", 1);
12499
12502
 
12500
12503
  /* "(tree fragment)":4
12501
12504
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
@@ -12539,7 +12542,7 @@ static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, in
12539
12542
  int __pyx_lineno = 0;
12540
12543
  const char *__pyx_filename = NULL;
12541
12544
  int __pyx_clineno = 0;
12542
- __Pyx_RefNannySetupContext("memoryview_cwrapper", 0);
12545
+ __Pyx_RefNannySetupContext("memoryview_cwrapper", 1);
12543
12546
 
12544
12547
  /* "View.MemoryView":663
12545
12548
  * @cname('__pyx_memoryview_new')
@@ -12622,9 +12625,7 @@ static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, in
12622
12625
 
12623
12626
  static CYTHON_INLINE int __pyx_memoryview_check(PyObject *__pyx_v_o) {
12624
12627
  int __pyx_r;
12625
- __Pyx_RefNannyDeclarations
12626
12628
  int __pyx_t_1;
12627
- __Pyx_RefNannySetupContext("memoryview_check", 0);
12628
12629
 
12629
12630
  /* "View.MemoryView":669
12630
12631
  * @cname('__pyx_memoryview_check')
@@ -12647,7 +12648,6 @@ static CYTHON_INLINE int __pyx_memoryview_check(PyObject *__pyx_v_o) {
12647
12648
 
12648
12649
  /* function exit code */
12649
12650
  __pyx_L0:;
12650
- __Pyx_RefNannyFinishContext();
12651
12651
  return __pyx_r;
12652
12652
  }
12653
12653
 
@@ -12679,7 +12679,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) {
12679
12679
  int __pyx_lineno = 0;
12680
12680
  const char *__pyx_filename = NULL;
12681
12681
  int __pyx_clineno = 0;
12682
- __Pyx_RefNannySetupContext("_unellipsify", 0);
12682
+ __Pyx_RefNannySetupContext("_unellipsify", 1);
12683
12683
 
12684
12684
  /* "View.MemoryView":677
12685
12685
  * """
@@ -12761,13 +12761,20 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) {
12761
12761
  PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
12762
12762
  __PYX_ERR(1, 683, __pyx_L1_error)
12763
12763
  }
12764
- __pyx_t_1 = __pyx_v_tup; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0;
12764
+ __pyx_t_1 = __pyx_v_tup; __Pyx_INCREF(__pyx_t_1);
12765
+ __pyx_t_4 = 0;
12765
12766
  for (;;) {
12766
- if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
12767
+ {
12768
+ Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
12769
+ #if !CYTHON_ASSUME_SAFE_MACROS
12770
+ if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 683, __pyx_L1_error)
12771
+ #endif
12772
+ if (__pyx_t_4 >= __pyx_temp) break;
12773
+ }
12767
12774
  #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12768
12775
  __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely((0 < 0))) __PYX_ERR(1, 683, __pyx_L1_error)
12769
12776
  #else
12770
- __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 683, __pyx_L1_error)
12777
+ __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 683, __pyx_L1_error)
12771
12778
  __Pyx_GOTREF(__pyx_t_3);
12772
12779
  #endif
12773
12780
  __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_3);
@@ -13036,7 +13043,6 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) {
13036
13043
  static int assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_ndim) {
13037
13044
  Py_ssize_t __pyx_v_suboffset;
13038
13045
  int __pyx_r;
13039
- __Pyx_RefNannyDeclarations
13040
13046
  Py_ssize_t *__pyx_t_1;
13041
13047
  Py_ssize_t *__pyx_t_2;
13042
13048
  Py_ssize_t *__pyx_t_3;
@@ -13044,7 +13050,6 @@ static int assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_
13044
13050
  int __pyx_lineno = 0;
13045
13051
  const char *__pyx_filename = NULL;
13046
13052
  int __pyx_clineno = 0;
13047
- __Pyx_RefNannySetupContext("assert_direct_dimensions", 0);
13048
13053
 
13049
13054
  /* "View.MemoryView":701
13050
13055
  *
@@ -13111,7 +13116,6 @@ static int assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_
13111
13116
  __Pyx_AddTraceback("View.MemoryView.assert_direct_dimensions", __pyx_clineno, __pyx_lineno, __pyx_filename);
13112
13117
  __pyx_r = -1;
13113
13118
  __pyx_L0:;
13114
- __Pyx_RefNannyFinishContext();
13115
13119
  return __pyx_r;
13116
13120
  }
13117
13121
 
@@ -13157,7 +13161,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_
13157
13161
  int __pyx_lineno = 0;
13158
13162
  const char *__pyx_filename = NULL;
13159
13163
  int __pyx_clineno = 0;
13160
- __Pyx_RefNannySetupContext("memview_slice", 0);
13164
+ __Pyx_RefNannySetupContext("memview_slice", 1);
13161
13165
 
13162
13166
  /* "View.MemoryView":712
13163
13167
  * @cname('__pyx_memview_slice')
@@ -13307,7 +13311,8 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_
13307
13311
  */
13308
13312
  __pyx_t_5 = 0;
13309
13313
  if (likely(PyList_CheckExact(__pyx_v_indices)) || PyTuple_CheckExact(__pyx_v_indices)) {
13310
- __pyx_t_2 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_2); __pyx_t_6 = 0;
13314
+ __pyx_t_2 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_2);
13315
+ __pyx_t_6 = 0;
13311
13316
  __pyx_t_7 = NULL;
13312
13317
  } else {
13313
13318
  __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 747, __pyx_L1_error)
@@ -13317,19 +13322,31 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_
13317
13322
  for (;;) {
13318
13323
  if (likely(!__pyx_t_7)) {
13319
13324
  if (likely(PyList_CheckExact(__pyx_t_2))) {
13320
- if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_2)) break;
13325
+ {
13326
+ Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
13327
+ #if !CYTHON_ASSUME_SAFE_MACROS
13328
+ if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 747, __pyx_L1_error)
13329
+ #endif
13330
+ if (__pyx_t_6 >= __pyx_temp) break;
13331
+ }
13321
13332
  #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
13322
13333
  __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(1, 747, __pyx_L1_error)
13323
13334
  #else
13324
- __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 747, __pyx_L1_error)
13335
+ __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 747, __pyx_L1_error)
13325
13336
  __Pyx_GOTREF(__pyx_t_8);
13326
13337
  #endif
13327
13338
  } else {
13328
- if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
13339
+ {
13340
+ Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
13341
+ #if !CYTHON_ASSUME_SAFE_MACROS
13342
+ if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 747, __pyx_L1_error)
13343
+ #endif
13344
+ if (__pyx_t_6 >= __pyx_temp) break;
13345
+ }
13329
13346
  #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
13330
13347
  __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(1, 747, __pyx_L1_error)
13331
13348
  #else
13332
- __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 747, __pyx_L1_error)
13349
+ __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 747, __pyx_L1_error)
13333
13350
  __Pyx_GOTREF(__pyx_t_8);
13334
13351
  #endif
13335
13352
  }
@@ -13708,7 +13725,6 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst,
13708
13725
  Py_ssize_t __pyx_v_new_shape;
13709
13726
  int __pyx_v_negative_step;
13710
13727
  int __pyx_r;
13711
- __Pyx_RefNannyDeclarations
13712
13728
  int __pyx_t_1;
13713
13729
  int __pyx_t_2;
13714
13730
  int __pyx_t_3;
@@ -13718,7 +13734,6 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst,
13718
13734
  #ifdef WITH_THREAD
13719
13735
  PyGILState_STATE __pyx_gilstate_save;
13720
13736
  #endif
13721
- __Pyx_RefNannySetupContext("slice_memviewslice", 1);
13722
13737
 
13723
13738
  /* "View.MemoryView":813
13724
13739
  * cdef bint negative_step
@@ -14473,7 +14488,6 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst,
14473
14488
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
14474
14489
  #endif
14475
14490
  __pyx_L0:;
14476
- __Pyx_RefNannyFinishContextNogil()
14477
14491
  return __pyx_r;
14478
14492
  }
14479
14493
 
@@ -14501,7 +14515,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P
14501
14515
  int __pyx_lineno = 0;
14502
14516
  const char *__pyx_filename = NULL;
14503
14517
  int __pyx_clineno = 0;
14504
- __Pyx_RefNannySetupContext("pybuffer_index", 0);
14518
+ __Pyx_RefNannySetupContext("pybuffer_index", 1);
14505
14519
 
14506
14520
  /* "View.MemoryView":898
14507
14521
  * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index,
@@ -14828,7 +14842,6 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) {
14828
14842
  int __pyx_v_i;
14829
14843
  int __pyx_v_j;
14830
14844
  int __pyx_r;
14831
- __Pyx_RefNannyDeclarations
14832
14845
  int __pyx_t_1;
14833
14846
  Py_ssize_t *__pyx_t_2;
14834
14847
  long __pyx_t_3;
@@ -14844,7 +14857,6 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) {
14844
14857
  #ifdef WITH_THREAD
14845
14858
  PyGILState_STATE __pyx_gilstate_save;
14846
14859
  #endif
14847
- __Pyx_RefNannySetupContext("transpose_memslice", 1);
14848
14860
 
14849
14861
  /* "View.MemoryView":930
14850
14862
  * @cname('__pyx_memslice_transpose')
@@ -14987,7 +14999,6 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) {
14987
14999
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
14988
15000
  #endif
14989
15001
  __pyx_L0:;
14990
- __Pyx_RefNannyFinishContextNogil()
14991
15002
  return __pyx_r;
14992
15003
  }
14993
15004
 
@@ -15013,8 +15024,6 @@ static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self) {
15013
15024
  }
15014
15025
 
15015
15026
  static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(struct __pyx_memoryviewslice_obj *__pyx_v_self) {
15016
- __Pyx_RefNannyDeclarations
15017
- __Pyx_RefNannySetupContext("__dealloc__", 0);
15018
15027
 
15019
15028
  /* "View.MemoryView":964
15020
15029
  *
@@ -15034,7 +15043,6 @@ static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewsl
15034
15043
  */
15035
15044
 
15036
15045
  /* function exit code */
15037
- __Pyx_RefNannyFinishContext();
15038
15046
  }
15039
15047
 
15040
15048
  /* "View.MemoryView":966
@@ -15053,7 +15061,7 @@ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memor
15053
15061
  int __pyx_lineno = 0;
15054
15062
  const char *__pyx_filename = NULL;
15055
15063
  int __pyx_clineno = 0;
15056
- __Pyx_RefNannySetupContext("convert_item_to_object", 0);
15064
+ __Pyx_RefNannySetupContext("convert_item_to_object", 1);
15057
15065
 
15058
15066
  /* "View.MemoryView":967
15059
15067
  *
@@ -15140,7 +15148,7 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo
15140
15148
  int __pyx_lineno = 0;
15141
15149
  const char *__pyx_filename = NULL;
15142
15150
  int __pyx_clineno = 0;
15143
- __Pyx_RefNannySetupContext("assign_item_from_object", 0);
15151
+ __Pyx_RefNannySetupContext("assign_item_from_object", 1);
15144
15152
 
15145
15153
  /* "View.MemoryView":973
15146
15154
  *
@@ -15217,7 +15225,7 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo
15217
15225
  static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self) {
15218
15226
  PyObject *__pyx_r = NULL;
15219
15227
  __Pyx_RefNannyDeclarations
15220
- __Pyx_RefNannySetupContext("_get_base", 0);
15228
+ __Pyx_RefNannySetupContext("_get_base", 1);
15221
15229
 
15222
15230
  /* "View.MemoryView":979
15223
15231
  *
@@ -15271,9 +15279,6 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
15271
15279
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
15272
15280
  #endif
15273
15281
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
15274
- int __pyx_lineno = 0;
15275
- const char *__pyx_filename = NULL;
15276
- int __pyx_clineno = 0;
15277
15282
  PyObject *__pyx_r = 0;
15278
15283
  __Pyx_RefNannyDeclarations
15279
15284
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
@@ -15281,21 +15286,13 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
15281
15286
  #if CYTHON_ASSUME_SAFE_MACROS
15282
15287
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
15283
15288
  #else
15284
- __pyx_nargs = PyTuple_Size(__pyx_args);
15285
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 1, __pyx_L3_error)
15289
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
15286
15290
  #endif
15287
15291
  #endif
15288
15292
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
15289
15293
  if (unlikely(__pyx_nargs > 0)) {
15290
15294
  __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL;}
15291
15295
  if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL;
15292
- goto __pyx_L4_argument_unpacking_done;
15293
- goto __pyx_L3_error;
15294
- __pyx_L3_error:;
15295
- __Pyx_AddTraceback("View.MemoryView._memoryviewslice.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
15296
- __Pyx_RefNannyFinishContext();
15297
- return NULL;
15298
- __pyx_L4_argument_unpacking_done:;
15299
15296
  __pyx_r = __pyx_pf___pyx_memoryviewslice___reduce_cython__(((struct __pyx_memoryviewslice_obj *)__pyx_v_self));
15300
15297
 
15301
15298
  /* function exit code */
@@ -15309,7 +15306,7 @@ static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED
15309
15306
  int __pyx_lineno = 0;
15310
15307
  const char *__pyx_filename = NULL;
15311
15308
  int __pyx_clineno = 0;
15312
- __Pyx_RefNannySetupContext("__reduce_cython__", 0);
15309
+ __Pyx_RefNannySetupContext("__reduce_cython__", 1);
15313
15310
 
15314
15311
  /* "(tree fragment)":2
15315
15312
  * def __reduce_cython__(self):
@@ -15373,8 +15370,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
15373
15370
  #if CYTHON_ASSUME_SAFE_MACROS
15374
15371
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
15375
15372
  #else
15376
- __pyx_nargs = PyTuple_Size(__pyx_args);
15377
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 3, __pyx_L3_error)
15373
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
15378
15374
  #endif
15379
15375
  #endif
15380
15376
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -15409,10 +15405,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
15409
15405
  }
15410
15406
  __pyx_v___pyx_state = values[0];
15411
15407
  }
15412
- goto __pyx_L4_argument_unpacking_done;
15408
+ goto __pyx_L6_skip;
15413
15409
  __pyx_L5_argtuple_error:;
15414
15410
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 3, __pyx_L3_error)
15415
- goto __pyx_L3_error;
15411
+ __pyx_L6_skip:;
15412
+ goto __pyx_L4_argument_unpacking_done;
15416
15413
  __pyx_L3_error:;
15417
15414
  {
15418
15415
  Py_ssize_t __pyx_temp;
@@ -15443,7 +15440,7 @@ static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUS
15443
15440
  int __pyx_lineno = 0;
15444
15441
  const char *__pyx_filename = NULL;
15445
15442
  int __pyx_clineno = 0;
15446
- __Pyx_RefNannySetupContext("__setstate_cython__", 0);
15443
+ __Pyx_RefNannySetupContext("__setstate_cython__", 1);
15447
15444
 
15448
15445
  /* "(tree fragment)":4
15449
15446
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
@@ -15495,7 +15492,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl
15495
15492
  int __pyx_lineno = 0;
15496
15493
  const char *__pyx_filename = NULL;
15497
15494
  int __pyx_clineno = 0;
15498
- __Pyx_RefNannySetupContext("memoryview_fromslice", 0);
15495
+ __Pyx_RefNannySetupContext("memoryview_fromslice", 1);
15499
15496
 
15500
15497
  /* "View.MemoryView":1007
15501
15498
  * cdef _memoryviewslice result
@@ -15872,7 +15869,7 @@ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __p
15872
15869
  int __pyx_lineno = 0;
15873
15870
  const char *__pyx_filename = NULL;
15874
15871
  int __pyx_clineno = 0;
15875
- __Pyx_RefNannySetupContext("get_slice_from_memview", 0);
15872
+ __Pyx_RefNannySetupContext("get_slice_from_memview", 1);
15876
15873
 
15877
15874
  /* "View.MemoryView":1055
15878
15875
  * __Pyx_memviewslice *mslice) except NULL:
@@ -15969,14 +15966,12 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem
15969
15966
  Py_ssize_t *__pyx_v_shape;
15970
15967
  Py_ssize_t *__pyx_v_strides;
15971
15968
  Py_ssize_t *__pyx_v_suboffsets;
15972
- __Pyx_RefNannyDeclarations
15973
15969
  Py_ssize_t *__pyx_t_1;
15974
15970
  int __pyx_t_2;
15975
15971
  int __pyx_t_3;
15976
15972
  int __pyx_t_4;
15977
15973
  Py_ssize_t __pyx_t_5;
15978
15974
  int __pyx_t_6;
15979
- __Pyx_RefNannySetupContext("slice_copy", 0);
15980
15975
 
15981
15976
  /* "View.MemoryView":1067
15982
15977
  * cdef (Py_ssize_t*) shape, strides, suboffsets
@@ -16081,7 +16076,6 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem
16081
16076
  */
16082
16077
 
16083
16078
  /* function exit code */
16084
- __Pyx_RefNannyFinishContext();
16085
16079
  }
16086
16080
 
16087
16081
  /* "View.MemoryView":1080
@@ -16100,7 +16094,7 @@ static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *__pyx
16100
16094
  int __pyx_lineno = 0;
16101
16095
  const char *__pyx_filename = NULL;
16102
16096
  int __pyx_clineno = 0;
16103
- __Pyx_RefNannySetupContext("memoryview_copy", 0);
16097
+ __Pyx_RefNannySetupContext("memoryview_copy", 1);
16104
16098
 
16105
16099
  /* "View.MemoryView":1083
16106
16100
  * "Create a new memoryview object"
@@ -16164,7 +16158,7 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview
16164
16158
  int __pyx_lineno = 0;
16165
16159
  const char *__pyx_filename = NULL;
16166
16160
  int __pyx_clineno = 0;
16167
- __Pyx_RefNannySetupContext("memoryview_copy_from_slice", 0);
16161
+ __Pyx_RefNannySetupContext("memoryview_copy_from_slice", 1);
16168
16162
 
16169
16163
  /* "View.MemoryView":1094
16170
16164
  * cdef int (*to_dtype_func)(char *, object) except 0
@@ -16973,7 +16967,6 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src,
16973
16967
  size_t __pyx_v_itemsize;
16974
16968
  size_t __pyx_v_size;
16975
16969
  void *__pyx_r;
16976
- __Pyx_RefNannyDeclarations
16977
16970
  Py_ssize_t __pyx_t_1;
16978
16971
  int __pyx_t_2;
16979
16972
  int __pyx_t_3;
@@ -16986,7 +16979,6 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src,
16986
16979
  #ifdef WITH_THREAD
16987
16980
  PyGILState_STATE __pyx_gilstate_save;
16988
16981
  #endif
16989
- __Pyx_RefNannySetupContext("copy_data_to_temp", 1);
16990
16982
 
16991
16983
  /* "View.MemoryView":1216
16992
16984
  * cdef void *result
@@ -17214,7 +17206,6 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src,
17214
17206
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
17215
17207
  #endif
17216
17208
  __pyx_L0:;
17217
- __Pyx_RefNannyFinishContextNogil()
17218
17209
  return __pyx_r;
17219
17210
  }
17220
17211
 
@@ -17434,14 +17425,12 @@ static int __pyx_memoryview_err(PyObject *__pyx_v_error, PyObject *__pyx_v_msg)
17434
17425
 
17435
17426
  static int __pyx_memoryview_err_no_memory(void) {
17436
17427
  int __pyx_r;
17437
- __Pyx_RefNannyDeclarations
17438
17428
  int __pyx_lineno = 0;
17439
17429
  const char *__pyx_filename = NULL;
17440
17430
  int __pyx_clineno = 0;
17441
17431
  #ifdef WITH_THREAD
17442
17432
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
17443
17433
  #endif
17444
- __Pyx_RefNannySetupContext("_err_no_memory", 0);
17445
17434
 
17446
17435
  /* "View.MemoryView":1261
17447
17436
  * @cname('__pyx_memoryview_err_no_memory')
@@ -17464,7 +17453,6 @@ static int __pyx_memoryview_err_no_memory(void) {
17464
17453
  __pyx_L1_error:;
17465
17454
  __Pyx_AddTraceback("View.MemoryView._err_no_memory", __pyx_clineno, __pyx_lineno, __pyx_filename);
17466
17455
  __pyx_r = -1;
17467
- __Pyx_RefNannyFinishContext();
17468
17456
  #ifdef WITH_THREAD
17469
17457
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
17470
17458
  #endif
@@ -17489,7 +17477,6 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_
17489
17477
  __Pyx_memviewslice __pyx_v_tmp;
17490
17478
  int __pyx_v_ndim;
17491
17479
  int __pyx_r;
17492
- __Pyx_RefNannyDeclarations
17493
17480
  Py_ssize_t __pyx_t_1;
17494
17481
  int __pyx_t_2;
17495
17482
  int __pyx_t_3;
@@ -17503,7 +17490,6 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_
17503
17490
  #ifdef WITH_THREAD
17504
17491
  PyGILState_STATE __pyx_gilstate_save;
17505
17492
  #endif
17506
- __Pyx_RefNannySetupContext("memoryview_copy_contents", 1);
17507
17493
 
17508
17494
  /* "View.MemoryView":1273
17509
17495
  * Check for overlapping memory and verify the shapes.
@@ -18048,7 +18034,6 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_
18048
18034
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
18049
18035
  #endif
18050
18036
  __pyx_L0:;
18051
- __Pyx_RefNannyFinishContextNogil()
18052
18037
  return __pyx_r;
18053
18038
  }
18054
18039
 
@@ -18222,11 +18207,9 @@ static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *__pyx_v_dst, i
18222
18207
  */
18223
18208
 
18224
18209
  static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, int __pyx_v_inc) {
18225
- __Pyx_RefNannyDeclarations
18226
18210
  #ifdef WITH_THREAD
18227
18211
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
18228
18212
  #endif
18229
- __Pyx_RefNannySetupContext("refcount_objects_in_slice_with_gil", 0);
18230
18213
 
18231
18214
  /* "View.MemoryView":1368
18232
18215
  * Py_ssize_t *strides, int ndim,
@@ -18246,7 +18229,6 @@ static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *__pyx_v_da
18246
18229
  */
18247
18230
 
18248
18231
  /* function exit code */
18249
- __Pyx_RefNannyFinishContext();
18250
18232
  #ifdef WITH_THREAD
18251
18233
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
18252
18234
  #endif
@@ -18263,12 +18245,10 @@ static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *__pyx_v_da
18263
18245
  static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, int __pyx_v_ndim, int __pyx_v_inc) {
18264
18246
  CYTHON_UNUSED Py_ssize_t __pyx_v_i;
18265
18247
  Py_ssize_t __pyx_v_stride;
18266
- __Pyx_RefNannyDeclarations
18267
18248
  Py_ssize_t __pyx_t_1;
18268
18249
  Py_ssize_t __pyx_t_2;
18269
18250
  Py_ssize_t __pyx_t_3;
18270
18251
  int __pyx_t_4;
18271
- __Pyx_RefNannySetupContext("refcount_objects_in_slice", 0);
18272
18252
 
18273
18253
  /* "View.MemoryView":1374
18274
18254
  * Py_ssize_t *strides, int ndim, bint inc) noexcept:
@@ -18382,7 +18362,6 @@ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ss
18382
18362
  */
18383
18363
 
18384
18364
  /* function exit code */
18385
- __Pyx_RefNannyFinishContext();
18386
18365
  }
18387
18366
 
18388
18367
  /* "View.MemoryView":1391
@@ -18604,8 +18583,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
18604
18583
  #if CYTHON_ASSUME_SAFE_MACROS
18605
18584
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
18606
18585
  #else
18607
- __pyx_nargs = PyTuple_Size(__pyx_args);
18608
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(1, 1, __pyx_L3_error)
18586
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
18609
18587
  #endif
18610
18588
  #endif
18611
18589
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -18668,10 +18646,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
18668
18646
  __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
18669
18647
  __pyx_v___pyx_state = values[2];
18670
18648
  }
18671
- goto __pyx_L4_argument_unpacking_done;
18649
+ goto __pyx_L6_skip;
18672
18650
  __pyx_L5_argtuple_error:;
18673
18651
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Enum", 1, 3, 3, __pyx_nargs); __PYX_ERR(1, 1, __pyx_L3_error)
18674
- goto __pyx_L3_error;
18652
+ __pyx_L6_skip:;
18653
+ goto __pyx_L4_argument_unpacking_done;
18675
18654
  __pyx_L3_error:;
18676
18655
  {
18677
18656
  Py_ssize_t __pyx_temp;
@@ -18709,7 +18688,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
18709
18688
  int __pyx_lineno = 0;
18710
18689
  const char *__pyx_filename = NULL;
18711
18690
  int __pyx_clineno = 0;
18712
- __Pyx_RefNannySetupContext("__pyx_unpickle_Enum", 0);
18691
+ __Pyx_RefNannySetupContext("__pyx_unpickle_Enum", 1);
18713
18692
 
18714
18693
  /* "(tree fragment)":4
18715
18694
  * cdef object __pyx_PickleError
@@ -18891,7 +18870,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
18891
18870
  int __pyx_lineno = 0;
18892
18871
  const char *__pyx_filename = NULL;
18893
18872
  int __pyx_clineno = 0;
18894
- __Pyx_RefNannySetupContext("__pyx_unpickle_Enum__set_state", 0);
18873
+ __Pyx_RefNannySetupContext("__pyx_unpickle_Enum__set_state", 1);
18895
18874
 
18896
18875
  /* "(tree fragment)":12
18897
18876
  * return __pyx_result
@@ -19007,7 +18986,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
19007
18986
  return __pyx_r;
19008
18987
  }
19009
18988
 
19010
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":246
18989
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":246
19011
18990
  *
19012
18991
  * @property
19013
18992
  * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
@@ -19018,7 +18997,7 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__
19018
18997
  static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) {
19019
18998
  PyObject *__pyx_r;
19020
18999
 
19021
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":249
19000
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":249
19022
19001
  * """Returns a borrowed reference to the object owning the data/memory.
19023
19002
  * """
19024
19003
  * return PyArray_BASE(self) # <<<<<<<<<<<<<<
@@ -19028,7 +19007,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
19028
19007
  __pyx_r = PyArray_BASE(__pyx_v_self);
19029
19008
  goto __pyx_L0;
19030
19009
 
19031
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":246
19010
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":246
19032
19011
  *
19033
19012
  * @property
19034
19013
  * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<<
@@ -19041,7 +19020,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject
19041
19020
  return __pyx_r;
19042
19021
  }
19043
19022
 
19044
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":252
19023
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":252
19045
19024
  *
19046
19025
  * @property
19047
19026
  * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
@@ -19053,9 +19032,9 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray
19053
19032
  PyArray_Descr *__pyx_r = NULL;
19054
19033
  __Pyx_RefNannyDeclarations
19055
19034
  PyArray_Descr *__pyx_t_1;
19056
- __Pyx_RefNannySetupContext("descr", 0);
19035
+ __Pyx_RefNannySetupContext("descr", 1);
19057
19036
 
19058
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":255
19037
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":255
19059
19038
  * """Returns an owned reference to the dtype of the array.
19060
19039
  * """
19061
19040
  * return <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
@@ -19068,7 +19047,7 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray
19068
19047
  __pyx_r = ((PyArray_Descr *)__pyx_t_1);
19069
19048
  goto __pyx_L0;
19070
19049
 
19071
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":252
19050
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":252
19072
19051
  *
19073
19052
  * @property
19074
19053
  * cdef inline dtype descr(self): # <<<<<<<<<<<<<<
@@ -19083,7 +19062,7 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray
19083
19062
  return __pyx_r;
19084
19063
  }
19085
19064
 
19086
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":258
19065
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":258
19087
19066
  *
19088
19067
  * @property
19089
19068
  * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
@@ -19094,7 +19073,7 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray
19094
19073
  static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) {
19095
19074
  int __pyx_r;
19096
19075
 
19097
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":261
19076
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":261
19098
19077
  * """Returns the number of dimensions in the array.
19099
19078
  * """
19100
19079
  * return PyArray_NDIM(self) # <<<<<<<<<<<<<<
@@ -19104,7 +19083,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx
19104
19083
  __pyx_r = PyArray_NDIM(__pyx_v_self);
19105
19084
  goto __pyx_L0;
19106
19085
 
19107
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":258
19086
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":258
19108
19087
  *
19109
19088
  * @property
19110
19089
  * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<<
@@ -19117,7 +19096,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx
19117
19096
  return __pyx_r;
19118
19097
  }
19119
19098
 
19120
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":264
19099
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":264
19121
19100
  *
19122
19101
  * @property
19123
19102
  * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
@@ -19128,7 +19107,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx
19128
19107
  static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) {
19129
19108
  npy_intp *__pyx_r;
19130
19109
 
19131
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":269
19110
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":269
19132
19111
  * Can return NULL for 0-dimensional arrays.
19133
19112
  * """
19134
19113
  * return PyArray_DIMS(self) # <<<<<<<<<<<<<<
@@ -19138,7 +19117,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec
19138
19117
  __pyx_r = PyArray_DIMS(__pyx_v_self);
19139
19118
  goto __pyx_L0;
19140
19119
 
19141
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":264
19120
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":264
19142
19121
  *
19143
19122
  * @property
19144
19123
  * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<<
@@ -19151,7 +19130,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec
19151
19130
  return __pyx_r;
19152
19131
  }
19153
19132
 
19154
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":272
19133
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":272
19155
19134
  *
19156
19135
  * @property
19157
19136
  * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
@@ -19162,7 +19141,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec
19162
19141
  static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) {
19163
19142
  npy_intp *__pyx_r;
19164
19143
 
19165
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":276
19144
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":276
19166
19145
  * The number of elements matches the number of dimensions of the array (ndim).
19167
19146
  * """
19168
19147
  * return PyArray_STRIDES(self) # <<<<<<<<<<<<<<
@@ -19172,7 +19151,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
19172
19151
  __pyx_r = PyArray_STRIDES(__pyx_v_self);
19173
19152
  goto __pyx_L0;
19174
19153
 
19175
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":272
19154
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":272
19176
19155
  *
19177
19156
  * @property
19178
19157
  * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<<
@@ -19185,7 +19164,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
19185
19164
  return __pyx_r;
19186
19165
  }
19187
19166
 
19188
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":279
19167
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":279
19189
19168
  *
19190
19169
  * @property
19191
19170
  * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
@@ -19196,7 +19175,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO
19196
19175
  static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) {
19197
19176
  npy_intp __pyx_r;
19198
19177
 
19199
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":282
19178
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":282
19200
19179
  * """Returns the total size (in number of elements) of the array.
19201
19180
  * """
19202
19181
  * return PyArray_SIZE(self) # <<<<<<<<<<<<<<
@@ -19206,7 +19185,7 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
19206
19185
  __pyx_r = PyArray_SIZE(__pyx_v_self);
19207
19186
  goto __pyx_L0;
19208
19187
 
19209
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":279
19188
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":279
19210
19189
  *
19211
19190
  * @property
19212
19191
  * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<<
@@ -19219,7 +19198,7 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
19219
19198
  return __pyx_r;
19220
19199
  }
19221
19200
 
19222
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":285
19201
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":285
19223
19202
  *
19224
19203
  * @property
19225
19204
  * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
@@ -19230,7 +19209,7 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *
19230
19209
  static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) {
19231
19210
  char *__pyx_r;
19232
19211
 
19233
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":291
19212
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":291
19234
19213
  * of `PyArray_DATA()` instead, which returns a 'void*'.
19235
19214
  * """
19236
19215
  * return PyArray_BYTES(self) # <<<<<<<<<<<<<<
@@ -19240,7 +19219,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
19240
19219
  __pyx_r = PyArray_BYTES(__pyx_v_self);
19241
19220
  goto __pyx_L0;
19242
19221
 
19243
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":285
19222
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":285
19244
19223
  *
19245
19224
  * @property
19246
19225
  * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<<
@@ -19253,7 +19232,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p
19253
19232
  return __pyx_r;
19254
19233
  }
19255
19234
 
19256
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":777
19235
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":777
19257
19236
  * ctypedef npy_cdouble complex_t
19258
19237
  *
19259
19238
  * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
@@ -19268,9 +19247,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__
19268
19247
  int __pyx_lineno = 0;
19269
19248
  const char *__pyx_filename = NULL;
19270
19249
  int __pyx_clineno = 0;
19271
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);
19250
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1);
19272
19251
 
19273
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":778
19252
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":778
19274
19253
  *
19275
19254
  * cdef inline object PyArray_MultiIterNew1(a):
19276
19255
  * return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
@@ -19284,7 +19263,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__
19284
19263
  __pyx_t_1 = 0;
19285
19264
  goto __pyx_L0;
19286
19265
 
19287
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":777
19266
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":777
19288
19267
  * ctypedef npy_cdouble complex_t
19289
19268
  *
19290
19269
  * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
@@ -19303,7 +19282,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__
19303
19282
  return __pyx_r;
19304
19283
  }
19305
19284
 
19306
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":780
19285
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":780
19307
19286
  * return PyArray_MultiIterNew(1, <void*>a)
19308
19287
  *
19309
19288
  * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
@@ -19318,9 +19297,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__
19318
19297
  int __pyx_lineno = 0;
19319
19298
  const char *__pyx_filename = NULL;
19320
19299
  int __pyx_clineno = 0;
19321
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);
19300
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1);
19322
19301
 
19323
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":781
19302
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":781
19324
19303
  *
19325
19304
  * cdef inline object PyArray_MultiIterNew2(a, b):
19326
19305
  * return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
@@ -19334,7 +19313,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__
19334
19313
  __pyx_t_1 = 0;
19335
19314
  goto __pyx_L0;
19336
19315
 
19337
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":780
19316
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":780
19338
19317
  * return PyArray_MultiIterNew(1, <void*>a)
19339
19318
  *
19340
19319
  * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
@@ -19353,7 +19332,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__
19353
19332
  return __pyx_r;
19354
19333
  }
19355
19334
 
19356
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":783
19335
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":783
19357
19336
  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
19358
19337
  *
19359
19338
  * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
@@ -19368,9 +19347,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
19368
19347
  int __pyx_lineno = 0;
19369
19348
  const char *__pyx_filename = NULL;
19370
19349
  int __pyx_clineno = 0;
19371
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);
19350
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1);
19372
19351
 
19373
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":784
19352
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":784
19374
19353
  *
19375
19354
  * cdef inline object PyArray_MultiIterNew3(a, b, c):
19376
19355
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
@@ -19384,7 +19363,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
19384
19363
  __pyx_t_1 = 0;
19385
19364
  goto __pyx_L0;
19386
19365
 
19387
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":783
19366
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":783
19388
19367
  * return PyArray_MultiIterNew(2, <void*>a, <void*>b)
19389
19368
  *
19390
19369
  * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
@@ -19403,7 +19382,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
19403
19382
  return __pyx_r;
19404
19383
  }
19405
19384
 
19406
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":786
19385
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":786
19407
19386
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
19408
19387
  *
19409
19388
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -19418,9 +19397,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
19418
19397
  int __pyx_lineno = 0;
19419
19398
  const char *__pyx_filename = NULL;
19420
19399
  int __pyx_clineno = 0;
19421
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);
19400
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1);
19422
19401
 
19423
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":787
19402
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":787
19424
19403
  *
19425
19404
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
19426
19405
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
@@ -19434,7 +19413,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
19434
19413
  __pyx_t_1 = 0;
19435
19414
  goto __pyx_L0;
19436
19415
 
19437
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":786
19416
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":786
19438
19417
  * return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
19439
19418
  *
19440
19419
  * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
@@ -19453,7 +19432,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
19453
19432
  return __pyx_r;
19454
19433
  }
19455
19434
 
19456
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":789
19435
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":789
19457
19436
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
19458
19437
  *
19459
19438
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -19468,9 +19447,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
19468
19447
  int __pyx_lineno = 0;
19469
19448
  const char *__pyx_filename = NULL;
19470
19449
  int __pyx_clineno = 0;
19471
- __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);
19450
+ __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1);
19472
19451
 
19473
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":790
19452
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":790
19474
19453
  *
19475
19454
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
19476
19455
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
@@ -19484,7 +19463,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
19484
19463
  __pyx_t_1 = 0;
19485
19464
  goto __pyx_L0;
19486
19465
 
19487
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":789
19466
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":789
19488
19467
  * return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
19489
19468
  *
19490
19469
  * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
@@ -19503,7 +19482,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
19503
19482
  return __pyx_r;
19504
19483
  }
19505
19484
 
19506
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":792
19485
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":792
19507
19486
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
19508
19487
  *
19509
19488
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -19515,9 +19494,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
19515
19494
  PyObject *__pyx_r = NULL;
19516
19495
  __Pyx_RefNannyDeclarations
19517
19496
  int __pyx_t_1;
19518
- __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0);
19497
+ __Pyx_RefNannySetupContext("PyDataType_SHAPE", 1);
19519
19498
 
19520
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":793
19499
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":793
19521
19500
  *
19522
19501
  * cdef inline tuple PyDataType_SHAPE(dtype d):
19523
19502
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -19527,7 +19506,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
19527
19506
  __pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d);
19528
19507
  if (__pyx_t_1) {
19529
19508
 
19530
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":794
19509
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":794
19531
19510
  * cdef inline tuple PyDataType_SHAPE(dtype d):
19532
19511
  * if PyDataType_HASSUBARRAY(d):
19533
19512
  * return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
@@ -19539,7 +19518,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
19539
19518
  __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
19540
19519
  goto __pyx_L0;
19541
19520
 
19542
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":793
19521
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":793
19543
19522
  *
19544
19523
  * cdef inline tuple PyDataType_SHAPE(dtype d):
19545
19524
  * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
@@ -19548,7 +19527,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
19548
19527
  */
19549
19528
  }
19550
19529
 
19551
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":796
19530
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":796
19552
19531
  * return <tuple>d.subarray.shape
19553
19532
  * else:
19554
19533
  * return () # <<<<<<<<<<<<<<
@@ -19562,7 +19541,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
19562
19541
  goto __pyx_L0;
19563
19542
  }
19564
19543
 
19565
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":792
19544
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":792
19566
19545
  * return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
19567
19546
  *
19568
19547
  * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
@@ -19577,7 +19556,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
19577
19556
  return __pyx_r;
19578
19557
  }
19579
19558
 
19580
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":971
19559
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":971
19581
19560
  * int _import_umath() except -1
19582
19561
  *
19583
19562
  * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
@@ -19586,10 +19565,8 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__
19586
19565
  */
19587
19566
 
19588
19567
  static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
19589
- __Pyx_RefNannyDeclarations
19590
- __Pyx_RefNannySetupContext("set_array_base", 0);
19591
19568
 
19592
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":972
19569
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":972
19593
19570
  *
19594
19571
  * cdef inline void set_array_base(ndarray arr, object base):
19595
19572
  * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
@@ -19598,7 +19575,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
19598
19575
  */
19599
19576
  Py_INCREF(__pyx_v_base);
19600
19577
 
19601
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":973
19578
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":973
19602
19579
  * cdef inline void set_array_base(ndarray arr, object base):
19603
19580
  * Py_INCREF(base) # important to do this before stealing the reference below!
19604
19581
  * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
@@ -19607,7 +19584,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
19607
19584
  */
19608
19585
  (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
19609
19586
 
19610
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":971
19587
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":971
19611
19588
  * int _import_umath() except -1
19612
19589
  *
19613
19590
  * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
@@ -19616,10 +19593,9 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
19616
19593
  */
19617
19594
 
19618
19595
  /* function exit code */
19619
- __Pyx_RefNannyFinishContext();
19620
19596
  }
19621
19597
 
19622
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":975
19598
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":975
19623
19599
  * PyArray_SetBaseObject(arr, base)
19624
19600
  *
19625
19601
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -19632,9 +19608,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19632
19608
  PyObject *__pyx_r = NULL;
19633
19609
  __Pyx_RefNannyDeclarations
19634
19610
  int __pyx_t_1;
19635
- __Pyx_RefNannySetupContext("get_array_base", 0);
19611
+ __Pyx_RefNannySetupContext("get_array_base", 1);
19636
19612
 
19637
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":976
19613
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":976
19638
19614
  *
19639
19615
  * cdef inline object get_array_base(ndarray arr):
19640
19616
  * base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
@@ -19643,7 +19619,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19643
19619
  */
19644
19620
  __pyx_v_base = PyArray_BASE(__pyx_v_arr);
19645
19621
 
19646
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":977
19622
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":977
19647
19623
  * cdef inline object get_array_base(ndarray arr):
19648
19624
  * base = PyArray_BASE(arr)
19649
19625
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -19653,7 +19629,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19653
19629
  __pyx_t_1 = (__pyx_v_base == NULL);
19654
19630
  if (__pyx_t_1) {
19655
19631
 
19656
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":978
19632
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":978
19657
19633
  * base = PyArray_BASE(arr)
19658
19634
  * if base is NULL:
19659
19635
  * return None # <<<<<<<<<<<<<<
@@ -19664,7 +19640,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19664
19640
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19665
19641
  goto __pyx_L0;
19666
19642
 
19667
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":977
19643
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":977
19668
19644
  * cdef inline object get_array_base(ndarray arr):
19669
19645
  * base = PyArray_BASE(arr)
19670
19646
  * if base is NULL: # <<<<<<<<<<<<<<
@@ -19673,7 +19649,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19673
19649
  */
19674
19650
  }
19675
19651
 
19676
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":979
19652
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":979
19677
19653
  * if base is NULL:
19678
19654
  * return None
19679
19655
  * return <object>base # <<<<<<<<<<<<<<
@@ -19685,7 +19661,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19685
19661
  __pyx_r = ((PyObject *)__pyx_v_base);
19686
19662
  goto __pyx_L0;
19687
19663
 
19688
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":975
19664
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":975
19689
19665
  * PyArray_SetBaseObject(arr, base)
19690
19666
  *
19691
19667
  * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
@@ -19700,7 +19676,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
19700
19676
  return __pyx_r;
19701
19677
  }
19702
19678
 
19703
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":983
19679
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":983
19704
19680
  * # Versions of the import_* functions which are more suitable for
19705
19681
  * # Cython code.
19706
19682
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -19722,9 +19698,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19722
19698
  int __pyx_lineno = 0;
19723
19699
  const char *__pyx_filename = NULL;
19724
19700
  int __pyx_clineno = 0;
19725
- __Pyx_RefNannySetupContext("import_array", 0);
19701
+ __Pyx_RefNannySetupContext("import_array", 1);
19726
19702
 
19727
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":984
19703
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":984
19728
19704
  * # Cython code.
19729
19705
  * cdef inline int import_array() except -1:
19730
19706
  * try: # <<<<<<<<<<<<<<
@@ -19740,7 +19716,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19740
19716
  __Pyx_XGOTREF(__pyx_t_3);
19741
19717
  /*try:*/ {
19742
19718
 
19743
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":985
19719
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":985
19744
19720
  * cdef inline int import_array() except -1:
19745
19721
  * try:
19746
19722
  * __pyx_import_array() # <<<<<<<<<<<<<<
@@ -19749,7 +19725,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19749
19725
  */
19750
19726
  __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 985, __pyx_L3_error)
19751
19727
 
19752
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":984
19728
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":984
19753
19729
  * # Cython code.
19754
19730
  * cdef inline int import_array() except -1:
19755
19731
  * try: # <<<<<<<<<<<<<<
@@ -19763,7 +19739,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19763
19739
  goto __pyx_L8_try_end;
19764
19740
  __pyx_L3_error:;
19765
19741
 
19766
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":986
19742
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":986
19767
19743
  * try:
19768
19744
  * __pyx_import_array()
19769
19745
  * except Exception: # <<<<<<<<<<<<<<
@@ -19778,7 +19754,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19778
19754
  __Pyx_XGOTREF(__pyx_t_6);
19779
19755
  __Pyx_XGOTREF(__pyx_t_7);
19780
19756
 
19781
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":987
19757
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":987
19782
19758
  * __pyx_import_array()
19783
19759
  * except Exception:
19784
19760
  * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
@@ -19793,7 +19769,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19793
19769
  }
19794
19770
  goto __pyx_L5_except_error;
19795
19771
 
19796
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":984
19772
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":984
19797
19773
  * # Cython code.
19798
19774
  * cdef inline int import_array() except -1:
19799
19775
  * try: # <<<<<<<<<<<<<<
@@ -19809,7 +19785,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19809
19785
  __pyx_L8_try_end:;
19810
19786
  }
19811
19787
 
19812
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":983
19788
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":983
19813
19789
  * # Versions of the import_* functions which are more suitable for
19814
19790
  * # Cython code.
19815
19791
  * cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
@@ -19832,7 +19808,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
19832
19808
  return __pyx_r;
19833
19809
  }
19834
19810
 
19835
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":989
19811
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":989
19836
19812
  * raise ImportError("numpy.core.multiarray failed to import")
19837
19813
  *
19838
19814
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
@@ -19854,9 +19830,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19854
19830
  int __pyx_lineno = 0;
19855
19831
  const char *__pyx_filename = NULL;
19856
19832
  int __pyx_clineno = 0;
19857
- __Pyx_RefNannySetupContext("import_umath", 0);
19833
+ __Pyx_RefNannySetupContext("import_umath", 1);
19858
19834
 
19859
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":990
19835
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":990
19860
19836
  *
19861
19837
  * cdef inline int import_umath() except -1:
19862
19838
  * try: # <<<<<<<<<<<<<<
@@ -19872,7 +19848,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19872
19848
  __Pyx_XGOTREF(__pyx_t_3);
19873
19849
  /*try:*/ {
19874
19850
 
19875
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":991
19851
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":991
19876
19852
  * cdef inline int import_umath() except -1:
19877
19853
  * try:
19878
19854
  * _import_umath() # <<<<<<<<<<<<<<
@@ -19881,7 +19857,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19881
19857
  */
19882
19858
  __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 991, __pyx_L3_error)
19883
19859
 
19884
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":990
19860
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":990
19885
19861
  *
19886
19862
  * cdef inline int import_umath() except -1:
19887
19863
  * try: # <<<<<<<<<<<<<<
@@ -19895,7 +19871,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19895
19871
  goto __pyx_L8_try_end;
19896
19872
  __pyx_L3_error:;
19897
19873
 
19898
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":992
19874
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":992
19899
19875
  * try:
19900
19876
  * _import_umath()
19901
19877
  * except Exception: # <<<<<<<<<<<<<<
@@ -19910,7 +19886,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19910
19886
  __Pyx_XGOTREF(__pyx_t_6);
19911
19887
  __Pyx_XGOTREF(__pyx_t_7);
19912
19888
 
19913
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":993
19889
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":993
19914
19890
  * _import_umath()
19915
19891
  * except Exception:
19916
19892
  * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
@@ -19925,7 +19901,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19925
19901
  }
19926
19902
  goto __pyx_L5_except_error;
19927
19903
 
19928
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":990
19904
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":990
19929
19905
  *
19930
19906
  * cdef inline int import_umath() except -1:
19931
19907
  * try: # <<<<<<<<<<<<<<
@@ -19941,7 +19917,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19941
19917
  __pyx_L8_try_end:;
19942
19918
  }
19943
19919
 
19944
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":989
19920
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":989
19945
19921
  * raise ImportError("numpy.core.multiarray failed to import")
19946
19922
  *
19947
19923
  * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
@@ -19964,7 +19940,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
19964
19940
  return __pyx_r;
19965
19941
  }
19966
19942
 
19967
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":995
19943
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":995
19968
19944
  * raise ImportError("numpy.core.umath failed to import")
19969
19945
  *
19970
19946
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
@@ -19986,9 +19962,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
19986
19962
  int __pyx_lineno = 0;
19987
19963
  const char *__pyx_filename = NULL;
19988
19964
  int __pyx_clineno = 0;
19989
- __Pyx_RefNannySetupContext("import_ufunc", 0);
19965
+ __Pyx_RefNannySetupContext("import_ufunc", 1);
19990
19966
 
19991
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":996
19967
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":996
19992
19968
  *
19993
19969
  * cdef inline int import_ufunc() except -1:
19994
19970
  * try: # <<<<<<<<<<<<<<
@@ -20004,7 +19980,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20004
19980
  __Pyx_XGOTREF(__pyx_t_3);
20005
19981
  /*try:*/ {
20006
19982
 
20007
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":997
19983
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":997
20008
19984
  * cdef inline int import_ufunc() except -1:
20009
19985
  * try:
20010
19986
  * _import_umath() # <<<<<<<<<<<<<<
@@ -20013,7 +19989,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20013
19989
  */
20014
19990
  __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 997, __pyx_L3_error)
20015
19991
 
20016
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":996
19992
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":996
20017
19993
  *
20018
19994
  * cdef inline int import_ufunc() except -1:
20019
19995
  * try: # <<<<<<<<<<<<<<
@@ -20027,7 +20003,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20027
20003
  goto __pyx_L8_try_end;
20028
20004
  __pyx_L3_error:;
20029
20005
 
20030
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":998
20006
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":998
20031
20007
  * try:
20032
20008
  * _import_umath()
20033
20009
  * except Exception: # <<<<<<<<<<<<<<
@@ -20042,7 +20018,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20042
20018
  __Pyx_XGOTREF(__pyx_t_6);
20043
20019
  __Pyx_XGOTREF(__pyx_t_7);
20044
20020
 
20045
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":999
20021
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":999
20046
20022
  * _import_umath()
20047
20023
  * except Exception:
20048
20024
  * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
@@ -20057,7 +20033,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20057
20033
  }
20058
20034
  goto __pyx_L5_except_error;
20059
20035
 
20060
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":996
20036
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":996
20061
20037
  *
20062
20038
  * cdef inline int import_ufunc() except -1:
20063
20039
  * try: # <<<<<<<<<<<<<<
@@ -20073,7 +20049,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20073
20049
  __pyx_L8_try_end:;
20074
20050
  }
20075
20051
 
20076
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":995
20052
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":995
20077
20053
  * raise ImportError("numpy.core.umath failed to import")
20078
20054
  *
20079
20055
  * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
@@ -20096,7 +20072,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20096
20072
  return __pyx_r;
20097
20073
  }
20098
20074
 
20099
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1002
20075
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1002
20100
20076
  *
20101
20077
  *
20102
20078
  * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
@@ -20106,10 +20082,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
20106
20082
 
20107
20083
  static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
20108
20084
  int __pyx_r;
20109
- __Pyx_RefNannyDeclarations
20110
- __Pyx_RefNannySetupContext("is_timedelta64_object", 0);
20111
20085
 
20112
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1014
20086
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1014
20113
20087
  * bool
20114
20088
  * """
20115
20089
  * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<<
@@ -20119,7 +20093,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
20119
20093
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
20120
20094
  goto __pyx_L0;
20121
20095
 
20122
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1002
20096
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1002
20123
20097
  *
20124
20098
  *
20125
20099
  * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<<
@@ -20129,11 +20103,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
20129
20103
 
20130
20104
  /* function exit code */
20131
20105
  __pyx_L0:;
20132
- __Pyx_RefNannyFinishContext();
20133
20106
  return __pyx_r;
20134
20107
  }
20135
20108
 
20136
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1017
20109
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1017
20137
20110
  *
20138
20111
  *
20139
20112
  * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
@@ -20143,10 +20116,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_
20143
20116
 
20144
20117
  static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
20145
20118
  int __pyx_r;
20146
- __Pyx_RefNannyDeclarations
20147
- __Pyx_RefNannySetupContext("is_datetime64_object", 0);
20148
20119
 
20149
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1029
20120
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1029
20150
20121
  * bool
20151
20122
  * """
20152
20123
  * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<<
@@ -20156,7 +20127,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
20156
20127
  __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
20157
20128
  goto __pyx_L0;
20158
20129
 
20159
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1017
20130
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1017
20160
20131
  *
20161
20132
  *
20162
20133
  * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<<
@@ -20166,11 +20137,10 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
20166
20137
 
20167
20138
  /* function exit code */
20168
20139
  __pyx_L0:;
20169
- __Pyx_RefNannyFinishContext();
20170
20140
  return __pyx_r;
20171
20141
  }
20172
20142
 
20173
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1032
20143
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1032
20174
20144
  *
20175
20145
  *
20176
20146
  * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
@@ -20181,7 +20151,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o
20181
20151
  static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
20182
20152
  npy_datetime __pyx_r;
20183
20153
 
20184
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1039
20154
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1039
20185
20155
  * also needed. That can be found using `get_datetime64_unit`.
20186
20156
  * """
20187
20157
  * return (<PyDatetimeScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -20191,7 +20161,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
20191
20161
  __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
20192
20162
  goto __pyx_L0;
20193
20163
 
20194
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1032
20164
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1032
20195
20165
  *
20196
20166
  *
20197
20167
  * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<<
@@ -20204,7 +20174,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
20204
20174
  return __pyx_r;
20205
20175
  }
20206
20176
 
20207
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1042
20177
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1042
20208
20178
  *
20209
20179
  *
20210
20180
  * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
@@ -20215,7 +20185,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *
20215
20185
  static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
20216
20186
  npy_timedelta __pyx_r;
20217
20187
 
20218
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1046
20188
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1046
20219
20189
  * returns the int64 value underlying scalar numpy timedelta64 object
20220
20190
  * """
20221
20191
  * return (<PyTimedeltaScalarObject*>obj).obval # <<<<<<<<<<<<<<
@@ -20225,7 +20195,7 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
20225
20195
  __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
20226
20196
  goto __pyx_L0;
20227
20197
 
20228
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1042
20198
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1042
20229
20199
  *
20230
20200
  *
20231
20201
  * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<<
@@ -20238,7 +20208,7 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
20238
20208
  return __pyx_r;
20239
20209
  }
20240
20210
 
20241
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1049
20211
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1049
20242
20212
  *
20243
20213
  *
20244
20214
  * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
@@ -20249,7 +20219,7 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject
20249
20219
  static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
20250
20220
  NPY_DATETIMEUNIT __pyx_r;
20251
20221
 
20252
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1053
20222
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1053
20253
20223
  * returns the unit part of the dtype for a numpy datetime64 object.
20254
20224
  * """
20255
20225
  * return <NPY_DATETIMEUNIT>(<PyDatetimeScalarObject*>obj).obmeta.base # <<<<<<<<<<<<<<
@@ -20257,7 +20227,7 @@ static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObjec
20257
20227
  __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
20258
20228
  goto __pyx_L0;
20259
20229
 
20260
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1049
20230
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":1049
20261
20231
  *
20262
20232
  *
20263
20233
  * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<<
@@ -20311,8 +20281,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
20311
20281
  #if CYTHON_ASSUME_SAFE_MACROS
20312
20282
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
20313
20283
  #else
20314
- __pyx_nargs = PyTuple_Size(__pyx_args);
20315
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(0, 32, __pyx_L3_error)
20284
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
20316
20285
  #endif
20317
20286
  #endif
20318
20287
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -20347,10 +20316,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
20347
20316
  }
20348
20317
  __pyx_v_file = values[0];
20349
20318
  }
20350
- goto __pyx_L4_argument_unpacking_done;
20319
+ goto __pyx_L6_skip;
20351
20320
  __pyx_L5_argtuple_error:;
20352
20321
  __Pyx_RaiseArgtupleInvalid("get_model_count", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32, __pyx_L3_error)
20353
- goto __pyx_L3_error;
20322
+ __pyx_L6_skip:;
20323
+ goto __pyx_L4_argument_unpacking_done;
20354
20324
  __pyx_L3_error:;
20355
20325
  {
20356
20326
  Py_ssize_t __pyx_temp;
@@ -20382,7 +20352,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_get_model_
20382
20352
  int __pyx_lineno = 0;
20383
20353
  const char *__pyx_filename = NULL;
20384
20354
  int __pyx_clineno = 0;
20385
- __Pyx_RefNannySetupContext("get_model_count", 0);
20355
+ __Pyx_RefNannySetupContext("get_model_count", 1);
20386
20356
 
20387
20357
  /* "biotite/structure/io/mmtf/convertfile.pyx":46
20388
20358
  * The number of models.
@@ -20433,7 +20403,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_10__defaul
20433
20403
  int __pyx_lineno = 0;
20434
20404
  const char *__pyx_filename = NULL;
20435
20405
  int __pyx_clineno = 0;
20436
- __Pyx_RefNannySetupContext("__defaults__", 0);
20406
+ __Pyx_RefNannySetupContext("__defaults__", 1);
20437
20407
  __Pyx_XDECREF(__pyx_r);
20438
20408
 
20439
20409
  /* "biotite/structure/io/mmtf/convertfile.pyx":50
@@ -20497,7 +20467,7 @@ PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
20497
20467
  PyObject *__pyx_args, PyObject *__pyx_kwds
20498
20468
  #endif
20499
20469
  ); /*proto*/
20500
- PyDoc_STRVAR(__pyx_doc_7biotite_9structure_2io_4mmtf_11convertfile_2get_structure, "\n get_structure(file, model=None, altloc=[], extra_fields=[],\n include_bonds=False)\n \n Get an :class:`AtomArray` or :class:`AtomArrayStack` from the MMTF file.\n \n Parameters\n ----------\n file : MMTFFile\n The file object.\n model : int, optional\n If this parameter is given, the function will return an\n :class:`AtomArray` from the atoms corresponding to the given\n model number (starting at 1).\n Negative values are used to index models starting from the last\n model insted of the first model.\n If this parameter is omitted, an :class:`AtomArrayStack`\n containing all models will be returned, even if the structure\n contains only one model.\n altloc : {'first', 'occupancy', 'all'}\n This parameter defines how *altloc* IDs are handled:\n - ``'first'`` - Use atoms that have the first *altloc* ID\n appearing in a residue.\n - ``'occupancy'`` - Use atoms that have the *altloc* ID\n with the highest occupancy for a residue.\n - ``'all'`` - Use all atoms.\n Note that this leads to duplicate atoms.\n When this option is chosen, the ``altloc_id`` annotation\n array is added to the returned structure.\n extra_fields : list of str, optional\n The strings in the list are optional annotation categories\n that should be stored in the output array or stack.\n These are valid values:\n ``'atom_id'``, ``'b_factor'``, ``'occupancy'`` and ``'charge'``.\n include_bonds : bool, optional\n If set to true, a :class:`BondList` will be created for the\n resulting :class:`AtomArray` containing the bond information\n from the file.\n \n Returns\n -------\n array : AtomArray or AtomArrayStack\n The return type depends on the `model` parameter.\n \n Examples\n --------\n\n >>> import os.path""\n >>> file = MMTFFile.read(os.path.join(path_to_structures, \"1l2y.mmtf\"))\n >>> array = get_structure(file, model=1)\n >>> print(array.array_length())\n 304\n >>> stack = get_structure(file)\n >>> print(stack.stack_depth(), stack.array_length())\n 38 304\n ");
20470
+ PyDoc_STRVAR(__pyx_doc_7biotite_9structure_2io_4mmtf_11convertfile_2get_structure, "\n get_structure(file, model=None, altloc=[], extra_fields=[],\n include_bonds=False)\n\n Get an :class:`AtomArray` or :class:`AtomArrayStack` from the MMTF file.\n\n Parameters\n ----------\n file : MMTFFile\n The file object.\n model : int, optional\n If this parameter is given, the function will return an\n :class:`AtomArray` from the atoms corresponding to the given\n model number (starting at 1).\n Negative values are used to index models starting from the last\n model insted of the first model.\n If this parameter is omitted, an :class:`AtomArrayStack`\n containing all models will be returned, even if the structure\n contains only one model.\n altloc : {'first', 'occupancy', 'all'}\n This parameter defines how *altloc* IDs are handled:\n - ``'first'`` - Use atoms that have the first *altloc* ID\n appearing in a residue.\n - ``'occupancy'`` - Use atoms that have the *altloc* ID\n with the highest occupancy for a residue.\n - ``'all'`` - Use all atoms.\n Note that this leads to duplicate atoms.\n When this option is chosen, the ``altloc_id`` annotation\n array is added to the returned structure.\n extra_fields : list of str, optional\n The strings in the list are optional annotation categories\n that should be stored in the output array or stack.\n These are valid values:\n ``'atom_id'``, ``'b_factor'``, ``'occupancy'`` and ``'charge'``.\n include_bonds : bool, optional\n If set to true, a :class:`BondList` will be created for the\n resulting :class:`AtomArray` containing the bond information\n from the file.\n\n Returns\n -------\n array : AtomArray or AtomArrayStack\n The return type depends on the `model` parameter.\n\n Examples\n --------\n\n >>> import os.path\n >>> file = ""MMTFFile.read(os.path.join(path_to_structures, \"1l2y.mmtf\"))\n >>> array = get_structure(file, model=1)\n >>> print(array.array_length())\n 304\n >>> stack = get_structure(file)\n >>> print(stack.stack_depth(), stack.array_length())\n 38 304\n ");
20501
20471
  static PyMethodDef __pyx_mdef_7biotite_9structure_2io_4mmtf_11convertfile_3get_structure = {"get_structure", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_7biotite_9structure_2io_4mmtf_11convertfile_3get_structure, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_7biotite_9structure_2io_4mmtf_11convertfile_2get_structure};
20502
20472
  static PyObject *__pyx_pw_7biotite_9structure_2io_4mmtf_11convertfile_3get_structure(PyObject *__pyx_self,
20503
20473
  #if CYTHON_METH_FASTCALL
@@ -20526,8 +20496,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
20526
20496
  #if CYTHON_ASSUME_SAFE_MACROS
20527
20497
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
20528
20498
  #else
20529
- __pyx_nargs = PyTuple_Size(__pyx_args);
20530
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(0, 49, __pyx_L3_error)
20499
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
20531
20500
  #endif
20532
20501
  #endif
20533
20502
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -20617,10 +20586,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
20617
20586
  __pyx_v_extra_fields = values[3];
20618
20587
  __pyx_v_include_bonds = values[4];
20619
20588
  }
20620
- goto __pyx_L4_argument_unpacking_done;
20589
+ goto __pyx_L6_skip;
20621
20590
  __pyx_L5_argtuple_error:;
20622
20591
  __Pyx_RaiseArgtupleInvalid("get_structure", 0, 1, 5, __pyx_nargs); __PYX_ERR(0, 49, __pyx_L3_error)
20623
- goto __pyx_L3_error;
20592
+ __pyx_L6_skip:;
20593
+ goto __pyx_L4_argument_unpacking_done;
20624
20594
  __pyx_L3_error:;
20625
20595
  {
20626
20596
  Py_ssize_t __pyx_temp;
@@ -21203,7 +21173,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21203
21173
  * for i in range(len(group_list)):
21204
21174
  * atoms_per_res[i] = len(group_list[i]["atomNameList"]) # <<<<<<<<<<<<<<
21205
21175
  * cdef int32 max_atoms_per_res = np.max(atoms_per_res)
21206
- * #Create the arrays
21176
+ * # Create the arrays
21207
21177
  */
21208
21178
  if (unlikely(__pyx_v_group_list == Py_None)) {
21209
21179
  PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
@@ -21226,8 +21196,8 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21226
21196
  * for i in range(len(group_list)):
21227
21197
  * atoms_per_res[i] = len(group_list[i]["atomNameList"])
21228
21198
  * cdef int32 max_atoms_per_res = np.max(atoms_per_res) # <<<<<<<<<<<<<<
21229
- * #Create the arrays
21230
- * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U3")
21199
+ * # Create the arrays
21200
+ * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U5")
21231
21201
  */
21232
21202
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L1_error)
21233
21203
  __Pyx_GOTREF(__pyx_t_3);
@@ -21262,8 +21232,8 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21262
21232
 
21263
21233
  /* "biotite/structure/io/mmtf/convertfile.pyx":146
21264
21234
  * cdef int32 max_atoms_per_res = np.max(atoms_per_res)
21265
- * #Create the arrays
21266
- * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U3") # <<<<<<<<<<<<<<
21235
+ * # Create the arrays
21236
+ * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U5") # <<<<<<<<<<<<<<
21267
21237
  * cdef np.ndarray hetero_res = np.zeros(len(group_list), dtype=bool)
21268
21238
  * cdef np.ndarray atom_names = np.zeros((len(group_list), max_atoms_per_res),
21269
21239
  */
@@ -21286,7 +21256,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21286
21256
  __pyx_t_1 = 0;
21287
21257
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 146, __pyx_L1_error)
21288
21258
  __Pyx_GOTREF(__pyx_t_1);
21289
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_n_u_U3) < 0) __PYX_ERR(0, 146, __pyx_L1_error)
21259
+ if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_n_u_U5) < 0) __PYX_ERR(0, 146, __pyx_L1_error)
21290
21260
  __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 146, __pyx_L1_error)
21291
21261
  __Pyx_GOTREF(__pyx_t_6);
21292
21262
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
@@ -21297,8 +21267,8 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21297
21267
  __pyx_t_6 = 0;
21298
21268
 
21299
21269
  /* "biotite/structure/io/mmtf/convertfile.pyx":147
21300
- * #Create the arrays
21301
- * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U3")
21270
+ * # Create the arrays
21271
+ * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U5")
21302
21272
  * cdef np.ndarray hetero_res = np.zeros(len(group_list), dtype=bool) # <<<<<<<<<<<<<<
21303
21273
  * cdef np.ndarray atom_names = np.zeros((len(group_list), max_atoms_per_res),
21304
21274
  * dtype="U6")
@@ -21333,7 +21303,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21333
21303
  __pyx_t_5 = 0;
21334
21304
 
21335
21305
  /* "biotite/structure/io/mmtf/convertfile.pyx":148
21336
- * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U3")
21306
+ * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U5")
21337
21307
  * cdef np.ndarray hetero_res = np.zeros(len(group_list), dtype=bool)
21338
21308
  * cdef np.ndarray atom_names = np.zeros((len(group_list), max_atoms_per_res), # <<<<<<<<<<<<<<
21339
21309
  * dtype="U6")
@@ -21379,7 +21349,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21379
21349
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_n_u_U6) < 0) __PYX_ERR(0, 149, __pyx_L1_error)
21380
21350
 
21381
21351
  /* "biotite/structure/io/mmtf/convertfile.pyx":148
21382
- * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U3")
21352
+ * cdef np.ndarray res_names = np.zeros(len(group_list), dtype="U5")
21383
21353
  * cdef np.ndarray hetero_res = np.zeros(len(group_list), dtype=bool)
21384
21354
  * cdef np.ndarray atom_names = np.zeros((len(group_list), max_atoms_per_res), # <<<<<<<<<<<<<<
21385
21355
  * dtype="U6")
@@ -21761,7 +21731,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
21761
21731
  }
21762
21732
  #endif
21763
21733
  {
21764
- PyObject *__pyx_callargs[1] = {__pyx_t_5, };
21734
+ PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
21765
21735
  __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_2, 0+__pyx_t_2);
21766
21736
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
21767
21737
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 177, __pyx_L1_error)
@@ -23669,7 +23639,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_2get_struc
23669
23639
  }
23670
23640
  #endif
23671
23641
  {
23672
- PyObject *__pyx_callargs[1] = {__pyx_t_14, };
23642
+ PyObject *__pyx_callargs[2] = {__pyx_t_14, NULL};
23673
23643
  __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_13, __pyx_callargs+1-__pyx_t_2, 0+__pyx_t_2);
23674
23644
  __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
23675
23645
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 291, __pyx_L1_error)
@@ -24146,8 +24116,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
24146
24116
  #if CYTHON_ASSUME_SAFE_MACROS
24147
24117
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
24148
24118
  #else
24149
- __pyx_nargs = PyTuple_Size(__pyx_args);
24150
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(0, 316, __pyx_L3_error)
24119
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
24151
24120
  #endif
24152
24121
  #endif
24153
24122
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -24224,10 +24193,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
24224
24193
  __pyx_v_res_per_chain = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_7biotite_9structure_2io_4mmtf_11convertfile_int32(values[2], PyBUF_WRITABLE); if (unlikely(!__pyx_v_res_per_chain.memview)) __PYX_ERR(0, 318, __pyx_L3_error)
24225
24194
  __pyx_v_atoms_per_res = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_7biotite_9structure_2io_4mmtf_11convertfile_int32(values[3], PyBUF_WRITABLE); if (unlikely(!__pyx_v_atoms_per_res.memview)) __PYX_ERR(0, 319, __pyx_L3_error)
24226
24195
  }
24227
- goto __pyx_L4_argument_unpacking_done;
24196
+ goto __pyx_L6_skip;
24228
24197
  __pyx_L5_argtuple_error:;
24229
24198
  __Pyx_RaiseArgtupleInvalid("_get_model_lengths", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 316, __pyx_L3_error)
24230
- goto __pyx_L3_error;
24199
+ __pyx_L6_skip:;
24200
+ goto __pyx_L4_argument_unpacking_done;
24231
24201
  __pyx_L3_error:;
24232
24202
  {
24233
24203
  Py_ssize_t __pyx_temp;
@@ -24286,7 +24256,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_4_get_mode
24286
24256
  int __pyx_lineno = 0;
24287
24257
  const char *__pyx_filename = NULL;
24288
24258
  int __pyx_clineno = 0;
24289
- __Pyx_RefNannySetupContext("_get_model_lengths", 0);
24259
+ __Pyx_RefNannySetupContext("_get_model_lengths", 1);
24290
24260
 
24291
24261
  /* "biotite/structure/io/mmtf/convertfile.pyx":320
24292
24262
  * int32[:] res_per_chain,
@@ -24686,8 +24656,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
24686
24656
  #if CYTHON_ASSUME_SAFE_MACROS
24687
24657
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
24688
24658
  #else
24689
- __pyx_nargs = PyTuple_Size(__pyx_args);
24690
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(0, 347, __pyx_L3_error)
24659
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
24691
24660
  #endif
24692
24661
  #endif
24693
24662
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -24918,10 +24887,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
24918
24887
  __pyx_v_elements = ((PyArrayObject *)values[13]);
24919
24888
  __pyx_v_charges = ((PyArrayObject *)values[14]);
24920
24889
  }
24921
- goto __pyx_L4_argument_unpacking_done;
24890
+ goto __pyx_L6_skip;
24922
24891
  __pyx_L5_argtuple_error:;
24923
24892
  __Pyx_RaiseArgtupleInvalid("_fill_annotations", 1, 15, 15, __pyx_nargs); __PYX_ERR(0, 347, __pyx_L3_error)
24924
- goto __pyx_L3_error;
24893
+ __pyx_L6_skip:;
24894
+ goto __pyx_L4_argument_unpacking_done;
24925
24895
  __pyx_L3_error:;
24926
24896
  {
24927
24897
  Py_ssize_t __pyx_temp;
@@ -25005,7 +24975,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_6_fill_ann
25005
24975
  int __pyx_lineno = 0;
25006
24976
  const char *__pyx_filename = NULL;
25007
24977
  int __pyx_clineno = 0;
25008
- __Pyx_RefNannySetupContext("_fill_annotations", 0);
24978
+ __Pyx_RefNannySetupContext("_fill_annotations", 1);
25009
24979
 
25010
24980
  /* "biotite/structure/io/mmtf/convertfile.pyx":362
25011
24981
  * np.ndarray charges):
@@ -25413,7 +25383,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_6_fill_ann
25413
25383
  }
25414
25384
  #endif
25415
25385
  {
25416
- PyObject *__pyx_callargs[1] = {__pyx_t_11, };
25386
+ PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
25417
25387
  __pyx_t_10 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_12, 0+__pyx_t_12);
25418
25388
  __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
25419
25389
  if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 407, __pyx_L1_error)
@@ -25704,8 +25674,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
25704
25674
  #if CYTHON_ASSUME_SAFE_MACROS
25705
25675
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
25706
25676
  #else
25707
- __pyx_nargs = PyTuple_Size(__pyx_args);
25708
- if (unlikely((__pyx_nargs < 0))) __PYX_ERR(0, 429, __pyx_L3_error)
25677
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
25709
25678
  #endif
25710
25679
  #endif
25711
25680
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
@@ -25880,10 +25849,11 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
25880
25849
  __pyx_v_res_per_chain = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_7biotite_9structure_2io_4mmtf_11convertfile_int32(values[9], PyBUF_WRITABLE); if (unlikely(!__pyx_v_res_per_chain.memview)) __PYX_ERR(0, 433, __pyx_L3_error)
25881
25850
  __pyx_v_chains_per_model = __Pyx_PyObject_to_MemoryviewSlice_ds_nn___pyx_t_7biotite_9structure_2io_4mmtf_11convertfile_int32(values[10], PyBUF_WRITABLE); if (unlikely(!__pyx_v_chains_per_model.memview)) __PYX_ERR(0, 433, __pyx_L3_error)
25882
25851
  }
25883
- goto __pyx_L4_argument_unpacking_done;
25852
+ goto __pyx_L6_skip;
25884
25853
  __pyx_L5_argtuple_error:;
25885
25854
  __Pyx_RaiseArgtupleInvalid("_create_bond_list", 1, 11, 11, __pyx_nargs); __PYX_ERR(0, 429, __pyx_L3_error)
25886
- goto __pyx_L3_error;
25855
+ __pyx_L6_skip:;
25856
+ goto __pyx_L4_argument_unpacking_done;
25887
25857
  __pyx_L3_error:;
25888
25858
  {
25889
25859
  Py_ssize_t __pyx_temp;
@@ -25962,7 +25932,7 @@ static PyObject *__pyx_pf_7biotite_9structure_2io_4mmtf_11convertfile_8_create_b
25962
25932
  int __pyx_lineno = 0;
25963
25933
  const char *__pyx_filename = NULL;
25964
25934
  int __pyx_clineno = 0;
25965
- __Pyx_RefNannySetupContext("_create_bond_list", 0);
25935
+ __Pyx_RefNannySetupContext("_create_bond_list", 1);
25966
25936
 
25967
25937
  /* "biotite/structure/io/mmtf/convertfile.pyx":434
25968
25938
  * int32[:] atoms_per_res,
@@ -28033,7 +28003,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
28033
28003
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
28034
28004
  {&__pyx_n_u_U1, __pyx_k_U1, sizeof(__pyx_k_U1), 0, 1, 0, 1},
28035
28005
  {&__pyx_n_u_U2, __pyx_k_U2, sizeof(__pyx_k_U2), 0, 1, 0, 1},
28036
- {&__pyx_n_u_U3, __pyx_k_U3, sizeof(__pyx_k_U3), 0, 1, 0, 1},
28006
+ {&__pyx_n_u_U5, __pyx_k_U5, sizeof(__pyx_k_U5), 0, 1, 0, 1},
28037
28007
  {&__pyx_n_u_U6, __pyx_k_U6, sizeof(__pyx_k_U6), 0, 1, 0, 1},
28038
28008
  {&__pyx_kp_s_Unable_to_convert_item_to_object, __pyx_k_Unable_to_convert_item_to_object, sizeof(__pyx_k_Unable_to_convert_item_to_object), 0, 0, 1, 0},
28039
28009
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
@@ -28355,7 +28325,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
28355
28325
  __Pyx_GOTREF(__pyx_tuple__8);
28356
28326
  __Pyx_GIVEREF(__pyx_tuple__8);
28357
28327
 
28358
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":987
28328
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":987
28359
28329
  * __pyx_import_array()
28360
28330
  * except Exception:
28361
28331
  * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
@@ -28366,7 +28336,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
28366
28336
  __Pyx_GOTREF(__pyx_tuple__9);
28367
28337
  __Pyx_GIVEREF(__pyx_tuple__9);
28368
28338
 
28369
- /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-q868mev_/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":993
28339
+ /* "../../../../../private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-build-env-920dofd5/overlay/lib/python3.10/site-packages/numpy/__init__.cython-30.pxd":993
28370
28340
  * _import_umath()
28371
28341
  * except Exception:
28372
28342
  * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
@@ -28884,33 +28854,33 @@ static int __Pyx_modinit_type_import_code(void) {
28884
28854
  /*--- Type import code ---*/
28885
28855
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
28886
28856
  __Pyx_GOTREF(__pyx_t_1);
28887
- __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_2(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
28857
+ __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
28888
28858
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
28889
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyTypeObject),
28859
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
28890
28860
  #elif CYTHON_COMPILING_IN_LIMITED_API
28891
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyTypeObject),
28861
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyTypeObject),
28892
28862
  #else
28893
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyHeapTypeObject),
28863
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyHeapTypeObject),
28894
28864
  #endif
28895
- __Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
28865
+ __Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
28896
28866
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28897
28867
  __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 203, __pyx_L1_error)
28898
28868
  __Pyx_GOTREF(__pyx_t_1);
28899
- __pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_2); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 203, __pyx_L1_error)
28900
- __pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_2); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 226, __pyx_L1_error)
28901
- __pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_2); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 230, __pyx_L1_error)
28902
- __pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_2); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 239, __pyx_L1_error)
28903
- __pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 813, __pyx_L1_error)
28904
- __pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 815, __pyx_L1_error)
28905
- __pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 817, __pyx_L1_error)
28906
- __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 819, __pyx_L1_error)
28907
- __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 821, __pyx_L1_error)
28908
- __pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 823, __pyx_L1_error)
28909
- __pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 825, __pyx_L1_error)
28910
- __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 827, __pyx_L1_error)
28911
- __pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 829, __pyx_L1_error)
28912
- __pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_2); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 831, __pyx_L1_error)
28913
- __pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_2(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_2(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_2); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 869, __pyx_L1_error)
28869
+ __pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 203, __pyx_L1_error)
28870
+ __pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 226, __pyx_L1_error)
28871
+ __pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 230, __pyx_L1_error)
28872
+ __pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 239, __pyx_L1_error)
28873
+ __pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 813, __pyx_L1_error)
28874
+ __pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 815, __pyx_L1_error)
28875
+ __pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 817, __pyx_L1_error)
28876
+ __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 819, __pyx_L1_error)
28877
+ __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 821, __pyx_L1_error)
28878
+ __pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 823, __pyx_L1_error)
28879
+ __pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 825, __pyx_L1_error)
28880
+ __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 827, __pyx_L1_error)
28881
+ __pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 829, __pyx_L1_error)
28882
+ __pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 831, __pyx_L1_error)
28883
+ __pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_10(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_10); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 869, __pyx_L1_error)
28914
28884
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28915
28885
  __Pyx_RefNannyFinishContext();
28916
28886
  return 0;
@@ -29130,7 +29100,7 @@ static CYTHON_SMALL_CODE int __pyx_pymod_exec_convertfile(PyObject *__pyx_pyinit
29130
29100
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
29131
29101
  {
29132
29102
  int add_module_result = PyState_AddModule(__pyx_t_1, &__pyx_moduledef);
29133
- __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to convertfile pseudovariable */
29103
+ __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "convertfile" pseudovariable */
29134
29104
  if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
29135
29105
  pystate_addmodule_run = 1;
29136
29106
  }
@@ -29142,10 +29112,8 @@ static CYTHON_SMALL_CODE int __pyx_pymod_exec_convertfile(PyObject *__pyx_pyinit
29142
29112
  CYTHON_UNUSED_VAR(__pyx_t_1);
29143
29113
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
29144
29114
  Py_INCREF(__pyx_d);
29145
- __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
29146
- Py_INCREF(__pyx_b);
29147
- __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
29148
- Py_INCREF(__pyx_cython_runtime);
29115
+ __pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
29116
+ __pyx_cython_runtime = __Pyx_PyImport_AddModuleRef((const char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
29149
29117
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
29150
29118
  #if CYTHON_REFNANNY
29151
29119
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
@@ -29157,7 +29125,7 @@ if (!__Pyx_RefNanny) {
29157
29125
  }
29158
29126
  #endif
29159
29127
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_convertfile(void)", 0);
29160
- if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
29128
+ 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)
29161
29129
  #ifdef __Pxy_PyFrame_Initialize_Offsets
29162
29130
  __Pxy_PyFrame_Initialize_Offsets();
29163
29131
  #endif
@@ -30186,6 +30154,8 @@ static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObjec
30186
30154
  tmp_value = tstate->current_exception;
30187
30155
  tstate->current_exception = value;
30188
30156
  Py_XDECREF(tmp_value);
30157
+ Py_XDECREF(type);
30158
+ Py_XDECREF(tb);
30189
30159
  #else
30190
30160
  PyObject *tmp_type, *tmp_value, *tmp_tb;
30191
30161
  tmp_type = tstate->curexc_type;
@@ -30243,14 +30213,20 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject
30243
30213
  #endif
30244
30214
 
30245
30215
  /* PyObjectGetAttrStrNoError */
30216
+ #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
30246
30217
  static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
30247
30218
  __Pyx_PyThreadState_declare
30248
30219
  __Pyx_PyThreadState_assign
30249
30220
  if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
30250
30221
  __Pyx_PyErr_Clear();
30251
30222
  }
30223
+ #endif
30252
30224
  static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
30253
30225
  PyObject *result;
30226
+ #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
30227
+ (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
30228
+ return result;
30229
+ #else
30254
30230
  #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
30255
30231
  PyTypeObject* tp = Py_TYPE(obj);
30256
30232
  if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
@@ -30262,6 +30238,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, P
30262
30238
  __Pyx_PyObject_GetAttrStr_ClearAttributeError();
30263
30239
  }
30264
30240
  return result;
30241
+ #endif
30265
30242
  }
30266
30243
 
30267
30244
  /* GetBuiltinName */
@@ -30477,13 +30454,31 @@ static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyO
30477
30454
  {
30478
30455
  int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ);
30479
30456
  if (unlikely(eq != 0)) {
30480
- if (unlikely(eq < 0)) return NULL; // error
30457
+ if (unlikely(eq < 0)) return NULL;
30481
30458
  return kwvalues[i];
30482
30459
  }
30483
30460
  }
30484
- return NULL; // not found (no exception set)
30461
+ return NULL;
30462
+ }
30463
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
30464
+ CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
30465
+ Py_ssize_t i, nkwargs = PyTuple_GET_SIZE(kwnames);
30466
+ PyObject *dict;
30467
+ dict = PyDict_New();
30468
+ if (unlikely(!dict))
30469
+ return NULL;
30470
+ for (i=0; i<nkwargs; i++) {
30471
+ PyObject *key = PyTuple_GET_ITEM(kwnames, i);
30472
+ if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
30473
+ goto bad;
30474
+ }
30475
+ return dict;
30476
+ bad:
30477
+ Py_DECREF(dict);
30478
+ return NULL;
30485
30479
  }
30486
30480
  #endif
30481
+ #endif
30487
30482
 
30488
30483
  /* RaiseArgTupleInvalid */
30489
30484
  static void __Pyx_RaiseArgtupleInvalid(
@@ -30576,7 +30571,7 @@ static int __Pyx_ParseOptionalKeywords(
30576
30571
  if (*name) {
30577
30572
  values[name-argnames] = value;
30578
30573
  #if CYTHON_AVOID_BORROWED_REFS
30579
- Py_INCREF(value); // transfer ownership of value to values
30574
+ Py_INCREF(value);
30580
30575
  Py_DECREF(key);
30581
30576
  #endif
30582
30577
  key = NULL;
@@ -30595,7 +30590,7 @@ static int __Pyx_ParseOptionalKeywords(
30595
30590
  && _PyString_Eq(**name, key)) {
30596
30591
  values[name-argnames] = value;
30597
30592
  #if CYTHON_AVOID_BORROWED_REFS
30598
- value = NULL; // ownership transferred to values
30593
+ value = NULL;
30599
30594
  #endif
30600
30595
  break;
30601
30596
  }
@@ -30627,7 +30622,7 @@ static int __Pyx_ParseOptionalKeywords(
30627
30622
  if (cmp == 0) {
30628
30623
  values[name-argnames] = value;
30629
30624
  #if CYTHON_AVOID_BORROWED_REFS
30630
- value = NULL; // ownership transferred to values
30625
+ value = NULL;
30631
30626
  #endif
30632
30627
  break;
30633
30628
  }
@@ -30914,9 +30909,15 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
30914
30909
  PyObject *result;
30915
30910
  assert(kwargs == NULL || PyDict_Check(kwargs));
30916
30911
  nk = kwargs ? PyDict_Size(kwargs) : 0;
30912
+ #if PY_MAJOR_VERSION < 3
30917
30913
  if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) {
30918
30914
  return NULL;
30919
30915
  }
30916
+ #else
30917
+ if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) {
30918
+ return NULL;
30919
+ }
30920
+ #endif
30920
30921
  if (
30921
30922
  #if PY_MAJOR_VERSION >= 3
30922
30923
  co->co_kwonlyargcount == 0 &&
@@ -30993,8 +30994,13 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg
30993
30994
  ternaryfunc call = Py_TYPE(func)->tp_call;
30994
30995
  if (unlikely(!call))
30995
30996
  return PyObject_Call(func, arg, kw);
30997
+ #if PY_MAJOR_VERSION < 3
30996
30998
  if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
30997
30999
  return NULL;
31000
+ #else
31001
+ if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
31002
+ return NULL;
31003
+ #endif
30998
31004
  result = (*call)(func, arg, kw);
30999
31005
  Py_LeaveRecursiveCall();
31000
31006
  if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
@@ -31011,10 +31017,15 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg
31011
31017
  static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
31012
31018
  PyObject *self, *result;
31013
31019
  PyCFunction cfunc;
31014
- cfunc = PyCFunction_GET_FUNCTION(func);
31015
- self = PyCFunction_GET_SELF(func);
31020
+ cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
31021
+ self = __Pyx_CyOrPyCFunction_GET_SELF(func);
31022
+ #if PY_MAJOR_VERSION < 3
31016
31023
  if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
31017
31024
  return NULL;
31025
+ #else
31026
+ if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
31027
+ return NULL;
31028
+ #endif
31018
31029
  result = cfunc(self, arg);
31019
31030
  Py_LeaveRecursiveCall();
31020
31031
  if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
@@ -31027,6 +31038,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject
31027
31038
  #endif
31028
31039
 
31029
31040
  /* PyObjectFastCall */
31041
+ #if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
31030
31042
  static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs) {
31031
31043
  PyObject *argstuple;
31032
31044
  PyObject *result = 0;
@@ -31042,28 +31054,17 @@ static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **arg
31042
31054
  Py_DECREF(argstuple);
31043
31055
  return result;
31044
31056
  }
31057
+ #endif
31045
31058
  static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t _nargs, PyObject *kwargs) {
31046
31059
  Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
31047
31060
  #if CYTHON_COMPILING_IN_CPYTHON
31048
31061
  if (nargs == 0 && kwargs == NULL) {
31049
- #if defined(__Pyx_CyFunction_USED) && defined(NDEBUG)
31050
- if (__Pyx_IsCyOrPyCFunction(func))
31051
- #else
31052
- if (PyCFunction_Check(func))
31053
- #endif
31054
- {
31055
- if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
31056
- return __Pyx_PyObject_CallMethO(func, NULL);
31057
- }
31058
- }
31062
+ if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
31063
+ return __Pyx_PyObject_CallMethO(func, NULL);
31059
31064
  }
31060
31065
  else if (nargs == 1 && kwargs == NULL) {
31061
- if (PyCFunction_Check(func))
31062
- {
31063
- if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
31064
- return __Pyx_PyObject_CallMethO(func, args[0]);
31065
- }
31066
- }
31066
+ if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
31067
+ return __Pyx_PyObject_CallMethO(func, args[0]);
31067
31068
  }
31068
31069
  #endif
31069
31070
  #if PY_VERSION_HEX < 0x030800B1
@@ -31087,25 +31088,31 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObj
31087
31088
  }
31088
31089
  #endif
31089
31090
  #endif
31090
- #if CYTHON_VECTORCALL
31091
- #if Py_VERSION_HEX < 0x03090000
31092
- vectorcallfunc f = _PyVectorcall_Function(func);
31093
- #else
31094
- vectorcallfunc f = PyVectorcall_Function(func);
31095
- #endif
31096
- if (f) {
31097
- return f(func, args, (size_t)nargs, kwargs);
31098
- }
31099
- #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL
31100
- if (__Pyx_CyFunction_CheckExact(func)) {
31101
- __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func);
31102
- if (f) return f(func, args, (size_t)nargs, kwargs);
31091
+ if (kwargs == NULL) {
31092
+ #if CYTHON_VECTORCALL
31093
+ #if PY_VERSION_HEX < 0x03090000
31094
+ vectorcallfunc f = _PyVectorcall_Function(func);
31095
+ #else
31096
+ vectorcallfunc f = PyVectorcall_Function(func);
31097
+ #endif
31098
+ if (f) {
31099
+ return f(func, args, (size_t)nargs, NULL);
31100
+ }
31101
+ #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL
31102
+ if (__Pyx_CyFunction_CheckExact(func)) {
31103
+ __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func);
31104
+ if (f) return f(func, args, (size_t)nargs, NULL);
31105
+ }
31106
+ #endif
31103
31107
  }
31104
- #endif
31105
31108
  if (nargs == 0) {
31106
31109
  return __Pyx_PyObject_Call(func, __pyx_empty_tuple, kwargs);
31107
31110
  }
31111
+ #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
31112
+ return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
31113
+ #else
31108
31114
  return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
31115
+ #endif
31109
31116
  }
31110
31117
 
31111
31118
  /* RaiseUnexpectedTypeError */
@@ -31408,7 +31415,7 @@ static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_co
31408
31415
  if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) {
31409
31416
  memcpy((char *)result_udata + (char_pos << kind_shift), udata, (size_t) (ulength << kind_shift));
31410
31417
  } else {
31411
- #if PY_VERSION_HEX >= 0x030D0000
31418
+ #if PY_VERSION_HEX >= 0x030d0000
31412
31419
  if (unlikely(PyUnicode_CopyCharacters(result_uval, char_pos, uval, 0, ulength) < 0)) goto bad;
31413
31420
  #elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)
31414
31421
  _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
@@ -31537,7 +31544,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
31537
31544
  }
31538
31545
  }
31539
31546
  #else
31540
- if (is_list || PySequence_Check(o)) {
31547
+ if (is_list || !PyMapping_Check(o)) {
31541
31548
  return PySequence_GetItem(o, i);
31542
31549
  }
31543
31550
  #endif
@@ -31572,7 +31579,9 @@ static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
31572
31579
  __Pyx_TypeName obj_type_name;
31573
31580
  if (likely(PyType_Check(obj))) {
31574
31581
  PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_n_s_class_getitem);
31575
- if (meth) {
31582
+ if (!meth) {
31583
+ PyErr_Clear();
31584
+ } else {
31576
31585
  PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
31577
31586
  Py_DECREF(meth);
31578
31587
  return result;
@@ -31681,6 +31690,7 @@ static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b)
31681
31690
  }
31682
31691
 
31683
31692
  /* GetAttr3 */
31693
+ #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
31684
31694
  static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
31685
31695
  __Pyx_PyThreadState_declare
31686
31696
  __Pyx_PyThreadState_assign
@@ -31690,9 +31700,14 @@ static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
31690
31700
  Py_INCREF(d);
31691
31701
  return d;
31692
31702
  }
31703
+ #endif
31693
31704
  static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
31694
31705
  PyObject *r;
31695
- #if CYTHON_USE_TYPE_SLOTS
31706
+ #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1
31707
+ int res = PyObject_GetOptionalAttr(o, n, &r);
31708
+ return (res != 0) ? r : __Pyx_NewRef(d);
31709
+ #else
31710
+ #if CYTHON_USE_TYPE_SLOTS
31696
31711
  if (likely(PyString_Check(n))) {
31697
31712
  r = __Pyx_PyObject_GetAttrStrNoError(o, n);
31698
31713
  if (unlikely(!r) && likely(!PyErr_Occurred())) {
@@ -31700,9 +31715,10 @@ static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject
31700
31715
  }
31701
31716
  return r;
31702
31717
  }
31703
- #endif
31718
+ #endif
31704
31719
  r = PyObject_GetAttr(o, n);
31705
31720
  return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
31721
+ #endif
31706
31722
  }
31707
31723
 
31708
31724
  /* PyDictVersioning */
@@ -31740,7 +31756,7 @@ static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
31740
31756
  {
31741
31757
  PyObject *result;
31742
31758
  #if !CYTHON_AVOID_BORROWED_REFS
31743
- #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
31759
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && PY_VERSION_HEX < 0x030d0000
31744
31760
  result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
31745
31761
  __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
31746
31762
  if (likely(result)) {
@@ -32066,7 +32082,7 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
32066
32082
  {
32067
32083
  #if PY_MAJOR_VERSION >= 3
32068
32084
  if (level == -1) {
32069
- if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
32085
+ if (strchr(__Pyx_MODULE_NAME, '.') != NULL) {
32070
32086
  module = PyImport_ImportModuleLevelObject(
32071
32087
  name, __pyx_d, empty_dict, from_list, 1);
32072
32088
  if (unlikely(!module)) {
@@ -32229,16 +32245,6 @@ static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple)
32229
32245
  return __Pyx__ImportDottedModule(name, parts_tuple);
32230
32246
  }
32231
32247
 
32232
- /* ssize_strlen */
32233
- static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
32234
- size_t len = strlen(s);
32235
- if (unlikely(len > PY_SSIZE_T_MAX)) {
32236
- PyErr_SetString(PyExc_OverflowError, "byte string is too long");
32237
- return -1;
32238
- }
32239
- return (Py_ssize_t) len;
32240
- }
32241
-
32242
32248
  /* FastTypeChecks */
32243
32249
  #if CYTHON_COMPILING_IN_CPYTHON
32244
32250
  static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
@@ -32422,11 +32428,7 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje
32422
32428
  }
32423
32429
  }
32424
32430
  #else
32425
- #if CYTHON_COMPILING_IN_PYPY
32426
- if (is_list || (PySequence_Check(o) && !PyDict_Check(o)))
32427
- #else
32428
- if (is_list || PySequence_Check(o))
32429
- #endif
32431
+ if (is_list || !PyMapping_Check(o))
32430
32432
  {
32431
32433
  return PySequence_SetItem(o, i, v);
32432
32434
  }
@@ -32491,6 +32493,7 @@ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
32491
32493
  }
32492
32494
 
32493
32495
  /* HasAttr */
32496
+ #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1
32494
32497
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
32495
32498
  PyObject *r;
32496
32499
  if (unlikely(!__Pyx_PyBaseString_Check(n))) {
@@ -32507,6 +32510,7 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
32507
32510
  return 1;
32508
32511
  }
32509
32512
  }
32513
+ #endif
32510
32514
 
32511
32515
  /* DictGetItem */
32512
32516
  #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
@@ -32990,9 +32994,10 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long int
32990
32994
 
32991
32995
  /* IterFinish */
32992
32996
  static CYTHON_INLINE int __Pyx_IterFinish(void) {
32997
+ PyObject* exc_type;
32993
32998
  __Pyx_PyThreadState_declare
32994
32999
  __Pyx_PyThreadState_assign
32995
- PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType();
33000
+ exc_type = __Pyx_PyErr_CurrentExceptionType();
32996
33001
  if (unlikely(exc_type)) {
32997
33002
  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
32998
33003
  return -1;
@@ -33145,8 +33150,8 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
33145
33150
 
33146
33151
  /* PyObjectCallNoArg */
33147
33152
  static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
33148
- PyObject *arg = NULL;
33149
- return __Pyx_PyObject_FastCall(func, (&arg)+1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
33153
+ PyObject *arg[2] = {NULL, NULL};
33154
+ return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
33150
33155
  }
33151
33156
 
33152
33157
  /* PyObjectGetMethod */
@@ -33311,38 +33316,38 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
33311
33316
  #endif
33312
33317
  return -1;
33313
33318
  }
33314
- #if !CYTHON_USE_TYPE_SLOTS
33315
- if (dictoffset == 0) {
33316
- PyErr_Format(PyExc_TypeError,
33317
- "extension type '%s.200s': "
33318
- "unable to validate whether bases have a __dict__ "
33319
- "when CYTHON_USE_TYPE_SLOTS is off "
33320
- "(likely because you are building in the limited API). "
33321
- "Therefore, all extension types with multiple bases "
33322
- "must add 'cdef dict __dict__' in this compilation mode",
33323
- type_name);
33324
- #if CYTHON_AVOID_BORROWED_REFS
33325
- Py_DECREF(b0);
33326
- #endif
33327
- return -1;
33328
- }
33329
- #else
33330
- if (dictoffset == 0 && b->tp_dictoffset)
33319
+ if (dictoffset == 0)
33331
33320
  {
33332
- __Pyx_TypeName b_name = __Pyx_PyType_GetName(b);
33333
- PyErr_Format(PyExc_TypeError,
33334
- "extension type '%.200s' has no __dict__ slot, "
33335
- "but base type '" __Pyx_FMT_TYPENAME "' has: "
33336
- "either add 'cdef dict __dict__' to the extension type "
33337
- "or add '__slots__ = [...]' to the base type",
33338
- type_name, b_name);
33339
- __Pyx_DECREF_TypeName(b_name);
33321
+ Py_ssize_t b_dictoffset = 0;
33322
+ #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY
33323
+ b_dictoffset = b->tp_dictoffset;
33324
+ #else
33325
+ PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
33326
+ if (!py_b_dictoffset) goto dictoffset_return;
33327
+ b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
33328
+ Py_DECREF(py_b_dictoffset);
33329
+ if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
33330
+ #endif
33331
+ if (b_dictoffset) {
33332
+ {
33333
+ __Pyx_TypeName b_name = __Pyx_PyType_GetName(b);
33334
+ PyErr_Format(PyExc_TypeError,
33335
+ "extension type '%.200s' has no __dict__ slot, "
33336
+ "but base type '" __Pyx_FMT_TYPENAME "' has: "
33337
+ "either add 'cdef dict __dict__' to the extension type "
33338
+ "or add '__slots__ = [...]' to the base type",
33339
+ type_name, b_name);
33340
+ __Pyx_DECREF_TypeName(b_name);
33341
+ }
33342
+ #if !(CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY)
33343
+ dictoffset_return:
33344
+ #endif
33340
33345
  #if CYTHON_AVOID_BORROWED_REFS
33341
- Py_DECREF(b0);
33346
+ Py_DECREF(b0);
33342
33347
  #endif
33343
- return -1;
33348
+ return -1;
33349
+ }
33344
33350
  }
33345
- #endif
33346
33351
  #if CYTHON_AVOID_BORROWED_REFS
33347
33352
  Py_DECREF(b0);
33348
33353
  #endif
@@ -33636,10 +33641,10 @@ __PYX_GOOD:
33636
33641
  #endif
33637
33642
 
33638
33643
  /* TypeImport */
33639
- #ifndef __PYX_HAVE_RT_ImportType_3_0_2
33640
- #define __PYX_HAVE_RT_ImportType_3_0_2
33641
- static PyTypeObject *__Pyx_ImportType_3_0_2(PyObject *module, const char *module_name, const char *class_name,
33642
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_2 check_size)
33644
+ #ifndef __PYX_HAVE_RT_ImportType_3_0_10
33645
+ #define __PYX_HAVE_RT_ImportType_3_0_10
33646
+ static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *module_name, const char *class_name,
33647
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size)
33643
33648
  {
33644
33649
  PyObject *result = 0;
33645
33650
  char warning[200];
@@ -33693,7 +33698,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_2(PyObject *module, const char *module
33693
33698
  module_name, class_name, size, basicsize+itemsize);
33694
33699
  goto bad;
33695
33700
  }
33696
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_2 &&
33701
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_10 &&
33697
33702
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
33698
33703
  PyErr_Format(PyExc_ValueError,
33699
33704
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -33701,7 +33706,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_2(PyObject *module, const char *module
33701
33706
  module_name, class_name, size, basicsize, basicsize+itemsize);
33702
33707
  goto bad;
33703
33708
  }
33704
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_2 && (size_t)basicsize > size) {
33709
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_10 && (size_t)basicsize > size) {
33705
33710
  PyOS_snprintf(warning, sizeof(warning),
33706
33711
  "%s.%s size changed, may indicate binary incompatibility. "
33707
33712
  "Expected %zd from C header, got %zd from PyObject",
@@ -33717,10 +33722,7 @@ bad:
33717
33722
 
33718
33723
  /* FetchSharedCythonModule */
33719
33724
  static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
33720
- PyObject *abi_module = PyImport_AddModule((char*) __PYX_ABI_MODULE_NAME);
33721
- if (unlikely(!abi_module)) return NULL;
33722
- Py_INCREF(abi_module);
33723
- return abi_module;
33725
+ return __Pyx_PyImport_AddModuleRef((char*) __PYX_ABI_MODULE_NAME);
33724
33726
  }
33725
33727
 
33726
33728
  /* FetchCommonType */
@@ -33881,6 +33883,20 @@ static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, _
33881
33883
  #endif
33882
33884
 
33883
33885
  /* CythonFunctionShared */
33886
+ #if CYTHON_COMPILING_IN_LIMITED_API
33887
+ static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) {
33888
+ if (__Pyx_CyFunction_Check(func)) {
33889
+ return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
33890
+ } else if (PyCFunction_Check(func)) {
33891
+ return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
33892
+ }
33893
+ return 0;
33894
+ }
33895
+ #else
33896
+ static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) {
33897
+ return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
33898
+ }
33899
+ #endif
33884
33900
  static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
33885
33901
  #if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
33886
33902
  __Pyx_Py_XDECREF_SET(
@@ -34690,7 +34706,7 @@ static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func,
34690
34706
  default:
34691
34707
  return NULL;
34692
34708
  }
34693
- return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
34709
+ return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
34694
34710
  }
34695
34711
  static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
34696
34712
  {
@@ -35029,8 +35045,8 @@ static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject
35029
35045
  Py_DECREF(replace);
35030
35046
  return result;
35031
35047
  }
35032
- #if __PYX_LIMITED_VERSION_HEX < 0x030780000
35033
35048
  PyErr_Clear();
35049
+ #if __PYX_LIMITED_VERSION_HEX < 0x030780000
35034
35050
  {
35035
35051
  PyObject *compiled = NULL, *result = NULL;
35036
35052
  if (unlikely(PyDict_SetItemString(scratch_dict, "code", code))) return NULL;
@@ -35050,6 +35066,8 @@ static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject
35050
35066
  if (result) Py_INCREF(result);
35051
35067
  return result;
35052
35068
  }
35069
+ #else
35070
+ return NULL;
35053
35071
  #endif
35054
35072
  }
35055
35073
  static void __Pyx_AddTraceback(const char *funcname, int c_line,
@@ -35147,7 +35165,7 @@ static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
35147
35165
  #else
35148
35166
  py_code = PyCode_NewEmpty(filename, funcname, py_line);
35149
35167
  #endif
35150
- Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline
35168
+ Py_XDECREF(py_funcname);
35151
35169
  return py_code;
35152
35170
  bad:
35153
35171
  Py_XDECREF(py_funcname);
@@ -36797,7 +36815,7 @@ static CYTHON_INLINE void __Pyx_XCLEAR_MEMVIEW(__Pyx_memviewslice *memslice,
36797
36815
  #endif
36798
36816
  if (likely(v)) {
36799
36817
  int ret = -1;
36800
- #if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
36818
+ #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
36801
36819
  int one = 1; int is_little = (int)*(unsigned char *)&one;
36802
36820
  unsigned char *bytes = (unsigned char *)&val;
36803
36821
  ret = _PyLong_AsByteArray((PyLongObject *)v,
@@ -37070,7 +37088,7 @@ raise_neg_overflow:
37070
37088
  #endif
37071
37089
  if (likely(v)) {
37072
37090
  int ret = -1;
37073
- #if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
37091
+ #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
37074
37092
  int one = 1; int is_little = (int)*(unsigned char *)&one;
37075
37093
  unsigned char *bytes = (unsigned char *)&val;
37076
37094
  ret = _PyLong_AsByteArray((PyLongObject *)v,
@@ -37206,13 +37224,13 @@ raise_neg_overflow:
37206
37224
  {
37207
37225
  int one = 1; int little = (int)*(unsigned char *)&one;
37208
37226
  unsigned char *bytes = (unsigned char *)&value;
37209
- #if !CYTHON_COMPILING_IN_LIMITED_API
37227
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
37210
37228
  return _PyLong_FromByteArray(bytes, sizeof(int),
37211
37229
  little, !is_unsigned);
37212
37230
  #else
37213
37231
  PyObject *from_bytes, *result = NULL;
37214
37232
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
37215
- from_bytes = PyObject_GetAttrString((PyObject*)&PyInt_Type, "from_bytes");
37233
+ from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
37216
37234
  if (!from_bytes) return NULL;
37217
37235
  py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int));
37218
37236
  if (!py_bytes) goto limited_bad;
@@ -37220,16 +37238,18 @@ raise_neg_overflow:
37220
37238
  if (!order_str) goto limited_bad;
37221
37239
  arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
37222
37240
  if (!arg_tuple) goto limited_bad;
37223
- kwds = PyDict_New();
37224
- if (!kwds) goto limited_bad;
37225
- if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(!is_unsigned ? Py_True : Py_False))) goto limited_bad;
37241
+ if (!is_unsigned) {
37242
+ kwds = PyDict_New();
37243
+ if (!kwds) goto limited_bad;
37244
+ if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad;
37245
+ }
37226
37246
  result = PyObject_Call(from_bytes, arg_tuple, kwds);
37227
37247
  limited_bad:
37228
- Py_XDECREF(from_bytes);
37229
- Py_XDECREF(py_bytes);
37230
- Py_XDECREF(order_str);
37231
- Py_XDECREF(arg_tuple);
37232
37248
  Py_XDECREF(kwds);
37249
+ Py_XDECREF(arg_tuple);
37250
+ Py_XDECREF(order_str);
37251
+ Py_XDECREF(py_bytes);
37252
+ Py_XDECREF(from_bytes);
37233
37253
  return result;
37234
37254
  #endif
37235
37255
  }
@@ -37268,13 +37288,13 @@ raise_neg_overflow:
37268
37288
  {
37269
37289
  int one = 1; int little = (int)*(unsigned char *)&one;
37270
37290
  unsigned char *bytes = (unsigned char *)&value;
37271
- #if !CYTHON_COMPILING_IN_LIMITED_API
37291
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
37272
37292
  return _PyLong_FromByteArray(bytes, sizeof(npy_int32),
37273
37293
  little, !is_unsigned);
37274
37294
  #else
37275
37295
  PyObject *from_bytes, *result = NULL;
37276
37296
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
37277
- from_bytes = PyObject_GetAttrString((PyObject*)&PyInt_Type, "from_bytes");
37297
+ from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
37278
37298
  if (!from_bytes) return NULL;
37279
37299
  py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(npy_int32));
37280
37300
  if (!py_bytes) goto limited_bad;
@@ -37282,16 +37302,18 @@ raise_neg_overflow:
37282
37302
  if (!order_str) goto limited_bad;
37283
37303
  arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
37284
37304
  if (!arg_tuple) goto limited_bad;
37285
- kwds = PyDict_New();
37286
- if (!kwds) goto limited_bad;
37287
- if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(!is_unsigned ? Py_True : Py_False))) goto limited_bad;
37305
+ if (!is_unsigned) {
37306
+ kwds = PyDict_New();
37307
+ if (!kwds) goto limited_bad;
37308
+ if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad;
37309
+ }
37288
37310
  result = PyObject_Call(from_bytes, arg_tuple, kwds);
37289
37311
  limited_bad:
37290
- Py_XDECREF(from_bytes);
37291
- Py_XDECREF(py_bytes);
37292
- Py_XDECREF(order_str);
37293
- Py_XDECREF(arg_tuple);
37294
37312
  Py_XDECREF(kwds);
37313
+ Py_XDECREF(arg_tuple);
37314
+ Py_XDECREF(order_str);
37315
+ Py_XDECREF(py_bytes);
37316
+ Py_XDECREF(from_bytes);
37295
37317
  return result;
37296
37318
  #endif
37297
37319
  }
@@ -37330,13 +37352,13 @@ raise_neg_overflow:
37330
37352
  {
37331
37353
  int one = 1; int little = (int)*(unsigned char *)&one;
37332
37354
  unsigned char *bytes = (unsigned char *)&value;
37333
- #if !CYTHON_COMPILING_IN_LIMITED_API
37355
+ #if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
37334
37356
  return _PyLong_FromByteArray(bytes, sizeof(long),
37335
37357
  little, !is_unsigned);
37336
37358
  #else
37337
37359
  PyObject *from_bytes, *result = NULL;
37338
37360
  PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = NULL, *order_str = NULL;
37339
- from_bytes = PyObject_GetAttrString((PyObject*)&PyInt_Type, "from_bytes");
37361
+ from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
37340
37362
  if (!from_bytes) return NULL;
37341
37363
  py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
37342
37364
  if (!py_bytes) goto limited_bad;
@@ -37344,16 +37366,18 @@ raise_neg_overflow:
37344
37366
  if (!order_str) goto limited_bad;
37345
37367
  arg_tuple = PyTuple_Pack(2, py_bytes, order_str);
37346
37368
  if (!arg_tuple) goto limited_bad;
37347
- kwds = PyDict_New();
37348
- if (!kwds) goto limited_bad;
37349
- if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(!is_unsigned ? Py_True : Py_False))) goto limited_bad;
37369
+ if (!is_unsigned) {
37370
+ kwds = PyDict_New();
37371
+ if (!kwds) goto limited_bad;
37372
+ if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad;
37373
+ }
37350
37374
  result = PyObject_Call(from_bytes, arg_tuple, kwds);
37351
37375
  limited_bad:
37352
- Py_XDECREF(from_bytes);
37353
- Py_XDECREF(py_bytes);
37354
- Py_XDECREF(order_str);
37355
- Py_XDECREF(arg_tuple);
37356
37376
  Py_XDECREF(kwds);
37377
+ Py_XDECREF(arg_tuple);
37378
+ Py_XDECREF(order_str);
37379
+ Py_XDECREF(py_bytes);
37380
+ Py_XDECREF(from_bytes);
37357
37381
  return result;
37358
37382
  #endif
37359
37383
  }
@@ -37529,7 +37553,7 @@ raise_neg_overflow:
37529
37553
  #endif
37530
37554
  if (likely(v)) {
37531
37555
  int ret = -1;
37532
- #if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
37556
+ #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
37533
37557
  int one = 1; int is_little = (int)*(unsigned char *)&one;
37534
37558
  unsigned char *bytes = (unsigned char *)&val;
37535
37559
  ret = _PyLong_AsByteArray((PyLongObject *)v,
@@ -37802,7 +37826,7 @@ raise_neg_overflow:
37802
37826
  #endif
37803
37827
  if (likely(v)) {
37804
37828
  int ret = -1;
37805
- #if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
37829
+ #if PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
37806
37830
  int one = 1; int is_little = (int)*(unsigned char *)&one;
37807
37831
  unsigned char *bytes = (unsigned char *)&val;
37808
37832
  ret = _PyLong_AsByteArray((PyLongObject *)v,
@@ -37922,41 +37946,50 @@ __Pyx_PyType_GetName(PyTypeObject* tp)
37922
37946
  #endif
37923
37947
 
37924
37948
  /* CheckBinaryVersion */
37925
- static int __Pyx_check_binary_version(void) {
37926
- char ctversion[5];
37927
- int same=1, i, found_dot;
37928
- const char* rt_from_call = Py_GetVersion();
37929
- PyOS_snprintf(ctversion, 5, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
37930
- found_dot = 0;
37931
- for (i = 0; i < 4; i++) {
37932
- if (!ctversion[i]) {
37933
- same = (rt_from_call[i] < '0' || rt_from_call[i] > '9');
37949
+ static unsigned long __Pyx_get_runtime_version(void) {
37950
+ #if __PYX_LIMITED_VERSION_HEX >= 0x030B00A4
37951
+ return Py_Version & ~0xFFUL;
37952
+ #else
37953
+ const char* rt_version = Py_GetVersion();
37954
+ unsigned long version = 0;
37955
+ unsigned long factor = 0x01000000UL;
37956
+ unsigned int digit = 0;
37957
+ int i = 0;
37958
+ while (factor) {
37959
+ while ('0' <= rt_version[i] && rt_version[i] <= '9') {
37960
+ digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
37961
+ ++i;
37962
+ }
37963
+ version += factor * digit;
37964
+ if (rt_version[i] != '.')
37934
37965
  break;
37935
- }
37936
- if (rt_from_call[i] != ctversion[i]) {
37937
- same = 0;
37938
- break;
37939
- }
37966
+ digit = 0;
37967
+ factor >>= 8;
37968
+ ++i;
37940
37969
  }
37941
- if (!same) {
37942
- char rtversion[5] = {'\0'};
37970
+ return version;
37971
+ #endif
37972
+ }
37973
+ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
37974
+ const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
37975
+ if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
37976
+ return 0;
37977
+ if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
37978
+ return 1;
37979
+ {
37943
37980
  char message[200];
37944
- for (i=0; i<4; ++i) {
37945
- if (rt_from_call[i] == '.') {
37946
- if (found_dot) break;
37947
- found_dot = 1;
37948
- } else if (rt_from_call[i] < '0' || rt_from_call[i] > '9') {
37949
- break;
37950
- }
37951
- rtversion[i] = rt_from_call[i];
37952
- }
37953
37981
  PyOS_snprintf(message, sizeof(message),
37954
- "compile time version %s of module '%.100s' "
37955
- "does not match runtime version %s",
37956
- ctversion, __Pyx_MODULE_NAME, rtversion);
37982
+ "compile time Python version %d.%d "
37983
+ "of module '%.100s' "
37984
+ "%s "
37985
+ "runtime version %d.%d",
37986
+ (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
37987
+ __Pyx_MODULE_NAME,
37988
+ (allow_newer) ? "was newer than" : "does not match",
37989
+ (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
37990
+ );
37957
37991
  return PyErr_WarnEx(NULL, message, 1);
37958
37992
  }
37959
- return 0;
37960
37993
  }
37961
37994
 
37962
37995
  /* InitStrings */
@@ -38002,8 +38035,24 @@ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
38002
38035
  return 0;
38003
38036
  }
38004
38037
 
38038
+ #include <string.h>
38039
+ static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
38040
+ size_t len = strlen(s);
38041
+ if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
38042
+ PyErr_SetString(PyExc_OverflowError, "byte string is too long");
38043
+ return -1;
38044
+ }
38045
+ return (Py_ssize_t) len;
38046
+ }
38005
38047
  static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
38006
- return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
38048
+ Py_ssize_t len = __Pyx_ssize_strlen(c_str);
38049
+ if (unlikely(len < 0)) return NULL;
38050
+ return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
38051
+ }
38052
+ static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
38053
+ Py_ssize_t len = __Pyx_ssize_strlen(c_str);
38054
+ if (unlikely(len < 0)) return NULL;
38055
+ return PyByteArray_FromStringAndSize(c_str, len);
38007
38056
  }
38008
38057
  static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
38009
38058
  Py_ssize_t ignore;