File: | abaqus/abaqusFILReader.c |
Warning: | line 13171, column 9 Value stored to 'args' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* Generated by Cython 3.0.5 */ |
2 | |
3 | #ifndef PY_SSIZE_T_CLEAN |
4 | #define PY_SSIZE_T_CLEAN |
5 | #endif /* PY_SSIZE_T_CLEAN */ |
6 | #if defined(CYTHON_LIMITED_API) && 0 |
7 | #ifndef Py_LIMITED_API |
8 | #if CYTHON_LIMITED_API+0 > 0x03030000 |
9 | #define Py_LIMITED_API CYTHON_LIMITED_API |
10 | #else |
11 | #define Py_LIMITED_API 0x03030000 |
12 | #endif |
13 | #endif |
14 | #endif |
15 | |
16 | #include "Python.h" |
17 | #ifndef Py_PYTHON_H |
18 | #error Python headers needed to compile C extensions, please install development version of Python. |
19 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02070000 || (0x03000000 <= PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03030000) |
20 | #error Cython requires Python 2.7+ or Python 3.3+. |
21 | #else |
22 | #if defined(CYTHON_LIMITED_API) && CYTHON_LIMITED_API |
23 | #define __PYX_EXTRA_ABI_MODULE_NAME"" "limited" |
24 | #else |
25 | #define __PYX_EXTRA_ABI_MODULE_NAME"" "" |
26 | #endif |
27 | #define CYTHON_ABI"3_0_5" "" "3_0_5" __PYX_EXTRA_ABI_MODULE_NAME"" |
28 | #define __PYX_ABI_MODULE_NAME"_cython_" "3_0_5" "" "_cython_" CYTHON_ABI"3_0_5" "" |
29 | #define __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." __PYX_ABI_MODULE_NAME"_cython_" "3_0_5" "" "." |
30 | #define CYTHON_HEX_VERSION0x030005F0 0x030005F0 |
31 | #define CYTHON_FUTURE_DIVISION1 1 |
32 | #include <stddef.h> |
33 | #ifndef offsetof |
34 | #define offsetof(type, member)__builtin_offsetof(type, member) ( (size_t) & ((type*)0) -> member ) |
35 | #endif |
36 | #if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS) |
37 | #ifndef __stdcall |
38 | #define __stdcall |
39 | #endif |
40 | #ifndef __cdecl |
41 | #define __cdecl |
42 | #endif |
43 | #ifndef __fastcall |
44 | #define __fastcall |
45 | #endif |
46 | #endif |
47 | #ifndef DL_IMPORT |
48 | #define DL_IMPORT(t)t t |
49 | #endif |
50 | #ifndef DL_EXPORT |
51 | #define DL_EXPORT(t)t t |
52 | #endif |
53 | #define __PYX_COMMA, , |
54 | #ifndef HAVE_LONG_LONG1 |
55 | #define HAVE_LONG_LONG1 |
56 | #endif |
57 | #ifndef PY_LONG_LONGlong long |
58 | #define PY_LONG_LONGlong long LONG_LONG |
59 | #endif |
60 | #ifndef Py_HUGE_VAL(__builtin_huge_val ()) |
61 | #define Py_HUGE_VAL(__builtin_huge_val ()) HUGE_VAL(__builtin_huge_val ()) |
62 | #endif |
63 | #define __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) |
64 | #if defined(GRAALVM_PYTHON) |
65 | /* For very preliminary testing purposes. Most variables are set the same as PyPy. |
66 | The existence of this section does not imply that anything works or is even tested */ |
67 | #define CYTHON_COMPILING_IN_PYPY0 0 |
68 | #define CYTHON_COMPILING_IN_CPYTHON1 0 |
69 | #define CYTHON_COMPILING_IN_LIMITED_API0 0 |
70 | #define CYTHON_COMPILING_IN_GRAAL0 1 |
71 | #define CYTHON_COMPILING_IN_NOGIL0 0 |
72 | #undef CYTHON_USE_TYPE_SLOTS1 |
73 | #define CYTHON_USE_TYPE_SLOTS1 0 |
74 | #undef CYTHON_USE_TYPE_SPECS0 |
75 | #define CYTHON_USE_TYPE_SPECS0 0 |
76 | #undef CYTHON_USE_PYTYPE_LOOKUP1 |
77 | #define CYTHON_USE_PYTYPE_LOOKUP1 0 |
78 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03050000 |
79 | #undef CYTHON_USE_ASYNC_SLOTS1 |
80 | #define CYTHON_USE_ASYNC_SLOTS1 0 |
81 | #elif !defined(CYTHON_USE_ASYNC_SLOTS1) |
82 | #define CYTHON_USE_ASYNC_SLOTS1 1 |
83 | #endif |
84 | #undef CYTHON_USE_PYLIST_INTERNALS1 |
85 | #define CYTHON_USE_PYLIST_INTERNALS1 0 |
86 | #undef CYTHON_USE_UNICODE_INTERNALS1 |
87 | #define CYTHON_USE_UNICODE_INTERNALS1 0 |
88 | #undef CYTHON_USE_UNICODE_WRITER0 |
89 | #define CYTHON_USE_UNICODE_WRITER0 0 |
90 | #undef CYTHON_USE_PYLONG_INTERNALS1 |
91 | #define CYTHON_USE_PYLONG_INTERNALS1 0 |
92 | #undef CYTHON_AVOID_BORROWED_REFS0 |
93 | #define CYTHON_AVOID_BORROWED_REFS0 1 |
94 | #undef CYTHON_ASSUME_SAFE_MACROS1 |
95 | #define CYTHON_ASSUME_SAFE_MACROS1 0 |
96 | #undef CYTHON_UNPACK_METHODS1 |
97 | #define CYTHON_UNPACK_METHODS1 0 |
98 | #undef CYTHON_FAST_THREAD_STATE1 |
99 | #define CYTHON_FAST_THREAD_STATE1 0 |
100 | #undef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) |
101 | #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) 0 |
102 | #undef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
103 | #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) 0 |
104 | #undef CYTHON_FAST_PYCALL1 |
105 | #define CYTHON_FAST_PYCALL1 0 |
106 | #ifndef CYTHON_PEP487_INIT_SUBCLASS1 |
107 | #define CYTHON_PEP487_INIT_SUBCLASS1 (PY_MAJOR_VERSION3 >= 3) |
108 | #endif |
109 | #undef CYTHON_PEP489_MULTI_PHASE_INIT1 |
110 | #define CYTHON_PEP489_MULTI_PHASE_INIT1 1 |
111 | #undef CYTHON_USE_MODULE_STATE0 |
112 | #define CYTHON_USE_MODULE_STATE0 0 |
113 | #undef CYTHON_USE_TP_FINALIZE1 |
114 | #define CYTHON_USE_TP_FINALIZE1 0 |
115 | #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
116 | #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) 0 |
117 | #undef CYTHON_USE_EXC_INFO_STACK1 |
118 | #define CYTHON_USE_EXC_INFO_STACK1 0 |
119 | #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1 |
120 | #define CYTHON_UPDATE_DESCRIPTOR_DOC1 0 |
121 | #endif |
122 | #elif defined(PYPY_VERSION) |
123 | #define CYTHON_COMPILING_IN_PYPY0 1 |
124 | #define CYTHON_COMPILING_IN_CPYTHON1 0 |
125 | #define CYTHON_COMPILING_IN_LIMITED_API0 0 |
126 | #define CYTHON_COMPILING_IN_GRAAL0 0 |
127 | #define CYTHON_COMPILING_IN_NOGIL0 0 |
128 | #undef CYTHON_USE_TYPE_SLOTS1 |
129 | #define CYTHON_USE_TYPE_SLOTS1 0 |
130 | #ifndef CYTHON_USE_TYPE_SPECS0 |
131 | #define CYTHON_USE_TYPE_SPECS0 0 |
132 | #endif |
133 | #undef CYTHON_USE_PYTYPE_LOOKUP1 |
134 | #define CYTHON_USE_PYTYPE_LOOKUP1 0 |
135 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03050000 |
136 | #undef CYTHON_USE_ASYNC_SLOTS1 |
137 | #define CYTHON_USE_ASYNC_SLOTS1 0 |
138 | #elif !defined(CYTHON_USE_ASYNC_SLOTS1) |
139 | #define CYTHON_USE_ASYNC_SLOTS1 1 |
140 | #endif |
141 | #undef CYTHON_USE_PYLIST_INTERNALS1 |
142 | #define CYTHON_USE_PYLIST_INTERNALS1 0 |
143 | #undef CYTHON_USE_UNICODE_INTERNALS1 |
144 | #define CYTHON_USE_UNICODE_INTERNALS1 0 |
145 | #undef CYTHON_USE_UNICODE_WRITER0 |
146 | #define CYTHON_USE_UNICODE_WRITER0 0 |
147 | #undef CYTHON_USE_PYLONG_INTERNALS1 |
148 | #define CYTHON_USE_PYLONG_INTERNALS1 0 |
149 | #undef CYTHON_AVOID_BORROWED_REFS0 |
150 | #define CYTHON_AVOID_BORROWED_REFS0 1 |
151 | #undef CYTHON_ASSUME_SAFE_MACROS1 |
152 | #define CYTHON_ASSUME_SAFE_MACROS1 0 |
153 | #undef CYTHON_UNPACK_METHODS1 |
154 | #define CYTHON_UNPACK_METHODS1 0 |
155 | #undef CYTHON_FAST_THREAD_STATE1 |
156 | #define CYTHON_FAST_THREAD_STATE1 0 |
157 | #undef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) |
158 | #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) 0 |
159 | #undef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
160 | #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) 0 |
161 | #undef CYTHON_FAST_PYCALL1 |
162 | #define CYTHON_FAST_PYCALL1 0 |
163 | #ifndef CYTHON_PEP487_INIT_SUBCLASS1 |
164 | #define CYTHON_PEP487_INIT_SUBCLASS1 (PY_MAJOR_VERSION3 >= 3) |
165 | #endif |
166 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000 |
167 | #undef CYTHON_PEP489_MULTI_PHASE_INIT1 |
168 | #define CYTHON_PEP489_MULTI_PHASE_INIT1 0 |
169 | #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT1) |
170 | #define CYTHON_PEP489_MULTI_PHASE_INIT1 1 |
171 | #endif |
172 | #undef CYTHON_USE_MODULE_STATE0 |
173 | #define CYTHON_USE_MODULE_STATE0 0 |
174 | #undef CYTHON_USE_TP_FINALIZE1 |
175 | #define CYTHON_USE_TP_FINALIZE1 (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00) |
176 | #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
177 | #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) 0 |
178 | #undef CYTHON_USE_EXC_INFO_STACK1 |
179 | #define CYTHON_USE_EXC_INFO_STACK1 0 |
180 | #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1 |
181 | #define CYTHON_UPDATE_DESCRIPTOR_DOC1 0 |
182 | #endif |
183 | #elif defined(CYTHON_LIMITED_API) |
184 | #ifdef Py_LIMITED_API |
185 | #undef __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) |
186 | #define __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) Py_LIMITED_API |
187 | #endif |
188 | #define CYTHON_COMPILING_IN_PYPY0 0 |
189 | #define CYTHON_COMPILING_IN_CPYTHON1 0 |
190 | #define CYTHON_COMPILING_IN_LIMITED_API0 1 |
191 | #define CYTHON_COMPILING_IN_GRAAL0 0 |
192 | #define CYTHON_COMPILING_IN_NOGIL0 0 |
193 | #undef CYTHON_CLINE_IN_TRACEBACK |
194 | #define CYTHON_CLINE_IN_TRACEBACK 0 |
195 | #undef CYTHON_USE_TYPE_SLOTS1 |
196 | #define CYTHON_USE_TYPE_SLOTS1 0 |
197 | #undef CYTHON_USE_TYPE_SPECS0 |
198 | #define CYTHON_USE_TYPE_SPECS0 1 |
199 | #undef CYTHON_USE_PYTYPE_LOOKUP1 |
200 | #define CYTHON_USE_PYTYPE_LOOKUP1 0 |
201 | #undef CYTHON_USE_ASYNC_SLOTS1 |
202 | #define CYTHON_USE_ASYNC_SLOTS1 0 |
203 | #undef CYTHON_USE_PYLIST_INTERNALS1 |
204 | #define CYTHON_USE_PYLIST_INTERNALS1 0 |
205 | #undef CYTHON_USE_UNICODE_INTERNALS1 |
206 | #define CYTHON_USE_UNICODE_INTERNALS1 0 |
207 | #ifndef CYTHON_USE_UNICODE_WRITER0 |
208 | #define CYTHON_USE_UNICODE_WRITER0 0 |
209 | #endif |
210 | #undef CYTHON_USE_PYLONG_INTERNALS1 |
211 | #define CYTHON_USE_PYLONG_INTERNALS1 0 |
212 | #ifndef CYTHON_AVOID_BORROWED_REFS0 |
213 | #define CYTHON_AVOID_BORROWED_REFS0 0 |
214 | #endif |
215 | #undef CYTHON_ASSUME_SAFE_MACROS1 |
216 | #define CYTHON_ASSUME_SAFE_MACROS1 0 |
217 | #undef CYTHON_UNPACK_METHODS1 |
218 | #define CYTHON_UNPACK_METHODS1 0 |
219 | #undef CYTHON_FAST_THREAD_STATE1 |
220 | #define CYTHON_FAST_THREAD_STATE1 0 |
221 | #undef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) |
222 | #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) 0 |
223 | #undef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
224 | #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) 0 |
225 | #undef CYTHON_FAST_PYCALL1 |
226 | #define CYTHON_FAST_PYCALL1 0 |
227 | #ifndef CYTHON_PEP487_INIT_SUBCLASS1 |
228 | #define CYTHON_PEP487_INIT_SUBCLASS1 1 |
229 | #endif |
230 | #undef CYTHON_PEP489_MULTI_PHASE_INIT1 |
231 | #define CYTHON_PEP489_MULTI_PHASE_INIT1 0 |
232 | #undef CYTHON_USE_MODULE_STATE0 |
233 | #define CYTHON_USE_MODULE_STATE0 1 |
234 | #ifndef CYTHON_USE_TP_FINALIZE1 |
235 | #define CYTHON_USE_TP_FINALIZE1 0 |
236 | #endif |
237 | #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
238 | #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) 0 |
239 | #undef CYTHON_USE_EXC_INFO_STACK1 |
240 | #define CYTHON_USE_EXC_INFO_STACK1 0 |
241 | #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1 |
242 | #define CYTHON_UPDATE_DESCRIPTOR_DOC1 0 |
243 | #endif |
244 | #elif defined(PY_NOGIL) |
245 | #define CYTHON_COMPILING_IN_PYPY0 0 |
246 | #define CYTHON_COMPILING_IN_CPYTHON1 0 |
247 | #define CYTHON_COMPILING_IN_LIMITED_API0 0 |
248 | #define CYTHON_COMPILING_IN_GRAAL0 0 |
249 | #define CYTHON_COMPILING_IN_NOGIL0 1 |
250 | #ifndef CYTHON_USE_TYPE_SLOTS1 |
251 | #define CYTHON_USE_TYPE_SLOTS1 1 |
252 | #endif |
253 | #undef CYTHON_USE_PYTYPE_LOOKUP1 |
254 | #define CYTHON_USE_PYTYPE_LOOKUP1 0 |
255 | #ifndef CYTHON_USE_ASYNC_SLOTS1 |
256 | #define CYTHON_USE_ASYNC_SLOTS1 1 |
257 | #endif |
258 | #undef CYTHON_USE_PYLIST_INTERNALS1 |
259 | #define CYTHON_USE_PYLIST_INTERNALS1 0 |
260 | #ifndef CYTHON_USE_UNICODE_INTERNALS1 |
261 | #define CYTHON_USE_UNICODE_INTERNALS1 1 |
262 | #endif |
263 | #undef CYTHON_USE_UNICODE_WRITER0 |
264 | #define CYTHON_USE_UNICODE_WRITER0 0 |
265 | #undef CYTHON_USE_PYLONG_INTERNALS1 |
266 | #define CYTHON_USE_PYLONG_INTERNALS1 0 |
267 | #ifndef CYTHON_AVOID_BORROWED_REFS0 |
268 | #define CYTHON_AVOID_BORROWED_REFS0 0 |
269 | #endif |
270 | #ifndef CYTHON_ASSUME_SAFE_MACROS1 |
271 | #define CYTHON_ASSUME_SAFE_MACROS1 1 |
272 | #endif |
273 | #ifndef CYTHON_UNPACK_METHODS1 |
274 | #define CYTHON_UNPACK_METHODS1 1 |
275 | #endif |
276 | #undef CYTHON_FAST_THREAD_STATE1 |
277 | #define CYTHON_FAST_THREAD_STATE1 0 |
278 | #undef CYTHON_FAST_PYCALL1 |
279 | #define CYTHON_FAST_PYCALL1 0 |
280 | #ifndef CYTHON_PEP489_MULTI_PHASE_INIT1 |
281 | #define CYTHON_PEP489_MULTI_PHASE_INIT1 1 |
282 | #endif |
283 | #ifndef CYTHON_USE_TP_FINALIZE1 |
284 | #define CYTHON_USE_TP_FINALIZE1 1 |
285 | #endif |
286 | #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
287 | #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) 0 |
288 | #undef CYTHON_USE_EXC_INFO_STACK1 |
289 | #define CYTHON_USE_EXC_INFO_STACK1 0 |
290 | #else |
291 | #define CYTHON_COMPILING_IN_PYPY0 0 |
292 | #define CYTHON_COMPILING_IN_CPYTHON1 1 |
293 | #define CYTHON_COMPILING_IN_LIMITED_API0 0 |
294 | #define CYTHON_COMPILING_IN_GRAAL0 0 |
295 | #define CYTHON_COMPILING_IN_NOGIL0 0 |
296 | #ifndef CYTHON_USE_TYPE_SLOTS1 |
297 | #define CYTHON_USE_TYPE_SLOTS1 1 |
298 | #endif |
299 | #ifndef CYTHON_USE_TYPE_SPECS0 |
300 | #define CYTHON_USE_TYPE_SPECS0 0 |
301 | #endif |
302 | #ifndef CYTHON_USE_PYTYPE_LOOKUP1 |
303 | #define CYTHON_USE_PYTYPE_LOOKUP1 1 |
304 | #endif |
305 | #if PY_MAJOR_VERSION3 < 3 |
306 | #undef CYTHON_USE_ASYNC_SLOTS1 |
307 | #define CYTHON_USE_ASYNC_SLOTS1 0 |
308 | #elif !defined(CYTHON_USE_ASYNC_SLOTS1) |
309 | #define CYTHON_USE_ASYNC_SLOTS1 1 |
310 | #endif |
311 | #ifndef CYTHON_USE_PYLONG_INTERNALS1 |
312 | #define CYTHON_USE_PYLONG_INTERNALS1 1 |
313 | #endif |
314 | #ifndef CYTHON_USE_PYLIST_INTERNALS1 |
315 | #define CYTHON_USE_PYLIST_INTERNALS1 1 |
316 | #endif |
317 | #ifndef CYTHON_USE_UNICODE_INTERNALS1 |
318 | #define CYTHON_USE_UNICODE_INTERNALS1 1 |
319 | #endif |
320 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030300F0 || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00A2 |
321 | #undef CYTHON_USE_UNICODE_WRITER0 |
322 | #define CYTHON_USE_UNICODE_WRITER0 0 |
323 | #elif !defined(CYTHON_USE_UNICODE_WRITER0) |
324 | #define CYTHON_USE_UNICODE_WRITER0 1 |
325 | #endif |
326 | #ifndef CYTHON_AVOID_BORROWED_REFS0 |
327 | #define CYTHON_AVOID_BORROWED_REFS0 0 |
328 | #endif |
329 | #ifndef CYTHON_ASSUME_SAFE_MACROS1 |
330 | #define CYTHON_ASSUME_SAFE_MACROS1 1 |
331 | #endif |
332 | #ifndef CYTHON_UNPACK_METHODS1 |
333 | #define CYTHON_UNPACK_METHODS1 1 |
334 | #endif |
335 | #ifndef CYTHON_FAST_THREAD_STATE1 |
336 | #define CYTHON_FAST_THREAD_STATE1 1 |
337 | #endif |
338 | #ifndef CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) |
339 | #define CYTHON_FAST_GIL(3 < 3 || ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) (PY_MAJOR_VERSION3 < 3 || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6) |
340 | #endif |
341 | #ifndef CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
342 | #define CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
343 | #endif |
344 | #ifndef CYTHON_FAST_PYCALL1 |
345 | #define CYTHON_FAST_PYCALL1 1 |
346 | #endif |
347 | #ifndef CYTHON_PEP487_INIT_SUBCLASS1 |
348 | #define CYTHON_PEP487_INIT_SUBCLASS1 1 |
349 | #endif |
350 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03050000 |
351 | #undef CYTHON_PEP489_MULTI_PHASE_INIT1 |
352 | #define CYTHON_PEP489_MULTI_PHASE_INIT1 0 |
353 | #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT1) |
354 | #define CYTHON_PEP489_MULTI_PHASE_INIT1 1 |
355 | #endif |
356 | #ifndef CYTHON_USE_MODULE_STATE0 |
357 | #define CYTHON_USE_MODULE_STATE0 0 |
358 | #endif |
359 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030400a1 |
360 | #undef CYTHON_USE_TP_FINALIZE1 |
361 | #define CYTHON_USE_TP_FINALIZE1 0 |
362 | #elif !defined(CYTHON_USE_TP_FINALIZE1) |
363 | #define CYTHON_USE_TP_FINALIZE1 1 |
364 | #endif |
365 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030600B1 |
366 | #undef CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
367 | #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) 0 |
368 | #elif !defined(CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5)) |
369 | #define CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
370 | #endif |
371 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030700A3 |
372 | #undef CYTHON_USE_EXC_INFO_STACK1 |
373 | #define CYTHON_USE_EXC_INFO_STACK1 0 |
374 | #elif !defined(CYTHON_USE_EXC_INFO_STACK1) |
375 | #define CYTHON_USE_EXC_INFO_STACK1 1 |
376 | #endif |
377 | #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC1 |
378 | #define CYTHON_UPDATE_DESCRIPTOR_DOC1 1 |
379 | #endif |
380 | #endif |
381 | #if !defined(CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1)) |
382 | #define CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) (CYTHON_FAST_PYCALL1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) |
383 | #endif |
384 | #if !defined(CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1)) |
385 | #define CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) (CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) |
386 | #endif |
387 | #define CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) (CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
388 | #if CYTHON_USE_PYLONG_INTERNALS1 |
389 | #if PY_MAJOR_VERSION3 < 3 |
390 | #include "longintrepr.h" |
391 | #endif |
392 | #undef SHIFT |
393 | #undef BASE |
394 | #undef MASK |
395 | #ifdef SIZEOF_VOID_P8 |
396 | enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P8 == sizeof(void*)) }; |
397 | #endif |
398 | #endif |
399 | #ifndef __has_attribute |
400 | #define0 __has_attribute(x)0 0 |
401 | #endif |
402 | #ifndef __has_cpp_attribute |
403 | #define __has_cpp_attribute(x)0 0 |
404 | #endif |
405 | #ifndef CYTHON_RESTRICT__restrict__ |
406 | #if defined(__GNUC__4) |
407 | #define CYTHON_RESTRICT__restrict__ __restrict__ |
408 | #elif defined(_MSC_VER) && _MSC_VER >= 1400 |
409 | #define CYTHON_RESTRICT__restrict__ __restrict |
410 | #elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L |
411 | #define CYTHON_RESTRICT__restrict__ restrict |
412 | #else |
413 | #define CYTHON_RESTRICT__restrict__ |
414 | #endif |
415 | #endif |
416 | #ifndef CYTHON_UNUSED__attribute__ ((__unused__)) |
417 | #if defined(__cplusplus) |
418 | /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17 |
419 | * but leads to warnings with -pedantic, since it is a C++17 feature */ |
420 | #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L) |
421 | #if __has_cpp_attribute(maybe_unused)0 |
422 | #define CYTHON_UNUSED__attribute__ ((__unused__)) [[maybe_unused]] |
423 | #endif |
424 | #endif |
425 | #endif |
426 | #endif |
427 | #ifndef CYTHON_UNUSED__attribute__ ((__unused__)) |
428 | # if defined(__GNUC__4) |
429 | # if !(defined(__cplusplus)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)) |
430 | # define CYTHON_UNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
431 | # else |
432 | # define CYTHON_UNUSED__attribute__ ((__unused__)) |
433 | # endif |
434 | # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) |
435 | # define CYTHON_UNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
436 | # else |
437 | # define CYTHON_UNUSED__attribute__ ((__unused__)) |
438 | # endif |
439 | #endif |
440 | #ifndef CYTHON_UNUSED_VAR |
441 | # if defined(__cplusplus) |
442 | template<class T> void CYTHON_UNUSED_VAR( const T& )(void)(const T&) { } |
443 | # else |
444 | # define CYTHON_UNUSED_VAR(x)(void)(x) (void)(x) |
445 | # endif |
446 | #endif |
447 | #ifndef CYTHON_MAYBE_UNUSED_VAR |
448 | #define CYTHON_MAYBE_UNUSED_VAR(x)(void)(x) CYTHON_UNUSED_VAR(x)(void)(x) |
449 | #endif |
450 | #ifndef CYTHON_NCP_UNUSED |
451 | # if CYTHON_COMPILING_IN_CPYTHON1 |
452 | # define CYTHON_NCP_UNUSED |
453 | # else |
454 | # define CYTHON_NCP_UNUSED CYTHON_UNUSED__attribute__ ((__unused__)) |
455 | # endif |
456 | #endif |
457 | #ifndef CYTHON_USE_CPP_STD_MOVE0 |
458 | #if defined(__cplusplus) && (\ |
459 | __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)) |
460 | #define CYTHON_USE_CPP_STD_MOVE0 1 |
461 | #else |
462 | #define CYTHON_USE_CPP_STD_MOVE0 0 |
463 | #endif |
464 | #endif |
465 | #define __Pyx_void_to_None(void_result)((void)(void_result), Py_INCREF(((PyObject*)(((&_Py_NoneStruct ))))), (&_Py_NoneStruct)) ((void)(void_result), Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))), Py_None(&_Py_NoneStruct)) |
466 | #ifdef _MSC_VER |
467 | #ifndef _MSC_STDINT_H_ |
468 | #if _MSC_VER < 1300 |
469 | typedef unsigned char uint8_t; |
470 | typedef unsigned short uint16_t; |
471 | typedef unsigned int uint32_t; |
472 | #else |
473 | typedef unsigned __int8 uint8_t; |
474 | typedef unsigned __int16 uint16_t; |
475 | typedef unsigned __int32 uint32_t; |
476 | #endif |
477 | #endif |
478 | #if _MSC_VER < 1300 |
479 | #ifdef _WIN64 |
480 | typedef unsigned long long __pyx_uintptr_t; |
481 | #else |
482 | typedef unsigned int __pyx_uintptr_t; |
483 | #endif |
484 | #else |
485 | #ifdef _WIN64 |
486 | typedef unsigned __int64 __pyx_uintptr_t; |
487 | #else |
488 | typedef unsigned __int32 __pyx_uintptr_t; |
489 | #endif |
490 | #endif |
491 | #else |
492 | #include <stdint.h> |
493 | typedef uintptr_t __pyx_uintptr_t; |
494 | #endif |
495 | #ifndef CYTHON_FALLTHROUGH__attribute__((fallthrough)) |
496 | #if defined(__cplusplus) |
497 | /* for clang __has_cpp_attribute(fallthrough) is true even before C++17 |
498 | * but leads to warnings with -pedantic, since it is a C++17 feature */ |
499 | #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L) |
500 | #if __has_cpp_attribute(fallthrough)0 |
501 | #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) [[fallthrough]] |
502 | #endif |
503 | #endif |
504 | #ifndef CYTHON_FALLTHROUGH__attribute__((fallthrough)) |
505 | #if __has_cpp_attribute(clang::fallthrough)0 |
506 | #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) [[clang::fallthrough]] |
507 | #elif __has_cpp_attribute(gnu::fallthrough)0 |
508 | #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) [[gnu::fallthrough]] |
509 | #endif |
510 | #endif |
511 | #endif |
512 | #ifndef CYTHON_FALLTHROUGH__attribute__((fallthrough)) |
513 | #if __has_attribute(fallthrough)1 |
514 | #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) __attribute__((fallthrough)) |
515 | #else |
516 | #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) |
517 | #endif |
518 | #endif |
519 | #if defined(__clang__1) && defined(__apple_build_version__) |
520 | #if __apple_build_version__ < 7000000 |
521 | #undef CYTHON_FALLTHROUGH__attribute__((fallthrough)) |
522 | #define CYTHON_FALLTHROUGH__attribute__((fallthrough)) |
523 | #endif |
524 | #endif |
525 | #endif |
526 | #ifdef __cplusplus |
527 | template <typename T> |
528 | struct __PYX_IS_UNSIGNED_IMPL {static const bool_Bool value = T(0) < T(-1);}; |
529 | #define __PYX_IS_UNSIGNED(type)(((type)-1) > 0) (__PYX_IS_UNSIGNED_IMPL<type>::value) |
530 | #else |
531 | #define __PYX_IS_UNSIGNED(type)(((type)-1) > 0) (((type)-1) > 0) |
532 | #endif |
533 | #if CYTHON_COMPILING_IN_PYPY0 == 1 |
534 | #define __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000) (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030A0000) |
535 | #else |
536 | #define __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000) (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000) |
537 | #endif |
538 | #define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer)((func_pointer)(void(*)(void))(other_pointer)) ((func_pointer)(void(*)(void))(other_pointer)) |
539 | |
540 | #ifndef CYTHON_INLINE__inline__ __attribute__ ((__unused__)) |
541 | #if defined(__clang__1) |
542 | #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) __inline__ __attribute__ ((__unused__)) |
543 | #elif defined(__GNUC__4) |
544 | #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) __inline__ |
545 | #elif defined(_MSC_VER) |
546 | #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) __inline |
547 | #elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L |
548 | #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) inline |
549 | #else |
550 | #define CYTHON_INLINE__inline__ __attribute__ ((__unused__)) |
551 | #endif |
552 | #endif |
553 | |
554 | #define __PYX_BUILD_PY_SSIZE_T"n" "n" |
555 | #define CYTHON_FORMAT_SSIZE_T"z" "z" |
556 | #if PY_MAJOR_VERSION3 < 3 |
557 | #define __Pyx_BUILTIN_MODULE_NAME"builtins" "__builtin__" |
558 | #define __Pyx_DefaultClassTypePyType_Type PyClass_Type |
559 | #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ |
560 | PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) |
561 | #else |
562 | #define __Pyx_BUILTIN_MODULE_NAME"builtins" "builtins" |
563 | #define __Pyx_DefaultClassTypePyType_Type PyType_Type |
564 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
565 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f, |
566 | PyObject *code, PyObject *c, PyObject* n, PyObject *v, |
567 | PyObject *fv, PyObject *cell, PyObject* fn, |
568 | PyObject *name, int fline, PyObject *lnos) { |
569 | PyObject *exception_table = NULL((void*)0); |
570 | PyObject *types_module=NULL((void*)0), *code_type=NULL((void*)0), *result=NULL((void*)0); |
571 | #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000 |
572 | PyObject *version_info; // borrowed |
573 | #endif |
574 | PyObject *py_minor_version = NULL((void*)0); |
575 | long minor_version = 0; |
576 | PyObject *type, *value, *traceback; |
577 | PyErr_Fetch(&type, &value, &traceback); |
578 | #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B0000 |
579 | minor_version = 11; // we don't yet need to distinguish between versions > 11 |
580 | #else |
581 | if (!(version_info = PySys_GetObject("version_info"))) goto end; |
582 | if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end; |
583 | minor_version = PyLong_AsLong(py_minor_version); |
584 | if (minor_version == -1 && PyErr_Occurred()) goto end; |
585 | #endif |
586 | if (!(types_module = PyImport_ImportModule("types"))) goto end; |
587 | if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end; |
588 | if (minor_version <= 7) { |
589 | (void)p; |
590 | result = PyObject_CallFunction_PyObject_CallFunction_SizeT(code_type, "iiiiiOOOOOOiOO", a, k, l, s, f, code, |
591 | c, n, v, fn, name, fline, lnos, fv, cell); |
592 | } else if (minor_version <= 10) { |
593 | result = PyObject_CallFunction_PyObject_CallFunction_SizeT(code_type, "iiiiiiOOOOOOiOO", a,p, k, l, s, f, code, |
594 | c, n, v, fn, name, fline, lnos, fv, cell); |
595 | } else { |
596 | if (!(exception_table = PyBytes_FromStringAndSize(NULL((void*)0), 0))) goto end; |
597 | result = PyObject_CallFunction_PyObject_CallFunction_SizeT(code_type, "iiiiiiOOOOOOOiOO", a,p, k, l, s, f, code, |
598 | c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell); |
599 | } |
600 | end: |
601 | Py_XDECREF(code_type)Py_XDECREF(((PyObject*)((code_type)))); |
602 | Py_XDECREF(exception_table)Py_XDECREF(((PyObject*)((exception_table)))); |
603 | Py_XDECREF(types_module)Py_XDECREF(((PyObject*)((types_module)))); |
604 | Py_XDECREF(py_minor_version)Py_XDECREF(((PyObject*)((py_minor_version)))); |
605 | if (type) { |
606 | PyErr_Restore(type, value, traceback); |
607 | } |
608 | return result; |
609 | } |
610 | #ifndef CO_OPTIMIZED0x0001 |
611 | #define CO_OPTIMIZED0x0001 0x0001 |
612 | #endif |
613 | #ifndef CO_NEWLOCALS0x0002 |
614 | #define CO_NEWLOCALS0x0002 0x0002 |
615 | #endif |
616 | #ifndef CO_VARARGS0x0004 |
617 | #define CO_VARARGS0x0004 0x0004 |
618 | #endif |
619 | #ifndef CO_VARKEYWORDS0x0008 |
620 | #define CO_VARKEYWORDS0x0008 0x0008 |
621 | #endif |
622 | #ifndef CO_ASYNC_GENERATOR0x0200 |
623 | #define CO_ASYNC_GENERATOR0x0200 0x0200 |
624 | #endif |
625 | #ifndef CO_GENERATOR0x0020 |
626 | #define CO_GENERATOR0x0020 0x0020 |
627 | #endif |
628 | #ifndef CO_COROUTINE0x0080 |
629 | #define CO_COROUTINE0x0080 0x0080 |
630 | #endif |
631 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B0000 |
632 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyCodeObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f, |
633 | PyObject *code, PyObject *c, PyObject* n, PyObject *v, |
634 | PyObject *fv, PyObject *cell, PyObject* fn, |
635 | PyObject *name, int fline, PyObject *lnos) { |
636 | PyCodeObject *result; |
637 | PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); // we don't have access to __pyx_empty_bytes here |
638 | if (!empty_bytes) return NULL((void*)0); |
639 | result = |
640 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C0000 |
641 | PyUnstable_Code_NewWithPosOnlyArgs |
642 | #else |
643 | PyCode_NewWithPosOnlyArgs |
644 | #endif |
645 | (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, empty_bytes); |
646 | Py_DECREF(empty_bytes)Py_DECREF(((PyObject*)((empty_bytes)))); |
647 | return result; |
648 | } |
649 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY0 |
650 | #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ |
651 | PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) |
652 | #else |
653 | #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ |
654 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) |
655 | #endif |
656 | #endif |
657 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030900A4 || defined(Py_IS_TYPE) |
658 | #define __Pyx_IS_TYPE(ob, type)Py_IS_TYPE(((PyObject*)((ob))), type) Py_IS_TYPE(ob, type)Py_IS_TYPE(((PyObject*)((ob))), type) |
659 | #else |
660 | #define __Pyx_IS_TYPE(ob, type)Py_IS_TYPE(((PyObject*)((ob))), type) (((const PyObject*)ob)->ob_type == (type)) |
661 | #endif |
662 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030A00B1 || defined(Py_Is) |
663 | #define __Pyx_Py_Is(x, y)((x) == (y)) Py_Is(x, y)((x) == (y)) |
664 | #else |
665 | #define __Pyx_Py_Is(x, y)((x) == (y)) ((x) == (y)) |
666 | #endif |
667 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030A00B1 || defined(Py_IsNone) |
668 | #define __Pyx_Py_IsNone(ob)(((ob)) == ((&_Py_NoneStruct))) Py_IsNone(ob)(((ob)) == ((&_Py_NoneStruct))) |
669 | #else |
670 | #define __Pyx_Py_IsNone(ob)(((ob)) == ((&_Py_NoneStruct))) __Pyx_Py_Is((ob), Py_None)(((ob)) == ((&_Py_NoneStruct))) |
671 | #endif |
672 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030A00B1 || defined(Py_IsTrue) |
673 | #define __Pyx_Py_IsTrue(ob)(((ob)) == (((PyObject *) &_Py_TrueStruct))) Py_IsTrue(ob)(((ob)) == (((PyObject *) &_Py_TrueStruct))) |
674 | #else |
675 | #define __Pyx_Py_IsTrue(ob)(((ob)) == (((PyObject *) &_Py_TrueStruct))) __Pyx_Py_Is((ob), Py_True)(((ob)) == (((PyObject *) &_Py_TrueStruct))) |
676 | #endif |
677 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030A00B1 || defined(Py_IsFalse) |
678 | #define __Pyx_Py_IsFalse(ob)(((ob)) == (((PyObject *) &_Py_FalseStruct))) Py_IsFalse(ob)(((ob)) == (((PyObject *) &_Py_FalseStruct))) |
679 | #else |
680 | #define __Pyx_Py_IsFalse(ob)(((ob)) == (((PyObject *) &_Py_FalseStruct))) __Pyx_Py_Is((ob), Py_False)(((ob)) == (((PyObject *) &_Py_FalseStruct))) |
681 | #endif |
682 | #define __Pyx_NoneAsNull(obj)((((obj)) == ((&_Py_NoneStruct))) ? ((void*)0) : (obj)) (__Pyx_Py_IsNone(obj)(((obj)) == ((&_Py_NoneStruct))) ? NULL((void*)0) : (obj)) |
683 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY0 |
684 | #define __Pyx_PyObject_GC_IsFinalized(o)PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o) |
685 | #else |
686 | #define __Pyx_PyObject_GC_IsFinalized(o)PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)PyObject_GC_IsFinalized(o) |
687 | #endif |
688 | #ifndef CO_COROUTINE0x0080 |
689 | #define CO_COROUTINE0x0080 0x80 |
690 | #endif |
691 | #ifndef CO_ASYNC_GENERATOR0x0200 |
692 | #define CO_ASYNC_GENERATOR0x0200 0x200 |
693 | #endif |
694 | #ifndef Py_TPFLAGS_CHECKTYPES0 |
695 | #define Py_TPFLAGS_CHECKTYPES0 0 |
696 | #endif |
697 | #ifndef Py_TPFLAGS_HAVE_INDEX0 |
698 | #define Py_TPFLAGS_HAVE_INDEX0 0 |
699 | #endif |
700 | #ifndef Py_TPFLAGS_HAVE_NEWBUFFER0 |
701 | #define Py_TPFLAGS_HAVE_NEWBUFFER0 0 |
702 | #endif |
703 | #ifndef Py_TPFLAGS_HAVE_FINALIZE(1UL << 0) |
704 | #define Py_TPFLAGS_HAVE_FINALIZE(1UL << 0) 0 |
705 | #endif |
706 | #ifndef Py_TPFLAGS_SEQUENCE(1 << 5) |
707 | #define Py_TPFLAGS_SEQUENCE(1 << 5) 0 |
708 | #endif |
709 | #ifndef Py_TPFLAGS_MAPPING(1 << 6) |
710 | #define Py_TPFLAGS_MAPPING(1 << 6) 0 |
711 | #endif |
712 | #ifndef METH_STACKLESS0x0000 |
713 | #define METH_STACKLESS0x0000 0 |
714 | #endif |
715 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x030700A3 || !defined(METH_FASTCALL0x0080) |
716 | #ifndef METH_FASTCALL0x0080 |
717 | #define METH_FASTCALL0x0080 0x80 |
718 | #endif |
719 | typedef PyObject *(*__Pyx_PyCFunctionFast_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); |
720 | typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, |
721 | Py_ssize_t nargs, PyObject *kwnames); |
722 | #else |
723 | #define __Pyx_PyCFunctionFast_PyCFunctionFast _PyCFunctionFast |
724 | #define __Pyx_PyCFunctionFastWithKeywords_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords |
725 | #endif |
726 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
727 | #define __Pyx_METH_FASTCALL0x0080 METH_FASTCALL0x0080 |
728 | #define __Pyx_PyCFunction_FastCall_PyCFunctionFast __Pyx_PyCFunctionFast_PyCFunctionFast |
729 | #define __Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords __Pyx_PyCFunctionFastWithKeywords_PyCFunctionFastWithKeywords |
730 | #else |
731 | #define __Pyx_METH_FASTCALL0x0080 METH_VARARGS0x0001 |
732 | #define __Pyx_PyCFunction_FastCall_PyCFunctionFast PyCFunction |
733 | #define __Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords PyCFunctionWithKeywords |
734 | #endif |
735 | #if CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) |
736 | #define __pyx_vectorcallfuncvectorcallfunc vectorcallfunc |
737 | #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)) PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)) |
738 | #define __Pyx_PyVectorcall_NARGS(n)PyVectorcall_NARGS((size_t)(n)) PyVectorcall_NARGS((size_t)(n)) |
739 | #elif CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
740 | typedef PyObject *(*__pyx_vectorcallfuncvectorcallfunc)(PyObject *callable, PyObject *const *args, |
741 | size_t nargsf, PyObject *kwnames); |
742 | #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)) ((size_t)1 << (8 * sizeof(size_t) - 1)) |
743 | #define __Pyx_PyVectorcall_NARGS(n)PyVectorcall_NARGS((size_t)(n)) ((Py_ssize_t)(((size_t)(n)) & ~__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)))) |
744 | #else |
745 | #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)) 0 |
746 | #define __Pyx_PyVectorcall_NARGS(n)PyVectorcall_NARGS((size_t)(n)) ((Py_ssize_t)(n)) |
747 | #endif |
748 | #if PY_MAJOR_VERSION3 >= 0x030900B1 |
749 | #define __Pyx_PyCFunction_CheckExact(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type ) PyCFunction_CheckExact(func)Py_IS_TYPE(((PyObject*)((func))), &PyCFunction_Type) |
750 | #else |
751 | #define __Pyx_PyCFunction_CheckExact(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type ) PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type ) |
752 | #endif |
753 | #define __Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject *)&PyCFunction_Type) PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type ) |
754 | #if CYTHON_COMPILING_IN_CPYTHON1 |
755 | #define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth) (((PyCFunctionObject*)(func))->m_ml->ml_meth) |
756 | #elif !CYTHON_COMPILING_IN_LIMITED_API0 |
757 | #define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth) PyCFunction_GET_FUNCTION(func)PyCFunction_GET_FUNCTION(((PyObject*)((func)))) |
758 | #endif |
759 | #if CYTHON_COMPILING_IN_CPYTHON1 |
760 | #define __Pyx_CyOrPyCFunction_GET_FLAGS(func)(((PyCFunctionObject*)(func))->m_ml->ml_flags) (((PyCFunctionObject*)(func))->m_ml->ml_flags) |
761 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) { |
762 | return (__Pyx_CyOrPyCFunction_GET_FLAGS(func)(((PyCFunctionObject*)(func))->m_ml->ml_flags) & METH_STATIC0x0020) ? NULL((void*)0) : ((PyCFunctionObject*)func)->m_self; |
763 | } |
764 | #endif |
765 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCFunction(PyObject *func, void *cfunc) { |
766 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
767 | return PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type ) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc; |
768 | #else |
769 | return PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type ) && PyCFunction_GET_FUNCTION(func)PyCFunction_GET_FUNCTION(((PyObject*)((func)))) == (PyCFunction) cfunc; |
770 | #endif |
771 | } |
772 | #define __Pyx_IsSameCFunction(func, cfunc)__Pyx__IsSameCyOrCFunction(func, cfunc) __Pyx__IsSameCFunction(func, cfunc) |
773 | #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900B1 |
774 | #define __Pyx_PyType_FromModuleAndSpec(m, s, b)PyType_FromModuleAndSpec(m, s, b) ((void)m, PyType_FromSpecWithBases(s, b)) |
775 | typedef PyObject *(*__Pyx_PyCMethodPyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *); |
776 | #else |
777 | #define __Pyx_PyType_FromModuleAndSpec(m, s, b)PyType_FromModuleAndSpec(m, s, b) PyType_FromModuleAndSpec(m, s, b) |
778 | #define __Pyx_PyCMethodPyCMethod PyCMethod |
779 | #endif |
780 | #ifndef METH_METHOD0x0200 |
781 | #define METH_METHOD0x0200 0x200 |
782 | #endif |
783 | #if CYTHON_COMPILING_IN_PYPY0 && !defined(PyObject_Malloc) |
784 | #define PyObject_Malloc(s) PyMem_Malloc(s) |
785 | #define PyObject_Free(p) PyMem_Free(p) |
786 | #define PyObject_Realloc(p) PyMem_Realloc(p) |
787 | #endif |
788 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
789 | #define __Pyx_PyCode_HasFreeVars(co)(((co)->co_nfreevars) > 0) (PyCode_GetNumFree(co)((co)->co_nfreevars) > 0) |
790 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno)(frame)->f_lineno = (lineno) |
791 | #else |
792 | #define __Pyx_PyCode_HasFreeVars(co)(((co)->co_nfreevars) > 0) (PyCode_GetNumFree(co)((co)->co_nfreevars) > 0) |
793 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno)(frame)->f_lineno = (lineno) (frame)->f_lineno = (lineno) |
794 | #endif |
795 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
796 | #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_Get() |
797 | #elif !CYTHON_FAST_THREAD_STATE1 |
798 | #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_GET()PyThreadState_Get() |
799 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030d00A1 |
800 | #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_GetUnchecked() |
801 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03060000 |
802 | #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() _PyThreadState_UncheckedGet() |
803 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
804 | #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() PyThreadState_GET()PyThreadState_Get() |
805 | #else |
806 | #define __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet() _PyThreadState_Current |
807 | #endif |
808 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
809 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void *__Pyx_PyModule_GetState(PyObject *op) |
810 | { |
811 | void *result; |
812 | result = PyModule_GetState(op); |
813 | if (!result) |
814 | Py_FatalError("Couldn't find the module state")_Py_FatalErrorFunc(__func__, "Couldn't find the module state" ); |
815 | return result; |
816 | } |
817 | #endif |
818 | #define __Pyx_PyObject_GetSlot(obj, name, func_ctype)((Py_TYPE(((PyObject*)((obj)))))->name) __Pyx_PyType_GetSlot(Py_TYPE(obj), name, func_ctype)((Py_TYPE(((PyObject*)((obj)))))->name) |
819 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
820 | #define __Pyx_PyType_GetSlot(type, name, func_ctype)((type)->name) ((func_ctype) PyType_GetSlot((type), Py_##name)) |
821 | #else |
822 | #define __Pyx_PyType_GetSlot(type, name, func_ctype)((type)->name) ((type)->name) |
823 | #endif |
824 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT{0}) |
825 | #include "pythread.h" |
826 | #define Py_tss_NEEDS_INIT{0} 0 |
827 | typedef int Py_tss_t; |
828 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyThread_tss_create(Py_tss_t *key) { |
829 | *key = PyThread_create_key(); |
830 | return 0; |
831 | } |
832 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_tss_t * PyThread_tss_alloc(void) { |
833 | Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); |
834 | *key = Py_tss_NEEDS_INIT{0}; |
835 | return key; |
836 | } |
837 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void PyThread_tss_free(Py_tss_t *key) { |
838 | PyObject_Free(key); |
839 | } |
840 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyThread_tss_is_created(Py_tss_t *key) { |
841 | return *key != Py_tss_NEEDS_INIT{0}; |
842 | } |
843 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void PyThread_tss_delete(Py_tss_t *key) { |
844 | PyThread_delete_key(*key); |
845 | *key = Py_tss_NEEDS_INIT{0}; |
846 | } |
847 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyThread_tss_set(Py_tss_t *key, void *value) { |
848 | return PyThread_set_key_value(*key, value); |
849 | } |
850 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void * PyThread_tss_get(Py_tss_t *key) { |
851 | return PyThread_get_key_value(*key); |
852 | } |
853 | #endif |
854 | #if PY_MAJOR_VERSION3 < 3 |
855 | #if CYTHON_COMPILING_IN_PYPY0 |
856 | #if PYPY_VERSION_NUM < 0x07030600 |
857 | #if defined(__cplusplus) && __cplusplus >= 201402L |
858 | [[deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")]] |
859 | #elif defined(__GNUC__4) || defined(__clang__1) |
860 | __attribute__ ((__deprecated__("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6"))) |
861 | #elif defined(_MSC_VER) |
862 | __declspec(deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")) |
863 | #endif |
864 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyGILState_Check(void) { |
865 | return 0; |
866 | } |
867 | #else // PYPY_VERSION_NUM < 0x07030600 |
868 | #endif // PYPY_VERSION_NUM < 0x07030600 |
869 | #else |
870 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int PyGILState_Check(void) { |
871 | PyThreadState * tstate = _PyThreadState_Current; |
872 | return tstate && (tstate == PyGILState_GetThisThreadState()); |
873 | } |
874 | #endif |
875 | #endif |
876 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d0000 || defined(_PyDict_NewPresized) |
877 | #define __Pyx_PyDict_NewPresized(n)((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) |
878 | #else |
879 | #define __Pyx_PyDict_NewPresized(n)((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) PyDict_New() |
880 | #endif |
881 | #if PY_MAJOR_VERSION3 >= 3 || CYTHON_FUTURE_DIVISION1 |
882 | #define __Pyx_PyNumber_Divide(x,y)PyNumber_TrueDivide(x,y) PyNumber_TrueDivide(x,y) |
883 | #define __Pyx_PyNumber_InPlaceDivide(x,y)PyNumber_InPlaceTrueDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) |
884 | #else |
885 | #define __Pyx_PyNumber_Divide(x,y)PyNumber_TrueDivide(x,y) PyNumber_Divide(x,y) |
886 | #define __Pyx_PyNumber_InPlaceDivide(x,y)PyNumber_InPlaceTrueDivide(x,y) PyNumber_InPlaceDivide(x,y) |
887 | #endif |
888 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) > 0x030600B4 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d0000 && CYTHON_USE_UNICODE_INTERNALS1 |
889 | #define __Pyx_PyDict_GetItemStrWithError(dict, name)_PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name )->hash) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) |
890 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) { |
891 | PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name)_PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name )->hash); |
892 | if (res == NULL((void*)0)) PyErr_Clear(); |
893 | return res; |
894 | } |
895 | #elif PY_MAJOR_VERSION3 >= 3 && (!CYTHON_COMPILING_IN_PYPY0 || PYPY_VERSION_NUM >= 0x07020000) |
896 | #define __Pyx_PyDict_GetItemStrWithError PyDict_GetItemWithError |
897 | #define __Pyx_PyDict_GetItemStr PyDict_GetItem |
898 | #else |
899 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name)_PyDict_GetItem_KnownHash(PyObject *dict, PyObject *name, ((PyASCIIObject *) PyObject *name)->hash) { |
900 | #if CYTHON_COMPILING_IN_PYPY0 |
901 | return PyDict_GetItem(dict, name); |
902 | #else |
903 | PyDictEntry *ep; |
904 | PyDictObject *mp = (PyDictObject*) dict; |
905 | long hash = ((PyStringObjectPyUnicodeObject *) name)->ob_shash; |
906 | assert(hash != -1)((void) sizeof ((hash != -1) ? 1 : 0), __extension__ ({ if (hash != -1) ; else __assert_fail ("hash != -1", "abaqusFILReader.c" , 906, __extension__ __PRETTY_FUNCTION__); })); |
907 | ep = (mp->ma_lookup)(mp, name, hash); |
908 | if (ep == NULL((void*)0)) { |
909 | return NULL((void*)0); |
910 | } |
911 | return ep->me_value; |
912 | #endif |
913 | } |
914 | #define __Pyx_PyDict_GetItemStr PyDict_GetItem |
915 | #endif |
916 | #if CYTHON_USE_TYPE_SLOTS1 |
917 | #define __Pyx_PyType_GetFlags(tp)(((PyTypeObject *)tp)->tp_flags) (((PyTypeObject *)tp)->tp_flags) |
918 | #define __Pyx_PyType_HasFeature(type, feature)(((((PyTypeObject *)type)->tp_flags) & (feature)) != 0 ) ((__Pyx_PyType_GetFlags(type)(((PyTypeObject *)type)->tp_flags) & (feature)) != 0) |
919 | #define __Pyx_PyObject_GetIterNextFunc(obj)(Py_TYPE(((PyObject*)((obj))))->tp_iternext) (Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_iternext) |
920 | #else |
921 | #define __Pyx_PyType_GetFlags(tp)(((PyTypeObject *)tp)->tp_flags) (PyType_GetFlags((PyTypeObject *)tp)) |
922 | #define __Pyx_PyType_HasFeature(type, feature)(((((PyTypeObject *)type)->tp_flags) & (feature)) != 0 ) PyType_HasFeature(type, feature) |
923 | #define __Pyx_PyObject_GetIterNextFunc(obj)(Py_TYPE(((PyObject*)((obj))))->tp_iternext) PyIter_Next |
924 | #endif |
925 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
926 | #define __Pyx_SetItemOnTypeDict(tp, k, v)PyDict_SetItem(tp->tp_dict, k, v) PyObject_GenericSetAttr((PyObject*)tp, k, v) |
927 | #else |
928 | #define __Pyx_SetItemOnTypeDict(tp, k, v)PyDict_SetItem(tp->tp_dict, k, v) PyDict_SetItem(tp->tp_dict, k, v) |
929 | #endif |
930 | #if CYTHON_USE_TYPE_SPECS0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03080000 |
931 | #define __Pyx_PyHeapTypeObject_GC_Del(obj)PyObject_GC_Del(obj) {\ |
932 | PyTypeObject *type = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))));\ |
933 | assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE))((void) sizeof (((((((PyTypeObject *)type)->tp_flags) & ((1UL << 9))) != 0)) ? 1 : 0), __extension__ ({ if ((( (((PyTypeObject *)type)->tp_flags) & ((1UL << 9) )) != 0)) ; else __assert_fail ("__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE)" , "abaqusFILReader.c", 933, __extension__ __PRETTY_FUNCTION__ ); }));\ |
934 | PyObject_GC_Del(obj);\ |
935 | Py_DECREF(type)Py_DECREF(((PyObject*)((type))));\ |
936 | } |
937 | #else |
938 | #define __Pyx_PyHeapTypeObject_GC_Del(obj)PyObject_GC_Del(obj) PyObject_GC_Del(obj) |
939 | #endif |
940 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
941 | #define CYTHON_PEP393_ENABLED1 1 |
942 | #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op))))) , 1) ? 0 : _PyUnicode_Ready((PyObject *)(op))) (0) |
943 | #define __Pyx_PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) PyUnicode_GetLength(u) |
944 | #define __Pyx_PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i)) PyUnicode_ReadChar(u, i) |
945 | #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u)))) ((void)u, 1114111U) |
946 | #define __Pyx_PyUnicode_KIND(u)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u))) )) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject *)((u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "abaqusFILReader.c" , 946, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL << 28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE (((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail ("PyUnicode_Check(u)", "abaqusFILReader.c", 946, __extension__ __PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state .kind)) ((void)u, (0)) |
947 | #define __Pyx_PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u)))) ((void*)u) |
948 | #define __Pyx_PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i)) ((void)k, PyUnicode_ReadChar((PyObject*)(d), i)) |
949 | #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u ))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject *)(u))->wstr_length)) (0 != PyUnicode_GetLength(u)) |
950 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) > 0x03030000 && defined(PyUnicode_KIND) |
951 | #define CYTHON_PEP393_ENABLED1 1 |
952 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C0000 |
953 | #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op))))) , 1) ? 0 : _PyUnicode_Ready((PyObject *)(op))) (0) |
954 | #else |
955 | #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op))))) , 1) ? 0 : _PyUnicode_Ready((PyObject *)(op))) (likely(PyUnicode_IS_READY(op))__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op))))), 1) ?\ |
956 | 0 : _PyUnicode_Ready((PyObject *)(op))) |
957 | #endif |
958 | #define __Pyx_PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) |
959 | #define __Pyx_PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i)) PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i)) |
960 | #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u)))) PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u)))) |
961 | #define __Pyx_PyUnicode_KIND(u)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u))) )) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject *)((u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "abaqusFILReader.c" , 961, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL << 28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE (((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail ("PyUnicode_Check(u)", "abaqusFILReader.c", 961, __extension__ __PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state .kind)) ((int)PyUnicode_KIND(u)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u))))) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject*)(( u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "abaqusFILReader.c" , 961, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL << 28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE (((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail ("PyUnicode_Check(u)", "abaqusFILReader.c", 961, __extension__ __PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state .kind)) |
962 | #define __Pyx_PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u)))) PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u)))) |
963 | #define __Pyx_PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i)) PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i)) |
964 | #define __Pyx_PyUnicode_WRITE(k, d, i, ch)PyUnicode_WRITE(((int)(k)), ((void*)(d)), (i), ((Py_UCS4)((Py_UCS4 ) ch))) PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)PyUnicode_WRITE(((int)(k)), ((void*)(d)), (i), ((Py_UCS4)((Py_UCS4 ) ch))) |
965 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C0000 |
966 | #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u ))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject *)(u))->wstr_length)) (0 != PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u))))) |
967 | #else |
968 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03090000 |
969 | #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u ))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject *)(u))->wstr_length)) (0 != (likely(PyUnicode_IS_READY(u))__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u))))), 1 ) ? PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject *)(u))->wstr_length)) |
970 | #else |
971 | #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u ))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject *)(u))->wstr_length)) (0 != (likely(PyUnicode_IS_READY(u))__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u))))), 1 ) ? PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) : PyUnicode_GET_SIZE(u)PyUnicode_GET_SIZE(((PyObject*)((u)))))) |
972 | #endif |
973 | #endif |
974 | #else |
975 | #define CYTHON_PEP393_ENABLED1 0 |
976 | #define PyUnicode_1BYTE_KIND 1 |
977 | #define PyUnicode_2BYTE_KIND 2 |
978 | #define PyUnicode_4BYTE_KIND 4 |
979 | #define __Pyx_PyUnicode_READY(op)(__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((op))))) , 1) ? 0 : _PyUnicode_Ready((PyObject *)(op))) (0) |
980 | #define __Pyx_PyUnicode_GET_LENGTH(u)PyUnicode_GET_LENGTH(((PyObject*)((u)))) PyUnicode_GET_SIZE(u)PyUnicode_GET_SIZE(((PyObject*)((u)))) |
981 | #define __Pyx_PyUnicode_READ_CHAR(u, i)PyUnicode_READ_CHAR(((PyObject*)((u))), (i)) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)PyUnicode_AS_UNICODE(((PyObject*)((u))))[i])) |
982 | #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)PyUnicode_MAX_CHAR_VALUE(((PyObject*)((u)))) ((sizeof(Py_UNICODE) == 2) ? 65535U : 1114111U) |
983 | #define __Pyx_PyUnicode_KIND(u)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((u))) )) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject *)((u))))) ; else __assert_fail ("PyUnicode_IS_READY(u)", "abaqusFILReader.c" , 983, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((u)))), (1UL << 28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE (((PyObject*)((u)))), (1UL << 28))) ; else __assert_fail ("PyUnicode_Check(u)", "abaqusFILReader.c", 983, __extension__ __PRETTY_FUNCTION__); })), ((PyASCIIObject*)((u))))->state .kind)) ((int)sizeof(Py_UNICODE)) |
984 | #define __Pyx_PyUnicode_DATA(u)PyUnicode_DATA(((PyObject*)((u)))) ((void*)PyUnicode_AS_UNICODE(u)PyUnicode_AS_UNICODE(((PyObject*)((u))))) |
985 | #define __Pyx_PyUnicode_READ(k, d, i)PyUnicode_READ(((int)(k)), ((const void*)(d)), (i)) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) |
986 | #define __Pyx_PyUnicode_WRITE(k, d, i, ch)PyUnicode_WRITE(((int)(k)), ((void*)(d)), (i), ((Py_UCS4)((Py_UCS4 ) ch))) (((void)(k)), ((Py_UNICODE*)d)[i] = (Py_UNICODE) ch) |
987 | #define __Pyx_PyUnicode_IS_TRUE(u)(0 != (__builtin_expect(!!(PyUnicode_IS_READY(((PyObject*)((u ))))), 1) ? PyUnicode_GET_LENGTH(((PyObject*)((u)))) : ((PyCompactUnicodeObject *)(u))->wstr_length)) (0 != PyUnicode_GET_SIZE(u)PyUnicode_GET_SIZE(((PyObject*)((u))))) |
988 | #endif |
989 | #if CYTHON_COMPILING_IN_PYPY0 |
990 | #define __Pyx_PyUnicode_Concat(a, b)PyUnicode_Concat(a, b) PyNumber_Add(a, b) |
991 | #define __Pyx_PyUnicode_ConcatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || __builtin_expect (!!((b) == (&_Py_NoneStruct)), 0)) ? PyNumber_Add(a, b) : PyUnicode_Concat(a, b)) PyNumber_Add(a, b) |
992 | #else |
993 | #define __Pyx_PyUnicode_Concat(a, b)PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) |
994 | #define __Pyx_PyUnicode_ConcatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || __builtin_expect (!!((b) == (&_Py_NoneStruct)), 0)) ? PyNumber_Add(a, b) : PyUnicode_Concat(a, b)) ((unlikely((a) == Py_None)__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || unlikely((b) == Py_None)__builtin_expect(!!((b) == (&_Py_NoneStruct)), 0)) ?\ |
995 | PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)PyUnicode_Concat(a, b)) |
996 | #endif |
997 | #if CYTHON_COMPILING_IN_PYPY0 |
998 | #if !defined(PyUnicode_DecodeUnicodeEscape) |
999 | #define PyUnicode_DecodeUnicodeEscape(s, size, errors) PyUnicode_Decode(s, size, "unicode_escape", errors) |
1000 | #endif |
1001 | #if !defined(PyUnicode_Contains) || (PY_MAJOR_VERSION3 == 2 && PYPY_VERSION_NUM < 0x07030500) |
1002 | #undef PyUnicode_Contains |
1003 | #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) |
1004 | #endif |
1005 | #if !defined(PyByteArray_Check) |
1006 | #define PyByteArray_Check(obj)PyObject_TypeCheck(((PyObject*)((obj))), &PyByteArray_Type ) PyObject_TypeCheck(obj, &PyByteArray_Type)PyObject_TypeCheck(((PyObject*)((obj))), &PyByteArray_Type ) |
1007 | #endif |
1008 | #if !defined(PyObject_Format) |
1009 | #define PyObject_Format(obj, fmt) PyObject_CallMethod_PyObject_CallMethod_SizeT(obj, "__format__", "O", fmt) |
1010 | #endif |
1011 | #endif |
1012 | #define __Pyx_PyString_FormatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature (Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && ! Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)) ? PyNumber_Remainder (a, b) : PyUnicode_Format(a, b)) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature (Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && ! Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)PyUnicode_Format(a, b)) |
1013 | #define __Pyx_PyUnicode_FormatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature (Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && ! Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)) ? PyNumber_Remainder (a, b) : PyUnicode_Format(a, b)) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))__builtin_expect(!!((a) == (&_Py_NoneStruct) || (PyType_HasFeature (Py_TYPE(((PyObject*)((b)))), (1UL << 28)) && ! Py_IS_TYPE(((PyObject*)((b))), &PyUnicode_Type))), 0)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) |
1014 | #if PY_MAJOR_VERSION3 >= 3 |
1015 | #define __Pyx_PyString_Format(a, b)PyUnicode_Format(a, b) PyUnicode_Format(a, b) |
1016 | #else |
1017 | #define __Pyx_PyString_Format(a, b)PyUnicode_Format(a, b) PyString_Format(a, b) |
1018 | #endif |
1019 | #if PY_MAJOR_VERSION3 < 3 && !defined(PyObject_ASCII) |
1020 | #define PyObject_ASCII(o) PyObject_Repr(o) |
1021 | #endif |
1022 | #if PY_MAJOR_VERSION3 >= 3 |
1023 | #define PyBaseString_TypePyUnicode_Type PyUnicode_Type |
1024 | #define PyStringObjectPyUnicodeObject PyUnicodeObject |
1025 | #define PyString_TypePyUnicode_Type PyUnicode_Type |
1026 | #define PyString_CheckPyUnicode_Check PyUnicode_Check |
1027 | #define PyString_CheckExactPyUnicode_CheckExact PyUnicode_CheckExact |
1028 | #ifndef PyObject_UnicodePyObject_Str |
1029 | #define PyObject_UnicodePyObject_Str PyObject_Str |
1030 | #endif |
1031 | #endif |
1032 | #if PY_MAJOR_VERSION3 >= 3 |
1033 | #define __Pyx_PyBaseString_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL << 28)) PyUnicode_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL << 28)) |
1034 | #define __Pyx_PyBaseString_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type) PyUnicode_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type) |
1035 | #else |
1036 | #define __Pyx_PyBaseString_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL << 28)) (PyString_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL << 28)) || PyUnicode_Check(obj)PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL << 28))) |
1037 | #define __Pyx_PyBaseString_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type) (PyString_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type) || PyUnicode_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type)) |
1038 | #endif |
1039 | #if CYTHON_COMPILING_IN_CPYTHON1 |
1040 | #define __Pyx_PySequence_ListKeepNew(obj)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyList_Type ) && Py_REFCNT(((PyObject*)((obj)))) == 1), 1) ? (Py_INCREF (((PyObject*)((obj)))), obj) : PySequence_List(obj))\ |
1041 | (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1)__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyList_Type ) && Py_REFCNT(((PyObject*)((obj)))) == 1), 1) ? __Pyx_NewRef(obj)(Py_INCREF(((PyObject*)((obj)))), obj) : PySequence_List(obj)) |
1042 | #else |
1043 | #define __Pyx_PySequence_ListKeepNew(obj)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyList_Type ) && Py_REFCNT(((PyObject*)((obj)))) == 1), 1) ? (Py_INCREF (((PyObject*)((obj)))), obj) : PySequence_List(obj)) PySequence_List(obj) |
1044 | #endif |
1045 | #ifndef PySet_CheckExact |
1046 | #define PySet_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PySet_Type) __Pyx_IS_TYPE(obj, &PySet_Type)Py_IS_TYPE(((PyObject*)((obj))), &PySet_Type) |
1047 | #endif |
1048 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030900A4 |
1049 | #define __Pyx_SET_REFCNT(obj, refcnt)Py_SET_REFCNT(((PyObject*)((obj))), refcnt) Py_SET_REFCNT(obj, refcnt)Py_SET_REFCNT(((PyObject*)((obj))), refcnt) |
1050 | #define __Pyx_SET_SIZE(obj, size)Py_SET_SIZE(((PyVarObject*)((obj))), size) Py_SET_SIZE(obj, size)Py_SET_SIZE(((PyVarObject*)((obj))), size) |
1051 | #else |
1052 | #define __Pyx_SET_REFCNT(obj, refcnt)Py_SET_REFCNT(((PyObject*)((obj))), refcnt) Py_REFCNT(obj)Py_REFCNT(((PyObject*)((obj)))) = (refcnt) |
1053 | #define __Pyx_SET_SIZE(obj, size)Py_SET_SIZE(((PyVarObject*)((obj))), size) Py_SIZE(obj)Py_SIZE(((PyObject*)((obj)))) = (size) |
1054 | #endif |
1055 | #if CYTHON_ASSUME_SAFE_MACROS1 |
1056 | #define __Pyx_PySequence_ITEM(o, i)( Py_TYPE(((PyObject*)((o))))->tp_as_sequence->sq_item( o, i) ) PySequence_ITEM(o, i)( Py_TYPE(((PyObject*)((o))))->tp_as_sequence->sq_item( o, i) ) |
1057 | #define __Pyx_PySequence_SIZE(seq)Py_SIZE(((PyObject*)((seq)))) Py_SIZE(seq)Py_SIZE(((PyObject*)((seq)))) |
1058 | #define __Pyx_PyTuple_SET_ITEM(o, i, v)(PyTuple_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (0)) (PyTuple_SET_ITEM(o, i, v)PyTuple_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (0)) |
1059 | #define __Pyx_PyList_SET_ITEM(o, i, v)(PyList_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), ( 0)) (PyList_SET_ITEM(o, i, v)PyList_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (0)) |
1060 | #define __Pyx_PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o)))) PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o)))) |
1061 | #define __Pyx_PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o)))) PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o)))) |
1062 | #define __Pyx_PySet_GET_SIZE(o)(((void) sizeof (((Py_IS_TYPE(((PyObject*)((o))), &PySet_Type ) || Py_IS_TYPE(((PyObject*)((o))), &PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PySet_Type ) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PyFrozenSet_Type ))) ? 1 : 0), __extension__ ({ if ((Py_IS_TYPE(((PyObject*)(( o))), &PySet_Type) || Py_IS_TYPE(((PyObject*)((o))), & PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o )))), &PySet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject *)((o)))), &PyFrozenSet_Type))) ; else __assert_fail ("PyAnySet_Check(o)" , "abaqusFILReader.c", 1062, __extension__ __PRETTY_FUNCTION__ ); })), (((PySetObject *)(o))->used)) PySet_GET_SIZE(o)(((void) sizeof (((Py_IS_TYPE(((PyObject*)((o))), &PySet_Type ) || Py_IS_TYPE(((PyObject*)((o))), &PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PySet_Type ) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PyFrozenSet_Type ))) ? 1 : 0), __extension__ ({ if ((Py_IS_TYPE(((PyObject*)(( o))), &PySet_Type) || Py_IS_TYPE(((PyObject*)((o))), & PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o )))), &PySet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject *)((o)))), &PyFrozenSet_Type))) ; else __assert_fail ("PyAnySet_Check(o)" , "abaqusFILReader.c", 1062, __extension__ __PRETTY_FUNCTION__ ); })), (((PySetObject *)(o))->used)) |
1063 | #define __Pyx_PyBytes_GET_SIZE(o)PyBytes_GET_SIZE(((PyObject*)((o)))) PyBytes_GET_SIZE(o)PyBytes_GET_SIZE(((PyObject*)((o)))) |
1064 | #define __Pyx_PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o)))) PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o)))) |
1065 | #else |
1066 | #define __Pyx_PySequence_ITEM(o, i)( Py_TYPE(((PyObject*)((o))))->tp_as_sequence->sq_item( o, i) ) PySequence_GetItem(o, i) |
1067 | #define __Pyx_PySequence_SIZE(seq)Py_SIZE(((PyObject*)((seq)))) PySequence_Size(seq) |
1068 | #define __Pyx_PyTuple_SET_ITEM(o, i, v)(PyTuple_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), (0)) PyTuple_SetItem(o, i, v) |
1069 | #define __Pyx_PyList_SET_ITEM(o, i, v)(PyList_SET_ITEM(((PyObject*)((o))), i, ((PyObject*)((v)))), ( 0)) PyList_SetItem(o, i, v) |
1070 | #define __Pyx_PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o)))) PyTuple_Size(o) |
1071 | #define __Pyx_PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o)))) PyList_Size(o) |
1072 | #define __Pyx_PySet_GET_SIZE(o)(((void) sizeof (((Py_IS_TYPE(((PyObject*)((o))), &PySet_Type ) || Py_IS_TYPE(((PyObject*)((o))), &PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PySet_Type ) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o)))), &PyFrozenSet_Type ))) ? 1 : 0), __extension__ ({ if ((Py_IS_TYPE(((PyObject*)(( o))), &PySet_Type) || Py_IS_TYPE(((PyObject*)((o))), & PyFrozenSet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject*)((o )))), &PySet_Type) || PyType_IsSubtype(Py_TYPE(((PyObject *)((o)))), &PyFrozenSet_Type))) ; else __assert_fail ("PyAnySet_Check(o)" , "abaqusFILReader.c", 1072, __extension__ __PRETTY_FUNCTION__ ); })), (((PySetObject *)(o))->used)) PySet_Size(o) |
1073 | #define __Pyx_PyBytes_GET_SIZE(o)PyBytes_GET_SIZE(((PyObject*)((o)))) PyBytes_Size(o) |
1074 | #define __Pyx_PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o)))) PyByteArray_Size(o) |
1075 | #endif |
1076 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030d00A1 |
1077 | #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) |
1078 | #else |
1079 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { |
1080 | PyObject *module = PyImport_AddModule(name); |
1081 | Py_XINCREF(module)Py_XINCREF(((PyObject*)((module)))); |
1082 | return module; |
1083 | } |
1084 | #endif |
1085 | #if PY_MAJOR_VERSION3 >= 3 |
1086 | #define PyIntObjectPyLongObject PyLongObject |
1087 | #define PyInt_TypePyLong_Type PyLong_Type |
1088 | #define PyInt_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL << 24)) PyLong_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL << 24)) |
1089 | #define PyInt_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) PyLong_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) |
1090 | #define __Pyx_Py3Int_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL << 24)) PyLong_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL << 24)) |
1091 | #define __Pyx_Py3Int_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) PyLong_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) |
1092 | #define PyInt_FromStringPyLong_FromString PyLong_FromString |
1093 | #define PyInt_FromUnicodePyLong_FromUnicode PyLong_FromUnicode |
1094 | #define PyInt_FromLongPyLong_FromLong PyLong_FromLong |
1095 | #define PyInt_FromSize_tPyLong_FromSize_t PyLong_FromSize_t |
1096 | #define PyInt_FromSsize_tPyLong_FromSsize_t PyLong_FromSsize_t |
1097 | #define PyInt_AsLongPyLong_AsLong PyLong_AsLong |
1098 | #define PyInt_AS_LONGPyLong_AS_LONG PyLong_AS_LONG |
1099 | #define PyInt_AsSsize_tPyLong_AsSsize_t PyLong_AsSsize_t |
1100 | #define PyInt_AsUnsignedLongMaskPyLong_AsUnsignedLongMask PyLong_AsUnsignedLongMask |
1101 | #define PyInt_AsUnsignedLongLongMaskPyLong_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask |
1102 | #define PyNumber_IntPyNumber_Long PyNumber_Long |
1103 | #else |
1104 | #define __Pyx_Py3Int_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL << 24)) (PyLong_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL << 24)) || PyInt_Check(op)PyType_HasFeature(Py_TYPE(((PyObject*)((op)))), (1UL << 24))) |
1105 | #define __Pyx_Py3Int_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) (PyLong_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type) || PyInt_CheckExact(op)Py_IS_TYPE(((PyObject*)((op))), &PyLong_Type)) |
1106 | #endif |
1107 | #if PY_MAJOR_VERSION3 >= 3 |
1108 | #define PyBoolObjectPyLongObject PyLongObject |
1109 | #endif |
1110 | #if PY_MAJOR_VERSION3 >= 3 && CYTHON_COMPILING_IN_PYPY0 |
1111 | #ifndef PyUnicode_InternFromString |
1112 | #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) |
1113 | #endif |
1114 | #endif |
1115 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030200A4 |
1116 | typedef long Py_hash_t; |
1117 | #define __Pyx_PyInt_FromHash_tPyLong_FromSsize_t PyInt_FromLongPyLong_FromLong |
1118 | #define __Pyx_PyInt_AsHash_t__Pyx_PyIndex_AsSsize_t __Pyx_PyIndex_AsHash_t |
1119 | #else |
1120 | #define __Pyx_PyInt_FromHash_tPyLong_FromSsize_t PyInt_FromSsize_tPyLong_FromSsize_t |
1121 | #define __Pyx_PyInt_AsHash_t__Pyx_PyIndex_AsSsize_t __Pyx_PyIndex_AsSsize_t |
1122 | #endif |
1123 | #if CYTHON_USE_ASYNC_SLOTS1 |
1124 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030500B1 |
1125 | #define __Pyx_PyAsyncMethodsStructPyAsyncMethods PyAsyncMethods |
1126 | #define __Pyx_PyType_AsAsync(obj)(Py_TYPE(((PyObject*)((obj))))->tp_as_async) (Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_as_async) |
1127 | #else |
1128 | #define __Pyx_PyType_AsAsync(obj)(Py_TYPE(((PyObject*)((obj))))->tp_as_async) ((__Pyx_PyAsyncMethodsStructPyAsyncMethods*) (Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_reserved)) |
1129 | #endif |
1130 | #else |
1131 | #define __Pyx_PyType_AsAsync(obj)(Py_TYPE(((PyObject*)((obj))))->tp_as_async) NULL((void*)0) |
1132 | #endif |
1133 | #ifndef __Pyx_PyAsyncMethodsStructPyAsyncMethods |
1134 | typedef struct { |
1135 | unaryfunc am_await; |
1136 | unaryfunc am_aiter; |
1137 | unaryfunc am_anext; |
1138 | } __Pyx_PyAsyncMethodsStructPyAsyncMethods; |
1139 | #endif |
1140 | |
1141 | #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS) |
1142 | #if !defined(_USE_MATH_DEFINES) |
1143 | #define _USE_MATH_DEFINES |
1144 | #endif |
1145 | #endif |
1146 | #include <math.h> |
1147 | #ifdef NAN(__builtin_nanf ("")) |
1148 | #define __PYX_NAN()((float) (__builtin_nanf (""))) ((float) NAN(__builtin_nanf (""))) |
1149 | #else |
1150 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) float __PYX_NAN()((float) (__builtin_nanf (""))) { |
1151 | float value; |
1152 | memset(&value, 0xFF, sizeof(value)); |
1153 | return value; |
1154 | } |
1155 | #endif |
1156 | #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) |
1157 | #define __Pyx_truncltruncl trunc |
1158 | #else |
1159 | #define __Pyx_truncltruncl truncl |
1160 | #endif |
1161 | |
1162 | #define __PYX_MARK_ERR_POS(f_index, lineno){ __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = 1162; (void)__pyx_clineno ; } \ |
1163 | { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__1163; (void)__pyx_clineno; } |
1164 | #define __PYX_ERR(f_index, lineno, Ln_error){ { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = 1164; (void)__pyx_clineno ; } goto Ln_error; } \ |
1165 | { __PYX_MARK_ERR_POS(f_index, lineno){ __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = 1165; (void)__pyx_clineno ; } goto Ln_error; } |
1166 | |
1167 | #ifdef CYTHON_EXTERN_C |
1168 | #undef __PYX_EXTERN_Cextern |
1169 | #define __PYX_EXTERN_Cextern CYTHON_EXTERN_C |
1170 | #elif defined(__PYX_EXTERN_Cextern) |
1171 | #ifdef _MSC_VER |
1172 | #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.") |
1173 | #else |
1174 | #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead. |
1175 | #endif |
1176 | #else |
1177 | #ifdef __cplusplus |
1178 | #define __PYX_EXTERN_Cextern extern "C" |
1179 | #else |
1180 | #define __PYX_EXTERN_Cextern extern |
1181 | #endif |
1182 | #endif |
1183 | |
1184 | #define __PYX_HAVE__abaqusFILReader |
1185 | #define __PYX_HAVE_API__abaqusFILReader |
1186 | /* Early includes */ |
1187 | #include "egadsTypes.h" |
1188 | #include "egads.h" |
1189 | #include "egadsErrors.h" |
1190 | #include "prm.h" |
1191 | #ifdef _OPENMP |
1192 | #include <omp.h> |
1193 | #endif /* _OPENMP */ |
1194 | |
1195 | #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) |
1196 | #define CYTHON_WITHOUT_ASSERTIONS |
1197 | #endif |
1198 | |
1199 | typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; |
1200 | const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; |
1201 | |
1202 | #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 0 |
1203 | #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF80 0 |
1204 | #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0) (PY_MAJOR_VERSION3 >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF80) |
1205 | #define __PYX_DEFAULT_STRING_ENCODING"" "" |
1206 | #define __Pyx_PyObject_FromStringPyBytes_FromString __Pyx_PyBytes_FromStringPyBytes_FromString |
1207 | #define __Pyx_PyObject_FromStringAndSizePyBytes_FromStringAndSize __Pyx_PyBytes_FromStringAndSizePyBytes_FromStringAndSize |
1208 | #define __Pyx_uchar_cast(c)((unsigned char)c) ((unsigned char)c) |
1209 | #define __Pyx_long_cast(x)((long)x) ((long)x) |
1210 | #define __Pyx_fits_Py_ssize_t(v, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(v < (type )9223372036854775807L || v == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(v > (type)( -9223372036854775807L -1) || v == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(v < (type)9223372036854775807L || v == (type)9223372036854775807L), 1))) ) (\ |
1211 | (sizeof(type) < sizeof(Py_ssize_t)) ||\ |
1212 | (sizeof(type) > sizeof(Py_ssize_t) &&\ |
1213 | likely(v < (type)PY_SSIZE_T_MAX ||\__builtin_expect(!!(v < (type)9223372036854775807L || v == (type)9223372036854775807L), 1) |
1214 | v == (type)PY_SSIZE_T_MAX)__builtin_expect(!!(v < (type)9223372036854775807L || v == (type)9223372036854775807L), 1) &&\ |
1215 | (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\__builtin_expect(!!(v > (type)(-9223372036854775807L -1) || v == (type)(-9223372036854775807L -1)), 1) |
1216 | v == (type)PY_SSIZE_T_MIN)__builtin_expect(!!(v > (type)(-9223372036854775807L -1) || v == (type)(-9223372036854775807L -1)), 1))) ||\ |
1217 | (sizeof(type) == sizeof(Py_ssize_t) &&\ |
1218 | (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\__builtin_expect(!!(v < (type)9223372036854775807L || v == (type)9223372036854775807L), 1) |
1219 | v == (type)PY_SSIZE_T_MAX)__builtin_expect(!!(v < (type)9223372036854775807L || v == (type)9223372036854775807L), 1))) ) |
1220 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) { |
1221 | return (size_t) i < (size_t) limit; |
1222 | } |
1223 | #if defined (__cplusplus) && __cplusplus >= 201103L |
1224 | #include <cstdlib> |
1225 | #define __Pyx_sst_abs(value)labs(value) std::abs(value) |
1226 | #elif SIZEOF_INT4 >= SIZEOF_SIZE_T8 |
1227 | #define __Pyx_sst_abs(value)labs(value) abs(value) |
1228 | #elif SIZEOF_LONG8 >= SIZEOF_SIZE_T8 |
1229 | #define __Pyx_sst_abs(value)labs(value) labs(value) |
1230 | #elif defined (_MSC_VER) |
1231 | #define __Pyx_sst_abs(value)labs(value) ((Py_ssize_t)_abs64(value)) |
1232 | #elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L |
1233 | #define __Pyx_sst_abs(value)labs(value) llabs(value) |
1234 | #elif defined (__GNUC__4) |
1235 | #define __Pyx_sst_abs(value)labs(value) __builtin_llabs(value) |
1236 | #else |
1237 | #define __Pyx_sst_abs(value)labs(value) ((value<0) ? -value : value) |
1238 | #endif |
1239 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_ssize_strlen(const char *s); |
1240 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsString(PyObject*); |
1241 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); |
1242 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyByteArray_FromString(const char*); |
1243 | #define __Pyx_PyByteArray_FromStringAndSize(s, l)PyByteArray_FromStringAndSize((const char*)s, l) PyByteArray_FromStringAndSize((const char*)s, l) |
1244 | #define __Pyx_PyBytes_FromStringPyBytes_FromString PyBytes_FromString |
1245 | #define __Pyx_PyBytes_FromStringAndSizePyBytes_FromStringAndSize PyBytes_FromStringAndSize |
1246 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyUnicode_FromString(const char*); |
1247 | #if PY_MAJOR_VERSION3 < 3 |
1248 | #define __Pyx_PyStr_FromString__Pyx_PyUnicode_FromString __Pyx_PyBytes_FromStringPyBytes_FromString |
1249 | #define __Pyx_PyStr_FromStringAndSize__Pyx_PyUnicode_FromStringAndSize __Pyx_PyBytes_FromStringAndSizePyBytes_FromStringAndSize |
1250 | #else |
1251 | #define __Pyx_PyStr_FromString__Pyx_PyUnicode_FromString __Pyx_PyUnicode_FromString |
1252 | #define __Pyx_PyStr_FromStringAndSize__Pyx_PyUnicode_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize |
1253 | #endif |
1254 | #define __Pyx_PyBytes_AsWritableString(s)((char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s))))) |
1255 | #define __Pyx_PyBytes_AsWritableSString(s)((signed char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((signed char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s))))) |
1256 | #define __Pyx_PyBytes_AsWritableUString(s)((unsigned char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((unsigned char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s))))) |
1257 | #define __Pyx_PyBytes_AsString(s)((const char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((const char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s))))) |
1258 | #define __Pyx_PyBytes_AsSString(s)((const signed char*) PyBytes_AS_STRING(((PyObject*)((s))))) ((const signed char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s))))) |
1259 | #define __Pyx_PyBytes_AsUString(s)((const unsigned char*) PyBytes_AS_STRING(((PyObject*)((s)))) ) ((const unsigned char*) PyBytes_AS_STRING(s)PyBytes_AS_STRING(((PyObject*)((s))))) |
1260 | #define __Pyx_PyObject_AsWritableString(s)((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) |
1261 | #define __Pyx_PyObject_AsWritableSString(s)((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) |
1262 | #define __Pyx_PyObject_AsWritableUString(s)((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s) ) ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s)) |
1263 | #define __Pyx_PyObject_AsSString(s)((const signed char*) __Pyx_PyObject_AsString(s)) ((const signed char*) __Pyx_PyObject_AsString(s)) |
1264 | #define __Pyx_PyObject_AsUString(s)((const unsigned char*) __Pyx_PyObject_AsString(s)) ((const unsigned char*) __Pyx_PyObject_AsString(s)) |
1265 | #define __Pyx_PyObject_FromCString(s)PyBytes_FromString((const char*)s) __Pyx_PyObject_FromStringPyBytes_FromString((const char*)s) |
1266 | #define __Pyx_PyBytes_FromCString(s)PyBytes_FromString((const char*)s) __Pyx_PyBytes_FromStringPyBytes_FromString((const char*)s) |
1267 | #define __Pyx_PyByteArray_FromCString(s)__Pyx_PyByteArray_FromString((const char*)s) __Pyx_PyByteArray_FromString((const char*)s) |
1268 | #define __Pyx_PyStr_FromCString(s)__Pyx_PyUnicode_FromString((const char*)s) __Pyx_PyStr_FromString__Pyx_PyUnicode_FromString((const char*)s) |
1269 | #define __Pyx_PyUnicode_FromCString(s)__Pyx_PyUnicode_FromString((const char*)s) __Pyx_PyUnicode_FromString((const char*)s) |
1270 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
1271 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u) |
1272 | { |
1273 | const wchar_t *u_end = u; |
1274 | while (*u_end++) ; |
1275 | return (size_t)(u_end - u - 1); |
1276 | } |
1277 | #else |
1278 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) |
1279 | { |
1280 | const Py_UNICODE *u_end = u; |
1281 | while (*u_end++) ; |
1282 | return (size_t)(u_end - u - 1); |
1283 | } |
1284 | #endif |
1285 | #define __Pyx_PyUnicode_FromOrdinal(o)PyUnicode_FromOrdinal((int)o) PyUnicode_FromOrdinal((int)o) |
1286 | #define __Pyx_PyUnicode_FromUnicode(u)PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) |
1287 | #define __Pyx_PyUnicode_FromUnicodeAndLengthPyUnicode_FromUnicode PyUnicode_FromUnicode |
1288 | #define __Pyx_PyUnicode_AsUnicodePyUnicode_AsUnicode PyUnicode_AsUnicode |
1289 | #define __Pyx_NewRef(obj)(Py_INCREF(((PyObject*)((obj)))), obj) (Py_INCREF(obj)Py_INCREF(((PyObject*)((obj)))), obj) |
1290 | #define __Pyx_Owned_Py_None(b)(Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))), (&_Py_NoneStruct )) __Pyx_NewRef(Py_None)(Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))), (&_Py_NoneStruct )) |
1291 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyBool_FromLong(long b); |
1292 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrue(PyObject*); |
1293 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrueAndDecref(PyObject*); |
1294 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); |
1295 | #define __Pyx_PySequence_Tuple(obj)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyTuple_Type )), 1) ? (Py_INCREF(((PyObject*)((obj)))), obj) : PySequence_Tuple (obj))\ |
1296 | (likely(PyTuple_CheckExact(obj))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyTuple_Type )), 1) ? __Pyx_NewRef(obj)(Py_INCREF(((PyObject*)((obj)))), obj) : PySequence_Tuple(obj)) |
1297 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); |
1298 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyInt_FromSize_t(size_t); |
1299 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); |
1300 | #if CYTHON_ASSUME_SAFE_MACROS1 |
1301 | #define __pyx_PyFloat_AsDouble(x)(Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x)) (PyFloat_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? PyFloat_AS_DOUBLE(x)(((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x)) |
1302 | #else |
1303 | #define __pyx_PyFloat_AsDouble(x)(Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x)) PyFloat_AsDouble(x) |
1304 | #endif |
1305 | #define __pyx_PyFloat_AsFloat(x)((float) (Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x))) ((float) __pyx_PyFloat_AsDouble(x)(Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x))) |
1306 | #if PY_MAJOR_VERSION3 >= 3 |
1307 | #define __Pyx_PyNumber_Int(x)(Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? (Py_INCREF (((PyObject*)((x)))), x) : PyNumber_Long(x)) (PyLong_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? __Pyx_NewRef(x)(Py_INCREF(((PyObject*)((x)))), x) : PyNumber_Long(x)) |
1308 | #else |
1309 | #define __Pyx_PyNumber_Int(x)(Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? (Py_INCREF (((PyObject*)((x)))), x) : PyNumber_Long(x)) (PyInt_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyLong_Type) ? __Pyx_NewRef(x)(Py_INCREF(((PyObject*)((x)))), x) : PyNumber_IntPyNumber_Long(x)) |
1310 | #endif |
1311 | #if CYTHON_USE_PYLONG_INTERNALS1 |
1312 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A7 |
1313 | #ifndef _PyLong_SIGN_MASK |
1314 | #define _PyLong_SIGN_MASK 3 |
1315 | #endif |
1316 | #ifndef _PyLong_NON_SIZE_BITS |
1317 | #define _PyLong_NON_SIZE_BITS 3 |
1318 | #endif |
1319 | #define __Pyx_PyLong_Sign(x) (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK) |
1320 | #define __Pyx_PyLong_IsNeg(x)(Py_SIZE(((PyObject*)((x)))) < 0) ((__Pyx_PyLong_Sign(x) & 2) != 0) |
1321 | #define __Pyx_PyLong_IsNonNeg(x)(Py_SIZE(((PyObject*)((x)))) >= 0) (!__Pyx_PyLong_IsNeg(x)(Py_SIZE(((PyObject*)((x)))) < 0)) |
1322 | #define __Pyx_PyLong_IsZero(x)(Py_SIZE(((PyObject*)((x)))) == 0) (__Pyx_PyLong_Sign(x) & 1) |
1323 | #define __Pyx_PyLong_IsPos(x)(Py_SIZE(((PyObject*)((x)))) > 0) (__Pyx_PyLong_Sign(x) == 0) |
1324 | #define __Pyx_PyLong_CompactValueUnsigned(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : (((PyLongObject*)x) ->ob_digit)[0]) (__Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0]) |
1325 | #define __Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x))))) ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS)) |
1326 | #define __Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x))))\ |
1327 | ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x)))))) |
1328 | #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue) |
1329 | #define __Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x) ))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1) PyUnstable_Long_IsCompact((PyLongObject*) x) |
1330 | #define __Pyx_PyLong_CompactValue(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE( ((PyObject*)((x)))) < 0) ? -(sdigit)(((PyLongObject*)x)-> ob_digit)[0] : (sdigit)(((PyLongObject*)x)->ob_digit)[0])) PyUnstable_Long_CompactValue((PyLongObject*) x) |
1331 | #else |
1332 | #define __Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x) ))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1) (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS)) |
1333 | #define __Pyx_PyLong_CompactValue(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE( ((PyObject*)((x)))) < 0) ? -(sdigit)(((PyLongObject*)x)-> ob_digit)[0] : (sdigit)(((PyLongObject*)x)->ob_digit)[0])) ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0]) |
1334 | #endif |
1335 | typedef Py_ssize_t __Pyx_compact_pylong; |
1336 | typedef size_t __Pyx_compact_upylong; |
1337 | #else // Py < 3.12 |
1338 | #define __Pyx_PyLong_IsNeg(x)(Py_SIZE(((PyObject*)((x)))) < 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0) |
1339 | #define __Pyx_PyLong_IsNonNeg(x)(Py_SIZE(((PyObject*)((x)))) >= 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) >= 0) |
1340 | #define __Pyx_PyLong_IsZero(x)(Py_SIZE(((PyObject*)((x)))) == 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0) |
1341 | #define __Pyx_PyLong_IsPos(x)(Py_SIZE(((PyObject*)((x)))) > 0) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) > 0) |
1342 | #define __Pyx_PyLong_CompactValueUnsigned(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : (((PyLongObject*)x) ->ob_digit)[0]) ((Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0]) |
1343 | #define __Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x))))) __Pyx_sst_abs(Py_SIZE(x))labs(Py_SIZE(((PyObject*)((x))))) |
1344 | #define __Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x)))) Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) |
1345 | #define __Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x) ))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1) (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 1 || Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == -1) |
1346 | #define __Pyx_PyLong_CompactValue(x)((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE( ((PyObject*)((x)))) < 0) ? -(sdigit)(((PyLongObject*)x)-> ob_digit)[0] : (sdigit)(((PyLongObject*)x)->ob_digit)[0]))\ |
1347 | ((Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0] : (sdigit)__Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit)[0])) |
1348 | typedef sdigit __Pyx_compact_pylong; |
1349 | typedef digit __Pyx_compact_upylong; |
1350 | #endif |
1351 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A5 |
1352 | #define __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit) (((PyLongObject*)x)->long_value.ob_digit) |
1353 | #else |
1354 | #define __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit) (((PyLongObject*)x)->ob_digit) |
1355 | #endif |
1356 | #endif |
1357 | #if PY_MAJOR_VERSION3 < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
1358 | #include <string.h> |
1359 | static int __Pyx_sys_getdefaultencoding_not_ascii; |
1360 | static int __Pyx_init_sys_getdefaultencoding_params(void) { |
1361 | PyObject* sys; |
1362 | PyObject* default_encoding = NULL((void*)0); |
1363 | PyObject* ascii_chars_u = NULL((void*)0); |
1364 | PyObject* ascii_chars_b = NULL((void*)0); |
1365 | const char* default_encoding_c; |
1366 | sys = PyImport_ImportModule("sys"); |
1367 | if (!sys) goto bad; |
1368 | default_encoding = PyObject_CallMethod_PyObject_CallMethod_SizeT(sys, (char*) "getdefaultencoding", NULL((void*)0)); |
1369 | Py_DECREF(sys)Py_DECREF(((PyObject*)((sys)))); |
1370 | if (!default_encoding) goto bad; |
1371 | default_encoding_c = PyBytes_AsString(default_encoding); |
1372 | if (!default_encoding_c) goto bad; |
1373 | if (strcmp(default_encoding_c, "ascii") == 0) { |
1374 | __Pyx_sys_getdefaultencoding_not_ascii = 0; |
1375 | } else { |
1376 | char ascii_chars[128]; |
1377 | int c; |
1378 | for (c = 0; c < 128; c++) { |
1379 | ascii_chars[c] = (char) c; |
1380 | } |
1381 | __Pyx_sys_getdefaultencoding_not_ascii = 1; |
1382 | ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL((void*)0)); |
1383 | if (!ascii_chars_u) goto bad; |
1384 | ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL((void*)0)); |
1385 | if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b)PyType_HasFeature(Py_TYPE(((PyObject*)((ascii_chars_b)))), (1UL << 27)) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b)PyBytes_AS_STRING(((PyObject*)((ascii_chars_b)))), 128) != 0) { |
1386 | PyErr_Format( |
1387 | PyExc_ValueError, |
1388 | "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", |
1389 | default_encoding_c); |
1390 | goto bad; |
1391 | } |
1392 | Py_DECREF(ascii_chars_u)Py_DECREF(((PyObject*)((ascii_chars_u)))); |
1393 | Py_DECREF(ascii_chars_b)Py_DECREF(((PyObject*)((ascii_chars_b)))); |
1394 | } |
1395 | Py_DECREF(default_encoding)Py_DECREF(((PyObject*)((default_encoding)))); |
1396 | return 0; |
1397 | bad: |
1398 | Py_XDECREF(default_encoding)Py_XDECREF(((PyObject*)((default_encoding)))); |
1399 | Py_XDECREF(ascii_chars_u)Py_XDECREF(((PyObject*)((ascii_chars_u)))); |
1400 | Py_XDECREF(ascii_chars_b)Py_XDECREF(((PyObject*)((ascii_chars_b)))); |
1401 | return -1; |
1402 | } |
1403 | #endif |
1404 | #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0) && PY_MAJOR_VERSION3 >= 3 |
1405 | #define __Pyx_PyUnicode_FromStringAndSize(c_str, size)PyUnicode_Decode(c_str, size, "", ((void*)0)) PyUnicode_DecodeUTF8(c_str, size, NULL((void*)0)) |
1406 | #else |
1407 | #define __Pyx_PyUnicode_FromStringAndSize(c_str, size)PyUnicode_Decode(c_str, size, "", ((void*)0)) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING"", NULL((void*)0)) |
1408 | #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0) |
1409 | #include <string.h> |
1410 | static char* __PYX_DEFAULT_STRING_ENCODING""; |
1411 | static int __Pyx_init_sys_getdefaultencoding_params(void) { |
1412 | PyObject* sys; |
1413 | PyObject* default_encoding = NULL((void*)0); |
1414 | char* default_encoding_c; |
1415 | sys = PyImport_ImportModule("sys"); |
1416 | if (!sys) goto bad; |
1417 | default_encoding = PyObject_CallMethod_PyObject_CallMethod_SizeT(sys, (char*) (const char*) "getdefaultencoding", NULL((void*)0)); |
1418 | Py_DECREF(sys)Py_DECREF(((PyObject*)((sys)))); |
1419 | if (!default_encoding) goto bad; |
1420 | default_encoding_c = PyBytes_AsString(default_encoding); |
1421 | if (!default_encoding_c) goto bad; |
1422 | __PYX_DEFAULT_STRING_ENCODING"" = (char*) malloc(strlen(default_encoding_c) + 1); |
1423 | if (!__PYX_DEFAULT_STRING_ENCODING"") goto bad; |
1424 | strcpy(__PYX_DEFAULT_STRING_ENCODING"", default_encoding_c); |
1425 | Py_DECREF(default_encoding)Py_DECREF(((PyObject*)((default_encoding)))); |
1426 | return 0; |
1427 | bad: |
1428 | Py_XDECREF(default_encoding)Py_XDECREF(((PyObject*)((default_encoding)))); |
1429 | return -1; |
1430 | } |
1431 | #endif |
1432 | #endif |
1433 | |
1434 | |
1435 | /* Test for GCC > 2.95 */ |
1436 | #if defined(__GNUC__4) && (__GNUC__4 > 2 || (__GNUC__4 == 2 && (__GNUC_MINOR__2 > 95))) |
1437 | #define likely(x)__builtin_expect(!!(x), 1) __builtin_expect(!!(x), 1) |
1438 | #define unlikely(x)__builtin_expect(!!(x), 0) __builtin_expect(!!(x), 0) |
1439 | #else /* !__GNUC__ or GCC < 2.95 */ |
1440 | #define likely(x)__builtin_expect(!!(x), 1) (x) |
1441 | #define unlikely(x)__builtin_expect(!!(x), 0) (x) |
1442 | #endif /* __GNUC__ */ |
1443 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } |
1444 | |
1445 | #if !CYTHON_USE_MODULE_STATE0 |
1446 | static PyObject *__pyx_m = NULL((void*)0); |
1447 | #endif |
1448 | static int __pyx_lineno; |
1449 | static int __pyx_clineno = 0; |
1450 | static const char * __pyx_cfilenm = __FILE__"abaqusFILReader.c"; |
1451 | static const char *__pyx_filename; |
1452 | |
1453 | /* #### Code section: filename_table ### */ |
1454 | |
1455 | static const char *__pyx_f[] = { |
1456 | "abaqusFILReader.pyx", |
1457 | }; |
1458 | /* #### Code section: utility_code_proto_before_types ### */ |
1459 | /* ForceInitThreads.proto */ |
1460 | #ifndef __PYX_FORCE_INIT_THREADS0 |
1461 | #define __PYX_FORCE_INIT_THREADS0 0 |
1462 | #endif |
1463 | |
1464 | /* #### Code section: numeric_typedefs ### */ |
1465 | /* #### Code section: complex_type_declarations ### */ |
1466 | /* #### Code section: type_declarations ### */ |
1467 | |
1468 | /*--- Type declarations ---*/ |
1469 | struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll; |
1470 | |
1471 | /* "abaqusFILReader.pyx":313 |
1472 | * return [3,"data missing, abq probably didn't finish",[]] |
1473 | * |
1474 | * def findAll(a_str, sub): # <<<<<<<<<<<<<< |
1475 | * """looks in a string for all occurances of a string |
1476 | * """ |
1477 | */ |
1478 | struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll { |
1479 | PyObject_HEADPyObject ob_base; |
1480 | PyObject *__pyx_v_a_str; |
1481 | PyObject *__pyx_v_start; |
1482 | PyObject *__pyx_v_sub; |
1483 | }; |
1484 | |
1485 | /* #### Code section: utility_code_proto ### */ |
1486 | |
1487 | /* --- Runtime support code (head) --- */ |
1488 | /* Refnanny.proto */ |
1489 | #ifndef CYTHON_REFNANNY0 |
1490 | #define CYTHON_REFNANNY0 0 |
1491 | #endif |
1492 | #if CYTHON_REFNANNY0 |
1493 | typedef struct { |
1494 | void (*INCREF)(void*, PyObject*, Py_ssize_t); |
1495 | void (*DECREF)(void*, PyObject*, Py_ssize_t); |
1496 | void (*GOTREF)(void*, PyObject*, Py_ssize_t); |
1497 | void (*GIVEREF)(void*, PyObject*, Py_ssize_t); |
1498 | void* (*SetupContext)(const char*, Py_ssize_t, const char*); |
1499 | void (*FinishContext)(void**); |
1500 | } __Pyx_RefNannyAPIStruct; |
1501 | static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL((void*)0); |
1502 | static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); |
1503 | #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL((void*)0); |
1504 | #ifdef WITH_THREAD |
1505 | #define __Pyx_RefNannySetupContext(name, acquire_gil)\ |
1506 | if (acquire_gil) {\ |
1507 | PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ |
1508 | __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__1508), (__FILE__"abaqusFILReader.c"));\ |
1509 | PyGILState_Release(__pyx_gilstate_save);\ |
1510 | } else {\ |
1511 | __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__1511), (__FILE__"abaqusFILReader.c"));\ |
1512 | } |
1513 | #define __Pyx_RefNannyFinishContextNogil() {\ |
1514 | PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ |
1515 | __Pyx_RefNannyFinishContext();\ |
1516 | PyGILState_Release(__pyx_gilstate_save);\ |
1517 | } |
1518 | #else |
1519 | #define __Pyx_RefNannySetupContext(name, acquire_gil)\ |
1520 | __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__1520), (__FILE__"abaqusFILReader.c")) |
1521 | #define __Pyx_RefNannyFinishContextNogil() __Pyx_RefNannyFinishContext() |
1522 | #endif |
1523 | #define __Pyx_RefNannyFinishContextNogil() {\ |
1524 | PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ |
1525 | __Pyx_RefNannyFinishContext();\ |
1526 | PyGILState_Release(__pyx_gilstate_save);\ |
1527 | } |
1528 | #define __Pyx_RefNannyFinishContext()\ |
1529 | __Pyx_RefNanny->FinishContext(&__pyx_refnanny) |
1530 | #define __Pyx_INCREF(r)Py_INCREF(((PyObject*)((r)))) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1530)) |
1531 | #define __Pyx_DECREF(r)Py_DECREF(((PyObject*)((r)))) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1531)) |
1532 | #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1532)) |
1533 | #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__1533)) |
1534 | #define __Pyx_XINCREF(r)Py_XINCREF(((PyObject*)((r)))) do { if((r) == NULL((void*)0)); else {__Pyx_INCREF(r)Py_INCREF(((PyObject*)((r)))); }} while(0) |
1535 | #define __Pyx_XDECREF(r)Py_XDECREF(((PyObject*)((r)))) do { if((r) == NULL((void*)0)); else {__Pyx_DECREF(r)Py_DECREF(((PyObject*)((r)))); }} while(0) |
1536 | #define __Pyx_XGOTREF(r) do { if((r) == NULL((void*)0)); else {__Pyx_GOTREF(r); }} while(0) |
1537 | #define __Pyx_XGIVEREF(r) do { if((r) == NULL((void*)0)); else {__Pyx_GIVEREF(r);}} while(0) |
1538 | #else |
1539 | #define __Pyx_RefNannyDeclarations |
1540 | #define __Pyx_RefNannySetupContext(name, acquire_gil) |
1541 | #define __Pyx_RefNannyFinishContextNogil() |
1542 | #define __Pyx_RefNannyFinishContext() |
1543 | #define __Pyx_INCREF(r)Py_INCREF(((PyObject*)((r)))) Py_INCREF(r)Py_INCREF(((PyObject*)((r)))) |
1544 | #define __Pyx_DECREF(r)Py_DECREF(((PyObject*)((r)))) Py_DECREF(r)Py_DECREF(((PyObject*)((r)))) |
1545 | #define __Pyx_GOTREF(r) |
1546 | #define __Pyx_GIVEREF(r) |
1547 | #define __Pyx_XINCREF(r)Py_XINCREF(((PyObject*)((r)))) Py_XINCREF(r)Py_XINCREF(((PyObject*)((r)))) |
1548 | #define __Pyx_XDECREF(r)Py_XDECREF(((PyObject*)((r)))) Py_XDECREF(r)Py_XDECREF(((PyObject*)((r)))) |
1549 | #define __Pyx_XGOTREF(r) |
1550 | #define __Pyx_XGIVEREF(r) |
1551 | #endif |
1552 | #define __Pyx_Py_XDECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; Py_XDECREF(((PyObject *)((tmp)))); } while (0) do {\ |
1553 | PyObject *tmp = (PyObject *) r;\ |
1554 | r = v; Py_XDECREF(tmp)Py_XDECREF(((PyObject*)((tmp))));\ |
1555 | } while (0) |
1556 | #define __Pyx_XDECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; Py_XDECREF(((PyObject *)((tmp)))); } while (0) do {\ |
1557 | PyObject *tmp = (PyObject *) r;\ |
1558 | r = v; __Pyx_XDECREF(tmp)Py_XDECREF(((PyObject*)((tmp))));\ |
1559 | } while (0) |
1560 | #define __Pyx_DECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; Py_DECREF(((PyObject *)((tmp)))); } while (0) do {\ |
1561 | PyObject *tmp = (PyObject *) r;\ |
1562 | r = v; __Pyx_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));\ |
1563 | } while (0) |
1564 | #define __Pyx_CLEAR(r)do { PyObject* tmp = ((PyObject*)(r)); r = ((void*)0); Py_DECREF (((PyObject*)((tmp))));} while(0) do { PyObject* tmp = ((PyObject*)(r)); r = NULL((void*)0); __Pyx_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));} while(0) |
1565 | #define __Pyx_XCLEAR(r)do { if((r) != ((void*)0)) {PyObject* tmp = ((PyObject*)(r)); r = ((void*)0); Py_DECREF(((PyObject*)((tmp))));}} while(0) do { if((r) != NULL((void*)0)) {PyObject* tmp = ((PyObject*)(r)); r = NULL((void*)0); __Pyx_DECREF(tmp)Py_DECREF(((PyObject*)((tmp))));}} while(0) |
1566 | |
1567 | /* PyErrExceptionMatches.proto */ |
1568 | #if CYTHON_FAST_THREAD_STATE1 |
1569 | #define __Pyx_PyErr_ExceptionMatches(err)__Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) |
1570 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); |
1571 | #else |
1572 | #define __Pyx_PyErr_ExceptionMatches(err)__Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) PyErr_ExceptionMatches(err) |
1573 | #endif |
1574 | |
1575 | /* PyThreadStateGet.proto */ |
1576 | #if CYTHON_FAST_THREAD_STATE1 |
1577 | #define __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; PyThreadState *__pyx_tstate; |
1578 | #define __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); __pyx_tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(); |
1579 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A6 |
1580 | #define __Pyx_PyErr_Occurred()(__pyx_tstate->curexc_type != ((void*)0)) (__pyx_tstate->current_exception != NULL((void*)0)) |
1581 | #define __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type) (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception)Py_TYPE(((PyObject*)((__pyx_tstate->current_exception)))) : (PyObject*) NULL((void*)0)) |
1582 | #else |
1583 | #define __Pyx_PyErr_Occurred()(__pyx_tstate->curexc_type != ((void*)0)) (__pyx_tstate->curexc_type != NULL((void*)0)) |
1584 | #define __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type) (__pyx_tstate->curexc_type) |
1585 | #endif |
1586 | #else |
1587 | #define __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
1588 | #define __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
1589 | #define __Pyx_PyErr_Occurred()(__pyx_tstate->curexc_type != ((void*)0)) (PyErr_Occurred() != NULL((void*)0)) |
1590 | #define __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type) PyErr_Occurred() |
1591 | #endif |
1592 | |
1593 | /* PyErrFetchRestore.proto */ |
1594 | #if CYTHON_FAST_THREAD_STATE1 |
1595 | #define __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0), ((void*)0)) __Pyx_ErrRestore(NULL, NULL, NULL)__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0), ((void*)0)) |
1596 | #define __Pyx_ErrRestoreWithState(type, value, tb)__Pyx_ErrRestoreInState(PyThreadState_Get(), type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET()PyThreadState_Get(), type, value, tb) |
1597 | #define __Pyx_ErrFetchWithState(type, value, tb)__Pyx_ErrFetchInState(PyThreadState_Get(), type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET()PyThreadState_Get(), type, value, tb) |
1598 | #define __Pyx_ErrRestore(type, value, tb)__Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) |
1599 | #define __Pyx_ErrFetch(type, value, tb)__Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) |
1600 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); |
1601 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); |
1602 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A6 |
1603 | #define __Pyx_PyErr_SetNone(exc)(Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestoreInState(__pyx_tstate , (exc), ((void*)0), ((void*)0))) (Py_INCREF(exc)Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestore((exc), NULL, NULL)__Pyx_ErrRestoreInState(__pyx_tstate, (exc), ((void*)0), ((void *)0))) |
1604 | #else |
1605 | #define __Pyx_PyErr_SetNone(exc)(Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestoreInState(__pyx_tstate , (exc), ((void*)0), ((void*)0))) PyErr_SetNone(exc) |
1606 | #endif |
1607 | #else |
1608 | #define __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0), ((void*)0)) PyErr_Clear() |
1609 | #define __Pyx_PyErr_SetNone(exc)(Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestoreInState(__pyx_tstate , (exc), ((void*)0), ((void*)0))) PyErr_SetNone(exc) |
1610 | #define __Pyx_ErrRestoreWithState(type, value, tb)__Pyx_ErrRestoreInState(PyThreadState_Get(), type, value, tb) PyErr_Restore(type, value, tb) |
1611 | #define __Pyx_ErrFetchWithState(type, value, tb)__Pyx_ErrFetchInState(PyThreadState_Get(), type, value, tb) PyErr_Fetch(type, value, tb) |
1612 | #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) |
1613 | #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) |
1614 | #define __Pyx_ErrRestore(type, value, tb)__Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) PyErr_Restore(type, value, tb) |
1615 | #define __Pyx_ErrFetch(type, value, tb)__Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) PyErr_Fetch(type, value, tb) |
1616 | #endif |
1617 | |
1618 | /* PyObjectGetAttrStr.proto */ |
1619 | #if CYTHON_USE_TYPE_SLOTS1 |
1620 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); |
1621 | #else |
1622 | #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) |
1623 | #endif |
1624 | |
1625 | /* PyObjectGetAttrStrNoError.proto */ |
1626 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); |
1627 | |
1628 | /* GetBuiltinName.proto */ |
1629 | static PyObject *__Pyx_GetBuiltinName(PyObject *name); |
1630 | |
1631 | /* TupleAndListFromArray.proto */ |
1632 | #if CYTHON_COMPILING_IN_CPYTHON1 |
1633 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n); |
1634 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n); |
1635 | #endif |
1636 | |
1637 | /* IncludeStringH.proto */ |
1638 | #include <string.h> |
1639 | |
1640 | /* BytesEquals.proto */ |
1641 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); |
1642 | |
1643 | /* UnicodeEquals.proto */ |
1644 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); |
1645 | |
1646 | /* fastcall.proto */ |
1647 | #if CYTHON_AVOID_BORROWED_REFS0 |
1648 | #define __Pyx_Arg_VARARGS(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)", "abaqusFILReader.c", 1648, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item [i]) PySequence_GetItem(args, i) |
1649 | #elif CYTHON_ASSUME_SAFE_MACROS1 |
1650 | #define __Pyx_Arg_VARARGS(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)", "abaqusFILReader.c", 1650, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item [i]) PyTuple_GET_ITEM(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)", "abaqusFILReader.c", 1650, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item [i]) |
1651 | #else |
1652 | #define __Pyx_Arg_VARARGS(args, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)", "abaqusFILReader.c", 1652, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item [i]) PyTuple_GetItem(args, i) |
1653 | #endif |
1654 | #if CYTHON_AVOID_BORROWED_REFS0 |
1655 | #define __Pyx_Arg_NewRef_VARARGS(arg)arg __Pyx_NewRef(arg)(Py_INCREF(((PyObject*)((arg)))), arg) |
1656 | #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg)Py_XDECREF(((PyObject*)((arg)))) |
1657 | #else |
1658 | #define __Pyx_Arg_NewRef_VARARGS(arg)arg arg // no-op |
1659 | #define __Pyx_Arg_XDECREF_VARARGS(arg) // no-op - arg is borrowed |
1660 | #endif |
1661 | #define __Pyx_NumKwargs_VARARGS(kwds)PyDict_Size(kwds) PyDict_Size(kwds) |
1662 | #define __Pyx_KwValues_VARARGS(args, nargs)((void*)0) NULL((void*)0) |
1663 | #define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s)_PyDict_GetItem_KnownHash(kw, s, ((PyASCIIObject *) s)->hash ) __Pyx_PyDict_GetItemStrWithError(kw, s)_PyDict_GetItem_KnownHash(kw, s, ((PyASCIIObject *) s)->hash ) |
1664 | #define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues)PyDict_Copy(kw) PyDict_Copy(kw) |
1665 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
1666 | #define __Pyx_Arg_FASTCALL(args, i)args[i] args[i] |
1667 | #define __Pyx_NumKwargs_FASTCALL(kwds)PyTuple_GET_SIZE(((PyObject*)((kwds)))) PyTuple_GET_SIZE(kwds)PyTuple_GET_SIZE(((PyObject*)((kwds)))) |
1668 | #define __Pyx_KwValues_FASTCALL(args, nargs)((args) + (nargs)) ((args) + (nargs)) |
1669 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s); |
1670 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030d0000 |
1671 | static CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues)_PyStack_AsDict(PyObject *const *kwvalues, PyObject *kwnames); |
1672 | #else |
1673 | #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues)_PyStack_AsDict(kwvalues, kw) _PyStack_AsDict(kwvalues, kw) |
1674 | #endif |
1675 | #define __Pyx_Arg_NewRef_FASTCALL(arg)arg arg // no-op, __Pyx_Arg_FASTCALL is direct and this needs |
1676 | #define __Pyx_Arg_XDECREF_FASTCALL(arg) // no-op - arg was returned from array |
1677 | #else |
1678 | #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS |
1679 | #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS |
1680 | #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS |
1681 | #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS |
1682 | #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS |
1683 | #define __Pyx_Arg_NewRef_FASTCALL(arg)arg __Pyx_Arg_NewRef_VARARGS(arg)arg |
1684 | #define __Pyx_Arg_XDECREF_FASTCALL(arg) __Pyx_Arg_XDECREF_VARARGS(arg) |
1685 | #endif |
1686 | #if CYTHON_COMPILING_IN_CPYTHON1 && CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
1687 | #define __Pyx_ArgsSlice_VARARGS(args, start, stop)__Pyx_PyTuple_FromArray(&((((void) sizeof ((PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ? 1 : 0) , __extension__ ({ if (PyType_HasFeature(Py_TYPE(((PyObject*) ((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)" , "abaqusFILReader.c", 1687, __extension__ __PRETTY_FUNCTION__ ); })), ((PyTupleObject*)((args))))->ob_item[start]), stop - start) __Pyx_PyTuple_FromArray(&__Pyx_Arg_VARARGS(args, start)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)", "abaqusFILReader.c", 1687, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item [start]), stop - start) |
1688 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop)__Pyx_PyTuple_FromArray(&args[start], stop - start) __Pyx_PyTuple_FromArray(&__Pyx_Arg_FASTCALL(args, start)args[start], stop - start) |
1689 | #else |
1690 | #define __Pyx_ArgsSlice_VARARGS(args, start, stop)__Pyx_PyTuple_FromArray(&((((void) sizeof ((PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ? 1 : 0) , __extension__ ({ if (PyType_HasFeature(Py_TYPE(((PyObject*) ((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)" , "abaqusFILReader.c", 1690, __extension__ __PRETTY_FUNCTION__ ); })), ((PyTupleObject*)((args))))->ob_item[start]), stop - start) PyTuple_GetSlice(args, start, stop) |
1691 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop)__Pyx_PyTuple_FromArray(&args[start], stop - start) PyTuple_GetSlice(args, start, stop) |
1692 | #endif |
1693 | |
1694 | /* RaiseDoubleKeywords.proto */ |
1695 | static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); |
1696 | |
1697 | /* ParseKeywords.proto */ |
1698 | static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject *const *kwvalues, |
1699 | PyObject **argnames[], |
1700 | PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, |
1701 | const char* function_name); |
1702 | |
1703 | /* RaiseArgTupleInvalid.proto */ |
1704 | static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, |
1705 | Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); |
1706 | |
1707 | /* PyFunctionFastCall.proto */ |
1708 | #if CYTHON_FAST_PYCALL1 |
1709 | #if !CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) |
1710 | #define __Pyx_PyFunction_FastCall(func, args, nargs)\ |
1711 | __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL((void*)0)) |
1712 | static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs); |
1713 | #endif |
1714 | #define __Pyx_BUILD_ASSERT_EXPR(cond)(sizeof(char [1 - 2*!(cond)]) - 1)\ |
1715 | (sizeof(char [1 - 2*!(cond)]) - 1) |
1716 | #ifndef Py_MEMBER_SIZE |
1717 | #define Py_MEMBER_SIZE(type, member)sizeof(((type *)0)->member) sizeof(((type *)0)->member) |
1718 | #endif |
1719 | #if !CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) |
1720 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03080000 |
1721 | #include "frameobject.h" |
1722 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API0 |
1723 | #ifndef Py_BUILD_CORE1 |
1724 | #define Py_BUILD_CORE1 1 |
1725 | #endif |
1726 | #include "internal/pycore_frame.h" |
1727 | #endif |
1728 | #define __Pxy_PyFrame_Initialize_Offsets() |
1729 | #define __Pyx_PyFrame_GetLocalsplus(frame) ((frame)->f_localsplus) |
1730 | #else |
1731 | static size_t __pyx_pyframe_localsplus_offset = 0; |
1732 | #include "frameobject.h" |
1733 | #define __Pxy_PyFrame_Initialize_Offsets()\ |
1734 | ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus))(sizeof(char [1 - 2*!(sizeof(PyFrameObject) == __builtin_offsetof (PyFrameObject, f_localsplus) + sizeof(((PyFrameObject *)0)-> f_localsplus))]) - 1),\ |
1735 | (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)sizeof(((PyFrameObject *)0)->f_localsplus))) |
1736 | #define __Pyx_PyFrame_GetLocalsplus(frame)\ |
1737 | (assert(__pyx_pyframe_localsplus_offset)((void) sizeof ((__pyx_pyframe_localsplus_offset) ? 1 : 0), __extension__ ({ if (__pyx_pyframe_localsplus_offset) ; else __assert_fail ("__pyx_pyframe_localsplus_offset", "abaqusFILReader.c", 1737 , __extension__ __PRETTY_FUNCTION__); })), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset)) |
1738 | #endif |
1739 | #endif |
1740 | #endif |
1741 | |
1742 | /* PyObjectCall.proto */ |
1743 | #if CYTHON_COMPILING_IN_CPYTHON1 |
1744 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); |
1745 | #else |
1746 | #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) |
1747 | #endif |
1748 | |
1749 | /* PyObjectCallMethO.proto */ |
1750 | #if CYTHON_COMPILING_IN_CPYTHON1 |
1751 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); |
1752 | #endif |
1753 | |
1754 | /* PyObjectFastCall.proto */ |
1755 | #define __Pyx_PyObject_FastCall(func, args, nargs)__Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), ((void *)0)) __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL((void*)0)) |
1756 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs); |
1757 | |
1758 | /* ListCompAppend.proto */ |
1759 | #if CYTHON_USE_PYLIST_INTERNALS1 && CYTHON_ASSUME_SAFE_MACROS1 |
1760 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_ListComp_Append(PyObject* list, PyObject* x) { |
1761 | PyListObject* L = (PyListObject*) list; |
1762 | Py_ssize_t len = Py_SIZE(list)Py_SIZE(((PyObject*)((list)))); |
1763 | if (likely(L->allocated > len)__builtin_expect(!!(L->allocated > len), 1)) { |
1764 | Py_INCREF(x)Py_INCREF(((PyObject*)((x)))); |
1765 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030d0000 |
1766 | L->ob_item[len] = x; |
1767 | #else |
1768 | PyList_SET_ITEM(list, len, x)PyList_SET_ITEM(((PyObject*)((list))), len, ((PyObject*)((x)) )); |
1769 | #endif |
1770 | __Pyx_SET_SIZE(list, len + 1)Py_SET_SIZE(((PyVarObject*)((list))), len + 1); |
1771 | return 0; |
1772 | } |
1773 | return PyList_Append(list, x); |
1774 | } |
1775 | #else |
1776 | #define __Pyx_ListComp_Append(L,x) PyList_Append(L,x) |
1777 | #endif |
1778 | |
1779 | /* PyDictVersioning.proto */ |
1780 | #if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) && CYTHON_USE_TYPE_SLOTS1 |
1781 | #define __PYX_DICT_VERSION_INIT((uint64_t) -1) ((PY_UINT64_Tuint64_t) -1) |
1782 | #define __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag) (((PyDictObject*)(dict))->ma_version_tag) |
1783 | #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)(version_var) = (((PyDictObject*)(dict))->ma_version_tag); (cache_var) = (value);\ |
1784 | (version_var) = __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag);\ |
1785 | (cache_var) = (value); |
1786 | #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP){ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value = ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(DICT ))->ma_version_tag) == __pyx_dict_version), 1)) { (VAR) = __pyx_dict_cached_value ; } else { (VAR) = __pyx_dict_cached_value = (LOOKUP); __pyx_dict_version = (((PyDictObject*)(DICT))->ma_version_tag); }} {\ |
1787 | static PY_UINT64_Tuint64_t __pyx_dict_version = 0;\ |
1788 | static PyObject *__pyx_dict_cached_value = NULL((void*)0);\ |
1789 | if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)__builtin_expect(!!((((PyDictObject*)(DICT))->ma_version_tag ) == __pyx_dict_version), 1)) {\ |
1790 | (VAR) = __pyx_dict_cached_value;\ |
1791 | } else {\ |
1792 | (VAR) = __pyx_dict_cached_value = (LOOKUP);\ |
1793 | __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT)(((PyDictObject*)(DICT))->ma_version_tag);\ |
1794 | }\ |
1795 | } |
1796 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_tp_dict_version(PyObject *obj); |
1797 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_object_dict_version(PyObject *obj); |
1798 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_Tuint64_t tp_dict_version, PY_UINT64_Tuint64_t obj_dict_version); |
1799 | #else |
1800 | #define __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag) (0) |
1801 | #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)(version_var) = (((PyDictObject*)(dict))->ma_version_tag); (cache_var) = (value); |
1802 | #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP){ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value = ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(DICT ))->ma_version_tag) == __pyx_dict_version), 1)) { (VAR) = __pyx_dict_cached_value ; } else { (VAR) = __pyx_dict_cached_value = (LOOKUP); __pyx_dict_version = (((PyDictObject*)(DICT))->ma_version_tag); }} (VAR) = (LOOKUP); |
1803 | #endif |
1804 | |
1805 | /* GetModuleGlobalName.proto */ |
1806 | #if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
1807 | #define __Pyx_GetModuleGlobalName(var, name)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (var) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) : __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, & __pyx_dict_cached_value);} while(0) do {\ |
1808 | static PY_UINT64_Tuint64_t __pyx_dict_version = 0;\ |
1809 | static PyObject *__pyx_dict_cached_value = NULL((void*)0);\ |
1810 | (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))__builtin_expect(!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ?\ |
1811 | (likely(__pyx_dict_cached_value)__builtin_expect(!!(__pyx_dict_cached_value), 1) ? __Pyx_NewRef(__pyx_dict_cached_value)(Py_INCREF(((PyObject*)((__pyx_dict_cached_value)))), __pyx_dict_cached_value ) : __Pyx_GetBuiltinName(name)) :\ |
1812 | __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ |
1813 | } while(0) |
1814 | #define __Pyx_GetModuleGlobalNameUncached(var, name)do { uint64_t __pyx_dict_version; PyObject *__pyx_dict_cached_value ; (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version , &__pyx_dict_cached_value);} while(0) do {\ |
1815 | PY_UINT64_Tuint64_t __pyx_dict_version;\ |
1816 | PyObject *__pyx_dict_cached_value;\ |
1817 | (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ |
1818 | } while(0) |
1819 | static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_Tuint64_t *dict_version, PyObject **dict_cached_value); |
1820 | #else |
1821 | #define __Pyx_GetModuleGlobalName(var, name)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (var) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) : __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, & __pyx_dict_cached_value);} while(0) (var) = __Pyx__GetModuleGlobalName(name) |
1822 | #define __Pyx_GetModuleGlobalNameUncached(var, name)do { uint64_t __pyx_dict_version; PyObject *__pyx_dict_cached_value ; (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version , &__pyx_dict_cached_value);} while(0) (var) = __Pyx__GetModuleGlobalName(name) |
1823 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx__GetModuleGlobalName(PyObject *name); |
1824 | #endif |
1825 | |
1826 | /* IterFinish.proto */ |
1827 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IterFinish(void); |
1828 | |
1829 | /* PyObjectCallNoArg.proto */ |
1830 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); |
1831 | |
1832 | /* PyObjectCallOneArg.proto */ |
1833 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); |
1834 | |
1835 | /* PyObjectGetMethod.proto */ |
1836 | static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method); |
1837 | |
1838 | /* PyObjectCallMethod0.proto */ |
1839 | static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name); |
1840 | |
1841 | /* RaiseNeedMoreValuesToUnpack.proto */ |
1842 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); |
1843 | |
1844 | /* RaiseTooManyValuesToUnpack.proto */ |
1845 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); |
1846 | |
1847 | /* UnpackItemEndCheck.proto */ |
1848 | static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); |
1849 | |
1850 | /* RaiseNoneIterError.proto */ |
1851 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNoneNotIterableError(void); |
1852 | |
1853 | /* UnpackTupleError.proto */ |
1854 | static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); |
1855 | |
1856 | /* UnpackTuple2.proto */ |
1857 | #define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)(__builtin_expect(!!(is_tuple || PyType_HasFeature(Py_TYPE((( PyObject*)((tuple)))), (1UL << 26))), 1) ? (__builtin_expect (!!(has_known_size || PyTuple_GET_SIZE(((PyObject*)((tuple))) ) == 2), 1) ? __Pyx_unpack_tuple2_exact(tuple, value1, value2 , decref_tuple) : (__Pyx_UnpackTupleError(tuple, 2), -1)) : __Pyx_unpack_tuple2_generic (tuple, value1, value2, has_known_size, decref_tuple))\ |
1858 | (likely(is_tuple || PyTuple_Check(tuple))__builtin_expect(!!(is_tuple || PyType_HasFeature(Py_TYPE(((PyObject *)((tuple)))), (1UL << 26))), 1) ?\ |
1859 | (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2)__builtin_expect(!!(has_known_size || PyTuple_GET_SIZE(((PyObject *)((tuple)))) == 2), 1) ?\ |
1860 | __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\ |
1861 | (__Pyx_UnpackTupleError(tuple, 2), -1)) :\ |
1862 | __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple)) |
1863 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_unpack_tuple2_exact( |
1864 | PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple); |
1865 | static int __Pyx_unpack_tuple2_generic( |
1866 | PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple); |
1867 | |
1868 | /* dict_iter.proto */ |
1869 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name, |
1870 | Py_ssize_t* p_orig_length, int* p_is_dict); |
1871 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos, |
1872 | PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict); |
1873 | |
1874 | /* PyIntBinop.proto */ |
1875 | #if !CYTHON_COMPILING_IN_PYPY0 |
1876 | static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check); |
1877 | #else |
1878 | #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\ |
1879 | (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) |
1880 | #endif |
1881 | |
1882 | /* pybytes_as_double.proto */ |
1883 | static double __Pyx_SlowPyString_AsDouble(PyObject *obj); |
1884 | static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length); |
1885 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) double __Pyx_PyBytes_AsDouble(PyObject *obj) { |
1886 | return __Pyx__PyBytes_AsDouble(obj, PyBytes_AS_STRING(obj)PyBytes_AS_STRING(((PyObject*)((obj)))), PyBytes_GET_SIZE(obj)PyBytes_GET_SIZE(((PyObject*)((obj))))); |
1887 | } |
1888 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) double __Pyx_PyByteArray_AsDouble(PyObject *obj) { |
1889 | return __Pyx__PyBytes_AsDouble(obj, PyByteArray_AS_STRING(obj)PyByteArray_AS_STRING(((PyObject*)((obj)))), PyByteArray_GET_SIZE(obj)PyByteArray_GET_SIZE(((PyObject*)((obj))))); |
1890 | } |
1891 | |
1892 | /* pyunicode_as_double.proto */ |
1893 | #if PY_MAJOR_VERSION3 >= 3 && !CYTHON_COMPILING_IN_PYPY0 |
1894 | static const char* __Pyx__PyUnicode_AsDouble_Copy(const void* data, const int kind, char* buffer, Py_ssize_t start, Py_ssize_t end) { |
1895 | int last_was_punctuation; |
1896 | Py_ssize_t i; |
1897 | last_was_punctuation = 1; |
1898 | for (i=start; i <= end; i++) { |
1899 | Py_UCS4 chr = PyUnicode_READ(kind, data, i)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (i)); |
1900 | int is_punctuation = (chr == '_') | (chr == '.'); |
1901 | *buffer = (char)chr; |
1902 | buffer += (chr != '_'); |
1903 | if (unlikely(chr > 127)__builtin_expect(!!(chr > 127), 0)) goto parse_failure; |
1904 | if (unlikely(last_was_punctuation & is_punctuation)__builtin_expect(!!(last_was_punctuation & is_punctuation ), 0)) goto parse_failure; |
1905 | last_was_punctuation = is_punctuation; |
1906 | } |
1907 | if (unlikely(last_was_punctuation)__builtin_expect(!!(last_was_punctuation), 0)) goto parse_failure; |
1908 | *buffer = '\0'; |
1909 | return buffer; |
1910 | parse_failure: |
1911 | return NULL((void*)0); |
1912 | } |
1913 | static double __Pyx__PyUnicode_AsDouble_inf_nan(const void* data, int kind, Py_ssize_t start, Py_ssize_t length) { |
1914 | int matches = 1; |
1915 | Py_UCS4 chr; |
1916 | Py_UCS4 sign = PyUnicode_READ(kind, data, start)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start)); |
1917 | int is_signed = (sign == '-') | (sign == '+'); |
1918 | start += is_signed; |
1919 | length -= is_signed; |
1920 | switch (PyUnicode_READ(kind, data, start)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start))) { |
1921 | #ifdef Py_NAN(__builtin_nan("")) |
1922 | case 'n': |
1923 | case 'N': |
1924 | if (unlikely(length != 3)__builtin_expect(!!(length != 3), 0)) goto parse_failure; |
1925 | chr = PyUnicode_READ(kind, data, start+1)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+1 )); |
1926 | matches &= (chr == 'a') | (chr == 'A'); |
1927 | chr = PyUnicode_READ(kind, data, start+2)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+2 )); |
1928 | matches &= (chr == 'n') | (chr == 'N'); |
1929 | if (unlikely(!matches)__builtin_expect(!!(!matches), 0)) goto parse_failure; |
1930 | return (sign == '-') ? -Py_NAN(__builtin_nan("")) : Py_NAN(__builtin_nan("")); |
1931 | #endif |
1932 | case 'i': |
1933 | case 'I': |
1934 | if (unlikely(length < 3)__builtin_expect(!!(length < 3), 0)) goto parse_failure; |
1935 | chr = PyUnicode_READ(kind, data, start+1)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+1 )); |
1936 | matches &= (chr == 'n') | (chr == 'N'); |
1937 | chr = PyUnicode_READ(kind, data, start+2)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+2 )); |
1938 | matches &= (chr == 'f') | (chr == 'F'); |
1939 | if (likely(length == 3 && matches)__builtin_expect(!!(length == 3 && matches), 1)) |
1940 | return (sign == '-') ? -Py_HUGE_VAL(__builtin_huge_val ()) : Py_HUGE_VAL(__builtin_huge_val ()); |
1941 | if (unlikely(length != 8)__builtin_expect(!!(length != 8), 0)) goto parse_failure; |
1942 | chr = PyUnicode_READ(kind, data, start+3)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+3 )); |
1943 | matches &= (chr == 'i') | (chr == 'I'); |
1944 | chr = PyUnicode_READ(kind, data, start+4)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+4 )); |
1945 | matches &= (chr == 'n') | (chr == 'N'); |
1946 | chr = PyUnicode_READ(kind, data, start+5)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+5 )); |
1947 | matches &= (chr == 'i') | (chr == 'I'); |
1948 | chr = PyUnicode_READ(kind, data, start+6)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+6 )); |
1949 | matches &= (chr == 't') | (chr == 'T'); |
1950 | chr = PyUnicode_READ(kind, data, start+7)PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start+7 )); |
1951 | matches &= (chr == 'y') | (chr == 'Y'); |
1952 | if (unlikely(!matches)__builtin_expect(!!(!matches), 0)) goto parse_failure; |
1953 | return (sign == '-') ? -Py_HUGE_VAL(__builtin_huge_val ()) : Py_HUGE_VAL(__builtin_huge_val ()); |
1954 | case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': |
1955 | break; |
1956 | default: |
1957 | goto parse_failure; |
1958 | } |
1959 | return 0.0; |
1960 | parse_failure: |
1961 | return -1.0; |
1962 | } |
1963 | static double __Pyx_PyUnicode_AsDouble_WithSpaces(PyObject *obj) { |
1964 | double value; |
1965 | const char *last; |
1966 | char *end; |
1967 | Py_ssize_t start, length = PyUnicode_GET_LENGTH(obj)PyUnicode_GET_LENGTH(((PyObject*)((obj)))); |
1968 | const int kind = PyUnicode_KIND(obj)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((obj))))) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject*) ((obj))))) ; else __assert_fail ("PyUnicode_IS_READY(obj)", "abaqusFILReader.c" , 1968, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((obj)))), (1UL << 28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE (((PyObject*)((obj)))), (1UL << 28))) ; else __assert_fail ("PyUnicode_Check(obj)", "abaqusFILReader.c", 1968, __extension__ __PRETTY_FUNCTION__); })), ((PyASCIIObject*)((obj))))->state .kind); |
1969 | const void* data = PyUnicode_DATA(obj)PyUnicode_DATA(((PyObject*)((obj)))); |
1970 | start = 0; |
1971 | while (Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, start))((Py_UCS4)(PyUnicode_READ(((int)(kind)), ((const void*)(data) ), (start))) < 128U ? _Py_ascii_whitespace[(PyUnicode_READ (((int)(kind)), ((const void*)(data)), (start)))] : _PyUnicode_IsWhitespace (PyUnicode_READ(((int)(kind)), ((const void*)(data)), (start) )))) |
1972 | start++; |
1973 | while (start < length - 1 && Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, length - 1))((Py_UCS4)(PyUnicode_READ(((int)(kind)), ((const void*)(data) ), (length - 1))) < 128U ? _Py_ascii_whitespace[(PyUnicode_READ (((int)(kind)), ((const void*)(data)), (length - 1)))] : _PyUnicode_IsWhitespace (PyUnicode_READ(((int)(kind)), ((const void*)(data)), (length - 1))))) |
1974 | length--; |
1975 | length -= start; |
1976 | if (unlikely(length <= 0)__builtin_expect(!!(length <= 0), 0)) goto fallback; |
1977 | value = __Pyx__PyUnicode_AsDouble_inf_nan(data, kind, start, length); |
1978 | if (unlikely(value == -1.0)__builtin_expect(!!(value == -1.0), 0)) goto fallback; |
1979 | if (value != 0.0) return value; |
1980 | if (length < 40) { |
1981 | char number[40]; |
1982 | last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length); |
1983 | if (unlikely(!last)__builtin_expect(!!(!last), 0)) goto fallback; |
1984 | value = PyOS_string_to_double(number, &end, NULL((void*)0)); |
1985 | } else { |
1986 | char *number = (char*) PyMem_Malloc((length + 1) * sizeof(char)); |
1987 | if (unlikely(!number)__builtin_expect(!!(!number), 0)) goto fallback; |
1988 | last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length); |
1989 | if (unlikely(!last)__builtin_expect(!!(!last), 0)) { |
1990 | PyMem_Free(number); |
1991 | goto fallback; |
1992 | } |
1993 | value = PyOS_string_to_double(number, &end, NULL((void*)0)); |
1994 | PyMem_Free(number); |
1995 | } |
1996 | if (likely(end == last)__builtin_expect(!!(end == last), 1) || (value == (double)-1 && PyErr_Occurred())) { |
1997 | return value; |
1998 | } |
1999 | fallback: |
2000 | return __Pyx_SlowPyString_AsDouble(obj); |
2001 | } |
2002 | #endif |
2003 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) double __Pyx_PyUnicode_AsDouble(PyObject *obj) { |
2004 | #if PY_MAJOR_VERSION3 >= 3 && !CYTHON_COMPILING_IN_PYPY0 |
2005 | if (unlikely(__Pyx_PyUnicode_READY(obj) == -1)__builtin_expect(!!((__builtin_expect(!!(PyUnicode_IS_READY(( (PyObject*)((obj))))), 1) ? 0 : _PyUnicode_Ready((PyObject *) (obj))) == -1), 0)) |
2006 | return (double)-1; |
2007 | if (likely(PyUnicode_IS_ASCII(obj))__builtin_expect(!!(PyUnicode_IS_ASCII(((PyObject*)((obj))))) , 1)) { |
2008 | const char *s; |
2009 | Py_ssize_t length; |
2010 | s = PyUnicode_AsUTF8AndSize(obj, &length); |
2011 | return __Pyx__PyBytes_AsDouble(obj, s, length); |
2012 | } |
2013 | return __Pyx_PyUnicode_AsDouble_WithSpaces(obj); |
2014 | #else |
2015 | return __Pyx_SlowPyString_AsDouble(obj); |
2016 | #endif |
2017 | } |
2018 | |
2019 | /* pyobject_as_double.proto */ |
2020 | static double __Pyx__PyObject_AsDouble(PyObject* obj); |
2021 | #if CYTHON_COMPILING_IN_PYPY0 |
2022 | #define __Pyx_PyObject_AsDouble(obj)((__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyFloat_Type )), 1)) ? (((PyFloatObject *)(obj))->ob_fval) : __builtin_expect (!!(Py_IS_TYPE(((PyObject*)((obj))), &PyLong_Type)), 1) ? PyLong_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))\ |
2023 | (likely(PyFloat_CheckExact(obj))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyFloat_Type )), 1) ? PyFloat_AS_DOUBLE(obj)(((PyFloatObject *)(obj))->ob_fval) :\ |
2024 | likely(PyInt_CheckExact(obj))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyLong_Type )), 1) ?\ |
2025 | PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj)) |
2026 | #else |
2027 | #define __Pyx_PyObject_AsDouble(obj)((__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyFloat_Type )), 1)) ? (((PyFloatObject *)(obj))->ob_fval) : __builtin_expect (!!(Py_IS_TYPE(((PyObject*)((obj))), &PyLong_Type)), 1) ? PyLong_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))\ |
2028 | ((likely(PyFloat_CheckExact(obj))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyFloat_Type )), 1)) ? PyFloat_AS_DOUBLE(obj)(((PyFloatObject *)(obj))->ob_fval) :\ |
2029 | likely(PyLong_CheckExact(obj))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyLong_Type )), 1) ?\ |
2030 | PyLong_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj)) |
2031 | #endif |
2032 | |
2033 | /* GetItemInt.proto */ |
2034 | #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ? __Pyx_GetItemInt_Fast (o, (Py_ssize_t)i, is_list, wraparound, boundscheck) : (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(o, to_py_func (i))))\ |
2035 | (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ?\ |
2036 | __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ |
2037 | (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL((void*)0)) :\ |
2038 | __Pyx_GetItemInt_Generic(o, to_py_func(i)))) |
2039 | #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ? __Pyx_GetItemInt_List_Fast (o, (Py_ssize_t)i, wraparound, boundscheck) : (PyErr_SetString (PyExc_IndexError, "list index out of range"), (PyObject*)((void *)0)))\ |
2040 | (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ?\ |
2041 | __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ |
2042 | (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL((void*)0))) |
2043 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, |
2044 | int wraparound, int boundscheck); |
2045 | #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ? __Pyx_GetItemInt_Tuple_Fast (o, (Py_ssize_t)i, wraparound, boundscheck) : (PyErr_SetString (PyExc_IndexError, "tuple index out of range"), (PyObject*)(( void*)0)))\ |
2046 | (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ?\ |
2047 | __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ |
2048 | (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL((void*)0))) |
2049 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, |
2050 | int wraparound, int boundscheck); |
2051 | static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); |
2052 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, |
2053 | int is_list, int wraparound, int boundscheck); |
2054 | |
2055 | /* ObjectGetItem.proto */ |
2056 | #if CYTHON_USE_TYPE_SLOTS1 |
2057 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key); |
2058 | #else |
2059 | #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key) |
2060 | #endif |
2061 | |
2062 | /* PyIntCompare.proto */ |
2063 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyInt_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace); |
2064 | |
2065 | /* ListAppend.proto */ |
2066 | #if CYTHON_USE_PYLIST_INTERNALS1 && CYTHON_ASSUME_SAFE_MACROS1 |
2067 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyList_Append(PyObject* list, PyObject* x) { |
2068 | PyListObject* L = (PyListObject*) list; |
2069 | Py_ssize_t len = Py_SIZE(list)Py_SIZE(((PyObject*)((list)))); |
2070 | if (likely(L->allocated > len)__builtin_expect(!!(L->allocated > len), 1) & likely(len > (L->allocated >> 1))__builtin_expect(!!(len > (L->allocated >> 1)), 1 )) { |
2071 | Py_INCREF(x)Py_INCREF(((PyObject*)((x)))); |
2072 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030d0000 |
2073 | L->ob_item[len] = x; |
2074 | #else |
2075 | PyList_SET_ITEM(list, len, x)PyList_SET_ITEM(((PyObject*)((list))), len, ((PyObject*)((x)) )); |
2076 | #endif |
2077 | __Pyx_SET_SIZE(list, len + 1)Py_SET_SIZE(((PyVarObject*)((list))), len + 1); |
2078 | return 0; |
2079 | } |
2080 | return PyList_Append(list, x); |
2081 | } |
2082 | #else |
2083 | #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) |
2084 | #endif |
2085 | |
2086 | /* SliceObject.proto */ |
2087 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetSlice( |
2088 | PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, |
2089 | PyObject** py_start, PyObject** py_stop, PyObject** py_slice, |
2090 | int has_cstart, int has_cstop, int wraparound); |
2091 | |
2092 | /* PyDictContains.proto */ |
2093 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict, int eq) { |
2094 | int result = PyDict_Contains(dict, item); |
2095 | return unlikely(result < 0)__builtin_expect(!!(result < 0), 0) ? result : (result == (eq == Py_EQ2)); |
2096 | } |
2097 | |
2098 | /* DictGetItem.proto */ |
2099 | #if PY_MAJOR_VERSION3 >= 3 && !CYTHON_COMPILING_IN_PYPY0 |
2100 | static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); |
2101 | #define __Pyx_PyObject_Dict_GetItem(obj, name)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyDict_Type )), 1) ? __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj , name))\ |
2102 | (likely(PyDict_CheckExact(obj))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyDict_Type )), 1) ?\ |
2103 | __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) |
2104 | #else |
2105 | #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) |
2106 | #define __Pyx_PyObject_Dict_GetItem(obj, name)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((obj))), &PyDict_Type )), 1) ? __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj , name)) PyObject_GetItem(obj, name) |
2107 | #endif |
2108 | |
2109 | /* PyObjectLookupSpecial.proto */ |
2110 | #if CYTHON_USE_PYTYPE_LOOKUP1 && CYTHON_USE_TYPE_SLOTS1 |
2111 | #define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)__Pyx__PyObject_LookupSpecial(obj, attr_name, 0) __Pyx__PyObject_LookupSpecial(obj, attr_name, 0) |
2112 | #define __Pyx_PyObject_LookupSpecial(obj, attr_name)__Pyx__PyObject_LookupSpecial(obj, attr_name, 1) __Pyx__PyObject_LookupSpecial(obj, attr_name, 1) |
2113 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error); |
2114 | #else |
2115 | #define __Pyx_PyObject_LookupSpecialNoError(o,n)__Pyx__PyObject_LookupSpecial(o, n, 0) __Pyx_PyObject_GetAttrStrNoError(o,n) |
2116 | #define __Pyx_PyObject_LookupSpecial(o,n)__Pyx__PyObject_LookupSpecial(o, n, 1) __Pyx_PyObject_GetAttrStr(o,n) |
2117 | #endif |
2118 | |
2119 | /* GetTopmostException.proto */ |
2120 | #if CYTHON_USE_EXC_INFO_STACK1 && CYTHON_FAST_THREAD_STATE1 |
2121 | static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); |
2122 | #endif |
2123 | |
2124 | /* SaveResetException.proto */ |
2125 | #if CYTHON_FAST_THREAD_STATE1 |
2126 | #define __Pyx_ExceptionSave(type, value, tb)__Pyx__ExceptionSave(__pyx_tstate, type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) |
2127 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); |
2128 | #define __Pyx_ExceptionReset(type, value, tb)__Pyx__ExceptionReset(__pyx_tstate, type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) |
2129 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); |
2130 | #else |
2131 | #define __Pyx_ExceptionSave(type, value, tb)__Pyx__ExceptionSave(__pyx_tstate, type, value, tb) PyErr_GetExcInfo(type, value, tb) |
2132 | #define __Pyx_ExceptionReset(type, value, tb)__Pyx__ExceptionReset(__pyx_tstate, type, value, tb) PyErr_SetExcInfo(type, value, tb) |
2133 | #endif |
2134 | |
2135 | /* GetException.proto */ |
2136 | #if CYTHON_FAST_THREAD_STATE1 |
2137 | #define __Pyx_GetException(type, value, tb)__Pyx__GetException(__pyx_tstate, type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) |
2138 | static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); |
2139 | #else |
2140 | static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)__Pyx__GetException(__pyx_tstate, PyObject **type, PyObject * *value, PyObject **tb); |
2141 | #endif |
2142 | |
2143 | /* DelItemInt.proto */ |
2144 | #define __Pyx_DelItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ? __Pyx_DelItemInt_Fast (o, (Py_ssize_t)i, is_list, wraparound) : (is_list ? (PyErr_SetString (PyExc_IndexError, "list assignment index out of range"), -1) : __Pyx_DelItem_Generic(o, to_py_func(i))))\ |
2145 | (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )9223372036854775807L || i == (type)9223372036854775807L), 1) && (!is_signed || __builtin_expect(!!(i > (type)( -9223372036854775807L -1) || i == (type)(-9223372036854775807L -1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)9223372036854775807L || i == (type)9223372036854775807L), 1))) ) ?\ |
2146 | __Pyx_DelItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound) :\ |
2147 | (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ |
2148 | __Pyx_DelItem_Generic(o, to_py_func(i)))) |
2149 | static int __Pyx_DelItem_Generic(PyObject *o, PyObject *j); |
2150 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_DelItemInt_Fast(PyObject *o, Py_ssize_t i, |
2151 | int is_list, int wraparound); |
2152 | |
2153 | /* pynumber_float.proto */ |
2154 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx__PyNumber_Float(PyObject* obj); |
2155 | #define __Pyx_PyNumber_Float(x)(Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? (Py_INCREF (((PyObject*)((x)))), x) : __Pyx__PyNumber_Float(x)) (PyFloat_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyFloat_Type) ? __Pyx_NewRef(x)(Py_INCREF(((PyObject*)((x)))), x) : __Pyx__PyNumber_Float(x)) |
2156 | |
2157 | /* pep479.proto */ |
2158 | static void __Pyx_Generator_Replace_StopIteration(int in_async_gen); |
2159 | |
2160 | /* IncludeStructmemberH.proto */ |
2161 | #include <structmember.h> |
2162 | |
2163 | /* FixUpExtensionType.proto */ |
2164 | #if CYTHON_USE_TYPE_SPECS0 |
2165 | static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type); |
2166 | #endif |
2167 | |
2168 | /* ValidateBasesTuple.proto */ |
2169 | #if CYTHON_COMPILING_IN_CPYTHON1 || CYTHON_COMPILING_IN_LIMITED_API0 || CYTHON_USE_TYPE_SPECS0 |
2170 | static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases); |
2171 | #endif |
2172 | |
2173 | /* PyType_Ready.proto */ |
2174 | CYTHON_UNUSED__attribute__ ((__unused__)) static int __Pyx_PyType_Ready(PyTypeObject *t); |
2175 | |
2176 | /* PyObject_GenericGetAttrNoDict.proto */ |
2177 | #if CYTHON_USE_TYPE_SLOTS1 && CYTHON_USE_PYTYPE_LOOKUP1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03070000 |
2178 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GenericGetAttrNoDictPyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name); |
2179 | #else |
2180 | #define __Pyx_PyObject_GenericGetAttrNoDictPyObject_GenericGetAttr PyObject_GenericGetAttr |
2181 | #endif |
2182 | |
2183 | /* Import.proto */ |
2184 | static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); |
2185 | |
2186 | /* ImportDottedModule.proto */ |
2187 | static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple); |
2188 | #if PY_MAJOR_VERSION3 >= 3 |
2189 | static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple); |
2190 | #endif |
2191 | |
2192 | /* FetchSharedCythonModule.proto */ |
2193 | static PyObject *__Pyx_FetchSharedCythonABIModule(void); |
2194 | |
2195 | /* FetchCommonType.proto */ |
2196 | #if !CYTHON_USE_TYPE_SPECS0 |
2197 | static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); |
2198 | #else |
2199 | static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases); |
2200 | #endif |
2201 | |
2202 | /* PyMethodNew.proto */ |
2203 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
2204 | static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) { |
2205 | PyObject *typesModule=NULL((void*)0), *methodType=NULL((void*)0), *result=NULL((void*)0); |
2206 | CYTHON_UNUSED_VAR(typ)(void)(typ); |
2207 | if (!self) |
2208 | return __Pyx_NewRef(func)(Py_INCREF(((PyObject*)((func)))), func); |
2209 | typesModule = PyImport_ImportModule("types"); |
2210 | if (!typesModule) return NULL((void*)0); |
2211 | methodType = PyObject_GetAttrString(typesModule, "MethodType"); |
2212 | Py_DECREF(typesModule)Py_DECREF(((PyObject*)((typesModule)))); |
2213 | if (!methodType) return NULL((void*)0); |
2214 | result = PyObject_CallFunctionObjArgs(methodType, func, self, NULL((void*)0)); |
2215 | Py_DECREF(methodType)Py_DECREF(((PyObject*)((methodType)))); |
2216 | return result; |
2217 | } |
2218 | #elif PY_MAJOR_VERSION3 >= 3 |
2219 | static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) { |
2220 | CYTHON_UNUSED_VAR(typ)(void)(typ); |
2221 | if (!self) |
2222 | return __Pyx_NewRef(func)(Py_INCREF(((PyObject*)((func)))), func); |
2223 | return PyMethod_New(func, self); |
2224 | } |
2225 | #else |
2226 | #define __Pyx_PyMethod_New PyMethod_New |
2227 | #endif |
2228 | |
2229 | /* PyVectorcallFastCallDict.proto */ |
2230 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
2231 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfuncvectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw); |
2232 | #endif |
2233 | |
2234 | /* CythonFunctionShared.proto */ |
2235 | #define __Pyx_CyFunction_USED |
2236 | #define __Pyx_CYFUNCTION_STATICMETHOD0x01 0x01 |
2237 | #define __Pyx_CYFUNCTION_CLASSMETHOD0x02 0x02 |
2238 | #define __Pyx_CYFUNCTION_CCLASS0x04 0x04 |
2239 | #define __Pyx_CYFUNCTION_COROUTINE0x08 0x08 |
2240 | #define __Pyx_CyFunction_GetClosure(f)(((__pyx_CyFunctionObject *) (f))->func_closure)\ |
2241 | (((__pyx_CyFunctionObject *) (f))->func_closure) |
2242 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0 |
2243 | #define __Pyx_CyFunction_GetClassObj(f)((PyObject*) ((PyCMethodObject *) (f))->mm_class)\ |
2244 | (((__pyx_CyFunctionObject *) (f))->func_classobj) |
2245 | #else |
2246 | #define __Pyx_CyFunction_GetClassObj(f)((PyObject*) ((PyCMethodObject *) (f))->mm_class)\ |
2247 | ((PyObject*) ((PyCMethodObject *) (f))->mm_class) |
2248 | #endif |
2249 | #define __Pyx_CyFunction_SetClassObj(f, classobj)__Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))\ |
2250 | __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj)) |
2251 | #define __Pyx_CyFunction_Defaults(type, f)((type *)(((__pyx_CyFunctionObject *) (f))->defaults))\ |
2252 | ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) |
2253 | #define __Pyx_CyFunction_SetDefaultsGetter(f, g)((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)\ |
2254 | ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) |
2255 | typedef struct { |
2256 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
2257 | PyObject_HEADPyObject ob_base; |
2258 | PyObject *func; |
2259 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900B1 |
2260 | PyCFunctionObject func; |
2261 | #else |
2262 | PyCMethodObject func; |
2263 | #endif |
2264 | #if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
2265 | __pyx_vectorcallfuncvectorcallfunc func_vectorcall; |
2266 | #endif |
2267 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API0 |
2268 | PyObject *func_weakreflist; |
2269 | #endif |
2270 | PyObject *func_dict; |
2271 | PyObject *func_name; |
2272 | PyObject *func_qualname; |
2273 | PyObject *func_doc; |
2274 | PyObject *func_globals; |
2275 | PyObject *func_code; |
2276 | PyObject *func_closure; |
2277 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0 |
2278 | PyObject *func_classobj; |
2279 | #endif |
2280 | void *defaults; |
2281 | int defaults_pyobjects; |
2282 | size_t defaults_size; // used by FusedFunction for copying defaults |
2283 | int flags; |
2284 | PyObject *defaults_tuple; |
2285 | PyObject *defaults_kwdict; |
2286 | PyObject *(*defaults_getter)(PyObject *); |
2287 | PyObject *func_annotations; |
2288 | PyObject *func_is_coroutine; |
2289 | } __pyx_CyFunctionObject; |
2290 | #undef __Pyx_CyOrPyCFunction_Check |
2291 | #define __Pyx_CyFunction_Check(obj)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject * )__pyx_mstate_global->__pyx_CyFunctionType) __Pyx_TypeCheck(obj, __pyx_CyFunctionType)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject * )__pyx_mstate_global->__pyx_CyFunctionType) |
2292 | #define __Pyx_CyOrPyCFunction_Check(obj)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject *)&PyCFunction_Type) __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject *)&PyCFunction_Type) |
2293 | #define __Pyx_CyFunction_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), __pyx_mstate_global->__pyx_CyFunctionType ) __Pyx_IS_TYPE(obj, __pyx_CyFunctionType)Py_IS_TYPE(((PyObject*)((obj))), __pyx_mstate_global->__pyx_CyFunctionType ) |
2294 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc); |
2295 | #undef __Pyx_IsSameCFunction |
2296 | #define __Pyx_IsSameCFunction(func, cfunc)__Pyx__IsSameCyOrCFunction(func, cfunc) __Pyx__IsSameCyOrCFunction(func, cfunc) |
2297 | static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml, |
2298 | int flags, PyObject* qualname, |
2299 | PyObject *closure, |
2300 | PyObject *module, PyObject *globals, |
2301 | PyObject* code); |
2302 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj); |
2303 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void *__Pyx_CyFunction_InitDefaults(PyObject *m, |
2304 | size_t size, |
2305 | int pyobjects); |
2306 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, |
2307 | PyObject *tuple); |
2308 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, |
2309 | PyObject *dict); |
2310 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, |
2311 | PyObject *dict); |
2312 | static int __pyx_CyFunction_init(PyObject *module); |
2313 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
2314 | static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); |
2315 | static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); |
2316 | static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); |
2317 | static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames); |
2318 | #if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
2319 | #define __Pyx_CyFunction_func_vectorcall(f)(((PyCFunctionObject*)f)->vectorcall) (((__pyx_CyFunctionObject*)f)->func_vectorcall) |
2320 | #else |
2321 | #define __Pyx_CyFunction_func_vectorcall(f)(((PyCFunctionObject*)f)->vectorcall) (((PyCFunctionObject*)f)->vectorcall) |
2322 | #endif |
2323 | #endif |
2324 | |
2325 | /* CythonFunction.proto */ |
2326 | static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, |
2327 | int flags, PyObject* qualname, |
2328 | PyObject *closure, |
2329 | PyObject *module, PyObject *globals, |
2330 | PyObject* code); |
2331 | |
2332 | /* CLineInTraceback.proto */ |
2333 | #ifdef CYTHON_CLINE_IN_TRACEBACK |
2334 | #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) |
2335 | #else |
2336 | static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); |
2337 | #endif |
2338 | |
2339 | /* CodeObjectCache.proto */ |
2340 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
2341 | typedef struct { |
2342 | PyCodeObject* code_object; |
2343 | int code_line; |
2344 | } __Pyx_CodeObjectCacheEntry; |
2345 | struct __Pyx_CodeObjectCache { |
2346 | int count; |
2347 | int max_count; |
2348 | __Pyx_CodeObjectCacheEntry* entries; |
2349 | }; |
2350 | static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL((void*)0)}; |
2351 | static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); |
2352 | static PyCodeObject *__pyx_find_code_object(int code_line); |
2353 | static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); |
2354 | #endif |
2355 | |
2356 | /* AddTraceback.proto */ |
2357 | static void __Pyx_AddTraceback(const char *funcname, int c_line, |
2358 | int py_line, const char *filename); |
2359 | |
2360 | /* GCCDiagnostics.proto */ |
2361 | #if !defined(__INTEL_COMPILER) && defined(__GNUC__4) && (__GNUC__4 > 4 || (__GNUC__4 == 4 && __GNUC_MINOR__2 >= 6)) |
2362 | #define __Pyx_HAS_GCC_DIAGNOSTIC |
2363 | #endif |
2364 | |
2365 | /* CIntFromPy.proto */ |
2366 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyInt_As_int(PyObject *); |
2367 | |
2368 | /* CIntToPy.proto */ |
2369 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_int(int value); |
2370 | |
2371 | /* CIntToPy.proto */ |
2372 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_long(long value); |
2373 | |
2374 | /* FormatTypeName.proto */ |
2375 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
2376 | typedef PyObject *__Pyx_TypeName; |
2377 | #define __Pyx_FMT_TYPENAME"%.200s" "%U" |
2378 | static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp)((PyTypeObject* tp)->tp_name); |
2379 | #define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)Py_XDECREF(((PyObject*)((obj)))) |
2380 | #else |
2381 | typedef const char *__Pyx_TypeName; |
2382 | #define __Pyx_FMT_TYPENAME"%.200s" "%.200s" |
2383 | #define __Pyx_PyType_GetName(tp)((tp)->tp_name) ((tp)->tp_name) |
2384 | #define __Pyx_DECREF_TypeName(obj) |
2385 | #endif |
2386 | |
2387 | /* CIntFromPy.proto */ |
2388 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) long __Pyx_PyInt_As_long(PyObject *); |
2389 | |
2390 | /* FastTypeChecks.proto */ |
2391 | #if CYTHON_COMPILING_IN_CPYTHON1 |
2392 | #define __Pyx_TypeCheck(obj, type)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject * )type) __Pyx_IsSubtype(Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)type) |
2393 | #define __Pyx_TypeCheck2(obj, type1, type2)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)type1, (PyTypeObject *)type2) __Pyx_IsAnySubtype2(Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)type1, (PyTypeObject *)type2) |
2394 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); |
2395 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b); |
2396 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); |
2397 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); |
2398 | #else |
2399 | #define __Pyx_TypeCheck(obj, type)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject * )type) PyObject_TypeCheck(obj, (PyTypeObject *)type)PyObject_TypeCheck(((PyObject*)((obj))), (PyTypeObject *)type ) |
2400 | #define __Pyx_TypeCheck2(obj, type1, type2)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject *)type1, (PyTypeObject *)type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1)PyObject_TypeCheck(((PyObject*)((obj))), (PyTypeObject *)type1 ) || PyObject_TypeCheck(obj, (PyTypeObject *)type2)PyObject_TypeCheck(((PyObject*)((obj))), (PyTypeObject *)type2 )) |
2401 | #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) |
2402 | #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) |
2403 | #endif |
2404 | #define __Pyx_PyErr_ExceptionMatches2(err1, err2)__Pyx_PyErr_GivenExceptionMatches2((__pyx_tstate->curexc_type ), err1, err2) __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type), err1, err2) |
2405 | #define __Pyx_PyException_Check(obj)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject * )PyExc_Exception) __Pyx_TypeCheck(obj, PyExc_Exception)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((obj)))), (PyTypeObject * )PyExc_Exception) |
2406 | |
2407 | /* RaiseException.proto */ |
2408 | static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); |
2409 | |
2410 | /* SwapException.proto */ |
2411 | #if CYTHON_FAST_THREAD_STATE1 |
2412 | #define __Pyx_ExceptionSwap(type, value, tb)__Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) |
2413 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); |
2414 | #else |
2415 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb)__Pyx__ExceptionSwap(__pyx_tstate, PyObject **type, PyObject * *value, PyObject **tb); |
2416 | #endif |
2417 | |
2418 | /* PyObjectCall2Args.proto */ |
2419 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2); |
2420 | |
2421 | /* PyObjectCallMethod1.proto */ |
2422 | static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); |
2423 | |
2424 | /* CoroutineBase.proto */ |
2425 | struct __pyx_CoroutineObject; |
2426 | typedef PyObject *(*__pyx_coroutine_body_t)(struct __pyx_CoroutineObject *, PyThreadState *, PyObject *); |
2427 | #if CYTHON_USE_EXC_INFO_STACK1 |
2428 | #define __Pyx_ExcInfoStruct_PyErr_StackItem _PyErr_StackItem |
2429 | #else |
2430 | typedef struct { |
2431 | PyObject *exc_type; |
2432 | PyObject *exc_value; |
2433 | PyObject *exc_traceback; |
2434 | } __Pyx_ExcInfoStruct_PyErr_StackItem; |
2435 | #endif |
2436 | typedef struct __pyx_CoroutineObject { |
2437 | PyObject_HEADPyObject ob_base; |
2438 | __pyx_coroutine_body_t body; |
2439 | PyObject *closure; |
2440 | __Pyx_ExcInfoStruct_PyErr_StackItem gi_exc_state; |
2441 | PyObject *gi_weakreflist; |
2442 | PyObject *classobj; |
2443 | PyObject *yieldfrom; |
2444 | PyObject *gi_name; |
2445 | PyObject *gi_qualname; |
2446 | PyObject *gi_modulename; |
2447 | PyObject *gi_code; |
2448 | PyObject *gi_frame; |
2449 | int resume_label; |
2450 | char is_running; |
2451 | } __pyx_CoroutineObject; |
2452 | static __pyx_CoroutineObject *__Pyx__Coroutine_New( |
2453 | PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, |
2454 | PyObject *name, PyObject *qualname, PyObject *module_name); |
2455 | static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( |
2456 | __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, |
2457 | PyObject *name, PyObject *qualname, PyObject *module_name); |
2458 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct_PyErr_StackItem *self); |
2459 | static int __Pyx_Coroutine_clear(PyObject *self); |
2460 | static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value); |
2461 | static PyObject *__Pyx_Coroutine_Close(PyObject *self); |
2462 | static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args); |
2463 | #if CYTHON_USE_EXC_INFO_STACK1 |
2464 | #define __Pyx_Coroutine_SwapException(self) |
2465 | #define __Pyx_Coroutine_ResetAndClearException(self)__Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state) __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state) |
2466 | #else |
2467 | #define __Pyx_Coroutine_SwapException(self) {\ |
2468 | __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback)__Pyx__ExceptionSwap(__pyx_tstate, &(self)->gi_exc_state .exc_type, &(self)->gi_exc_state.exc_value, &(self )->gi_exc_state.exc_traceback);\ |
2469 | __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\ |
2470 | } |
2471 | #define __Pyx_Coroutine_ResetAndClearException(self)__Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state) {\ |
2472 | __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback)__Pyx__ExceptionReset(__pyx_tstate, (self)->gi_exc_state.exc_type , (self)->gi_exc_state.exc_value, (self)->gi_exc_state. exc_traceback);\ |
2473 | (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL((void*)0);\ |
2474 | } |
2475 | #endif |
2476 | #if CYTHON_FAST_THREAD_STATE1 |
2477 | #define __Pyx_PyGen_FetchStopIterationValue(pvalue)__Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)\ |
2478 | __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue) |
2479 | #else |
2480 | #define __Pyx_PyGen_FetchStopIterationValue(pvalue)__Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)\ |
2481 | __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(), pvalue) |
2482 | #endif |
2483 | static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue); |
2484 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct_PyErr_StackItem *exc_state); |
2485 | |
2486 | /* PatchModuleWithCoroutine.proto */ |
2487 | static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code); |
2488 | |
2489 | /* PatchGeneratorABC.proto */ |
2490 | static int __Pyx_patch_abc(void); |
2491 | |
2492 | /* Generator.proto */ |
2493 | #define __Pyx_Generator_USED |
2494 | #define __Pyx_Generator_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), __pyx_mstate_global->__pyx_GeneratorType ) __Pyx_IS_TYPE(obj, __pyx_GeneratorType)Py_IS_TYPE(((PyObject*)((obj))), __pyx_mstate_global->__pyx_GeneratorType ) |
2495 | #define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)__Pyx__Coroutine_New(__pyx_mstate_global->__pyx_GeneratorType , body, code, closure, name, qualname, module_name)\ |
2496 | __Pyx__Coroutine_New(__pyx_GeneratorType__pyx_mstate_global->__pyx_GeneratorType, body, code, closure, name, qualname, module_name) |
2497 | static PyObject *__Pyx_Generator_Next(PyObject *self); |
2498 | static int __pyx_Generator_init(PyObject *module); |
2499 | |
2500 | /* CheckBinaryVersion.proto */ |
2501 | static unsigned long __Pyx_get_runtime_version(void); |
2502 | static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer); |
2503 | |
2504 | /* InitStrings.proto */ |
2505 | static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); |
2506 | |
2507 | /* #### Code section: module_declarations ### */ |
2508 | |
2509 | /* Module declarations from "cEGADS" */ |
2510 | |
2511 | /* Module declarations from "cpython.version" */ |
2512 | |
2513 | /* Module declarations from "abaqusFILReader" */ |
2514 | __PYX_EXTERN_Cextern int abaqus_parseFILDisplacement(char const *, int *, double ***); /*proto*/ |
2515 | __PYX_EXTERN_Cextern int abaqus_parseFILvonMises(char const *, int *, double ***); /*proto*/ |
2516 | /* #### Code section: typeinfo ### */ |
2517 | /* #### Code section: before_global_var ### */ |
2518 | #define __Pyx_MODULE_NAME"abaqusFILReader" "abaqusFILReader" |
2519 | extern int __pyx_module_is_main_abaqusFILReader; |
2520 | int __pyx_module_is_main_abaqusFILReader = 0; |
2521 | |
2522 | /* Implementation of "abaqusFILReader" */ |
2523 | /* #### Code section: global_var ### */ |
2524 | static PyObject *__pyx_builtin_MemoryError; |
2525 | static PyObject *__pyx_builtin_print; |
2526 | static PyObject *__pyx_builtin_enumerate; |
2527 | static PyObject *__pyx_builtin_open; |
2528 | /* #### Code section: string_decls ### */ |
2529 | static const char __pyx_k_A[] = "A"; |
2530 | static const char __pyx_k_D[] = "D"; |
2531 | static const char __pyx_k_E[] = "E"; |
2532 | static const char __pyx_k_I[] = "I"; |
2533 | static const char __pyx_k_f[] = "f"; |
2534 | static const char __pyx_k_k[] = "k"; |
2535 | static const char __pyx_k__2[] = ""; |
2536 | static const char __pyx_k__5[] = "\n"; |
2537 | static const char __pyx_k__7[] = "\r"; |
2538 | static const char __pyx_k__9[] = "*"; |
2539 | static const char __pyx_k_gc[] = "gc"; |
2540 | static const char __pyx_k_os[] = "os"; |
2541 | static const char __pyx_k_Rec[] = "Rec"; |
2542 | static const char __pyx_k__24[] = "?"; |
2543 | static const char __pyx_k_fil[] = ".fil"; |
2544 | static const char __pyx_k_ind[] = "ind"; |
2545 | static const char __pyx_k_key[] = "key"; |
2546 | static const char __pyx_k_pos[] = "pos"; |
2547 | static const char __pyx_k_str[] = "_str"; |
2548 | static const char __pyx_k_sub[] = "sub"; |
2549 | static const char __pyx_k_sys[] = "sys"; |
2550 | static const char __pyx_k_args[] = "args"; |
2551 | static const char __pyx_k_data[] = "data"; |
2552 | static const char __pyx_k_exit[] = "__exit__"; |
2553 | static const char __pyx_k_find[] = "find"; |
2554 | static const char __pyx_k_item[] = "item"; |
2555 | static const char __pyx_k_keys[] = "keys"; |
2556 | static const char __pyx_k_line[] = "line"; |
2557 | static const char __pyx_k_main[] = "__main__"; |
2558 | static const char __pyx_k_name[] = "__name__"; |
2559 | static const char __pyx_k_open[] = "open"; |
2560 | static const char __pyx_k_path[] = "path"; |
2561 | static const char __pyx_k_send[] = "send"; |
2562 | static const char __pyx_k_spec[] = "__spec__"; |
2563 | static const char __pyx_k_temp[] = "temp"; |
2564 | static const char __pyx_k_test[] = "__test__"; |
2565 | static const char __pyx_k_a_str[] = "a_str"; |
2566 | static const char __pyx_k_close[] = "close"; |
2567 | static const char __pyx_k_data2[] = "data2: "; |
2568 | static const char __pyx_k_debug[] = "debug"; |
2569 | static const char __pyx_k_elNum[] = "elNum"; |
2570 | static const char __pyx_k_enter[] = "__enter__"; |
2571 | static const char __pyx_k_index[] = "index:"; |
2572 | static const char __pyx_k_mises[] = "mises"; |
2573 | static const char __pyx_k_print[] = "print"; |
2574 | static const char __pyx_k_split[] = "split"; |
2575 | static const char __pyx_k_start[] = "start"; |
2576 | static const char __pyx_k_temp2[] = "temp2"; |
2577 | static const char __pyx_k_throw[] = "throw"; |
2578 | static const char __pyx_k_utf_8[] = "utf-8"; |
2579 | static const char __pyx_k_value[] = "value"; |
2580 | static const char __pyx_k_decode[] = "decode"; |
2581 | static const char __pyx_k_enable[] = "enable"; |
2582 | static const char __pyx_k_import[] = "__import__"; |
2583 | static const char __pyx_k_isfile[] = "isfile"; |
2584 | static const char __pyx_k_output[] = "output"; |
2585 | static const char __pyx_k_record[] = "record:"; |
2586 | static const char __pyx_k_secNum[] = "secNum"; |
2587 | static const char __pyx_k_update[] = "update"; |
2588 | static const char __pyx_k_abqFile[] = "abqFile"; |
2589 | static const char __pyx_k_data2_2[] = "data2"; |
2590 | static const char __pyx_k_disable[] = "disable"; |
2591 | static const char __pyx_k_findAll[] = "findAll"; |
2592 | static const char __pyx_k_replace[] = "replace"; |
2593 | static const char __pyx_k_RecSplit[] = "RecSplit"; |
2594 | static const char __pyx_k_position[] = "position"; |
2595 | static const char __pyx_k_record_2[] = "record"; |
2596 | static const char __pyx_k_record_3[] = "record: "; |
2597 | static const char __pyx_k_enumerate[] = "enumerate"; |
2598 | static const char __pyx_k_isenabled[] = "isenabled"; |
2599 | static const char __pyx_k_iteritems[] = "iteritems"; |
2600 | static const char __pyx_k_recnumber[] = "recnumber"; |
2601 | static const char __pyx_k_temp_data[] = "temp data: "; |
2602 | static const char __pyx_k_ParsedData[] = "ParsedData"; |
2603 | static const char __pyx_k_empty_file[] = "empty file"; |
2604 | static const char __pyx_k_found_data[] = "found data"; |
2605 | static const char __pyx_k_MemoryError[] = "MemoryError"; |
2606 | static const char __pyx_k_ignore_dicts[] = "ignore_dicts"; |
2607 | static const char __pyx_k_initializing[] = "_initializing"; |
2608 | static const char __pyx_k_is_coroutine[] = "_is_coroutine"; |
2609 | static const char __pyx_k_class_getitem[] = "__class_getitem__"; |
2610 | static const char __pyx_k_displacements[] = "displacements"; |
2611 | static const char __pyx_k_extractRecord[] = "extractRecord"; |
2612 | static const char __pyx_k_no_data_found[] = "no data found"; |
2613 | static const char __pyx_k_record_length[] = "record length: "; |
2614 | static const char __pyx_k_extractDispFil[] = "extractDispFil"; |
2615 | static const char __pyx_k_abaqusFILReader[] = "abaqusFILReader"; |
2616 | static const char __pyx_k_extractMisesFil[] = "extractMisesFil"; |
2617 | static const char __pyx_k_final_temp_data[] = "final temp data:"; |
2618 | static const char __pyx_k_extractFilRecords[] = "extractFilRecords"; |
2619 | static const char __pyx_k_asyncio_coroutines[] = "asyncio.coroutines"; |
2620 | static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; |
2621 | static const char __pyx_k_abaqusFILReader_pyx[] = "abaqusFILReader.pyx"; |
2622 | static const char __pyx_k_data_missing_abq_probably_didn_t[] = "data missing, abq probably didn't finish"; |
2623 | static const char __pyx_k_file_missing_abq_probably_didn_t[] = "file missing, abq probably didn't finish"; |
2624 | /* #### Code section: decls ### */ |
2625 | static PyObject *__pyx_pf_15abaqusFILReader__str(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_data, PyObject *__pyx_v_ignore_dicts); /* proto */ |
2626 | static PyObject *__pyx_pf_15abaqusFILReader_2extractDispFil(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_ParsedData, PyObject *__pyx_v_debug); /* proto */ |
2627 | static PyObject *__pyx_pf_15abaqusFILReader_4extractMisesFil(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_ParsedData, PyObject *__pyx_v_debug); /* proto */ |
2628 | static PyObject *__pyx_pf_15abaqusFILReader_6extractFilRecords(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_abqFile, PyObject *__pyx_v_debug); /* proto */ |
2629 | static PyObject *__pyx_pf_15abaqusFILReader_8extractRecord(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_ParsedData, PyObject *__pyx_v_recnumber); /* proto */ |
2630 | static PyObject *__pyx_pf_15abaqusFILReader_10findAll(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_a_str, PyObject *__pyx_v_sub); /* proto */ |
2631 | static PyObject *__pyx_tp_new_15abaqusFILReader___pyx_scope_struct__findAll(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
2632 | /* #### Code section: late_includes ### */ |
2633 | /* #### Code section: module_state ### */ |
2634 | typedef struct { |
2635 | PyObject *__pyx_d__pyx_mstate_global->__pyx_d; |
2636 | PyObject *__pyx_b__pyx_mstate_global->__pyx_b; |
2637 | PyObject *__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime; |
2638 | PyObject *__pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple; |
2639 | PyObject *__pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes; |
2640 | PyObject *__pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode; |
2641 | #ifdef __Pyx_CyFunction_USED |
2642 | PyTypeObject *__pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType; |
2643 | #endif |
2644 | #ifdef __Pyx_FusedFunction_USED |
2645 | PyTypeObject *__pyx_FusedFunctionType; |
2646 | #endif |
2647 | #ifdef __Pyx_Generator_USED |
2648 | PyTypeObject *__pyx_GeneratorType__pyx_mstate_global->__pyx_GeneratorType; |
2649 | #endif |
2650 | #ifdef __Pyx_IterableCoroutine_USED |
2651 | PyTypeObject *__pyx_IterableCoroutineType; |
2652 | #endif |
2653 | #ifdef __Pyx_Coroutine_USED |
2654 | PyTypeObject *__pyx_CoroutineAwaitType; |
2655 | #endif |
2656 | #ifdef __Pyx_Coroutine_USED |
2657 | PyTypeObject *__pyx_CoroutineType; |
2658 | #endif |
2659 | #if CYTHON_USE_MODULE_STATE0 |
2660 | #endif |
2661 | #if CYTHON_USE_MODULE_STATE0 |
2662 | #endif |
2663 | #if CYTHON_USE_MODULE_STATE0 |
2664 | PyObject *__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll; |
2665 | #endif |
2666 | PyTypeObject *__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll; |
2667 | PyObject *__pyx_n_u_A__pyx_mstate_global->__pyx_n_u_A; |
2668 | PyObject *__pyx_n_u_D__pyx_mstate_global->__pyx_n_u_D; |
2669 | PyObject *__pyx_n_u_E__pyx_mstate_global->__pyx_n_u_E; |
2670 | PyObject *__pyx_n_u_I__pyx_mstate_global->__pyx_n_u_I; |
2671 | PyObject *__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError; |
2672 | PyObject *__pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData; |
2673 | PyObject *__pyx_n_s_Rec__pyx_mstate_global->__pyx_n_s_Rec; |
2674 | PyObject *__pyx_n_s_RecSplit__pyx_mstate_global->__pyx_n_s_RecSplit; |
2675 | PyObject *__pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2; |
2676 | PyObject *__pyx_n_s__24__pyx_mstate_global->__pyx_n_s__24; |
2677 | PyObject *__pyx_kp_u__5__pyx_mstate_global->__pyx_kp_u__5; |
2678 | PyObject *__pyx_kp_u__7__pyx_mstate_global->__pyx_kp_u__7; |
2679 | PyObject *__pyx_n_s__9__pyx_mstate_global->__pyx_n_s__9; |
2680 | PyObject *__pyx_kp_u__9__pyx_mstate_global->__pyx_kp_u__9; |
2681 | PyObject *__pyx_n_s_a_str__pyx_mstate_global->__pyx_n_s_a_str; |
2682 | PyObject *__pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader; |
2683 | PyObject *__pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx; |
2684 | PyObject *__pyx_n_s_abqFile__pyx_mstate_global->__pyx_n_s_abqFile; |
2685 | PyObject *__pyx_n_s_args__pyx_mstate_global->__pyx_n_s_args; |
2686 | PyObject *__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines; |
2687 | PyObject *__pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem; |
2688 | PyObject *__pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback; |
2689 | PyObject *__pyx_n_s_close__pyx_mstate_global->__pyx_n_s_close; |
2690 | PyObject *__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data; |
2691 | PyObject *__pyx_kp_u_data2__pyx_mstate_global->__pyx_kp_u_data2; |
2692 | PyObject *__pyx_n_s_data2_2__pyx_mstate_global->__pyx_n_s_data2_2; |
2693 | PyObject *__pyx_kp_u_data_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t; |
2694 | PyObject *__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug; |
2695 | PyObject *__pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode; |
2696 | PyObject *__pyx_kp_u_disable__pyx_mstate_global->__pyx_kp_u_disable; |
2697 | PyObject *__pyx_n_s_displacements__pyx_mstate_global->__pyx_n_s_displacements; |
2698 | PyObject *__pyx_n_s_elNum__pyx_mstate_global->__pyx_n_s_elNum; |
2699 | PyObject *__pyx_kp_u_empty_file__pyx_mstate_global->__pyx_kp_u_empty_file; |
2700 | PyObject *__pyx_kp_u_enable__pyx_mstate_global->__pyx_kp_u_enable; |
2701 | PyObject *__pyx_n_s_enter__pyx_mstate_global->__pyx_n_s_enter; |
2702 | PyObject *__pyx_n_s_enumerate__pyx_mstate_global->__pyx_n_s_enumerate; |
2703 | PyObject *__pyx_n_s_exit__pyx_mstate_global->__pyx_n_s_exit; |
2704 | PyObject *__pyx_n_s_extractDispFil__pyx_mstate_global->__pyx_n_s_extractDispFil; |
2705 | PyObject *__pyx_n_s_extractFilRecords__pyx_mstate_global->__pyx_n_s_extractFilRecords; |
2706 | PyObject *__pyx_n_s_extractMisesFil__pyx_mstate_global->__pyx_n_s_extractMisesFil; |
2707 | PyObject *__pyx_n_s_extractRecord__pyx_mstate_global->__pyx_n_s_extractRecord; |
2708 | PyObject *__pyx_n_s_f__pyx_mstate_global->__pyx_n_s_f; |
2709 | PyObject *__pyx_kp_u_fil__pyx_mstate_global->__pyx_kp_u_fil; |
2710 | PyObject *__pyx_kp_u_file_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t; |
2711 | PyObject *__pyx_kp_u_final_temp_data__pyx_mstate_global->__pyx_kp_u_final_temp_data; |
2712 | PyObject *__pyx_n_s_find__pyx_mstate_global->__pyx_n_s_find; |
2713 | PyObject *__pyx_n_s_findAll__pyx_mstate_global->__pyx_n_s_findAll; |
2714 | PyObject *__pyx_kp_u_found_data__pyx_mstate_global->__pyx_kp_u_found_data; |
2715 | PyObject *__pyx_kp_u_gc__pyx_mstate_global->__pyx_kp_u_gc; |
2716 | PyObject *__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts; |
2717 | PyObject *__pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import; |
2718 | PyObject *__pyx_n_s_ind__pyx_mstate_global->__pyx_n_s_ind; |
2719 | PyObject *__pyx_kp_u_index__pyx_mstate_global->__pyx_kp_u_index; |
2720 | PyObject *__pyx_n_s_initializing__pyx_mstate_global->__pyx_n_s_initializing; |
2721 | PyObject *__pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine; |
2722 | PyObject *__pyx_kp_u_isenabled__pyx_mstate_global->__pyx_kp_u_isenabled; |
2723 | PyObject *__pyx_n_s_isfile__pyx_mstate_global->__pyx_n_s_isfile; |
2724 | PyObject *__pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item; |
2725 | PyObject *__pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems; |
2726 | PyObject *__pyx_n_s_k__pyx_mstate_global->__pyx_n_s_k; |
2727 | PyObject *__pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key; |
2728 | PyObject *__pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys; |
2729 | PyObject *__pyx_n_s_line__pyx_mstate_global->__pyx_n_s_line; |
2730 | PyObject *__pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main; |
2731 | PyObject *__pyx_n_s_mises__pyx_mstate_global->__pyx_n_s_mises; |
2732 | PyObject *__pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name; |
2733 | PyObject *__pyx_kp_u_no_data_found__pyx_mstate_global->__pyx_kp_u_no_data_found; |
2734 | PyObject *__pyx_n_s_open__pyx_mstate_global->__pyx_n_s_open; |
2735 | PyObject *__pyx_n_s_os__pyx_mstate_global->__pyx_n_s_os; |
2736 | PyObject *__pyx_n_s_output__pyx_mstate_global->__pyx_n_s_output; |
2737 | PyObject *__pyx_n_s_path__pyx_mstate_global->__pyx_n_s_path; |
2738 | PyObject *__pyx_n_s_pos__pyx_mstate_global->__pyx_n_s_pos; |
2739 | PyObject *__pyx_n_u_position__pyx_mstate_global->__pyx_n_u_position; |
2740 | PyObject *__pyx_n_s_print__pyx_mstate_global->__pyx_n_s_print; |
2741 | PyObject *__pyx_n_s_recnumber__pyx_mstate_global->__pyx_n_s_recnumber; |
2742 | PyObject *__pyx_kp_u_record__pyx_mstate_global->__pyx_kp_u_record; |
2743 | PyObject *__pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2; |
2744 | PyObject *__pyx_n_u_record_2__pyx_mstate_global->__pyx_n_u_record_2; |
2745 | PyObject *__pyx_kp_u_record_3__pyx_mstate_global->__pyx_kp_u_record_3; |
2746 | PyObject *__pyx_kp_u_record_length__pyx_mstate_global->__pyx_kp_u_record_length; |
2747 | PyObject *__pyx_n_s_replace__pyx_mstate_global->__pyx_n_s_replace; |
2748 | PyObject *__pyx_n_s_secNum__pyx_mstate_global->__pyx_n_s_secNum; |
2749 | PyObject *__pyx_n_s_send__pyx_mstate_global->__pyx_n_s_send; |
2750 | PyObject *__pyx_n_s_spec__pyx_mstate_global->__pyx_n_s_spec; |
2751 | PyObject *__pyx_n_s_split__pyx_mstate_global->__pyx_n_s_split; |
2752 | PyObject *__pyx_n_s_start__pyx_mstate_global->__pyx_n_s_start; |
2753 | PyObject *__pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str; |
2754 | PyObject *__pyx_n_s_sub__pyx_mstate_global->__pyx_n_s_sub; |
2755 | PyObject *__pyx_n_s_sys__pyx_mstate_global->__pyx_n_s_sys; |
2756 | PyObject *__pyx_n_s_temp__pyx_mstate_global->__pyx_n_s_temp; |
2757 | PyObject *__pyx_n_s_temp2__pyx_mstate_global->__pyx_n_s_temp2; |
2758 | PyObject *__pyx_kp_u_temp_data__pyx_mstate_global->__pyx_kp_u_temp_data; |
2759 | PyObject *__pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test; |
2760 | PyObject *__pyx_n_s_throw__pyx_mstate_global->__pyx_n_s_throw; |
2761 | PyObject *__pyx_n_s_update__pyx_mstate_global->__pyx_n_s_update; |
2762 | PyObject *__pyx_kp_u_utf_8__pyx_mstate_global->__pyx_kp_u_utf_8; |
2763 | PyObject *__pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value; |
2764 | PyObject *__pyx_int_0__pyx_mstate_global->__pyx_int_0; |
2765 | PyObject *__pyx_int_1__pyx_mstate_global->__pyx_int_1; |
2766 | PyObject *__pyx_int_2__pyx_mstate_global->__pyx_int_2; |
2767 | PyObject *__pyx_int_3__pyx_mstate_global->__pyx_int_3; |
2768 | PyObject *__pyx_int_9__pyx_mstate_global->__pyx_int_9; |
2769 | PyObject *__pyx_int_12__pyx_mstate_global->__pyx_int_12; |
2770 | PyObject *__pyx_int_22__pyx_mstate_global->__pyx_int_22; |
2771 | PyObject *__pyx_int_23__pyx_mstate_global->__pyx_int_23; |
2772 | PyObject *__pyx_int_101__pyx_mstate_global->__pyx_int_101; |
2773 | PyObject *__pyx_int_neg_1__pyx_mstate_global->__pyx_int_neg_1; |
2774 | PyObject *__pyx_int_neg_4__pyx_mstate_global->__pyx_int_neg_4; |
2775 | PyObject *__pyx_slice___pyx_mstate_global->__pyx_slice_; |
2776 | PyObject *__pyx_slice__3__pyx_mstate_global->__pyx_slice__3; |
2777 | PyObject *__pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4; |
2778 | PyObject *__pyx_tuple__6__pyx_mstate_global->__pyx_tuple__6; |
2779 | PyObject *__pyx_tuple__8__pyx_mstate_global->__pyx_tuple__8; |
2780 | PyObject *__pyx_tuple__10__pyx_mstate_global->__pyx_tuple__10; |
2781 | PyObject *__pyx_tuple__12__pyx_mstate_global->__pyx_tuple__12; |
2782 | PyObject *__pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14; |
2783 | PyObject *__pyx_tuple__15__pyx_mstate_global->__pyx_tuple__15; |
2784 | PyObject *__pyx_tuple__17__pyx_mstate_global->__pyx_tuple__17; |
2785 | PyObject *__pyx_tuple__19__pyx_mstate_global->__pyx_tuple__19; |
2786 | PyObject *__pyx_tuple__21__pyx_mstate_global->__pyx_tuple__21; |
2787 | PyObject *__pyx_tuple__23__pyx_mstate_global->__pyx_tuple__23; |
2788 | PyObject *__pyx_codeobj__11__pyx_mstate_global->__pyx_codeobj__11; |
2789 | PyObject *__pyx_codeobj__13__pyx_mstate_global->__pyx_codeobj__13; |
2790 | PyObject *__pyx_codeobj__16__pyx_mstate_global->__pyx_codeobj__16; |
2791 | PyObject *__pyx_codeobj__18__pyx_mstate_global->__pyx_codeobj__18; |
2792 | PyObject *__pyx_codeobj__20__pyx_mstate_global->__pyx_codeobj__20; |
2793 | PyObject *__pyx_codeobj__22__pyx_mstate_global->__pyx_codeobj__22; |
2794 | } __pyx_mstate; |
2795 | |
2796 | #if CYTHON_USE_MODULE_STATE0 |
2797 | #ifdef __cplusplus |
2798 | namespace { |
2799 | extern struct PyModuleDef __pyx_moduledef; |
2800 | } /* anonymous namespace */ |
2801 | #else |
2802 | static struct PyModuleDef __pyx_moduledef; |
2803 | #endif |
2804 | |
2805 | #define __pyx_mstate(o) ((__pyx_mstate *)__Pyx_PyModule_GetState(o)) |
2806 | |
2807 | #define __pyx_mstate_global (__pyx_mstate(PyState_FindModule(&__pyx_moduledef))) |
2808 | |
2809 | #define __pyx_m (PyState_FindModule(&__pyx_moduledef)) |
2810 | #else |
2811 | static __pyx_mstate __pyx_mstate_global_static = |
2812 | #ifdef __cplusplus |
2813 | {}; |
2814 | #else |
2815 | {0}; |
2816 | #endif |
2817 | static __pyx_mstate *__pyx_mstate_global = &__pyx_mstate_global_static; |
2818 | #endif |
2819 | /* #### Code section: module_state_clear ### */ |
2820 | #if CYTHON_USE_MODULE_STATE0 |
2821 | static int __pyx_m_clear(PyObject *m) { |
2822 | __pyx_mstate *clear_module_state = __pyx_mstate(m); |
2823 | if (!clear_module_state) return 0; |
2824 | Py_CLEAR(clear_module_state->__pyx_d)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_d))); if (_py_tmp != ((void*)0) ) { (clear_module_state->__pyx_mstate_global->__pyx_d) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while ( 0); |
2825 | Py_CLEAR(clear_module_state->__pyx_b)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_b))); if (_py_tmp != ((void*)0) ) { (clear_module_state->__pyx_mstate_global->__pyx_b) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while ( 0); |
2826 | Py_CLEAR(clear_module_state->__pyx_cython_runtime)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_cython_runtime))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_cython_runtime) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2827 | Py_CLEAR(clear_module_state->__pyx_empty_tuple)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_empty_tuple))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_empty_tuple) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2828 | Py_CLEAR(clear_module_state->__pyx_empty_bytes)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_empty_bytes))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_empty_bytes) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2829 | Py_CLEAR(clear_module_state->__pyx_empty_unicode)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_empty_unicode))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_empty_unicode) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2830 | #ifdef __Pyx_CyFunction_USED |
2831 | Py_CLEAR(clear_module_state->__pyx_CyFunctionType)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_CyFunctionType))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_CyFunctionType) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2832 | #endif |
2833 | #ifdef __Pyx_FusedFunction_USED |
2834 | Py_CLEAR(clear_module_state->__pyx_FusedFunctionType)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_FusedFunctionType))); if (_py_tmp != ((void*)0)) { (clear_module_state ->__pyx_FusedFunctionType) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2835 | #endif |
2836 | Py_CLEAR(clear_module_state->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll ))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2837 | Py_CLEAR(clear_module_state->__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_type_15abaqusFILReader___pyx_scope_struct__findAll))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2838 | Py_CLEAR(clear_module_state->__pyx_n_u_A)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_u_A))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_u_A ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2839 | Py_CLEAR(clear_module_state->__pyx_n_u_D)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_u_D))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_u_D ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2840 | Py_CLEAR(clear_module_state->__pyx_n_u_E)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_u_E))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_u_E ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2841 | Py_CLEAR(clear_module_state->__pyx_n_u_I)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_u_I))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_u_I ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2842 | Py_CLEAR(clear_module_state->__pyx_n_s_MemoryError)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_MemoryError))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_MemoryError) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2843 | Py_CLEAR(clear_module_state->__pyx_n_s_ParsedData)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_ParsedData))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_ParsedData) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2844 | Py_CLEAR(clear_module_state->__pyx_n_s_Rec)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_Rec))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_Rec ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2845 | Py_CLEAR(clear_module_state->__pyx_n_s_RecSplit)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_RecSplit))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_RecSplit) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2846 | Py_CLEAR(clear_module_state->__pyx_kp_u__2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u__2))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_kp_u__2 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2847 | Py_CLEAR(clear_module_state->__pyx_n_s__24)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s__24))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s__24 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2848 | Py_CLEAR(clear_module_state->__pyx_kp_u__5)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u__5))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_kp_u__5 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2849 | Py_CLEAR(clear_module_state->__pyx_kp_u__7)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u__7))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_kp_u__7 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2850 | Py_CLEAR(clear_module_state->__pyx_n_s__9)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s__9))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s__9 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2851 | Py_CLEAR(clear_module_state->__pyx_kp_u__9)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u__9))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_kp_u__9 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2852 | Py_CLEAR(clear_module_state->__pyx_n_s_a_str)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_a_str))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_a_str ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2853 | Py_CLEAR(clear_module_state->__pyx_n_s_abaqusFILReader)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_abaqusFILReader))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_abaqusFILReader) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2854 | Py_CLEAR(clear_module_state->__pyx_kp_s_abaqusFILReader_pyx)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_s_abaqusFILReader_pyx) = ((void*)0); Py_DECREF( ((PyObject*)((_py_tmp)))); } } while (0); |
2855 | Py_CLEAR(clear_module_state->__pyx_n_s_abqFile)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_abqFile))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_abqFile) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2856 | Py_CLEAR(clear_module_state->__pyx_n_s_args)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_args))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_args ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2857 | Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_coroutines)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_asyncio_coroutines))); if ( _py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_asyncio_coroutines) = ((void*)0); Py_DECREF((( PyObject*)((_py_tmp)))); } } while (0); |
2858 | Py_CLEAR(clear_module_state->__pyx_n_s_class_getitem)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_class_getitem))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_class_getitem) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2859 | Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_cline_in_traceback))); if ( _py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_cline_in_traceback) = ((void*)0); Py_DECREF((( PyObject*)((_py_tmp)))); } } while (0); |
2860 | Py_CLEAR(clear_module_state->__pyx_n_s_close)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_close))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_close ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2861 | Py_CLEAR(clear_module_state->__pyx_n_s_data)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_data))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_data ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2862 | Py_CLEAR(clear_module_state->__pyx_kp_u_data2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_data2))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_data2) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2863 | Py_CLEAR(clear_module_state->__pyx_n_s_data2_2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_data2_2))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_data2_2) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2864 | Py_CLEAR(clear_module_state->__pyx_kp_u_data_missing_abq_probably_didn_t)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t ))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_u_data_missing_abq_probably_didn_t) = ((void*)0 ); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2865 | Py_CLEAR(clear_module_state->__pyx_n_s_debug)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_debug))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_debug ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2866 | Py_CLEAR(clear_module_state->__pyx_n_s_decode)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_decode))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_decode) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2867 | Py_CLEAR(clear_module_state->__pyx_kp_u_disable)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_disable))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_disable) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2868 | Py_CLEAR(clear_module_state->__pyx_n_s_displacements)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_displacements))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_displacements) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2869 | Py_CLEAR(clear_module_state->__pyx_n_s_elNum)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_elNum))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_elNum ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2870 | Py_CLEAR(clear_module_state->__pyx_kp_u_empty_file)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_empty_file))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_u_empty_file) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2871 | Py_CLEAR(clear_module_state->__pyx_kp_u_enable)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_enable))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_enable) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2872 | Py_CLEAR(clear_module_state->__pyx_n_s_enter)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_enter))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_enter ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2873 | Py_CLEAR(clear_module_state->__pyx_n_s_enumerate)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_enumerate))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_enumerate) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2874 | Py_CLEAR(clear_module_state->__pyx_n_s_exit)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_exit))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_exit ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2875 | Py_CLEAR(clear_module_state->__pyx_n_s_extractDispFil)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_extractDispFil))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_extractDispFil) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2876 | Py_CLEAR(clear_module_state->__pyx_n_s_extractFilRecords)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_extractFilRecords))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_extractFilRecords) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2877 | Py_CLEAR(clear_module_state->__pyx_n_s_extractMisesFil)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_extractMisesFil))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_extractMisesFil) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2878 | Py_CLEAR(clear_module_state->__pyx_n_s_extractRecord)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_extractRecord))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_extractRecord) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2879 | Py_CLEAR(clear_module_state->__pyx_n_s_f)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_f))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_f ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2880 | Py_CLEAR(clear_module_state->__pyx_kp_u_fil)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_fil))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_kp_u_fil ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2881 | Py_CLEAR(clear_module_state->__pyx_kp_u_file_missing_abq_probably_didn_t)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t ))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_u_file_missing_abq_probably_didn_t) = ((void*)0 ); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2882 | Py_CLEAR(clear_module_state->__pyx_kp_u_final_temp_data)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_final_temp_data))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_u_final_temp_data) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2883 | Py_CLEAR(clear_module_state->__pyx_n_s_find)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_find))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_find ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2884 | Py_CLEAR(clear_module_state->__pyx_n_s_findAll)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_findAll))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_findAll) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2885 | Py_CLEAR(clear_module_state->__pyx_kp_u_found_data)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_found_data))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_u_found_data) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2886 | Py_CLEAR(clear_module_state->__pyx_kp_u_gc)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_gc))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_kp_u_gc ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2887 | Py_CLEAR(clear_module_state->__pyx_n_s_ignore_dicts)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_ignore_dicts))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_ignore_dicts) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2888 | Py_CLEAR(clear_module_state->__pyx_n_s_import)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_import))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_import) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2889 | Py_CLEAR(clear_module_state->__pyx_n_s_ind)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_ind))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_ind ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2890 | Py_CLEAR(clear_module_state->__pyx_kp_u_index)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_index))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_index) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2891 | Py_CLEAR(clear_module_state->__pyx_n_s_initializing)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_initializing))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_initializing) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2892 | Py_CLEAR(clear_module_state->__pyx_n_s_is_coroutine)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_is_coroutine))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_n_s_is_coroutine) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2893 | Py_CLEAR(clear_module_state->__pyx_kp_u_isenabled)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_isenabled))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_isenabled) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2894 | Py_CLEAR(clear_module_state->__pyx_n_s_isfile)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_isfile))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_isfile) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2895 | Py_CLEAR(clear_module_state->__pyx_n_s_item)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_item))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_item ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2896 | Py_CLEAR(clear_module_state->__pyx_n_s_iteritems)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_iteritems))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_iteritems) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2897 | Py_CLEAR(clear_module_state->__pyx_n_s_k)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_k))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_k ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2898 | Py_CLEAR(clear_module_state->__pyx_n_s_key)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_key))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_key ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2899 | Py_CLEAR(clear_module_state->__pyx_n_s_keys)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_keys))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_keys ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2900 | Py_CLEAR(clear_module_state->__pyx_n_s_line)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_line))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_line ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2901 | Py_CLEAR(clear_module_state->__pyx_n_s_main)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_main))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_main ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2902 | Py_CLEAR(clear_module_state->__pyx_n_s_mises)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_mises))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_mises ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2903 | Py_CLEAR(clear_module_state->__pyx_n_s_name)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_name))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_name ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2904 | Py_CLEAR(clear_module_state->__pyx_kp_u_no_data_found)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_no_data_found))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_u_no_data_found) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2905 | Py_CLEAR(clear_module_state->__pyx_n_s_open)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_open))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_open ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2906 | Py_CLEAR(clear_module_state->__pyx_n_s_os)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_os))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_os ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2907 | Py_CLEAR(clear_module_state->__pyx_n_s_output)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_output))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_output) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2908 | Py_CLEAR(clear_module_state->__pyx_n_s_path)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_path))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_path ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2909 | Py_CLEAR(clear_module_state->__pyx_n_s_pos)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_pos))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_pos ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2910 | Py_CLEAR(clear_module_state->__pyx_n_u_position)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_u_position))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_u_position) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2911 | Py_CLEAR(clear_module_state->__pyx_n_s_print)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_print))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_print ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2912 | Py_CLEAR(clear_module_state->__pyx_n_s_recnumber)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_recnumber))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_recnumber) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2913 | Py_CLEAR(clear_module_state->__pyx_kp_u_record)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_record))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_record) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2914 | Py_CLEAR(clear_module_state->__pyx_n_s_record_2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_record_2))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_record_2) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2915 | Py_CLEAR(clear_module_state->__pyx_n_u_record_2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_u_record_2))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_u_record_2) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2916 | Py_CLEAR(clear_module_state->__pyx_kp_u_record_3)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_record_3))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_record_3) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2917 | Py_CLEAR(clear_module_state->__pyx_kp_u_record_length)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_record_length))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global ->__pyx_kp_u_record_length) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
2918 | Py_CLEAR(clear_module_state->__pyx_n_s_replace)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_replace))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_replace) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2919 | Py_CLEAR(clear_module_state->__pyx_n_s_secNum)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_secNum))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_secNum) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2920 | Py_CLEAR(clear_module_state->__pyx_n_s_send)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_send))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_send ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2921 | Py_CLEAR(clear_module_state->__pyx_n_s_spec)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_spec))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_spec ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2922 | Py_CLEAR(clear_module_state->__pyx_n_s_split)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_split))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_split ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2923 | Py_CLEAR(clear_module_state->__pyx_n_s_start)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_start))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_start ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2924 | Py_CLEAR(clear_module_state->__pyx_n_s_str)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_str))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_str ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2925 | Py_CLEAR(clear_module_state->__pyx_n_s_sub)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_sub))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_sub ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2926 | Py_CLEAR(clear_module_state->__pyx_n_s_sys)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_sys))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_sys ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2927 | Py_CLEAR(clear_module_state->__pyx_n_s_temp)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_temp))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_temp ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2928 | Py_CLEAR(clear_module_state->__pyx_n_s_temp2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_temp2))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_temp2 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2929 | Py_CLEAR(clear_module_state->__pyx_kp_u_temp_data)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_temp_data))); if (_py_tmp != ((void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_temp_data) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2930 | Py_CLEAR(clear_module_state->__pyx_n_s_test)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_test))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_test ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2931 | Py_CLEAR(clear_module_state->__pyx_n_s_throw)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_throw))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_throw ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2932 | Py_CLEAR(clear_module_state->__pyx_n_s_update)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_update))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_n_s_update) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2933 | Py_CLEAR(clear_module_state->__pyx_kp_u_utf_8)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_kp_u_utf_8))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_kp_u_utf_8) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2934 | Py_CLEAR(clear_module_state->__pyx_n_s_value)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_n_s_value))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_n_s_value ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2935 | Py_CLEAR(clear_module_state->__pyx_int_0)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_0))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_0 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2936 | Py_CLEAR(clear_module_state->__pyx_int_1)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_1))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_1 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2937 | Py_CLEAR(clear_module_state->__pyx_int_2)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_2))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_2 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2938 | Py_CLEAR(clear_module_state->__pyx_int_3)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_3))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_3 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2939 | Py_CLEAR(clear_module_state->__pyx_int_9)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_9))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_9 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2940 | Py_CLEAR(clear_module_state->__pyx_int_12)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_12))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_12 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2941 | Py_CLEAR(clear_module_state->__pyx_int_22)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_22))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_22 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2942 | Py_CLEAR(clear_module_state->__pyx_int_23)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_23))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_23 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2943 | Py_CLEAR(clear_module_state->__pyx_int_101)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_101))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_101 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2944 | Py_CLEAR(clear_module_state->__pyx_int_neg_1)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_neg_1))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_neg_1 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2945 | Py_CLEAR(clear_module_state->__pyx_int_neg_4)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_int_neg_4))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_int_neg_4 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2946 | Py_CLEAR(clear_module_state->__pyx_slice_)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_slice_))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_slice_ ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2947 | Py_CLEAR(clear_module_state->__pyx_slice__3)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_slice__3))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_slice__3 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2948 | Py_CLEAR(clear_module_state->__pyx_tuple__4)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__4))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__4 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2949 | Py_CLEAR(clear_module_state->__pyx_tuple__6)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__6))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__6 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2950 | Py_CLEAR(clear_module_state->__pyx_tuple__8)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__8))); if (_py_tmp != ((void *)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__8 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2951 | Py_CLEAR(clear_module_state->__pyx_tuple__10)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__10))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__10 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2952 | Py_CLEAR(clear_module_state->__pyx_tuple__12)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__12))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__12 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2953 | Py_CLEAR(clear_module_state->__pyx_tuple__14)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__14))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__14 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2954 | Py_CLEAR(clear_module_state->__pyx_tuple__15)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__15))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__15 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2955 | Py_CLEAR(clear_module_state->__pyx_tuple__17)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__17))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__17 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2956 | Py_CLEAR(clear_module_state->__pyx_tuple__19)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__19))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__19 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2957 | Py_CLEAR(clear_module_state->__pyx_tuple__21)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__21))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__21 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2958 | Py_CLEAR(clear_module_state->__pyx_tuple__23)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_tuple__23))); if (_py_tmp != (( void*)0)) { (clear_module_state->__pyx_mstate_global->__pyx_tuple__23 ) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
2959 | Py_CLEAR(clear_module_state->__pyx_codeobj__11)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_codeobj__11))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_codeobj__11) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2960 | Py_CLEAR(clear_module_state->__pyx_codeobj__13)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_codeobj__13))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_codeobj__13) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2961 | Py_CLEAR(clear_module_state->__pyx_codeobj__16)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_codeobj__16))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_codeobj__16) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2962 | Py_CLEAR(clear_module_state->__pyx_codeobj__18)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_codeobj__18))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_codeobj__18) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2963 | Py_CLEAR(clear_module_state->__pyx_codeobj__20)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_codeobj__20))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_codeobj__20) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2964 | Py_CLEAR(clear_module_state->__pyx_codeobj__22)do { PyObject *_py_tmp = ((PyObject*)((clear_module_state-> __pyx_mstate_global->__pyx_codeobj__22))); if (_py_tmp != ( (void*)0)) { (clear_module_state->__pyx_mstate_global-> __pyx_codeobj__22) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
2965 | return 0; |
2966 | } |
2967 | #endif |
2968 | /* #### Code section: module_state_traverse ### */ |
2969 | #if CYTHON_USE_MODULE_STATE0 |
2970 | static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { |
2971 | __pyx_mstate *traverse_module_state = __pyx_mstate(m); |
2972 | if (!traverse_module_state) return 0; |
2973 | Py_VISIT(traverse_module_state->__pyx_d)do { if (traverse_module_state->__pyx_mstate_global->__pyx_d ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_d))), arg); if (vret) return vret ; } } while (0); |
2974 | Py_VISIT(traverse_module_state->__pyx_b)do { if (traverse_module_state->__pyx_mstate_global->__pyx_b ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_b))), arg); if (vret) return vret ; } } while (0); |
2975 | Py_VISIT(traverse_module_state->__pyx_cython_runtime)do { if (traverse_module_state->__pyx_mstate_global->__pyx_cython_runtime ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_cython_runtime))), arg); if (vret ) return vret; } } while (0); |
2976 | Py_VISIT(traverse_module_state->__pyx_empty_tuple)do { if (traverse_module_state->__pyx_mstate_global->__pyx_empty_tuple ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_empty_tuple))), arg); if (vret) return vret; } } while (0); |
2977 | Py_VISIT(traverse_module_state->__pyx_empty_bytes)do { if (traverse_module_state->__pyx_mstate_global->__pyx_empty_bytes ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_empty_bytes))), arg); if (vret) return vret; } } while (0); |
2978 | Py_VISIT(traverse_module_state->__pyx_empty_unicode)do { if (traverse_module_state->__pyx_mstate_global->__pyx_empty_unicode ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_empty_unicode))), arg); if (vret ) return vret; } } while (0); |
2979 | #ifdef __Pyx_CyFunction_USED |
2980 | Py_VISIT(traverse_module_state->__pyx_CyFunctionType)do { if (traverse_module_state->__pyx_mstate_global->__pyx_CyFunctionType ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_CyFunctionType))), arg); if (vret ) return vret; } } while (0); |
2981 | #endif |
2982 | #ifdef __Pyx_FusedFunction_USED |
2983 | Py_VISIT(traverse_module_state->__pyx_FusedFunctionType)do { if (traverse_module_state->__pyx_FusedFunctionType) { int vret = visit(((PyObject*)((traverse_module_state->__pyx_FusedFunctionType ))), arg); if (vret) return vret; } } while (0); |
2984 | #endif |
2985 | Py_VISIT(traverse_module_state->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll)do { if (traverse_module_state->__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll ))), arg); if (vret) return vret; } } while (0); |
2986 | Py_VISIT(traverse_module_state->__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll)do { if (traverse_module_state->__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_type_15abaqusFILReader___pyx_scope_struct__findAll))), arg ); if (vret) return vret; } } while (0); |
2987 | Py_VISIT(traverse_module_state->__pyx_n_u_A)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_u_A ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_u_A))), arg); if (vret) return vret; } } while (0); |
2988 | Py_VISIT(traverse_module_state->__pyx_n_u_D)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_u_D ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_u_D))), arg); if (vret) return vret; } } while (0); |
2989 | Py_VISIT(traverse_module_state->__pyx_n_u_E)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_u_E ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_u_E))), arg); if (vret) return vret; } } while (0); |
2990 | Py_VISIT(traverse_module_state->__pyx_n_u_I)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_u_I ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_u_I))), arg); if (vret) return vret; } } while (0); |
2991 | Py_VISIT(traverse_module_state->__pyx_n_s_MemoryError)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_MemoryError ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_MemoryError))), arg); if (vret ) return vret; } } while (0); |
2992 | Py_VISIT(traverse_module_state->__pyx_n_s_ParsedData)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_ParsedData ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_ParsedData))), arg); if (vret ) return vret; } } while (0); |
2993 | Py_VISIT(traverse_module_state->__pyx_n_s_Rec)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_Rec ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_Rec))), arg); if (vret) return vret; } } while (0); |
2994 | Py_VISIT(traverse_module_state->__pyx_n_s_RecSplit)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_RecSplit ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_RecSplit))), arg); if (vret ) return vret; } } while (0); |
2995 | Py_VISIT(traverse_module_state->__pyx_kp_u__2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u__2 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u__2))), arg); if (vret) return vret; } } while (0); |
2996 | Py_VISIT(traverse_module_state->__pyx_n_s__24)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s__24 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s__24))), arg); if (vret) return vret; } } while (0); |
2997 | Py_VISIT(traverse_module_state->__pyx_kp_u__5)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u__5 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u__5))), arg); if (vret) return vret; } } while (0); |
2998 | Py_VISIT(traverse_module_state->__pyx_kp_u__7)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u__7 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u__7))), arg); if (vret) return vret; } } while (0); |
2999 | Py_VISIT(traverse_module_state->__pyx_n_s__9)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s__9 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s__9))), arg); if (vret) return vret; } } while (0); |
3000 | Py_VISIT(traverse_module_state->__pyx_kp_u__9)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u__9 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u__9))), arg); if (vret) return vret; } } while (0); |
3001 | Py_VISIT(traverse_module_state->__pyx_n_s_a_str)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_a_str ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_a_str))), arg); if (vret) return vret; } } while (0); |
3002 | Py_VISIT(traverse_module_state->__pyx_n_s_abaqusFILReader)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_abaqusFILReader ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_abaqusFILReader))), arg); if (vret) return vret; } } while (0); |
3003 | Py_VISIT(traverse_module_state->__pyx_kp_s_abaqusFILReader_pyx)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx))), arg ); if (vret) return vret; } } while (0); |
3004 | Py_VISIT(traverse_module_state->__pyx_n_s_abqFile)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_abqFile ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_abqFile))), arg); if (vret) return vret; } } while (0); |
3005 | Py_VISIT(traverse_module_state->__pyx_n_s_args)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_args ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_args))), arg); if (vret) return vret; } } while (0); |
3006 | Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_coroutines)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_asyncio_coroutines ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_asyncio_coroutines))), arg) ; if (vret) return vret; } } while (0); |
3007 | Py_VISIT(traverse_module_state->__pyx_n_s_class_getitem)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_class_getitem ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_class_getitem))), arg); if ( vret) return vret; } } while (0); |
3008 | Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_cline_in_traceback ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_cline_in_traceback))), arg) ; if (vret) return vret; } } while (0); |
3009 | Py_VISIT(traverse_module_state->__pyx_n_s_close)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_close ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_close))), arg); if (vret) return vret; } } while (0); |
3010 | Py_VISIT(traverse_module_state->__pyx_n_s_data)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_data ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_data))), arg); if (vret) return vret; } } while (0); |
3011 | Py_VISIT(traverse_module_state->__pyx_kp_u_data2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_data2 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_data2))), arg); if (vret) return vret; } } while (0); |
3012 | Py_VISIT(traverse_module_state->__pyx_n_s_data2_2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_data2_2 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_data2_2))), arg); if (vret) return vret; } } while (0); |
3013 | Py_VISIT(traverse_module_state->__pyx_kp_u_data_missing_abq_probably_didn_t)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t ))), arg); if (vret) return vret; } } while (0); |
3014 | Py_VISIT(traverse_module_state->__pyx_n_s_debug)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_debug ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_debug))), arg); if (vret) return vret; } } while (0); |
3015 | Py_VISIT(traverse_module_state->__pyx_n_s_decode)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_decode ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_decode))), arg); if (vret) return vret; } } while (0); |
3016 | Py_VISIT(traverse_module_state->__pyx_kp_u_disable)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_disable ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_disable))), arg); if (vret ) return vret; } } while (0); |
3017 | Py_VISIT(traverse_module_state->__pyx_n_s_displacements)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_displacements ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_displacements))), arg); if ( vret) return vret; } } while (0); |
3018 | Py_VISIT(traverse_module_state->__pyx_n_s_elNum)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_elNum ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_elNum))), arg); if (vret) return vret; } } while (0); |
3019 | Py_VISIT(traverse_module_state->__pyx_kp_u_empty_file)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_empty_file ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_empty_file))), arg); if (vret ) return vret; } } while (0); |
3020 | Py_VISIT(traverse_module_state->__pyx_kp_u_enable)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_enable ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_enable))), arg); if (vret) return vret; } } while (0); |
3021 | Py_VISIT(traverse_module_state->__pyx_n_s_enter)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_enter ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_enter))), arg); if (vret) return vret; } } while (0); |
3022 | Py_VISIT(traverse_module_state->__pyx_n_s_enumerate)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_enumerate ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_enumerate))), arg); if (vret ) return vret; } } while (0); |
3023 | Py_VISIT(traverse_module_state->__pyx_n_s_exit)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_exit ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_exit))), arg); if (vret) return vret; } } while (0); |
3024 | Py_VISIT(traverse_module_state->__pyx_n_s_extractDispFil)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_extractDispFil ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_extractDispFil))), arg); if (vret) return vret; } } while (0); |
3025 | Py_VISIT(traverse_module_state->__pyx_n_s_extractFilRecords)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_extractFilRecords ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_extractFilRecords))), arg); if (vret) return vret; } } while (0); |
3026 | Py_VISIT(traverse_module_state->__pyx_n_s_extractMisesFil)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_extractMisesFil ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_extractMisesFil))), arg); if (vret) return vret; } } while (0); |
3027 | Py_VISIT(traverse_module_state->__pyx_n_s_extractRecord)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_extractRecord ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_extractRecord))), arg); if ( vret) return vret; } } while (0); |
3028 | Py_VISIT(traverse_module_state->__pyx_n_s_f)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_f ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_f))), arg); if (vret) return vret; } } while (0); |
3029 | Py_VISIT(traverse_module_state->__pyx_kp_u_fil)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_fil ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_fil))), arg); if (vret) return vret; } } while (0); |
3030 | Py_VISIT(traverse_module_state->__pyx_kp_u_file_missing_abq_probably_didn_t)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t ))), arg); if (vret) return vret; } } while (0); |
3031 | Py_VISIT(traverse_module_state->__pyx_kp_u_final_temp_data)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_final_temp_data ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_final_temp_data))), arg); if (vret) return vret; } } while (0); |
3032 | Py_VISIT(traverse_module_state->__pyx_n_s_find)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_find ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_find))), arg); if (vret) return vret; } } while (0); |
3033 | Py_VISIT(traverse_module_state->__pyx_n_s_findAll)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_findAll ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_findAll))), arg); if (vret) return vret; } } while (0); |
3034 | Py_VISIT(traverse_module_state->__pyx_kp_u_found_data)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_found_data ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_found_data))), arg); if (vret ) return vret; } } while (0); |
3035 | Py_VISIT(traverse_module_state->__pyx_kp_u_gc)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_gc ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_gc))), arg); if (vret) return vret; } } while (0); |
3036 | Py_VISIT(traverse_module_state->__pyx_n_s_ignore_dicts)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_ignore_dicts ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_ignore_dicts))), arg); if ( vret) return vret; } } while (0); |
3037 | Py_VISIT(traverse_module_state->__pyx_n_s_import)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_import ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_import))), arg); if (vret) return vret; } } while (0); |
3038 | Py_VISIT(traverse_module_state->__pyx_n_s_ind)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_ind ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_ind))), arg); if (vret) return vret; } } while (0); |
3039 | Py_VISIT(traverse_module_state->__pyx_kp_u_index)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_index ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_index))), arg); if (vret) return vret; } } while (0); |
3040 | Py_VISIT(traverse_module_state->__pyx_n_s_initializing)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_initializing ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_initializing))), arg); if ( vret) return vret; } } while (0); |
3041 | Py_VISIT(traverse_module_state->__pyx_n_s_is_coroutine)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_is_coroutine ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_is_coroutine))), arg); if ( vret) return vret; } } while (0); |
3042 | Py_VISIT(traverse_module_state->__pyx_kp_u_isenabled)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_isenabled ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_isenabled))), arg); if (vret ) return vret; } } while (0); |
3043 | Py_VISIT(traverse_module_state->__pyx_n_s_isfile)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_isfile ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_isfile))), arg); if (vret) return vret; } } while (0); |
3044 | Py_VISIT(traverse_module_state->__pyx_n_s_item)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_item ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_item))), arg); if (vret) return vret; } } while (0); |
3045 | Py_VISIT(traverse_module_state->__pyx_n_s_iteritems)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_iteritems ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_iteritems))), arg); if (vret ) return vret; } } while (0); |
3046 | Py_VISIT(traverse_module_state->__pyx_n_s_k)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_k ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_k))), arg); if (vret) return vret; } } while (0); |
3047 | Py_VISIT(traverse_module_state->__pyx_n_s_key)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_key ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_key))), arg); if (vret) return vret; } } while (0); |
3048 | Py_VISIT(traverse_module_state->__pyx_n_s_keys)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_keys ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_keys))), arg); if (vret) return vret; } } while (0); |
3049 | Py_VISIT(traverse_module_state->__pyx_n_s_line)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_line ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_line))), arg); if (vret) return vret; } } while (0); |
3050 | Py_VISIT(traverse_module_state->__pyx_n_s_main)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_main ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_main))), arg); if (vret) return vret; } } while (0); |
3051 | Py_VISIT(traverse_module_state->__pyx_n_s_mises)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_mises ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_mises))), arg); if (vret) return vret; } } while (0); |
3052 | Py_VISIT(traverse_module_state->__pyx_n_s_name)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_name ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_name))), arg); if (vret) return vret; } } while (0); |
3053 | Py_VISIT(traverse_module_state->__pyx_kp_u_no_data_found)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_no_data_found ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_no_data_found))), arg); if (vret) return vret; } } while (0); |
3054 | Py_VISIT(traverse_module_state->__pyx_n_s_open)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_open ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_open))), arg); if (vret) return vret; } } while (0); |
3055 | Py_VISIT(traverse_module_state->__pyx_n_s_os)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_os ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_os))), arg); if (vret) return vret; } } while (0); |
3056 | Py_VISIT(traverse_module_state->__pyx_n_s_output)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_output ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_output))), arg); if (vret) return vret; } } while (0); |
3057 | Py_VISIT(traverse_module_state->__pyx_n_s_path)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_path ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_path))), arg); if (vret) return vret; } } while (0); |
3058 | Py_VISIT(traverse_module_state->__pyx_n_s_pos)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_pos ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_pos))), arg); if (vret) return vret; } } while (0); |
3059 | Py_VISIT(traverse_module_state->__pyx_n_u_position)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_u_position ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_u_position))), arg); if (vret ) return vret; } } while (0); |
3060 | Py_VISIT(traverse_module_state->__pyx_n_s_print)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_print ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_print))), arg); if (vret) return vret; } } while (0); |
3061 | Py_VISIT(traverse_module_state->__pyx_n_s_recnumber)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_recnumber ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_recnumber))), arg); if (vret ) return vret; } } while (0); |
3062 | Py_VISIT(traverse_module_state->__pyx_kp_u_record)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_record ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_record))), arg); if (vret) return vret; } } while (0); |
3063 | Py_VISIT(traverse_module_state->__pyx_n_s_record_2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_record_2 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_record_2))), arg); if (vret ) return vret; } } while (0); |
3064 | Py_VISIT(traverse_module_state->__pyx_n_u_record_2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_u_record_2 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_u_record_2))), arg); if (vret ) return vret; } } while (0); |
3065 | Py_VISIT(traverse_module_state->__pyx_kp_u_record_3)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_record_3 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_record_3))), arg); if (vret ) return vret; } } while (0); |
3066 | Py_VISIT(traverse_module_state->__pyx_kp_u_record_length)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_record_length ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_record_length))), arg); if (vret) return vret; } } while (0); |
3067 | Py_VISIT(traverse_module_state->__pyx_n_s_replace)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_replace ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_replace))), arg); if (vret) return vret; } } while (0); |
3068 | Py_VISIT(traverse_module_state->__pyx_n_s_secNum)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_secNum ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_secNum))), arg); if (vret) return vret; } } while (0); |
3069 | Py_VISIT(traverse_module_state->__pyx_n_s_send)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_send ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_send))), arg); if (vret) return vret; } } while (0); |
3070 | Py_VISIT(traverse_module_state->__pyx_n_s_spec)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_spec ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_spec))), arg); if (vret) return vret; } } while (0); |
3071 | Py_VISIT(traverse_module_state->__pyx_n_s_split)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_split ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_split))), arg); if (vret) return vret; } } while (0); |
3072 | Py_VISIT(traverse_module_state->__pyx_n_s_start)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_start ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_start))), arg); if (vret) return vret; } } while (0); |
3073 | Py_VISIT(traverse_module_state->__pyx_n_s_str)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_str ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_str))), arg); if (vret) return vret; } } while (0); |
3074 | Py_VISIT(traverse_module_state->__pyx_n_s_sub)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_sub ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_sub))), arg); if (vret) return vret; } } while (0); |
3075 | Py_VISIT(traverse_module_state->__pyx_n_s_sys)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_sys ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_sys))), arg); if (vret) return vret; } } while (0); |
3076 | Py_VISIT(traverse_module_state->__pyx_n_s_temp)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_temp ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_temp))), arg); if (vret) return vret; } } while (0); |
3077 | Py_VISIT(traverse_module_state->__pyx_n_s_temp2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_temp2 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_temp2))), arg); if (vret) return vret; } } while (0); |
3078 | Py_VISIT(traverse_module_state->__pyx_kp_u_temp_data)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_temp_data ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_temp_data))), arg); if (vret ) return vret; } } while (0); |
3079 | Py_VISIT(traverse_module_state->__pyx_n_s_test)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_test ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_test))), arg); if (vret) return vret; } } while (0); |
3080 | Py_VISIT(traverse_module_state->__pyx_n_s_throw)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_throw ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_throw))), arg); if (vret) return vret; } } while (0); |
3081 | Py_VISIT(traverse_module_state->__pyx_n_s_update)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_update ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_update))), arg); if (vret) return vret; } } while (0); |
3082 | Py_VISIT(traverse_module_state->__pyx_kp_u_utf_8)do { if (traverse_module_state->__pyx_mstate_global->__pyx_kp_u_utf_8 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_kp_u_utf_8))), arg); if (vret) return vret; } } while (0); |
3083 | Py_VISIT(traverse_module_state->__pyx_n_s_value)do { if (traverse_module_state->__pyx_mstate_global->__pyx_n_s_value ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_n_s_value))), arg); if (vret) return vret; } } while (0); |
3084 | Py_VISIT(traverse_module_state->__pyx_int_0)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_0 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_0))), arg); if (vret) return vret; } } while (0); |
3085 | Py_VISIT(traverse_module_state->__pyx_int_1)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_1 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_1))), arg); if (vret) return vret; } } while (0); |
3086 | Py_VISIT(traverse_module_state->__pyx_int_2)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_2 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_2))), arg); if (vret) return vret; } } while (0); |
3087 | Py_VISIT(traverse_module_state->__pyx_int_3)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_3 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_3))), arg); if (vret) return vret; } } while (0); |
3088 | Py_VISIT(traverse_module_state->__pyx_int_9)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_9 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_9))), arg); if (vret) return vret; } } while (0); |
3089 | Py_VISIT(traverse_module_state->__pyx_int_12)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_12 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_12))), arg); if (vret) return vret; } } while (0); |
3090 | Py_VISIT(traverse_module_state->__pyx_int_22)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_22 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_22))), arg); if (vret) return vret; } } while (0); |
3091 | Py_VISIT(traverse_module_state->__pyx_int_23)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_23 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_23))), arg); if (vret) return vret; } } while (0); |
3092 | Py_VISIT(traverse_module_state->__pyx_int_101)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_101 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_101))), arg); if (vret) return vret; } } while (0); |
3093 | Py_VISIT(traverse_module_state->__pyx_int_neg_1)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_neg_1 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_neg_1))), arg); if (vret) return vret; } } while (0); |
3094 | Py_VISIT(traverse_module_state->__pyx_int_neg_4)do { if (traverse_module_state->__pyx_mstate_global->__pyx_int_neg_4 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_int_neg_4))), arg); if (vret) return vret; } } while (0); |
3095 | Py_VISIT(traverse_module_state->__pyx_slice_)do { if (traverse_module_state->__pyx_mstate_global->__pyx_slice_ ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_slice_))), arg); if (vret) return vret; } } while (0); |
3096 | Py_VISIT(traverse_module_state->__pyx_slice__3)do { if (traverse_module_state->__pyx_mstate_global->__pyx_slice__3 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_slice__3))), arg); if (vret) return vret; } } while (0); |
3097 | Py_VISIT(traverse_module_state->__pyx_tuple__4)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__4 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__4))), arg); if (vret) return vret; } } while (0); |
3098 | Py_VISIT(traverse_module_state->__pyx_tuple__6)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__6 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__6))), arg); if (vret) return vret; } } while (0); |
3099 | Py_VISIT(traverse_module_state->__pyx_tuple__8)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__8 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__8))), arg); if (vret) return vret; } } while (0); |
3100 | Py_VISIT(traverse_module_state->__pyx_tuple__10)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__10 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__10))), arg); if (vret) return vret; } } while (0); |
3101 | Py_VISIT(traverse_module_state->__pyx_tuple__12)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__12 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__12))), arg); if (vret) return vret; } } while (0); |
3102 | Py_VISIT(traverse_module_state->__pyx_tuple__14)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__14 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__14))), arg); if (vret) return vret; } } while (0); |
3103 | Py_VISIT(traverse_module_state->__pyx_tuple__15)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__15 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__15))), arg); if (vret) return vret; } } while (0); |
3104 | Py_VISIT(traverse_module_state->__pyx_tuple__17)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__17 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__17))), arg); if (vret) return vret; } } while (0); |
3105 | Py_VISIT(traverse_module_state->__pyx_tuple__19)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__19 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__19))), arg); if (vret) return vret; } } while (0); |
3106 | Py_VISIT(traverse_module_state->__pyx_tuple__21)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__21 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__21))), arg); if (vret) return vret; } } while (0); |
3107 | Py_VISIT(traverse_module_state->__pyx_tuple__23)do { if (traverse_module_state->__pyx_mstate_global->__pyx_tuple__23 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_tuple__23))), arg); if (vret) return vret; } } while (0); |
3108 | Py_VISIT(traverse_module_state->__pyx_codeobj__11)do { if (traverse_module_state->__pyx_mstate_global->__pyx_codeobj__11 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_codeobj__11))), arg); if (vret) return vret; } } while (0); |
3109 | Py_VISIT(traverse_module_state->__pyx_codeobj__13)do { if (traverse_module_state->__pyx_mstate_global->__pyx_codeobj__13 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_codeobj__13))), arg); if (vret) return vret; } } while (0); |
3110 | Py_VISIT(traverse_module_state->__pyx_codeobj__16)do { if (traverse_module_state->__pyx_mstate_global->__pyx_codeobj__16 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_codeobj__16))), arg); if (vret) return vret; } } while (0); |
3111 | Py_VISIT(traverse_module_state->__pyx_codeobj__18)do { if (traverse_module_state->__pyx_mstate_global->__pyx_codeobj__18 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_codeobj__18))), arg); if (vret) return vret; } } while (0); |
3112 | Py_VISIT(traverse_module_state->__pyx_codeobj__20)do { if (traverse_module_state->__pyx_mstate_global->__pyx_codeobj__20 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_codeobj__20))), arg); if (vret) return vret; } } while (0); |
3113 | Py_VISIT(traverse_module_state->__pyx_codeobj__22)do { if (traverse_module_state->__pyx_mstate_global->__pyx_codeobj__22 ) { int vret = visit(((PyObject*)((traverse_module_state-> __pyx_mstate_global->__pyx_codeobj__22))), arg); if (vret) return vret; } } while (0); |
3114 | return 0; |
3115 | } |
3116 | #endif |
3117 | /* #### Code section: module_state_defines ### */ |
3118 | #define __pyx_d__pyx_mstate_global->__pyx_d __pyx_mstate_global->__pyx_d__pyx_mstate_global->__pyx_d |
3119 | #define __pyx_b__pyx_mstate_global->__pyx_b __pyx_mstate_global->__pyx_b__pyx_mstate_global->__pyx_b |
3120 | #define __pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime __pyx_mstate_global->__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime |
3121 | #define __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple __pyx_mstate_global->__pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple |
3122 | #define __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes __pyx_mstate_global->__pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes |
3123 | #define __pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode __pyx_mstate_global->__pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode |
3124 | #ifdef __Pyx_CyFunction_USED |
3125 | #define __pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType __pyx_mstate_global->__pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType |
3126 | #endif |
3127 | #ifdef __Pyx_FusedFunction_USED |
3128 | #define __pyx_FusedFunctionType __pyx_mstate_global->__pyx_FusedFunctionType |
3129 | #endif |
3130 | #ifdef __Pyx_Generator_USED |
3131 | #define __pyx_GeneratorType__pyx_mstate_global->__pyx_GeneratorType __pyx_mstate_global->__pyx_GeneratorType__pyx_mstate_global->__pyx_GeneratorType |
3132 | #endif |
3133 | #ifdef __Pyx_IterableCoroutine_USED |
3134 | #define __pyx_IterableCoroutineType __pyx_mstate_global->__pyx_IterableCoroutineType |
3135 | #endif |
3136 | #ifdef __Pyx_Coroutine_USED |
3137 | #define __pyx_CoroutineAwaitType __pyx_mstate_global->__pyx_CoroutineAwaitType |
3138 | #endif |
3139 | #ifdef __Pyx_Coroutine_USED |
3140 | #define __pyx_CoroutineType __pyx_mstate_global->__pyx_CoroutineType |
3141 | #endif |
3142 | #if CYTHON_USE_MODULE_STATE0 |
3143 | #endif |
3144 | #if CYTHON_USE_MODULE_STATE0 |
3145 | #endif |
3146 | #if CYTHON_USE_MODULE_STATE0 |
3147 | #define __pyx_type_15abaqusFILReader___pyx_scope_struct__findAll __pyx_mstate_global->__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll |
3148 | #endif |
3149 | #define __pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll __pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll |
3150 | #define __pyx_n_u_A__pyx_mstate_global->__pyx_n_u_A __pyx_mstate_global->__pyx_n_u_A__pyx_mstate_global->__pyx_n_u_A |
3151 | #define __pyx_n_u_D__pyx_mstate_global->__pyx_n_u_D __pyx_mstate_global->__pyx_n_u_D__pyx_mstate_global->__pyx_n_u_D |
3152 | #define __pyx_n_u_E__pyx_mstate_global->__pyx_n_u_E __pyx_mstate_global->__pyx_n_u_E__pyx_mstate_global->__pyx_n_u_E |
3153 | #define __pyx_n_u_I__pyx_mstate_global->__pyx_n_u_I __pyx_mstate_global->__pyx_n_u_I__pyx_mstate_global->__pyx_n_u_I |
3154 | #define __pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError __pyx_mstate_global->__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError |
3155 | #define __pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData __pyx_mstate_global->__pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData |
3156 | #define __pyx_n_s_Rec__pyx_mstate_global->__pyx_n_s_Rec __pyx_mstate_global->__pyx_n_s_Rec__pyx_mstate_global->__pyx_n_s_Rec |
3157 | #define __pyx_n_s_RecSplit__pyx_mstate_global->__pyx_n_s_RecSplit __pyx_mstate_global->__pyx_n_s_RecSplit__pyx_mstate_global->__pyx_n_s_RecSplit |
3158 | #define __pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2 __pyx_mstate_global->__pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2 |
3159 | #define __pyx_n_s__24__pyx_mstate_global->__pyx_n_s__24 __pyx_mstate_global->__pyx_n_s__24__pyx_mstate_global->__pyx_n_s__24 |
3160 | #define __pyx_kp_u__5__pyx_mstate_global->__pyx_kp_u__5 __pyx_mstate_global->__pyx_kp_u__5__pyx_mstate_global->__pyx_kp_u__5 |
3161 | #define __pyx_kp_u__7__pyx_mstate_global->__pyx_kp_u__7 __pyx_mstate_global->__pyx_kp_u__7__pyx_mstate_global->__pyx_kp_u__7 |
3162 | #define __pyx_n_s__9__pyx_mstate_global->__pyx_n_s__9 __pyx_mstate_global->__pyx_n_s__9__pyx_mstate_global->__pyx_n_s__9 |
3163 | #define __pyx_kp_u__9__pyx_mstate_global->__pyx_kp_u__9 __pyx_mstate_global->__pyx_kp_u__9__pyx_mstate_global->__pyx_kp_u__9 |
3164 | #define __pyx_n_s_a_str__pyx_mstate_global->__pyx_n_s_a_str __pyx_mstate_global->__pyx_n_s_a_str__pyx_mstate_global->__pyx_n_s_a_str |
3165 | #define __pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader __pyx_mstate_global->__pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader |
3166 | #define __pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx __pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx |
3167 | #define __pyx_n_s_abqFile__pyx_mstate_global->__pyx_n_s_abqFile __pyx_mstate_global->__pyx_n_s_abqFile__pyx_mstate_global->__pyx_n_s_abqFile |
3168 | #define __pyx_n_s_args__pyx_mstate_global->__pyx_n_s_args __pyx_mstate_global->__pyx_n_s_args__pyx_mstate_global->__pyx_n_s_args |
3169 | #define __pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines __pyx_mstate_global->__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines |
3170 | #define __pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem __pyx_mstate_global->__pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem |
3171 | #define __pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback |
3172 | #define __pyx_n_s_close__pyx_mstate_global->__pyx_n_s_close __pyx_mstate_global->__pyx_n_s_close__pyx_mstate_global->__pyx_n_s_close |
3173 | #define __pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data __pyx_mstate_global->__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data |
3174 | #define __pyx_kp_u_data2__pyx_mstate_global->__pyx_kp_u_data2 __pyx_mstate_global->__pyx_kp_u_data2__pyx_mstate_global->__pyx_kp_u_data2 |
3175 | #define __pyx_n_s_data2_2__pyx_mstate_global->__pyx_n_s_data2_2 __pyx_mstate_global->__pyx_n_s_data2_2__pyx_mstate_global->__pyx_n_s_data2_2 |
3176 | #define __pyx_kp_u_data_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t __pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t |
3177 | #define __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug __pyx_mstate_global->__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug |
3178 | #define __pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode __pyx_mstate_global->__pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode |
3179 | #define __pyx_kp_u_disable__pyx_mstate_global->__pyx_kp_u_disable __pyx_mstate_global->__pyx_kp_u_disable__pyx_mstate_global->__pyx_kp_u_disable |
3180 | #define __pyx_n_s_displacements__pyx_mstate_global->__pyx_n_s_displacements __pyx_mstate_global->__pyx_n_s_displacements__pyx_mstate_global->__pyx_n_s_displacements |
3181 | #define __pyx_n_s_elNum__pyx_mstate_global->__pyx_n_s_elNum __pyx_mstate_global->__pyx_n_s_elNum__pyx_mstate_global->__pyx_n_s_elNum |
3182 | #define __pyx_kp_u_empty_file__pyx_mstate_global->__pyx_kp_u_empty_file __pyx_mstate_global->__pyx_kp_u_empty_file__pyx_mstate_global->__pyx_kp_u_empty_file |
3183 | #define __pyx_kp_u_enable__pyx_mstate_global->__pyx_kp_u_enable __pyx_mstate_global->__pyx_kp_u_enable__pyx_mstate_global->__pyx_kp_u_enable |
3184 | #define __pyx_n_s_enter__pyx_mstate_global->__pyx_n_s_enter __pyx_mstate_global->__pyx_n_s_enter__pyx_mstate_global->__pyx_n_s_enter |
3185 | #define __pyx_n_s_enumerate__pyx_mstate_global->__pyx_n_s_enumerate __pyx_mstate_global->__pyx_n_s_enumerate__pyx_mstate_global->__pyx_n_s_enumerate |
3186 | #define __pyx_n_s_exit__pyx_mstate_global->__pyx_n_s_exit __pyx_mstate_global->__pyx_n_s_exit__pyx_mstate_global->__pyx_n_s_exit |
3187 | #define __pyx_n_s_extractDispFil__pyx_mstate_global->__pyx_n_s_extractDispFil __pyx_mstate_global->__pyx_n_s_extractDispFil__pyx_mstate_global->__pyx_n_s_extractDispFil |
3188 | #define __pyx_n_s_extractFilRecords__pyx_mstate_global->__pyx_n_s_extractFilRecords __pyx_mstate_global->__pyx_n_s_extractFilRecords__pyx_mstate_global->__pyx_n_s_extractFilRecords |
3189 | #define __pyx_n_s_extractMisesFil__pyx_mstate_global->__pyx_n_s_extractMisesFil __pyx_mstate_global->__pyx_n_s_extractMisesFil__pyx_mstate_global->__pyx_n_s_extractMisesFil |
3190 | #define __pyx_n_s_extractRecord__pyx_mstate_global->__pyx_n_s_extractRecord __pyx_mstate_global->__pyx_n_s_extractRecord__pyx_mstate_global->__pyx_n_s_extractRecord |
3191 | #define __pyx_n_s_f__pyx_mstate_global->__pyx_n_s_f __pyx_mstate_global->__pyx_n_s_f__pyx_mstate_global->__pyx_n_s_f |
3192 | #define __pyx_kp_u_fil__pyx_mstate_global->__pyx_kp_u_fil __pyx_mstate_global->__pyx_kp_u_fil__pyx_mstate_global->__pyx_kp_u_fil |
3193 | #define __pyx_kp_u_file_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t __pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t |
3194 | #define __pyx_kp_u_final_temp_data__pyx_mstate_global->__pyx_kp_u_final_temp_data __pyx_mstate_global->__pyx_kp_u_final_temp_data__pyx_mstate_global->__pyx_kp_u_final_temp_data |
3195 | #define __pyx_n_s_find__pyx_mstate_global->__pyx_n_s_find __pyx_mstate_global->__pyx_n_s_find__pyx_mstate_global->__pyx_n_s_find |
3196 | #define __pyx_n_s_findAll__pyx_mstate_global->__pyx_n_s_findAll __pyx_mstate_global->__pyx_n_s_findAll__pyx_mstate_global->__pyx_n_s_findAll |
3197 | #define __pyx_kp_u_found_data__pyx_mstate_global->__pyx_kp_u_found_data __pyx_mstate_global->__pyx_kp_u_found_data__pyx_mstate_global->__pyx_kp_u_found_data |
3198 | #define __pyx_kp_u_gc__pyx_mstate_global->__pyx_kp_u_gc __pyx_mstate_global->__pyx_kp_u_gc__pyx_mstate_global->__pyx_kp_u_gc |
3199 | #define __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts __pyx_mstate_global->__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts |
3200 | #define __pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import __pyx_mstate_global->__pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import |
3201 | #define __pyx_n_s_ind__pyx_mstate_global->__pyx_n_s_ind __pyx_mstate_global->__pyx_n_s_ind__pyx_mstate_global->__pyx_n_s_ind |
3202 | #define __pyx_kp_u_index__pyx_mstate_global->__pyx_kp_u_index __pyx_mstate_global->__pyx_kp_u_index__pyx_mstate_global->__pyx_kp_u_index |
3203 | #define __pyx_n_s_initializing__pyx_mstate_global->__pyx_n_s_initializing __pyx_mstate_global->__pyx_n_s_initializing__pyx_mstate_global->__pyx_n_s_initializing |
3204 | #define __pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine __pyx_mstate_global->__pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine |
3205 | #define __pyx_kp_u_isenabled__pyx_mstate_global->__pyx_kp_u_isenabled __pyx_mstate_global->__pyx_kp_u_isenabled__pyx_mstate_global->__pyx_kp_u_isenabled |
3206 | #define __pyx_n_s_isfile__pyx_mstate_global->__pyx_n_s_isfile __pyx_mstate_global->__pyx_n_s_isfile__pyx_mstate_global->__pyx_n_s_isfile |
3207 | #define __pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item __pyx_mstate_global->__pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item |
3208 | #define __pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems __pyx_mstate_global->__pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems |
3209 | #define __pyx_n_s_k__pyx_mstate_global->__pyx_n_s_k __pyx_mstate_global->__pyx_n_s_k__pyx_mstate_global->__pyx_n_s_k |
3210 | #define __pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key __pyx_mstate_global->__pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key |
3211 | #define __pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys __pyx_mstate_global->__pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys |
3212 | #define __pyx_n_s_line__pyx_mstate_global->__pyx_n_s_line __pyx_mstate_global->__pyx_n_s_line__pyx_mstate_global->__pyx_n_s_line |
3213 | #define __pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main __pyx_mstate_global->__pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main |
3214 | #define __pyx_n_s_mises__pyx_mstate_global->__pyx_n_s_mises __pyx_mstate_global->__pyx_n_s_mises__pyx_mstate_global->__pyx_n_s_mises |
3215 | #define __pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name __pyx_mstate_global->__pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name |
3216 | #define __pyx_kp_u_no_data_found__pyx_mstate_global->__pyx_kp_u_no_data_found __pyx_mstate_global->__pyx_kp_u_no_data_found__pyx_mstate_global->__pyx_kp_u_no_data_found |
3217 | #define __pyx_n_s_open__pyx_mstate_global->__pyx_n_s_open __pyx_mstate_global->__pyx_n_s_open__pyx_mstate_global->__pyx_n_s_open |
3218 | #define __pyx_n_s_os__pyx_mstate_global->__pyx_n_s_os __pyx_mstate_global->__pyx_n_s_os__pyx_mstate_global->__pyx_n_s_os |
3219 | #define __pyx_n_s_output__pyx_mstate_global->__pyx_n_s_output __pyx_mstate_global->__pyx_n_s_output__pyx_mstate_global->__pyx_n_s_output |
3220 | #define __pyx_n_s_path__pyx_mstate_global->__pyx_n_s_path __pyx_mstate_global->__pyx_n_s_path__pyx_mstate_global->__pyx_n_s_path |
3221 | #define __pyx_n_s_pos__pyx_mstate_global->__pyx_n_s_pos __pyx_mstate_global->__pyx_n_s_pos__pyx_mstate_global->__pyx_n_s_pos |
3222 | #define __pyx_n_u_position__pyx_mstate_global->__pyx_n_u_position __pyx_mstate_global->__pyx_n_u_position__pyx_mstate_global->__pyx_n_u_position |
3223 | #define __pyx_n_s_print__pyx_mstate_global->__pyx_n_s_print __pyx_mstate_global->__pyx_n_s_print__pyx_mstate_global->__pyx_n_s_print |
3224 | #define __pyx_n_s_recnumber__pyx_mstate_global->__pyx_n_s_recnumber __pyx_mstate_global->__pyx_n_s_recnumber__pyx_mstate_global->__pyx_n_s_recnumber |
3225 | #define __pyx_kp_u_record__pyx_mstate_global->__pyx_kp_u_record __pyx_mstate_global->__pyx_kp_u_record__pyx_mstate_global->__pyx_kp_u_record |
3226 | #define __pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2 __pyx_mstate_global->__pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2 |
3227 | #define __pyx_n_u_record_2__pyx_mstate_global->__pyx_n_u_record_2 __pyx_mstate_global->__pyx_n_u_record_2__pyx_mstate_global->__pyx_n_u_record_2 |
3228 | #define __pyx_kp_u_record_3__pyx_mstate_global->__pyx_kp_u_record_3 __pyx_mstate_global->__pyx_kp_u_record_3__pyx_mstate_global->__pyx_kp_u_record_3 |
3229 | #define __pyx_kp_u_record_length__pyx_mstate_global->__pyx_kp_u_record_length __pyx_mstate_global->__pyx_kp_u_record_length__pyx_mstate_global->__pyx_kp_u_record_length |
3230 | #define __pyx_n_s_replace__pyx_mstate_global->__pyx_n_s_replace __pyx_mstate_global->__pyx_n_s_replace__pyx_mstate_global->__pyx_n_s_replace |
3231 | #define __pyx_n_s_secNum__pyx_mstate_global->__pyx_n_s_secNum __pyx_mstate_global->__pyx_n_s_secNum__pyx_mstate_global->__pyx_n_s_secNum |
3232 | #define __pyx_n_s_send__pyx_mstate_global->__pyx_n_s_send __pyx_mstate_global->__pyx_n_s_send__pyx_mstate_global->__pyx_n_s_send |
3233 | #define __pyx_n_s_spec__pyx_mstate_global->__pyx_n_s_spec __pyx_mstate_global->__pyx_n_s_spec__pyx_mstate_global->__pyx_n_s_spec |
3234 | #define __pyx_n_s_split__pyx_mstate_global->__pyx_n_s_split __pyx_mstate_global->__pyx_n_s_split__pyx_mstate_global->__pyx_n_s_split |
3235 | #define __pyx_n_s_start__pyx_mstate_global->__pyx_n_s_start __pyx_mstate_global->__pyx_n_s_start__pyx_mstate_global->__pyx_n_s_start |
3236 | #define __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str __pyx_mstate_global->__pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str |
3237 | #define __pyx_n_s_sub__pyx_mstate_global->__pyx_n_s_sub __pyx_mstate_global->__pyx_n_s_sub__pyx_mstate_global->__pyx_n_s_sub |
3238 | #define __pyx_n_s_sys__pyx_mstate_global->__pyx_n_s_sys __pyx_mstate_global->__pyx_n_s_sys__pyx_mstate_global->__pyx_n_s_sys |
3239 | #define __pyx_n_s_temp__pyx_mstate_global->__pyx_n_s_temp __pyx_mstate_global->__pyx_n_s_temp__pyx_mstate_global->__pyx_n_s_temp |
3240 | #define __pyx_n_s_temp2__pyx_mstate_global->__pyx_n_s_temp2 __pyx_mstate_global->__pyx_n_s_temp2__pyx_mstate_global->__pyx_n_s_temp2 |
3241 | #define __pyx_kp_u_temp_data__pyx_mstate_global->__pyx_kp_u_temp_data __pyx_mstate_global->__pyx_kp_u_temp_data__pyx_mstate_global->__pyx_kp_u_temp_data |
3242 | #define __pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test |
3243 | #define __pyx_n_s_throw__pyx_mstate_global->__pyx_n_s_throw __pyx_mstate_global->__pyx_n_s_throw__pyx_mstate_global->__pyx_n_s_throw |
3244 | #define __pyx_n_s_update__pyx_mstate_global->__pyx_n_s_update __pyx_mstate_global->__pyx_n_s_update__pyx_mstate_global->__pyx_n_s_update |
3245 | #define __pyx_kp_u_utf_8__pyx_mstate_global->__pyx_kp_u_utf_8 __pyx_mstate_global->__pyx_kp_u_utf_8__pyx_mstate_global->__pyx_kp_u_utf_8 |
3246 | #define __pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value __pyx_mstate_global->__pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value |
3247 | #define __pyx_int_0__pyx_mstate_global->__pyx_int_0 __pyx_mstate_global->__pyx_int_0__pyx_mstate_global->__pyx_int_0 |
3248 | #define __pyx_int_1__pyx_mstate_global->__pyx_int_1 __pyx_mstate_global->__pyx_int_1__pyx_mstate_global->__pyx_int_1 |
3249 | #define __pyx_int_2__pyx_mstate_global->__pyx_int_2 __pyx_mstate_global->__pyx_int_2__pyx_mstate_global->__pyx_int_2 |
3250 | #define __pyx_int_3__pyx_mstate_global->__pyx_int_3 __pyx_mstate_global->__pyx_int_3__pyx_mstate_global->__pyx_int_3 |
3251 | #define __pyx_int_9__pyx_mstate_global->__pyx_int_9 __pyx_mstate_global->__pyx_int_9__pyx_mstate_global->__pyx_int_9 |
3252 | #define __pyx_int_12__pyx_mstate_global->__pyx_int_12 __pyx_mstate_global->__pyx_int_12__pyx_mstate_global->__pyx_int_12 |
3253 | #define __pyx_int_22__pyx_mstate_global->__pyx_int_22 __pyx_mstate_global->__pyx_int_22__pyx_mstate_global->__pyx_int_22 |
3254 | #define __pyx_int_23__pyx_mstate_global->__pyx_int_23 __pyx_mstate_global->__pyx_int_23__pyx_mstate_global->__pyx_int_23 |
3255 | #define __pyx_int_101__pyx_mstate_global->__pyx_int_101 __pyx_mstate_global->__pyx_int_101__pyx_mstate_global->__pyx_int_101 |
3256 | #define __pyx_int_neg_1__pyx_mstate_global->__pyx_int_neg_1 __pyx_mstate_global->__pyx_int_neg_1__pyx_mstate_global->__pyx_int_neg_1 |
3257 | #define __pyx_int_neg_4__pyx_mstate_global->__pyx_int_neg_4 __pyx_mstate_global->__pyx_int_neg_4__pyx_mstate_global->__pyx_int_neg_4 |
3258 | #define __pyx_slice___pyx_mstate_global->__pyx_slice_ __pyx_mstate_global->__pyx_slice___pyx_mstate_global->__pyx_slice_ |
3259 | #define __pyx_slice__3__pyx_mstate_global->__pyx_slice__3 __pyx_mstate_global->__pyx_slice__3__pyx_mstate_global->__pyx_slice__3 |
3260 | #define __pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4 __pyx_mstate_global->__pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4 |
3261 | #define __pyx_tuple__6__pyx_mstate_global->__pyx_tuple__6 __pyx_mstate_global->__pyx_tuple__6__pyx_mstate_global->__pyx_tuple__6 |
3262 | #define __pyx_tuple__8__pyx_mstate_global->__pyx_tuple__8 __pyx_mstate_global->__pyx_tuple__8__pyx_mstate_global->__pyx_tuple__8 |
3263 | #define __pyx_tuple__10__pyx_mstate_global->__pyx_tuple__10 __pyx_mstate_global->__pyx_tuple__10__pyx_mstate_global->__pyx_tuple__10 |
3264 | #define __pyx_tuple__12__pyx_mstate_global->__pyx_tuple__12 __pyx_mstate_global->__pyx_tuple__12__pyx_mstate_global->__pyx_tuple__12 |
3265 | #define __pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14 __pyx_mstate_global->__pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14 |
3266 | #define __pyx_tuple__15__pyx_mstate_global->__pyx_tuple__15 __pyx_mstate_global->__pyx_tuple__15__pyx_mstate_global->__pyx_tuple__15 |
3267 | #define __pyx_tuple__17__pyx_mstate_global->__pyx_tuple__17 __pyx_mstate_global->__pyx_tuple__17__pyx_mstate_global->__pyx_tuple__17 |
3268 | #define __pyx_tuple__19__pyx_mstate_global->__pyx_tuple__19 __pyx_mstate_global->__pyx_tuple__19__pyx_mstate_global->__pyx_tuple__19 |
3269 | #define __pyx_tuple__21__pyx_mstate_global->__pyx_tuple__21 __pyx_mstate_global->__pyx_tuple__21__pyx_mstate_global->__pyx_tuple__21 |
3270 | #define __pyx_tuple__23__pyx_mstate_global->__pyx_tuple__23 __pyx_mstate_global->__pyx_tuple__23__pyx_mstate_global->__pyx_tuple__23 |
3271 | #define __pyx_codeobj__11__pyx_mstate_global->__pyx_codeobj__11 __pyx_mstate_global->__pyx_codeobj__11__pyx_mstate_global->__pyx_codeobj__11 |
3272 | #define __pyx_codeobj__13__pyx_mstate_global->__pyx_codeobj__13 __pyx_mstate_global->__pyx_codeobj__13__pyx_mstate_global->__pyx_codeobj__13 |
3273 | #define __pyx_codeobj__16__pyx_mstate_global->__pyx_codeobj__16 __pyx_mstate_global->__pyx_codeobj__16__pyx_mstate_global->__pyx_codeobj__16 |
3274 | #define __pyx_codeobj__18__pyx_mstate_global->__pyx_codeobj__18 __pyx_mstate_global->__pyx_codeobj__18__pyx_mstate_global->__pyx_codeobj__18 |
3275 | #define __pyx_codeobj__20__pyx_mstate_global->__pyx_codeobj__20 __pyx_mstate_global->__pyx_codeobj__20__pyx_mstate_global->__pyx_codeobj__20 |
3276 | #define __pyx_codeobj__22__pyx_mstate_global->__pyx_codeobj__22 __pyx_mstate_global->__pyx_codeobj__22__pyx_mstate_global->__pyx_codeobj__22 |
3277 | /* #### Code section: module_code ### */ |
3278 | |
3279 | /* "abaqusFILReader.pyx":16 |
3280 | * |
3281 | * # Handles all byte to uni-code and and byte conversion. |
3282 | * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<< |
3283 | * |
3284 | * if PY_MAJOR_VERSION >= 3: |
3285 | */ |
3286 | |
3287 | /* Python wrapper */ |
3288 | static PyObject *__pyx_pw_15abaqusFILReader_1_str(PyObject *__pyx_self, |
3289 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
3290 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
3291 | #else |
3292 | PyObject *__pyx_args, PyObject *__pyx_kwds |
3293 | #endif |
3294 | ); /*proto*/ |
3295 | static PyMethodDef __pyx_mdef_15abaqusFILReader_1_str = {"_str", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords)__pyx_pw_15abaqusFILReader_1_str, __Pyx_METH_FASTCALL0x0080|METH_KEYWORDS0x0002, 0}; |
3296 | static PyObject *__pyx_pw_15abaqusFILReader_1_str(PyObject *__pyx_self, |
3297 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
3298 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
3299 | #else |
3300 | PyObject *__pyx_args, PyObject *__pyx_kwds |
3301 | #endif |
3302 | ) { |
3303 | PyObject *__pyx_v_data = 0; |
3304 | PyObject *__pyx_v_ignore_dicts = 0; |
3305 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
3306 | CYTHON_UNUSED__attribute__ ((__unused__)) Py_ssize_t __pyx_nargs; |
3307 | #endif |
3308 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *const *__pyx_kwvalues; |
3309 | PyObject* values[2] = {0,0}; |
3310 | int __pyx_lineno = 0; |
3311 | const char *__pyx_filename = NULL((void*)0); |
3312 | int __pyx_clineno = 0; |
3313 | PyObject *__pyx_r = 0; |
3314 | __Pyx_RefNannyDeclarations |
3315 | __Pyx_RefNannySetupContext("_str (wrapper)", 0); |
3316 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
3317 | #if CYTHON_ASSUME_SAFE_MACROS1 |
3318 | __pyx_nargs = PyTuple_GET_SIZE(__pyx_args)PyTuple_GET_SIZE(((PyObject*)((__pyx_args)))); |
3319 | #else |
3320 | __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)__builtin_expect(!!(__pyx_nargs < 0), 0)) return NULL((void*)0); |
3321 | #endif |
3322 | #endif |
3323 | __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs)((__pyx_args) + (__pyx_nargs)); |
3324 | { |
3325 | PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data,&__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts,0}; |
3326 | values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)((PyObject *)Py_False)))((PyObject *)((PyObject *)((PyObject *) &_Py_FalseStruct) )); |
3327 | if (__pyx_kwds) { |
3328 | Py_ssize_t kw_args; |
3329 | switch (__pyx_nargs) { |
3330 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
3331 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
3332 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
3333 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
3334 | case 0: break; |
3335 | default: goto __pyx_L5_argtuple_error; |
3336 | } |
3337 | kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds)PyTuple_GET_SIZE(((PyObject*)((__pyx_kwds)))); |
3338 | switch (__pyx_nargs) { |
3339 | case 0: |
3340 | if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_data)) != 0)__builtin_expect(!!((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_data)) != 0), 1)) { |
3341 | (void)__Pyx_Arg_NewRef_FASTCALL(values[0])values[0]; |
3342 | kw_args--; |
3343 | } |
3344 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 16, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 3344; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
3345 | else goto __pyx_L5_argtuple_error; |
3346 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
3347 | case 1: |
3348 | if (kw_args > 0) { |
3349 | PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts); |
3350 | if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value)value; kw_args--; } |
3351 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 16, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 3351; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
3352 | } |
3353 | } |
3354 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
3355 | const Py_ssize_t kwd_pos_args = __pyx_nargs; |
3356 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_str") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues , __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_str") < 0), 0)) __PYX_ERR(0, 16, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 3356; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
3357 | } |
3358 | } else { |
3359 | switch (__pyx_nargs) { |
3360 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
3361 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
3362 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
3363 | break; |
3364 | default: goto __pyx_L5_argtuple_error; |
3365 | } |
3366 | } |
3367 | __pyx_v_data = values[0]; |
3368 | __pyx_v_ignore_dicts = values[1]; |
3369 | } |
3370 | goto __pyx_L6_skip; |
3371 | __pyx_L5_argtuple_error:; |
3372 | __Pyx_RaiseArgtupleInvalid("_str", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 16, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 3372; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
3373 | __pyx_L6_skip:; |
3374 | goto __pyx_L4_argument_unpacking_done; |
3375 | __pyx_L3_error:; |
3376 | { |
3377 | Py_ssize_t __pyx_temp; |
3378 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
3379 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
3380 | } |
3381 | } |
3382 | __Pyx_AddTraceback("abaqusFILReader._str", __pyx_clineno, __pyx_lineno, __pyx_filename); |
3383 | __Pyx_RefNannyFinishContext(); |
3384 | return NULL((void*)0); |
3385 | __pyx_L4_argument_unpacking_done:; |
3386 | __pyx_r = __pyx_pf_15abaqusFILReader__str(__pyx_self, __pyx_v_data, __pyx_v_ignore_dicts); |
3387 | |
3388 | /* function exit code */ |
3389 | { |
3390 | Py_ssize_t __pyx_temp; |
3391 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
3392 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
3393 | } |
3394 | } |
3395 | __Pyx_RefNannyFinishContext(); |
3396 | return __pyx_r; |
3397 | } |
3398 | |
3399 | static PyObject *__pyx_pf_15abaqusFILReader__str(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_data, PyObject *__pyx_v_ignore_dicts) { |
3400 | PyObject *__pyx_7genexpr__pyx_v_item = NULL((void*)0); |
3401 | PyObject *__pyx_8genexpr1__pyx_v_key = NULL((void*)0); |
3402 | PyObject *__pyx_8genexpr1__pyx_v_value = NULL((void*)0); |
3403 | PyObject *__pyx_r = NULL((void*)0); |
3404 | __Pyx_RefNannyDeclarations |
3405 | int __pyx_t_1; |
3406 | PyObject *__pyx_t_2 = NULL((void*)0); |
3407 | PyObject *__pyx_t_3 = NULL((void*)0); |
3408 | PyObject *__pyx_t_4 = NULL((void*)0); |
3409 | int __pyx_t_5; |
3410 | Py_ssize_t __pyx_t_6; |
3411 | PyObject *(*__pyx_t_7)(PyObject *); |
3412 | PyObject *__pyx_t_8 = NULL((void*)0); |
3413 | PyObject *__pyx_t_9 = NULL((void*)0); |
3414 | PyObject *__pyx_t_10 = NULL((void*)0); |
3415 | int __pyx_t_11; |
3416 | int __pyx_t_12; |
3417 | Py_ssize_t __pyx_t_13; |
3418 | int __pyx_t_14; |
3419 | PyObject *__pyx_t_15 = NULL((void*)0); |
3420 | int __pyx_lineno = 0; |
3421 | const char *__pyx_filename = NULL((void*)0); |
3422 | int __pyx_clineno = 0; |
3423 | __Pyx_RefNannySetupContext("_str", 1); |
3424 | |
3425 | /* "abaqusFILReader.pyx":18 |
3426 | * def _str(data,ignore_dicts = False): |
3427 | * |
3428 | * if PY_MAJOR_VERSION >= 3: # <<<<<<<<<<<<<< |
3429 | * if isinstance(data, bytes): |
3430 | * return data.decode("utf-8") |
3431 | */ |
3432 | __pyx_t_1 = (PY_MAJOR_VERSION3 >= 3); |
3433 | if (__pyx_t_1) { |
3434 | |
3435 | /* "abaqusFILReader.pyx":19 |
3436 | * |
3437 | * if PY_MAJOR_VERSION >= 3: |
3438 | * if isinstance(data, bytes): # <<<<<<<<<<<<<< |
3439 | * return data.decode("utf-8") |
3440 | * |
3441 | */ |
3442 | __pyx_t_1 = PyBytes_Check(__pyx_v_data)PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_v_data)))), (1UL << 27)); |
3443 | if (__pyx_t_1) { |
3444 | |
3445 | /* "abaqusFILReader.pyx":20 |
3446 | * if PY_MAJOR_VERSION >= 3: |
3447 | * if isinstance(data, bytes): |
3448 | * return data.decode("utf-8") # <<<<<<<<<<<<<< |
3449 | * |
3450 | * if isinstance(data,list): |
3451 | */ |
3452 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
3453 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 20, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 20; (void)__pyx_lineno; __pyx_clineno = 3453; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3454 | __Pyx_GOTREF(__pyx_t_3); |
3455 | __pyx_t_4 = NULL((void*)0); |
3456 | __pyx_t_5 = 0; |
3457 | #if CYTHON_UNPACK_METHODS1 |
3458 | if (likely(PyMethod_Check(__pyx_t_3))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), & PyMethod_Type)), 1)) { |
3459 | __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3)(((PyMethodObject *)__pyx_t_3) -> im_self); |
3460 | if (likely(__pyx_t_4)__builtin_expect(!!(__pyx_t_4), 1)) { |
3461 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3)(((PyMethodObject *)__pyx_t_3) -> im_func); |
3462 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
3463 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
3464 | __Pyx_DECREF_SET(__pyx_t_3, function)do { PyObject *tmp = (PyObject *) __pyx_t_3; __pyx_t_3 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
3465 | __pyx_t_5 = 1; |
3466 | } |
3467 | } |
3468 | #endif |
3469 | { |
3470 | PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_kp_u_utf_8__pyx_mstate_global->__pyx_kp_u_utf_8}; |
3471 | __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5)__Pyx_PyObject_FastCallDict(__pyx_t_3, __pyx_callargs+1-__pyx_t_5 , (size_t)(1+__pyx_t_5), ((void*)0)); |
3472 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
3473 | if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 20, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 20; (void)__pyx_lineno; __pyx_clineno = 3473; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3474 | __Pyx_GOTREF(__pyx_t_2); |
3475 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
3476 | } |
3477 | __pyx_r = __pyx_t_2; |
3478 | __pyx_t_2 = 0; |
3479 | goto __pyx_L0; |
3480 | |
3481 | /* "abaqusFILReader.pyx":19 |
3482 | * |
3483 | * if PY_MAJOR_VERSION >= 3: |
3484 | * if isinstance(data, bytes): # <<<<<<<<<<<<<< |
3485 | * return data.decode("utf-8") |
3486 | * |
3487 | */ |
3488 | } |
3489 | |
3490 | /* "abaqusFILReader.pyx":22 |
3491 | * return data.decode("utf-8") |
3492 | * |
3493 | * if isinstance(data,list): # <<<<<<<<<<<<<< |
3494 | * return [_str(item,ignore_dicts=True) for item in data] |
3495 | * if isinstance(data, dict) and not ignore_dicts: |
3496 | */ |
3497 | __pyx_t_1 = PyList_Check(__pyx_v_data)PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_v_data)))), (1UL << 25)); |
3498 | if (__pyx_t_1) { |
3499 | |
3500 | /* "abaqusFILReader.pyx":23 |
3501 | * |
3502 | * if isinstance(data,list): |
3503 | * return [_str(item,ignore_dicts=True) for item in data] # <<<<<<<<<<<<<< |
3504 | * if isinstance(data, dict) and not ignore_dicts: |
3505 | * return { |
3506 | */ |
3507 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
3508 | { /* enter inner scope */ |
3509 | __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3509; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3510 | __Pyx_GOTREF(__pyx_t_2); |
3511 | if (likely(PyList_CheckExact(__pyx_v_data))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_data))), &PyList_Type)), 1) || PyTuple_CheckExact(__pyx_v_data)Py_IS_TYPE(((PyObject*)((__pyx_v_data))), &PyTuple_Type)) { |
3512 | __pyx_t_3 = __pyx_v_data; __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
3513 | __pyx_t_6 = 0; |
3514 | __pyx_t_7 = NULL((void*)0); |
3515 | } else { |
3516 | __pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_data); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3516; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3517 | __Pyx_GOTREF(__pyx_t_3); |
3518 | __pyx_t_7 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3)(Py_TYPE(((PyObject*)((__pyx_t_3))))->tp_iternext); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3518; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3519 | } |
3520 | for (;;) { |
3521 | if (likely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 1)) { |
3522 | if (likely(PyList_CheckExact(__pyx_t_3))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), & PyList_Type)), 1)) { |
3523 | { |
3524 | Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3)PyList_GET_SIZE(((PyObject*)((__pyx_t_3)))); |
3525 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
3526 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3526; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3527 | #endif |
3528 | if (__pyx_t_6 >= __pyx_temp) break; |
3529 | } |
3530 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
3531 | __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_3 )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_3)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(__pyx_t_3)", "abaqusFILReader.c" , 3531, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((__pyx_t_3))))->ob_item[__pyx_t_6]); __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); __pyx_t_6++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3531; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3532 | #else |
3533 | __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6)( Py_TYPE(((PyObject*)((__pyx_t_3))))->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_6) ); __pyx_t_6++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3533; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3534 | __Pyx_GOTREF(__pyx_t_4); |
3535 | #endif |
3536 | } else { |
3537 | { |
3538 | Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3)PyTuple_GET_SIZE(((PyObject*)((__pyx_t_3)))); |
3539 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
3540 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3540; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3541 | #endif |
3542 | if (__pyx_t_6 >= __pyx_temp) break; |
3543 | } |
3544 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
3545 | __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_3 )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_3)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(__pyx_t_3)", "abaqusFILReader.c" , 3545, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((__pyx_t_3))))->ob_item[__pyx_t_6]); __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); __pyx_t_6++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3545; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3546 | #else |
3547 | __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6)( Py_TYPE(((PyObject*)((__pyx_t_3))))->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_6) ); __pyx_t_6++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3547; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3548 | __Pyx_GOTREF(__pyx_t_4); |
3549 | #endif |
3550 | } |
3551 | } else { |
3552 | __pyx_t_4 = __pyx_t_7(__pyx_t_3); |
3553 | if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) { |
3554 | PyObject* exc_type = PyErr_Occurred(); |
3555 | if (exc_type) { |
3556 | if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(exc_type , PyExc_StopIteration)), 1)) PyErr_Clear(); |
3557 | else __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3557; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3558 | } |
3559 | break; |
3560 | } |
3561 | __Pyx_GOTREF(__pyx_t_4); |
3562 | } |
3563 | __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_item, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_7genexpr__pyx_v_item; __pyx_7genexpr__pyx_v_item = __pyx_t_4; Py_XDECREF(((PyObject *)((tmp)))); } while (0); |
3564 | __pyx_t_4 = 0; |
3565 | __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_4) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global ->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value );} while(0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3565; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3566 | __Pyx_GOTREF(__pyx_t_4); |
3567 | __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3567; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3568 | __Pyx_GOTREF(__pyx_t_8); |
3569 | __Pyx_INCREF(__pyx_7genexpr__pyx_v_item)Py_INCREF(((PyObject*)((__pyx_7genexpr__pyx_v_item)))); |
3570 | __Pyx_GIVEREF(__pyx_7genexpr__pyx_v_item); |
3571 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_7genexpr__pyx_v_item)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_8))), 0, ((PyObject*) ((__pyx_7genexpr__pyx_v_item)))), (0))) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3571; (void)__pyx_clineno ; } goto __pyx_L8_error; }; |
3572 | __pyx_t_9 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_9)__builtin_expect(!!(!__pyx_t_9), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3572; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3573 | __Pyx_GOTREF(__pyx_t_9); |
3574 | if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, Py_True((PyObject *) &_Py_TrueStruct)) < 0) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3574; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3575 | __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3575; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3576 | __Pyx_GOTREF(__pyx_t_10); |
3577 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
3578 | __Pyx_DECREF(__pyx_t_8)Py_DECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0; |
3579 | __Pyx_DECREF(__pyx_t_9)Py_DECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0; |
3580 | if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_10))__builtin_expect(!!(__Pyx_ListComp_Append(__pyx_t_2, (PyObject *)__pyx_t_10)), 0)) __PYX_ERR(0, 23, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 23; (void)__pyx_lineno; __pyx_clineno = 3580; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
3581 | __Pyx_DECREF(__pyx_t_10)Py_DECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0; |
3582 | } |
3583 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
3584 | __Pyx_XDECREF(__pyx_7genexpr__pyx_v_item)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_item)))); __pyx_7genexpr__pyx_v_item = 0; |
3585 | goto __pyx_L12_exit_scope; |
3586 | __pyx_L8_error:; |
3587 | __Pyx_XDECREF(__pyx_7genexpr__pyx_v_item)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_item)))); __pyx_7genexpr__pyx_v_item = 0; |
3588 | goto __pyx_L1_error; |
3589 | __pyx_L12_exit_scope:; |
3590 | } /* exit inner scope */ |
3591 | __pyx_r = __pyx_t_2; |
3592 | __pyx_t_2 = 0; |
3593 | goto __pyx_L0; |
3594 | |
3595 | /* "abaqusFILReader.pyx":22 |
3596 | * return data.decode("utf-8") |
3597 | * |
3598 | * if isinstance(data,list): # <<<<<<<<<<<<<< |
3599 | * return [_str(item,ignore_dicts=True) for item in data] |
3600 | * if isinstance(data, dict) and not ignore_dicts: |
3601 | */ |
3602 | } |
3603 | |
3604 | /* "abaqusFILReader.pyx":24 |
3605 | * if isinstance(data,list): |
3606 | * return [_str(item,ignore_dicts=True) for item in data] |
3607 | * if isinstance(data, dict) and not ignore_dicts: # <<<<<<<<<<<<<< |
3608 | * return { |
3609 | * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True) |
3610 | */ |
3611 | __pyx_t_11 = PyDict_Check(__pyx_v_data)PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_v_data)))), (1UL << 29)); |
3612 | if (__pyx_t_11) { |
3613 | } else { |
3614 | __pyx_t_1 = __pyx_t_11; |
3615 | goto __pyx_L14_bool_binop_done; |
3616 | } |
3617 | __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_dicts); if (unlikely((__pyx_t_11 < 0))__builtin_expect(!!((__pyx_t_11 < 0)), 0)) __PYX_ERR(0, 24, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 24; (void)__pyx_lineno; __pyx_clineno = 3617; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3618 | __pyx_t_12 = (!__pyx_t_11); |
3619 | __pyx_t_1 = __pyx_t_12; |
3620 | __pyx_L14_bool_binop_done:; |
3621 | if (__pyx_t_1) { |
3622 | |
3623 | /* "abaqusFILReader.pyx":25 |
3624 | * return [_str(item,ignore_dicts=True) for item in data] |
3625 | * if isinstance(data, dict) and not ignore_dicts: |
3626 | * return { # <<<<<<<<<<<<<< |
3627 | * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True) |
3628 | * for key, value in data.iteritems() |
3629 | */ |
3630 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
3631 | { /* enter inner scope */ |
3632 | __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 25, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 25; (void)__pyx_lineno; __pyx_clineno = 3632; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3633 | __Pyx_GOTREF(__pyx_t_2); |
3634 | |
3635 | /* "abaqusFILReader.pyx":27 |
3636 | * return { |
3637 | * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True) |
3638 | * for key, value in data.iteritems() # <<<<<<<<<<<<<< |
3639 | * } |
3640 | * return data |
3641 | */ |
3642 | __pyx_t_6 = 0; |
3643 | if (unlikely(__pyx_v_data == Py_None)__builtin_expect(!!(__pyx_v_data == (&_Py_NoneStruct)), 0 )) { |
3644 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "iteritems"); |
3645 | __PYX_ERR(0, 27, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 27; (void)__pyx_lineno; __pyx_clineno = 3645; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3646 | } |
3647 | __pyx_t_10 = __Pyx_dict_iterator(__pyx_v_data, 0, __pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems, (&__pyx_t_13), (&__pyx_t_5)); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 27, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 27; (void)__pyx_lineno; __pyx_clineno = 3647; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3648 | __Pyx_GOTREF(__pyx_t_10); |
3649 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); |
3650 | __pyx_t_3 = __pyx_t_10; |
3651 | __pyx_t_10 = 0; |
3652 | while (1) { |
3653 | __pyx_t_14 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_13, &__pyx_t_6, &__pyx_t_10, &__pyx_t_9, NULL((void*)0), __pyx_t_5); |
3654 | if (unlikely(__pyx_t_14 == 0)__builtin_expect(!!(__pyx_t_14 == 0), 0)) break; |
3655 | if (unlikely(__pyx_t_14 == -1)__builtin_expect(!!(__pyx_t_14 == -1), 0)) __PYX_ERR(0, 27, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 27; (void)__pyx_lineno; __pyx_clineno = 3655; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3656 | __Pyx_GOTREF(__pyx_t_10); |
3657 | __Pyx_GOTREF(__pyx_t_9); |
3658 | __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_key, __pyx_t_10)do { PyObject *tmp = (PyObject *) __pyx_8genexpr1__pyx_v_key; __pyx_8genexpr1__pyx_v_key = __pyx_t_10; Py_XDECREF(((PyObject *)((tmp)))); } while (0); |
3659 | __pyx_t_10 = 0; |
3660 | __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_value, __pyx_t_9)do { PyObject *tmp = (PyObject *) __pyx_8genexpr1__pyx_v_value ; __pyx_8genexpr1__pyx_v_value = __pyx_t_9; Py_XDECREF(((PyObject *)((tmp)))); } while (0); |
3661 | __pyx_t_9 = 0; |
3662 | |
3663 | /* "abaqusFILReader.pyx":26 |
3664 | * if isinstance(data, dict) and not ignore_dicts: |
3665 | * return { |
3666 | * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True) # <<<<<<<<<<<<<< |
3667 | * for key, value in data.iteritems() |
3668 | * } |
3669 | */ |
3670 | __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_9) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global ->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value );} while(0); if (unlikely(!__pyx_t_9)__builtin_expect(!!(!__pyx_t_9), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3670; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3671 | __Pyx_GOTREF(__pyx_t_9); |
3672 | __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3672; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3673 | __Pyx_GOTREF(__pyx_t_10); |
3674 | __Pyx_INCREF(__pyx_8genexpr1__pyx_v_key)Py_INCREF(((PyObject*)((__pyx_8genexpr1__pyx_v_key)))); |
3675 | __Pyx_GIVEREF(__pyx_8genexpr1__pyx_v_key); |
3676 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_8genexpr1__pyx_v_key)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_10))), 0, ((PyObject* )((__pyx_8genexpr1__pyx_v_key)))), (0))) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3676; (void)__pyx_clineno ; } goto __pyx_L18_error; }; |
3677 | __pyx_t_8 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3677; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3678 | __Pyx_GOTREF(__pyx_t_8); |
3679 | if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, Py_True((PyObject *) &_Py_TrueStruct)) < 0) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3679; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3680 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3680; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3681 | __Pyx_GOTREF(__pyx_t_4); |
3682 | __Pyx_DECREF(__pyx_t_9)Py_DECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0; |
3683 | __Pyx_DECREF(__pyx_t_10)Py_DECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0; |
3684 | __Pyx_DECREF(__pyx_t_8)Py_DECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0; |
3685 | __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_8) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global ->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value );} while(0); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3685; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3686 | __Pyx_GOTREF(__pyx_t_8); |
3687 | __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3687; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3688 | __Pyx_GOTREF(__pyx_t_10); |
3689 | __Pyx_INCREF(__pyx_8genexpr1__pyx_v_value)Py_INCREF(((PyObject*)((__pyx_8genexpr1__pyx_v_value)))); |
3690 | __Pyx_GIVEREF(__pyx_8genexpr1__pyx_v_value); |
3691 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_8genexpr1__pyx_v_value)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_10))), 0, ((PyObject* )((__pyx_8genexpr1__pyx_v_value)))), (0))) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3691; (void)__pyx_clineno ; } goto __pyx_L18_error; }; |
3692 | __pyx_t_9 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_9)__builtin_expect(!!(!__pyx_t_9), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3692; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3693 | __Pyx_GOTREF(__pyx_t_9); |
3694 | if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, Py_True((PyObject *) &_Py_TrueStruct)) < 0) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3694; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3695 | __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_15)__builtin_expect(!!(!__pyx_t_15), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3695; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3696 | __Pyx_GOTREF(__pyx_t_15); |
3697 | __Pyx_DECREF(__pyx_t_8)Py_DECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0; |
3698 | __Pyx_DECREF(__pyx_t_10)Py_DECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0; |
3699 | __Pyx_DECREF(__pyx_t_9)Py_DECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0; |
3700 | if (unlikely(PyDict_SetItem(__pyx_t_2, (PyObject*)__pyx_t_4, (PyObject*)__pyx_t_15))__builtin_expect(!!(PyDict_SetItem(__pyx_t_2, (PyObject*)__pyx_t_4 , (PyObject*)__pyx_t_15)), 0)) __PYX_ERR(0, 26, __pyx_L18_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 26; (void)__pyx_lineno; __pyx_clineno = 3700; (void)__pyx_clineno ; } goto __pyx_L18_error; } |
3701 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
3702 | __Pyx_DECREF(__pyx_t_15)Py_DECREF(((PyObject*)((__pyx_t_15)))); __pyx_t_15 = 0; |
3703 | } |
3704 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
3705 | __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_key)Py_XDECREF(((PyObject*)((__pyx_8genexpr1__pyx_v_key)))); __pyx_8genexpr1__pyx_v_key = 0; |
3706 | __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_value)Py_XDECREF(((PyObject*)((__pyx_8genexpr1__pyx_v_value)))); __pyx_8genexpr1__pyx_v_value = 0; |
3707 | goto __pyx_L21_exit_scope; |
3708 | __pyx_L18_error:; |
3709 | __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_key)Py_XDECREF(((PyObject*)((__pyx_8genexpr1__pyx_v_key)))); __pyx_8genexpr1__pyx_v_key = 0; |
3710 | __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_value)Py_XDECREF(((PyObject*)((__pyx_8genexpr1__pyx_v_value)))); __pyx_8genexpr1__pyx_v_value = 0; |
3711 | goto __pyx_L1_error; |
3712 | __pyx_L21_exit_scope:; |
3713 | } /* exit inner scope */ |
3714 | __pyx_r = __pyx_t_2; |
3715 | __pyx_t_2 = 0; |
3716 | goto __pyx_L0; |
3717 | |
3718 | /* "abaqusFILReader.pyx":24 |
3719 | * if isinstance(data,list): |
3720 | * return [_str(item,ignore_dicts=True) for item in data] |
3721 | * if isinstance(data, dict) and not ignore_dicts: # <<<<<<<<<<<<<< |
3722 | * return { |
3723 | * _str(key,ignore_dicts=True): _str(value, ignore_dicts=True) |
3724 | */ |
3725 | } |
3726 | |
3727 | /* "abaqusFILReader.pyx":18 |
3728 | * def _str(data,ignore_dicts = False): |
3729 | * |
3730 | * if PY_MAJOR_VERSION >= 3: # <<<<<<<<<<<<<< |
3731 | * if isinstance(data, bytes): |
3732 | * return data.decode("utf-8") |
3733 | */ |
3734 | } |
3735 | |
3736 | /* "abaqusFILReader.pyx":29 |
3737 | * for key, value in data.iteritems() |
3738 | * } |
3739 | * return data # <<<<<<<<<<<<<< |
3740 | * |
3741 | * # where variables are Grid Id, T1, T2, T3, R1, R2, R3 |
3742 | */ |
3743 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
3744 | __Pyx_INCREF(__pyx_v_data)Py_INCREF(((PyObject*)((__pyx_v_data)))); |
3745 | __pyx_r = __pyx_v_data; |
3746 | goto __pyx_L0; |
3747 | |
3748 | /* "abaqusFILReader.pyx":16 |
3749 | * |
3750 | * # Handles all byte to uni-code and and byte conversion. |
3751 | * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<< |
3752 | * |
3753 | * if PY_MAJOR_VERSION >= 3: |
3754 | */ |
3755 | |
3756 | /* function exit code */ |
3757 | __pyx_L1_error:; |
3758 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
3759 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); |
3760 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); |
3761 | __Pyx_XDECREF(__pyx_t_8)Py_XDECREF(((PyObject*)((__pyx_t_8)))); |
3762 | __Pyx_XDECREF(__pyx_t_9)Py_XDECREF(((PyObject*)((__pyx_t_9)))); |
3763 | __Pyx_XDECREF(__pyx_t_10)Py_XDECREF(((PyObject*)((__pyx_t_10)))); |
3764 | __Pyx_XDECREF(__pyx_t_15)Py_XDECREF(((PyObject*)((__pyx_t_15)))); |
3765 | __Pyx_AddTraceback("abaqusFILReader._str", __pyx_clineno, __pyx_lineno, __pyx_filename); |
3766 | __pyx_r = NULL((void*)0); |
3767 | __pyx_L0:; |
3768 | __Pyx_XDECREF(__pyx_7genexpr__pyx_v_item)Py_XDECREF(((PyObject*)((__pyx_7genexpr__pyx_v_item)))); |
3769 | __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_key)Py_XDECREF(((PyObject*)((__pyx_8genexpr1__pyx_v_key)))); |
3770 | __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_value)Py_XDECREF(((PyObject*)((__pyx_8genexpr1__pyx_v_value)))); |
3771 | __Pyx_XGIVEREF(__pyx_r); |
3772 | __Pyx_RefNannyFinishContext(); |
3773 | return __pyx_r; |
3774 | } |
3775 | |
3776 | /* "abaqusFILReader.pyx":32 |
3777 | * |
3778 | * # where variables are Grid Id, T1, T2, T3, R1, R2, R3 |
3779 | * cdef public int abaqus_parseFILDisplacement(const char *filename, int *numGridOut, double ***dataMatrixOut) except -1: # <<<<<<<<<<<<<< |
3780 | * |
3781 | * cdef: |
3782 | */ |
3783 | |
3784 | int abaqus_parseFILDisplacement(char const *__pyx_v_filename, int *__pyx_v_numGridOut, double ***__pyx_v_dataMatrixOut) { |
3785 | int __pyx_v_numGrid; |
3786 | int __pyx_v_numVariable; |
3787 | double **__pyx_v_dataMatrix; |
3788 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_v__ = NULL((void*)0); |
3789 | PyObject *__pyx_v_data = NULL((void*)0); |
3790 | PyObject *__pyx_v_i = NULL((void*)0); |
3791 | PyObject *__pyx_v_j = NULL((void*)0); |
3792 | int __pyx_r; |
3793 | __Pyx_RefNannyDeclarations |
3794 | PyObject *__pyx_t_1 = NULL((void*)0); |
3795 | PyObject *__pyx_t_2 = NULL((void*)0); |
3796 | PyObject *__pyx_t_3 = NULL((void*)0); |
3797 | PyObject *__pyx_t_4 = NULL((void*)0); |
3798 | PyObject *__pyx_t_5 = NULL((void*)0); |
3799 | PyObject *__pyx_t_6 = NULL((void*)0); |
3800 | int __pyx_t_7; |
3801 | PyObject *(*__pyx_t_8)(PyObject *); |
3802 | Py_ssize_t __pyx_t_9; |
3803 | int __pyx_t_10; |
3804 | Py_ssize_t __pyx_t_11; |
3805 | int __pyx_t_12; |
3806 | double __pyx_t_13; |
3807 | Py_ssize_t __pyx_t_14; |
3808 | int __pyx_lineno = 0; |
3809 | const char *__pyx_filename = NULL((void*)0); |
3810 | int __pyx_clineno = 0; |
3811 | __Pyx_RefNannySetupContext("abaqus_parseFILDisplacement", 1); |
3812 | |
3813 | /* "abaqusFILReader.pyx":36 |
3814 | * cdef: |
3815 | * int numGrid |
3816 | * int numVariable = 7 # <<<<<<<<<<<<<< |
3817 | * double **dataMatrix=NULL |
3818 | * |
3819 | */ |
3820 | __pyx_v_numVariable = 7; |
3821 | |
3822 | /* "abaqusFILReader.pyx":37 |
3823 | * int numGrid |
3824 | * int numVariable = 7 |
3825 | * double **dataMatrix=NULL # <<<<<<<<<<<<<< |
3826 | * |
3827 | * _, _, data = extractFilRecords(_str(filename)) |
3828 | */ |
3829 | __pyx_v_dataMatrix = NULL((void*)0); |
3830 | |
3831 | /* "abaqusFILReader.pyx":39 |
3832 | * double **dataMatrix=NULL |
3833 | * |
3834 | * _, _, data = extractFilRecords(_str(filename)) # <<<<<<<<<<<<<< |
3835 | * _, _, data = extractDispFil(data) |
3836 | * |
3837 | */ |
3838 | __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_extractFilRecords)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_2) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_extractFilRecords)) : __Pyx__GetModuleGlobalName (__pyx_mstate_global->__pyx_n_s_extractFilRecords, &__pyx_dict_version , &__pyx_dict_cached_value);} while(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3838; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3839 | __Pyx_GOTREF(__pyx_t_2); |
3840 | __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_4) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global ->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value );} while(0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3840; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3841 | __Pyx_GOTREF(__pyx_t_4); |
3842 | __pyx_t_5 = __Pyx_PyBytes_FromStringPyBytes_FromString(__pyx_v_filename); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3842; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3843 | __Pyx_GOTREF(__pyx_t_5); |
3844 | __pyx_t_6 = NULL((void*)0); |
3845 | __pyx_t_7 = 0; |
3846 | #if CYTHON_UNPACK_METHODS1 |
3847 | if (unlikely(PyMethod_Check(__pyx_t_4))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), & PyMethod_Type)), 0)) { |
3848 | __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_self); |
3849 | if (likely(__pyx_t_6)__builtin_expect(!!(__pyx_t_6), 1)) { |
3850 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_func); |
3851 | __Pyx_INCREF(__pyx_t_6)Py_INCREF(((PyObject*)((__pyx_t_6)))); |
3852 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
3853 | __Pyx_DECREF_SET(__pyx_t_4, function)do { PyObject *tmp = (PyObject *) __pyx_t_4; __pyx_t_4 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
3854 | __pyx_t_7 = 1; |
3855 | } |
3856 | } |
3857 | #endif |
3858 | { |
3859 | PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; |
3860 | __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_4, __pyx_callargs+1-__pyx_t_7 , (size_t)(1+__pyx_t_7), ((void*)0)); |
3861 | __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
3862 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
3863 | if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3863; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3864 | __Pyx_GOTREF(__pyx_t_3); |
3865 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
3866 | } |
3867 | __pyx_t_4 = NULL((void*)0); |
3868 | __pyx_t_7 = 0; |
3869 | #if CYTHON_UNPACK_METHODS1 |
3870 | if (unlikely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyMethod_Type)), 0)) { |
3871 | __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self); |
3872 | if (likely(__pyx_t_4)__builtin_expect(!!(__pyx_t_4), 1)) { |
3873 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func); |
3874 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
3875 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
3876 | __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
3877 | __pyx_t_7 = 1; |
3878 | } |
3879 | } |
3880 | #endif |
3881 | { |
3882 | PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; |
3883 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_7 , (size_t)(1+__pyx_t_7), ((void*)0)); |
3884 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
3885 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
3886 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3886; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3887 | __Pyx_GOTREF(__pyx_t_1); |
3888 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
3889 | } |
3890 | if ((likely(PyTuple_CheckExact(__pyx_t_1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_1)Py_IS_TYPE(((PyObject*)((__pyx_t_1))), &PyList_Type))) { |
3891 | PyObject* sequence = __pyx_t_1; |
3892 | Py_ssize_t size = __Pyx_PySequence_SIZE(sequence)Py_SIZE(((PyObject*)((sequence)))); |
3893 | if (unlikely(size != 3)__builtin_expect(!!(size != 3), 0)) { |
3894 | if (size > 3) __Pyx_RaiseTooManyValuesError(3); |
3895 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
3896 | __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3896; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3897 | } |
3898 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
3899 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((sequence))), & PyTuple_Type)), 1)) { |
3900 | __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 3900, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[0]); |
3901 | __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 3901, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[1]); |
3902 | __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 3902, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[2]); |
3903 | } else { |
3904 | __pyx_t_2 = PyList_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 3904, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[0]); |
3905 | __pyx_t_3 = PyList_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 3905, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[1]); |
3906 | __pyx_t_4 = PyList_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 3906, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[2]); |
3907 | } |
3908 | __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
3909 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
3910 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
3911 | #else |
3912 | __pyx_t_2 = PySequence_ITEM(sequence, 0)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 0) ); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3912; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3913 | __Pyx_GOTREF(__pyx_t_2); |
3914 | __pyx_t_3 = PySequence_ITEM(sequence, 1)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 1) ); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3914; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3915 | __Pyx_GOTREF(__pyx_t_3); |
3916 | __pyx_t_4 = PySequence_ITEM(sequence, 2)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 2) ); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3916; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3917 | __Pyx_GOTREF(__pyx_t_4); |
3918 | #endif |
3919 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
3920 | } else { |
3921 | Py_ssize_t index = -1; |
3922 | __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3922; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3923 | __Pyx_GOTREF(__pyx_t_5); |
3924 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
3925 | __pyx_t_8 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_5)(Py_TYPE(((PyObject*)((__pyx_t_5))))->tp_iternext); |
3926 | index = 0; __pyx_t_2 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) goto __pyx_L3_unpacking_failed; |
3927 | __Pyx_GOTREF(__pyx_t_2); |
3928 | index = 1; __pyx_t_3 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) goto __pyx_L3_unpacking_failed; |
3929 | __Pyx_GOTREF(__pyx_t_3); |
3930 | index = 2; __pyx_t_4 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) goto __pyx_L3_unpacking_failed; |
3931 | __Pyx_GOTREF(__pyx_t_4); |
3932 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_5), 3) < 0) __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3932; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3933 | __pyx_t_8 = NULL((void*)0); |
3934 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
3935 | goto __pyx_L4_unpacking_done; |
3936 | __pyx_L3_unpacking_failed:; |
3937 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
3938 | __pyx_t_8 = NULL((void*)0); |
3939 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
3940 | __PYX_ERR(0, 39, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 39; (void)__pyx_lineno; __pyx_clineno = 3940; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3941 | __pyx_L4_unpacking_done:; |
3942 | } |
3943 | __pyx_v__ = __pyx_t_2; |
3944 | __pyx_t_2 = 0; |
3945 | __Pyx_DECREF_SET(__pyx_v__, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v__; __pyx_v__ = __pyx_t_3 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
3946 | __pyx_t_3 = 0; |
3947 | __pyx_v_data = __pyx_t_4; |
3948 | __pyx_t_4 = 0; |
3949 | |
3950 | /* "abaqusFILReader.pyx":40 |
3951 | * |
3952 | * _, _, data = extractFilRecords(_str(filename)) |
3953 | * _, _, data = extractDispFil(data) # <<<<<<<<<<<<<< |
3954 | * |
3955 | * numGrid = int(len(data.keys())) |
3956 | */ |
3957 | __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_extractDispFil)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_4) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_extractDispFil)) : __Pyx__GetModuleGlobalName( __pyx_mstate_global->__pyx_n_s_extractDispFil, &__pyx_dict_version , &__pyx_dict_cached_value);} while(0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 3957; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3958 | __Pyx_GOTREF(__pyx_t_4); |
3959 | __pyx_t_3 = NULL((void*)0); |
3960 | __pyx_t_7 = 0; |
3961 | #if CYTHON_UNPACK_METHODS1 |
3962 | if (unlikely(PyMethod_Check(__pyx_t_4))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), & PyMethod_Type)), 0)) { |
3963 | __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_self); |
3964 | if (likely(__pyx_t_3)__builtin_expect(!!(__pyx_t_3), 1)) { |
3965 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_func); |
3966 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
3967 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
3968 | __Pyx_DECREF_SET(__pyx_t_4, function)do { PyObject *tmp = (PyObject *) __pyx_t_4; __pyx_t_4 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
3969 | __pyx_t_7 = 1; |
3970 | } |
3971 | } |
3972 | #endif |
3973 | { |
3974 | PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_data}; |
3975 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_4, __pyx_callargs+1-__pyx_t_7 , (size_t)(1+__pyx_t_7), ((void*)0)); |
3976 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
3977 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 3977; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3978 | __Pyx_GOTREF(__pyx_t_1); |
3979 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
3980 | } |
3981 | if ((likely(PyTuple_CheckExact(__pyx_t_1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_1)Py_IS_TYPE(((PyObject*)((__pyx_t_1))), &PyList_Type))) { |
3982 | PyObject* sequence = __pyx_t_1; |
3983 | Py_ssize_t size = __Pyx_PySequence_SIZE(sequence)Py_SIZE(((PyObject*)((sequence)))); |
3984 | if (unlikely(size != 3)__builtin_expect(!!(size != 3), 0)) { |
3985 | if (size > 3) __Pyx_RaiseTooManyValuesError(3); |
3986 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
3987 | __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 3987; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
3988 | } |
3989 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
3990 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((sequence))), & PyTuple_Type)), 1)) { |
3991 | __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 3991, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[0]); |
3992 | __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 3992, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[1]); |
3993 | __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 3993, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[2]); |
3994 | } else { |
3995 | __pyx_t_4 = PyList_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 3995, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[0]); |
3996 | __pyx_t_3 = PyList_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 3996, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[1]); |
3997 | __pyx_t_2 = PyList_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 3997, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[2]); |
3998 | } |
3999 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
4000 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
4001 | __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
4002 | #else |
4003 | __pyx_t_4 = PySequence_ITEM(sequence, 0)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 0) ); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 4003; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4004 | __Pyx_GOTREF(__pyx_t_4); |
4005 | __pyx_t_3 = PySequence_ITEM(sequence, 1)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 1) ); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 4005; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4006 | __Pyx_GOTREF(__pyx_t_3); |
4007 | __pyx_t_2 = PySequence_ITEM(sequence, 2)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 2) ); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 4007; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4008 | __Pyx_GOTREF(__pyx_t_2); |
4009 | #endif |
4010 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4011 | } else { |
4012 | Py_ssize_t index = -1; |
4013 | __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 4013; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4014 | __Pyx_GOTREF(__pyx_t_5); |
4015 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4016 | __pyx_t_8 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_5)(Py_TYPE(((PyObject*)((__pyx_t_5))))->tp_iternext); |
4017 | index = 0; __pyx_t_4 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) goto __pyx_L5_unpacking_failed; |
4018 | __Pyx_GOTREF(__pyx_t_4); |
4019 | index = 1; __pyx_t_3 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) goto __pyx_L5_unpacking_failed; |
4020 | __Pyx_GOTREF(__pyx_t_3); |
4021 | index = 2; __pyx_t_2 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) goto __pyx_L5_unpacking_failed; |
4022 | __Pyx_GOTREF(__pyx_t_2); |
4023 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_5), 3) < 0) __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 4023; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4024 | __pyx_t_8 = NULL((void*)0); |
4025 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
4026 | goto __pyx_L6_unpacking_done; |
4027 | __pyx_L5_unpacking_failed:; |
4028 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
4029 | __pyx_t_8 = NULL((void*)0); |
4030 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
4031 | __PYX_ERR(0, 40, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 40; (void)__pyx_lineno; __pyx_clineno = 4031; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4032 | __pyx_L6_unpacking_done:; |
4033 | } |
4034 | __Pyx_DECREF_SET(__pyx_v__, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v__; __pyx_v__ = __pyx_t_4 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4035 | __pyx_t_4 = 0; |
4036 | __Pyx_DECREF_SET(__pyx_v__, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v__; __pyx_v__ = __pyx_t_3 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4037 | __pyx_t_3 = 0; |
4038 | __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_data; __pyx_v_data = __pyx_t_2; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4039 | __pyx_t_2 = 0; |
4040 | |
4041 | /* "abaqusFILReader.pyx":42 |
4042 | * _, _, data = extractDispFil(data) |
4043 | * |
4044 | * numGrid = int(len(data.keys())) # <<<<<<<<<<<<<< |
4045 | * |
4046 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4047 | */ |
4048 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 42, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 42; (void)__pyx_lineno; __pyx_clineno = 4048; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4049 | __Pyx_GOTREF(__pyx_t_2); |
4050 | __pyx_t_3 = NULL((void*)0); |
4051 | __pyx_t_7 = 0; |
4052 | #if CYTHON_UNPACK_METHODS1 |
4053 | if (likely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyMethod_Type)), 1)) { |
4054 | __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self); |
4055 | if (likely(__pyx_t_3)__builtin_expect(!!(__pyx_t_3), 1)) { |
4056 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func); |
4057 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
4058 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
4059 | __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4060 | __pyx_t_7 = 1; |
4061 | } |
4062 | } |
4063 | #endif |
4064 | { |
4065 | PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL((void*)0)}; |
4066 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_7, 0+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_7 , (size_t)(0+__pyx_t_7), ((void*)0)); |
4067 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4068 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 42, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 42; (void)__pyx_lineno; __pyx_clineno = 4068; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4069 | __Pyx_GOTREF(__pyx_t_1); |
4070 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4071 | } |
4072 | __pyx_t_9 = PyObject_LengthPyObject_Size(__pyx_t_1); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_9 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 42, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 42; (void)__pyx_lineno; __pyx_clineno = 4072; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4073 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4074 | __pyx_v_numGrid = ((int)__pyx_t_9); |
4075 | |
4076 | /* "abaqusFILReader.pyx":44 |
4077 | * numGrid = int(len(data.keys())) |
4078 | * |
4079 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) # <<<<<<<<<<<<<< |
4080 | * if not dataMatrix: |
4081 | * raise MemoryError() |
4082 | */ |
4083 | __pyx_v_dataMatrix = ((double **)EG_alloc((__pyx_v_numGrid * (sizeof(double *))))); |
4084 | |
4085 | /* "abaqusFILReader.pyx":45 |
4086 | * |
4087 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4088 | * if not dataMatrix: # <<<<<<<<<<<<<< |
4089 | * raise MemoryError() |
4090 | * |
4091 | */ |
4092 | __pyx_t_10 = (!(__pyx_v_dataMatrix != 0)); |
4093 | if (unlikely(__pyx_t_10)__builtin_expect(!!(__pyx_t_10), 0)) { |
4094 | |
4095 | /* "abaqusFILReader.pyx":46 |
4096 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4097 | * if not dataMatrix: |
4098 | * raise MemoryError() # <<<<<<<<<<<<<< |
4099 | * |
4100 | * i = 0 |
4101 | */ |
4102 | PyErr_NoMemory(); __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 46; (void)__pyx_lineno; __pyx_clineno = 4102; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4103 | |
4104 | /* "abaqusFILReader.pyx":45 |
4105 | * |
4106 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4107 | * if not dataMatrix: # <<<<<<<<<<<<<< |
4108 | * raise MemoryError() |
4109 | * |
4110 | */ |
4111 | } |
4112 | |
4113 | /* "abaqusFILReader.pyx":48 |
4114 | * raise MemoryError() |
4115 | * |
4116 | * i = 0 # <<<<<<<<<<<<<< |
4117 | * while i < numGrid: |
4118 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4119 | */ |
4120 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
4121 | __pyx_v_i = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
4122 | |
4123 | /* "abaqusFILReader.pyx":49 |
4124 | * |
4125 | * i = 0 |
4126 | * while i < numGrid: # <<<<<<<<<<<<<< |
4127 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4128 | * if not dataMatrix[i]: |
4129 | */ |
4130 | while (1) { |
4131 | __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_numGrid); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 49, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 49; (void)__pyx_lineno; __pyx_clineno = 4131; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4132 | __Pyx_GOTREF(__pyx_t_1); |
4133 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_i, __pyx_t_1, Py_LT0); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 49, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 49; (void)__pyx_lineno; __pyx_clineno = 4133; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4134 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4135 | __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_10 < 0))__builtin_expect(!!((__pyx_t_10 < 0)), 0)) __PYX_ERR(0, 49, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 49; (void)__pyx_lineno; __pyx_clineno = 4135; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4136 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4137 | if (!__pyx_t_10) break; |
4138 | |
4139 | /* "abaqusFILReader.pyx":50 |
4140 | * i = 0 |
4141 | * while i < numGrid: |
4142 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) # <<<<<<<<<<<<<< |
4143 | * if not dataMatrix[i]: |
4144 | * j = 0 |
4145 | */ |
4146 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 50, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 50; (void)__pyx_lineno; __pyx_clineno = 4146; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4147 | (__pyx_v_dataMatrix[__pyx_t_9]) = ((double *)EG_alloc((__pyx_v_numVariable * (sizeof(double))))); |
4148 | |
4149 | /* "abaqusFILReader.pyx":51 |
4150 | * while i < numGrid: |
4151 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4152 | * if not dataMatrix[i]: # <<<<<<<<<<<<<< |
4153 | * j = 0 |
4154 | * while j < i: |
4155 | */ |
4156 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 51, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 51; (void)__pyx_lineno; __pyx_clineno = 4156; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4157 | __pyx_t_10 = (!((__pyx_v_dataMatrix[__pyx_t_9]) != 0)); |
4158 | if (__pyx_t_10) { |
4159 | |
4160 | /* "abaqusFILReader.pyx":52 |
4161 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4162 | * if not dataMatrix[i]: |
4163 | * j = 0 # <<<<<<<<<<<<<< |
4164 | * while j < i: |
4165 | * if dataMatrix[j]: |
4166 | */ |
4167 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
4168 | __pyx_v_j = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
4169 | |
4170 | /* "abaqusFILReader.pyx":53 |
4171 | * if not dataMatrix[i]: |
4172 | * j = 0 |
4173 | * while j < i: # <<<<<<<<<<<<<< |
4174 | * if dataMatrix[j]: |
4175 | * cEGADS.EG_free(dataMatrix[j]) |
4176 | */ |
4177 | while (1) { |
4178 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_j, __pyx_v_i, Py_LT0); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 53, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 53; (void)__pyx_lineno; __pyx_clineno = 4178; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4179 | __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_10 < 0))__builtin_expect(!!((__pyx_t_10 < 0)), 0)) __PYX_ERR(0, 53, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 53; (void)__pyx_lineno; __pyx_clineno = 4179; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4180 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4181 | if (!__pyx_t_10) break; |
4182 | |
4183 | /* "abaqusFILReader.pyx":54 |
4184 | * j = 0 |
4185 | * while j < i: |
4186 | * if dataMatrix[j]: # <<<<<<<<<<<<<< |
4187 | * cEGADS.EG_free(dataMatrix[j]) |
4188 | * j += 1 |
4189 | */ |
4190 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 54, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 54; (void)__pyx_lineno; __pyx_clineno = 4190; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4191 | __pyx_t_10 = ((__pyx_v_dataMatrix[__pyx_t_9]) != 0); |
4192 | if (__pyx_t_10) { |
4193 | |
4194 | /* "abaqusFILReader.pyx":55 |
4195 | * while j < i: |
4196 | * if dataMatrix[j]: |
4197 | * cEGADS.EG_free(dataMatrix[j]) # <<<<<<<<<<<<<< |
4198 | * j += 1 |
4199 | * cEGADS.EG_free(dataMatrix) |
4200 | */ |
4201 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 55, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 55; (void)__pyx_lineno; __pyx_clineno = 4201; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4202 | EG_free((__pyx_v_dataMatrix[__pyx_t_9])); |
4203 | |
4204 | /* "abaqusFILReader.pyx":54 |
4205 | * j = 0 |
4206 | * while j < i: |
4207 | * if dataMatrix[j]: # <<<<<<<<<<<<<< |
4208 | * cEGADS.EG_free(dataMatrix[j]) |
4209 | * j += 1 |
4210 | */ |
4211 | } |
4212 | |
4213 | /* "abaqusFILReader.pyx":56 |
4214 | * if dataMatrix[j]: |
4215 | * cEGADS.EG_free(dataMatrix[j]) |
4216 | * j += 1 # <<<<<<<<<<<<<< |
4217 | * cEGADS.EG_free(dataMatrix) |
4218 | * |
4219 | */ |
4220 | __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_j, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 56, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 56; (void)__pyx_lineno; __pyx_clineno = 4220; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4221 | __Pyx_GOTREF(__pyx_t_2); |
4222 | __Pyx_DECREF_SET(__pyx_v_j, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_j; __pyx_v_j = __pyx_t_2 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4223 | __pyx_t_2 = 0; |
4224 | } |
4225 | |
4226 | /* "abaqusFILReader.pyx":57 |
4227 | * cEGADS.EG_free(dataMatrix[j]) |
4228 | * j += 1 |
4229 | * cEGADS.EG_free(dataMatrix) # <<<<<<<<<<<<<< |
4230 | * |
4231 | * raise MemoryError() |
4232 | */ |
4233 | EG_free(__pyx_v_dataMatrix); |
4234 | |
4235 | /* "abaqusFILReader.pyx":59 |
4236 | * cEGADS.EG_free(dataMatrix) |
4237 | * |
4238 | * raise MemoryError() # <<<<<<<<<<<<<< |
4239 | * |
4240 | * i += 1 |
4241 | */ |
4242 | PyErr_NoMemory(); __PYX_ERR(0, 59, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 59; (void)__pyx_lineno; __pyx_clineno = 4242; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4243 | |
4244 | /* "abaqusFILReader.pyx":51 |
4245 | * while i < numGrid: |
4246 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4247 | * if not dataMatrix[i]: # <<<<<<<<<<<<<< |
4248 | * j = 0 |
4249 | * while j < i: |
4250 | */ |
4251 | } |
4252 | |
4253 | /* "abaqusFILReader.pyx":61 |
4254 | * raise MemoryError() |
4255 | * |
4256 | * i += 1 # <<<<<<<<<<<<<< |
4257 | * |
4258 | * j = 0 |
4259 | */ |
4260 | __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 61, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 61; (void)__pyx_lineno; __pyx_clineno = 4260; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4261 | __Pyx_GOTREF(__pyx_t_2); |
4262 | __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_i; __pyx_v_i = __pyx_t_2 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4263 | __pyx_t_2 = 0; |
4264 | } |
4265 | |
4266 | /* "abaqusFILReader.pyx":63 |
4267 | * i += 1 |
4268 | * |
4269 | * j = 0 # <<<<<<<<<<<<<< |
4270 | * for i in data.keys(): |
4271 | * dataMatrix[j][0] = float(i) |
4272 | */ |
4273 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
4274 | __pyx_v_j = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
4275 | |
4276 | /* "abaqusFILReader.pyx":64 |
4277 | * |
4278 | * j = 0 |
4279 | * for i in data.keys(): # <<<<<<<<<<<<<< |
4280 | * dataMatrix[j][0] = float(i) |
4281 | * |
4282 | */ |
4283 | __pyx_t_9 = 0; |
4284 | if (unlikely(__pyx_v_data == Py_None)__builtin_expect(!!(__pyx_v_data == (&_Py_NoneStruct)), 0 )) { |
4285 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys"); |
4286 | __PYX_ERR(0, 64, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 64; (void)__pyx_lineno; __pyx_clineno = 4286; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4287 | } |
4288 | __pyx_t_1 = __Pyx_dict_iterator(__pyx_v_data, 0, __pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys, (&__pyx_t_11), (&__pyx_t_7)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 64, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 64; (void)__pyx_lineno; __pyx_clineno = 4288; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4289 | __Pyx_GOTREF(__pyx_t_1); |
4290 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
4291 | __pyx_t_2 = __pyx_t_1; |
4292 | __pyx_t_1 = 0; |
4293 | while (1) { |
4294 | __pyx_t_12 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_11, &__pyx_t_9, &__pyx_t_1, NULL((void*)0), NULL((void*)0), __pyx_t_7); |
4295 | if (unlikely(__pyx_t_12 == 0)__builtin_expect(!!(__pyx_t_12 == 0), 0)) break; |
4296 | if (unlikely(__pyx_t_12 == -1)__builtin_expect(!!(__pyx_t_12 == -1), 0)) __PYX_ERR(0, 64, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 64; (void)__pyx_lineno; __pyx_clineno = 4296; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4297 | __Pyx_GOTREF(__pyx_t_1); |
4298 | __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_i; __pyx_v_i = __pyx_t_1 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4299 | __pyx_t_1 = 0; |
4300 | |
4301 | /* "abaqusFILReader.pyx":65 |
4302 | * j = 0 |
4303 | * for i in data.keys(): |
4304 | * dataMatrix[j][0] = float(i) # <<<<<<<<<<<<<< |
4305 | * |
4306 | * dataMatrix[j][1] = data[i][1] |
4307 | */ |
4308 | __pyx_t_13 = __Pyx_PyObject_AsDouble(__pyx_v_i)((__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_i))), & PyFloat_Type)), 1)) ? (((PyFloatObject *)(__pyx_v_i))->ob_fval ) : __builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_i))) , &PyLong_Type)), 1) ? PyLong_AsDouble(__pyx_v_i) : __Pyx__PyObject_AsDouble (__pyx_v_i)); if (unlikely(__pyx_t_13 == ((double)((double)-1)) && PyErr_Occurred())__builtin_expect(!!(__pyx_t_13 == ((double)((double)-1)) && PyErr_Occurred()), 0)) __PYX_ERR(0, 65, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 65; (void)__pyx_lineno; __pyx_clineno = 4308; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4309 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 65, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 65; (void)__pyx_lineno; __pyx_clineno = 4309; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4310 | ((__pyx_v_dataMatrix[__pyx_t_14])[0]) = __pyx_t_13; |
4311 | |
4312 | /* "abaqusFILReader.pyx":67 |
4313 | * dataMatrix[j][0] = float(i) |
4314 | * |
4315 | * dataMatrix[j][1] = data[i][1] # <<<<<<<<<<<<<< |
4316 | * dataMatrix[j][2] = data[i][2] |
4317 | * dataMatrix[j][3] = data[i][3] |
4318 | */ |
4319 | __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_i); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 67, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 67; (void)__pyx_lineno; __pyx_clineno = 4319; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4320 | __Pyx_GOTREF(__pyx_t_1); |
4321 | __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(1 < (long )9223372036854775807L || 1 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(1 > (long)(-9223372036854775807L -1) || 1 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(1 < (long)9223372036854775807L || 1 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_1, (Py_ssize_t)1, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_1 , __Pyx_PyInt_From_long(1)))); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 67, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 67; (void)__pyx_lineno; __pyx_clineno = 4321; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4322 | __Pyx_GOTREF(__pyx_t_3); |
4323 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4324 | __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_3)(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &PyFloat_Type) ? ( ((PyFloatObject *)(__pyx_t_3))->ob_fval) : PyFloat_AsDouble (__pyx_t_3)); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_13 == (double)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 67, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 67; (void)__pyx_lineno; __pyx_clineno = 4324; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4325 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4326 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 67, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 67; (void)__pyx_lineno; __pyx_clineno = 4326; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4327 | ((__pyx_v_dataMatrix[__pyx_t_14])[1]) = __pyx_t_13; |
4328 | |
4329 | /* "abaqusFILReader.pyx":68 |
4330 | * |
4331 | * dataMatrix[j][1] = data[i][1] |
4332 | * dataMatrix[j][2] = data[i][2] # <<<<<<<<<<<<<< |
4333 | * dataMatrix[j][3] = data[i][3] |
4334 | * dataMatrix[j][4] = data[i][4] |
4335 | */ |
4336 | __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_i); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 68, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 68; (void)__pyx_lineno; __pyx_clineno = 4336; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4337 | __Pyx_GOTREF(__pyx_t_3); |
4338 | __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_3, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(2 < (long )9223372036854775807L || 2 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(2 > (long)(-9223372036854775807L -1) || 2 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(2 < (long)9223372036854775807L || 2 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_3, (Py_ssize_t)2, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_3 , __Pyx_PyInt_From_long(2)))); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 68, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 68; (void)__pyx_lineno; __pyx_clineno = 4338; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4339 | __Pyx_GOTREF(__pyx_t_1); |
4340 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4341 | __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_1)(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), &PyFloat_Type) ? ( ((PyFloatObject *)(__pyx_t_1))->ob_fval) : PyFloat_AsDouble (__pyx_t_1)); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_13 == (double)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 68, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 68; (void)__pyx_lineno; __pyx_clineno = 4341; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4342 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4343 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 68, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 68; (void)__pyx_lineno; __pyx_clineno = 4343; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4344 | ((__pyx_v_dataMatrix[__pyx_t_14])[2]) = __pyx_t_13; |
4345 | |
4346 | /* "abaqusFILReader.pyx":69 |
4347 | * dataMatrix[j][1] = data[i][1] |
4348 | * dataMatrix[j][2] = data[i][2] |
4349 | * dataMatrix[j][3] = data[i][3] # <<<<<<<<<<<<<< |
4350 | * dataMatrix[j][4] = data[i][4] |
4351 | * dataMatrix[j][5] = data[i][5] |
4352 | */ |
4353 | __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_i); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 69, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 69; (void)__pyx_lineno; __pyx_clineno = 4353; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4354 | __Pyx_GOTREF(__pyx_t_1); |
4355 | __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(3 < (long )9223372036854775807L || 3 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(3 > (long)(-9223372036854775807L -1) || 3 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(3 < (long)9223372036854775807L || 3 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_1, (Py_ssize_t)3, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_1 , __Pyx_PyInt_From_long(3)))); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 69, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 69; (void)__pyx_lineno; __pyx_clineno = 4355; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4356 | __Pyx_GOTREF(__pyx_t_3); |
4357 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4358 | __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_3)(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &PyFloat_Type) ? ( ((PyFloatObject *)(__pyx_t_3))->ob_fval) : PyFloat_AsDouble (__pyx_t_3)); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_13 == (double)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 69, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 69; (void)__pyx_lineno; __pyx_clineno = 4358; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4359 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4360 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 69, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 69; (void)__pyx_lineno; __pyx_clineno = 4360; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4361 | ((__pyx_v_dataMatrix[__pyx_t_14])[3]) = __pyx_t_13; |
4362 | |
4363 | /* "abaqusFILReader.pyx":70 |
4364 | * dataMatrix[j][2] = data[i][2] |
4365 | * dataMatrix[j][3] = data[i][3] |
4366 | * dataMatrix[j][4] = data[i][4] # <<<<<<<<<<<<<< |
4367 | * dataMatrix[j][5] = data[i][5] |
4368 | * dataMatrix[j][6] = data[i][6] |
4369 | */ |
4370 | __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_i); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 70, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 70; (void)__pyx_lineno; __pyx_clineno = 4370; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4371 | __Pyx_GOTREF(__pyx_t_3); |
4372 | __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_3, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(4 < (long )9223372036854775807L || 4 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(4 > (long)(-9223372036854775807L -1) || 4 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(4 < (long)9223372036854775807L || 4 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_3, (Py_ssize_t)4, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_3 , __Pyx_PyInt_From_long(4)))); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 70, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 70; (void)__pyx_lineno; __pyx_clineno = 4372; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4373 | __Pyx_GOTREF(__pyx_t_1); |
4374 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4375 | __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_1)(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), &PyFloat_Type) ? ( ((PyFloatObject *)(__pyx_t_1))->ob_fval) : PyFloat_AsDouble (__pyx_t_1)); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_13 == (double)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 70, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 70; (void)__pyx_lineno; __pyx_clineno = 4375; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4376 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4377 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 70, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 70; (void)__pyx_lineno; __pyx_clineno = 4377; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4378 | ((__pyx_v_dataMatrix[__pyx_t_14])[4]) = __pyx_t_13; |
4379 | |
4380 | /* "abaqusFILReader.pyx":71 |
4381 | * dataMatrix[j][3] = data[i][3] |
4382 | * dataMatrix[j][4] = data[i][4] |
4383 | * dataMatrix[j][5] = data[i][5] # <<<<<<<<<<<<<< |
4384 | * dataMatrix[j][6] = data[i][6] |
4385 | * |
4386 | */ |
4387 | __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_i); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 71, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 71; (void)__pyx_lineno; __pyx_clineno = 4387; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4388 | __Pyx_GOTREF(__pyx_t_1); |
4389 | __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(5 < (long )9223372036854775807L || 5 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(5 > (long)(-9223372036854775807L -1) || 5 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(5 < (long)9223372036854775807L || 5 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_1, (Py_ssize_t)5, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_1 , __Pyx_PyInt_From_long(5)))); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 71, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 71; (void)__pyx_lineno; __pyx_clineno = 4389; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4390 | __Pyx_GOTREF(__pyx_t_3); |
4391 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4392 | __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_3)(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &PyFloat_Type) ? ( ((PyFloatObject *)(__pyx_t_3))->ob_fval) : PyFloat_AsDouble (__pyx_t_3)); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_13 == (double)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 71, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 71; (void)__pyx_lineno; __pyx_clineno = 4392; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4393 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4394 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 71, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 71; (void)__pyx_lineno; __pyx_clineno = 4394; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4395 | ((__pyx_v_dataMatrix[__pyx_t_14])[5]) = __pyx_t_13; |
4396 | |
4397 | /* "abaqusFILReader.pyx":72 |
4398 | * dataMatrix[j][4] = data[i][4] |
4399 | * dataMatrix[j][5] = data[i][5] |
4400 | * dataMatrix[j][6] = data[i][6] # <<<<<<<<<<<<<< |
4401 | * |
4402 | * j += 1 |
4403 | */ |
4404 | __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_i); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 72, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 72; (void)__pyx_lineno; __pyx_clineno = 4404; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4405 | __Pyx_GOTREF(__pyx_t_3); |
4406 | __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_3, 6, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(6 < (long )9223372036854775807L || 6 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(6 > (long)(-9223372036854775807L -1) || 6 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(6 < (long)9223372036854775807L || 6 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_3, (Py_ssize_t)6, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_3 , __Pyx_PyInt_From_long(6)))); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 72, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 72; (void)__pyx_lineno; __pyx_clineno = 4406; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4407 | __Pyx_GOTREF(__pyx_t_1); |
4408 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4409 | __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_1)(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), &PyFloat_Type) ? ( ((PyFloatObject *)(__pyx_t_1))->ob_fval) : PyFloat_AsDouble (__pyx_t_1)); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_13 == (double)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 72, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 72; (void)__pyx_lineno; __pyx_clineno = 4409; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4410 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4411 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 72, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 72; (void)__pyx_lineno; __pyx_clineno = 4411; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4412 | ((__pyx_v_dataMatrix[__pyx_t_14])[6]) = __pyx_t_13; |
4413 | |
4414 | /* "abaqusFILReader.pyx":74 |
4415 | * dataMatrix[j][6] = data[i][6] |
4416 | * |
4417 | * j += 1 # <<<<<<<<<<<<<< |
4418 | * |
4419 | * #print(data) |
4420 | */ |
4421 | __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_v_j, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 74, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 74; (void)__pyx_lineno; __pyx_clineno = 4421; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4422 | __Pyx_GOTREF(__pyx_t_1); |
4423 | __Pyx_DECREF_SET(__pyx_v_j, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_j; __pyx_v_j = __pyx_t_1 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4424 | __pyx_t_1 = 0; |
4425 | } |
4426 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4427 | |
4428 | /* "abaqusFILReader.pyx":78 |
4429 | * #print(data) |
4430 | * |
4431 | * numGridOut[0] = numGrid # <<<<<<<<<<<<<< |
4432 | * dataMatrixOut[0] = dataMatrix |
4433 | * |
4434 | */ |
4435 | (__pyx_v_numGridOut[0]) = __pyx_v_numGrid; |
4436 | |
4437 | /* "abaqusFILReader.pyx":79 |
4438 | * |
4439 | * numGridOut[0] = numGrid |
4440 | * dataMatrixOut[0] = dataMatrix # <<<<<<<<<<<<<< |
4441 | * |
4442 | * return 0 |
4443 | */ |
4444 | (__pyx_v_dataMatrixOut[0]) = __pyx_v_dataMatrix; |
4445 | |
4446 | /* "abaqusFILReader.pyx":81 |
4447 | * dataMatrixOut[0] = dataMatrix |
4448 | * |
4449 | * return 0 # <<<<<<<<<<<<<< |
4450 | * |
4451 | * |
4452 | */ |
4453 | __pyx_r = 0; |
4454 | goto __pyx_L0; |
4455 | |
4456 | /* "abaqusFILReader.pyx":32 |
4457 | * |
4458 | * # where variables are Grid Id, T1, T2, T3, R1, R2, R3 |
4459 | * cdef public int abaqus_parseFILDisplacement(const char *filename, int *numGridOut, double ***dataMatrixOut) except -1: # <<<<<<<<<<<<<< |
4460 | * |
4461 | * cdef: |
4462 | */ |
4463 | |
4464 | /* function exit code */ |
4465 | __pyx_L1_error:; |
4466 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); |
4467 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
4468 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); |
4469 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); |
4470 | __Pyx_XDECREF(__pyx_t_5)Py_XDECREF(((PyObject*)((__pyx_t_5)))); |
4471 | __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6)))); |
4472 | __Pyx_AddTraceback("abaqusFILReader.abaqus_parseFILDisplacement", __pyx_clineno, __pyx_lineno, __pyx_filename); |
4473 | __pyx_r = -1; |
4474 | __pyx_L0:; |
4475 | __Pyx_XDECREF(__pyx_v__)Py_XDECREF(((PyObject*)((__pyx_v__)))); |
4476 | __Pyx_XDECREF(__pyx_v_data)Py_XDECREF(((PyObject*)((__pyx_v_data)))); |
4477 | __Pyx_XDECREF(__pyx_v_i)Py_XDECREF(((PyObject*)((__pyx_v_i)))); |
4478 | __Pyx_XDECREF(__pyx_v_j)Py_XDECREF(((PyObject*)((__pyx_v_j)))); |
4479 | __Pyx_RefNannyFinishContext(); |
4480 | return __pyx_r; |
4481 | } |
4482 | |
4483 | /* "abaqusFILReader.pyx":85 |
4484 | * |
4485 | * # where variables are Element Id, vonMises |
4486 | * cdef public int abaqus_parseFILvonMises(const char *filename, int *numGridOut, double ***dataMatrixOut) except -1: # <<<<<<<<<<<<<< |
4487 | * |
4488 | * cdef: |
4489 | */ |
4490 | |
4491 | int abaqus_parseFILvonMises(char const *__pyx_v_filename, int *__pyx_v_numGridOut, double ***__pyx_v_dataMatrixOut) { |
4492 | int __pyx_v_numGrid; |
4493 | int __pyx_v_numVariable; |
4494 | double **__pyx_v_dataMatrix; |
4495 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_v__ = NULL((void*)0); |
4496 | PyObject *__pyx_v_data = NULL((void*)0); |
4497 | PyObject *__pyx_v_i = NULL((void*)0); |
4498 | PyObject *__pyx_v_j = NULL((void*)0); |
4499 | int __pyx_r; |
4500 | __Pyx_RefNannyDeclarations |
4501 | PyObject *__pyx_t_1 = NULL((void*)0); |
4502 | PyObject *__pyx_t_2 = NULL((void*)0); |
4503 | PyObject *__pyx_t_3 = NULL((void*)0); |
4504 | PyObject *__pyx_t_4 = NULL((void*)0); |
4505 | PyObject *__pyx_t_5 = NULL((void*)0); |
4506 | PyObject *__pyx_t_6 = NULL((void*)0); |
4507 | int __pyx_t_7; |
4508 | PyObject *(*__pyx_t_8)(PyObject *); |
4509 | Py_ssize_t __pyx_t_9; |
4510 | int __pyx_t_10; |
4511 | Py_ssize_t __pyx_t_11; |
4512 | int __pyx_t_12; |
4513 | double __pyx_t_13; |
4514 | Py_ssize_t __pyx_t_14; |
4515 | int __pyx_lineno = 0; |
4516 | const char *__pyx_filename = NULL((void*)0); |
4517 | int __pyx_clineno = 0; |
4518 | __Pyx_RefNannySetupContext("abaqus_parseFILvonMises", 1); |
4519 | |
4520 | /* "abaqusFILReader.pyx":89 |
4521 | * cdef: |
4522 | * int numGrid |
4523 | * int numVariable = 2 # <<<<<<<<<<<<<< |
4524 | * double **dataMatrix=NULL |
4525 | * |
4526 | */ |
4527 | __pyx_v_numVariable = 2; |
4528 | |
4529 | /* "abaqusFILReader.pyx":90 |
4530 | * int numGrid |
4531 | * int numVariable = 2 |
4532 | * double **dataMatrix=NULL # <<<<<<<<<<<<<< |
4533 | * |
4534 | * _, _, data = extractFilRecords(_str(filename)) |
4535 | */ |
4536 | __pyx_v_dataMatrix = NULL((void*)0); |
4537 | |
4538 | /* "abaqusFILReader.pyx":92 |
4539 | * double **dataMatrix=NULL |
4540 | * |
4541 | * _, _, data = extractFilRecords(_str(filename)) # <<<<<<<<<<<<<< |
4542 | * _, _, data = extractMisesFil(data) |
4543 | * |
4544 | */ |
4545 | __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_extractFilRecords)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_2) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_extractFilRecords)) : __Pyx__GetModuleGlobalName (__pyx_mstate_global->__pyx_n_s_extractFilRecords, &__pyx_dict_version , &__pyx_dict_cached_value);} while(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4545; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4546 | __Pyx_GOTREF(__pyx_t_2); |
4547 | __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_str)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_4) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_str)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global ->__pyx_n_s_str, &__pyx_dict_version, &__pyx_dict_cached_value );} while(0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4547; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4548 | __Pyx_GOTREF(__pyx_t_4); |
4549 | __pyx_t_5 = __Pyx_PyBytes_FromStringPyBytes_FromString(__pyx_v_filename); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4549; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4550 | __Pyx_GOTREF(__pyx_t_5); |
4551 | __pyx_t_6 = NULL((void*)0); |
4552 | __pyx_t_7 = 0; |
4553 | #if CYTHON_UNPACK_METHODS1 |
4554 | if (unlikely(PyMethod_Check(__pyx_t_4))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), & PyMethod_Type)), 0)) { |
4555 | __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_self); |
4556 | if (likely(__pyx_t_6)__builtin_expect(!!(__pyx_t_6), 1)) { |
4557 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_func); |
4558 | __Pyx_INCREF(__pyx_t_6)Py_INCREF(((PyObject*)((__pyx_t_6)))); |
4559 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
4560 | __Pyx_DECREF_SET(__pyx_t_4, function)do { PyObject *tmp = (PyObject *) __pyx_t_4; __pyx_t_4 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4561 | __pyx_t_7 = 1; |
4562 | } |
4563 | } |
4564 | #endif |
4565 | { |
4566 | PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; |
4567 | __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_4, __pyx_callargs+1-__pyx_t_7 , (size_t)(1+__pyx_t_7), ((void*)0)); |
4568 | __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
4569 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
4570 | if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4570; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4571 | __Pyx_GOTREF(__pyx_t_3); |
4572 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
4573 | } |
4574 | __pyx_t_4 = NULL((void*)0); |
4575 | __pyx_t_7 = 0; |
4576 | #if CYTHON_UNPACK_METHODS1 |
4577 | if (unlikely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyMethod_Type)), 0)) { |
4578 | __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self); |
4579 | if (likely(__pyx_t_4)__builtin_expect(!!(__pyx_t_4), 1)) { |
4580 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func); |
4581 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
4582 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
4583 | __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4584 | __pyx_t_7 = 1; |
4585 | } |
4586 | } |
4587 | #endif |
4588 | { |
4589 | PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; |
4590 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_7 , (size_t)(1+__pyx_t_7), ((void*)0)); |
4591 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
4592 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4593 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4593; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4594 | __Pyx_GOTREF(__pyx_t_1); |
4595 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4596 | } |
4597 | if ((likely(PyTuple_CheckExact(__pyx_t_1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_1)Py_IS_TYPE(((PyObject*)((__pyx_t_1))), &PyList_Type))) { |
4598 | PyObject* sequence = __pyx_t_1; |
4599 | Py_ssize_t size = __Pyx_PySequence_SIZE(sequence)Py_SIZE(((PyObject*)((sequence)))); |
4600 | if (unlikely(size != 3)__builtin_expect(!!(size != 3), 0)) { |
4601 | if (size > 3) __Pyx_RaiseTooManyValuesError(3); |
4602 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
4603 | __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4603; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4604 | } |
4605 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
4606 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((sequence))), & PyTuple_Type)), 1)) { |
4607 | __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 4607, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[0]); |
4608 | __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 4608, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[1]); |
4609 | __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 4609, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[2]); |
4610 | } else { |
4611 | __pyx_t_2 = PyList_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 4611, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[0]); |
4612 | __pyx_t_3 = PyList_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 4612, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[1]); |
4613 | __pyx_t_4 = PyList_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 4613, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[2]); |
4614 | } |
4615 | __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
4616 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
4617 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
4618 | #else |
4619 | __pyx_t_2 = PySequence_ITEM(sequence, 0)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 0) ); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4619; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4620 | __Pyx_GOTREF(__pyx_t_2); |
4621 | __pyx_t_3 = PySequence_ITEM(sequence, 1)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 1) ); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4621; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4622 | __Pyx_GOTREF(__pyx_t_3); |
4623 | __pyx_t_4 = PySequence_ITEM(sequence, 2)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 2) ); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4623; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4624 | __Pyx_GOTREF(__pyx_t_4); |
4625 | #endif |
4626 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4627 | } else { |
4628 | Py_ssize_t index = -1; |
4629 | __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4629; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4630 | __Pyx_GOTREF(__pyx_t_5); |
4631 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4632 | __pyx_t_8 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_5)(Py_TYPE(((PyObject*)((__pyx_t_5))))->tp_iternext); |
4633 | index = 0; __pyx_t_2 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) goto __pyx_L3_unpacking_failed; |
4634 | __Pyx_GOTREF(__pyx_t_2); |
4635 | index = 1; __pyx_t_3 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) goto __pyx_L3_unpacking_failed; |
4636 | __Pyx_GOTREF(__pyx_t_3); |
4637 | index = 2; __pyx_t_4 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) goto __pyx_L3_unpacking_failed; |
4638 | __Pyx_GOTREF(__pyx_t_4); |
4639 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_5), 3) < 0) __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4639; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4640 | __pyx_t_8 = NULL((void*)0); |
4641 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
4642 | goto __pyx_L4_unpacking_done; |
4643 | __pyx_L3_unpacking_failed:; |
4644 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
4645 | __pyx_t_8 = NULL((void*)0); |
4646 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
4647 | __PYX_ERR(0, 92, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 92; (void)__pyx_lineno; __pyx_clineno = 4647; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4648 | __pyx_L4_unpacking_done:; |
4649 | } |
4650 | __pyx_v__ = __pyx_t_2; |
4651 | __pyx_t_2 = 0; |
4652 | __Pyx_DECREF_SET(__pyx_v__, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v__; __pyx_v__ = __pyx_t_3 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4653 | __pyx_t_3 = 0; |
4654 | __pyx_v_data = __pyx_t_4; |
4655 | __pyx_t_4 = 0; |
4656 | |
4657 | /* "abaqusFILReader.pyx":93 |
4658 | * |
4659 | * _, _, data = extractFilRecords(_str(filename)) |
4660 | * _, _, data = extractMisesFil(data) # <<<<<<<<<<<<<< |
4661 | * |
4662 | * numGrid = int(len(data.keys())) |
4663 | */ |
4664 | __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_extractMisesFil)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_4) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_extractMisesFil)) : __Pyx__GetModuleGlobalName (__pyx_mstate_global->__pyx_n_s_extractMisesFil, &__pyx_dict_version , &__pyx_dict_cached_value);} while(0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4664; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4665 | __Pyx_GOTREF(__pyx_t_4); |
4666 | __pyx_t_3 = NULL((void*)0); |
4667 | __pyx_t_7 = 0; |
4668 | #if CYTHON_UNPACK_METHODS1 |
4669 | if (unlikely(PyMethod_Check(__pyx_t_4))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), & PyMethod_Type)), 0)) { |
4670 | __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_self); |
4671 | if (likely(__pyx_t_3)__builtin_expect(!!(__pyx_t_3), 1)) { |
4672 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_func); |
4673 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
4674 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
4675 | __Pyx_DECREF_SET(__pyx_t_4, function)do { PyObject *tmp = (PyObject *) __pyx_t_4; __pyx_t_4 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4676 | __pyx_t_7 = 1; |
4677 | } |
4678 | } |
4679 | #endif |
4680 | { |
4681 | PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_data}; |
4682 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_4, __pyx_callargs+1-__pyx_t_7 , (size_t)(1+__pyx_t_7), ((void*)0)); |
4683 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4684 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4684; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4685 | __Pyx_GOTREF(__pyx_t_1); |
4686 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
4687 | } |
4688 | if ((likely(PyTuple_CheckExact(__pyx_t_1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_1)Py_IS_TYPE(((PyObject*)((__pyx_t_1))), &PyList_Type))) { |
4689 | PyObject* sequence = __pyx_t_1; |
4690 | Py_ssize_t size = __Pyx_PySequence_SIZE(sequence)Py_SIZE(((PyObject*)((sequence)))); |
4691 | if (unlikely(size != 3)__builtin_expect(!!(size != 3), 0)) { |
4692 | if (size > 3) __Pyx_RaiseTooManyValuesError(3); |
4693 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
4694 | __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4694; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4695 | } |
4696 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
4697 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((sequence))), & PyTuple_Type)), 1)) { |
4698 | __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 4698, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[0]); |
4699 | __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 4699, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[1]); |
4700 | __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(sequence)", "abaqusFILReader.c" , 4700, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((sequence))))->ob_item[2]); |
4701 | } else { |
4702 | __pyx_t_4 = PyList_GET_ITEM(sequence, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 4702, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[0]); |
4703 | __pyx_t_3 = PyList_GET_ITEM(sequence, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 4703, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[1]); |
4704 | __pyx_t_2 = PyList_GET_ITEM(sequence, 2)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((sequence )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((sequence)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(sequence)", "abaqusFILReader.c" , 4704, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((sequence))))->ob_item[2]); |
4705 | } |
4706 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
4707 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
4708 | __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
4709 | #else |
4710 | __pyx_t_4 = PySequence_ITEM(sequence, 0)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 0) ); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4710; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4711 | __Pyx_GOTREF(__pyx_t_4); |
4712 | __pyx_t_3 = PySequence_ITEM(sequence, 1)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 1) ); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4712; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4713 | __Pyx_GOTREF(__pyx_t_3); |
4714 | __pyx_t_2 = PySequence_ITEM(sequence, 2)( Py_TYPE(((PyObject*)((sequence))))->tp_as_sequence->sq_item (sequence, 2) ); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4714; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4715 | __Pyx_GOTREF(__pyx_t_2); |
4716 | #endif |
4717 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4718 | } else { |
4719 | Py_ssize_t index = -1; |
4720 | __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4720; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4721 | __Pyx_GOTREF(__pyx_t_5); |
4722 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4723 | __pyx_t_8 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_5)(Py_TYPE(((PyObject*)((__pyx_t_5))))->tp_iternext); |
4724 | index = 0; __pyx_t_4 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) goto __pyx_L5_unpacking_failed; |
4725 | __Pyx_GOTREF(__pyx_t_4); |
4726 | index = 1; __pyx_t_3 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) goto __pyx_L5_unpacking_failed; |
4727 | __Pyx_GOTREF(__pyx_t_3); |
4728 | index = 2; __pyx_t_2 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) goto __pyx_L5_unpacking_failed; |
4729 | __Pyx_GOTREF(__pyx_t_2); |
4730 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_5), 3) < 0) __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4730; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4731 | __pyx_t_8 = NULL((void*)0); |
4732 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
4733 | goto __pyx_L6_unpacking_done; |
4734 | __pyx_L5_unpacking_failed:; |
4735 | __Pyx_DECREF(__pyx_t_5)Py_DECREF(((PyObject*)((__pyx_t_5)))); __pyx_t_5 = 0; |
4736 | __pyx_t_8 = NULL((void*)0); |
4737 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
4738 | __PYX_ERR(0, 93, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 93; (void)__pyx_lineno; __pyx_clineno = 4738; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4739 | __pyx_L6_unpacking_done:; |
4740 | } |
4741 | __Pyx_DECREF_SET(__pyx_v__, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v__; __pyx_v__ = __pyx_t_4 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4742 | __pyx_t_4 = 0; |
4743 | __Pyx_DECREF_SET(__pyx_v__, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v__; __pyx_v__ = __pyx_t_3 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4744 | __pyx_t_3 = 0; |
4745 | __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_data; __pyx_v_data = __pyx_t_2; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4746 | __pyx_t_2 = 0; |
4747 | |
4748 | /* "abaqusFILReader.pyx":95 |
4749 | * _, _, data = extractMisesFil(data) |
4750 | * |
4751 | * numGrid = int(len(data.keys())) # <<<<<<<<<<<<<< |
4752 | * |
4753 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4754 | */ |
4755 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_data, __pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 95, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 95; (void)__pyx_lineno; __pyx_clineno = 4755; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4756 | __Pyx_GOTREF(__pyx_t_2); |
4757 | __pyx_t_3 = NULL((void*)0); |
4758 | __pyx_t_7 = 0; |
4759 | #if CYTHON_UNPACK_METHODS1 |
4760 | if (likely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyMethod_Type)), 1)) { |
4761 | __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self); |
4762 | if (likely(__pyx_t_3)__builtin_expect(!!(__pyx_t_3), 1)) { |
4763 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func); |
4764 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
4765 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
4766 | __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4767 | __pyx_t_7 = 1; |
4768 | } |
4769 | } |
4770 | #endif |
4771 | { |
4772 | PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL((void*)0)}; |
4773 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_7, 0+__pyx_t_7)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_7 , (size_t)(0+__pyx_t_7), ((void*)0)); |
4774 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
4775 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 95, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 95; (void)__pyx_lineno; __pyx_clineno = 4775; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4776 | __Pyx_GOTREF(__pyx_t_1); |
4777 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4778 | } |
4779 | __pyx_t_9 = PyObject_LengthPyObject_Size(__pyx_t_1); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_9 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 95, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 95; (void)__pyx_lineno; __pyx_clineno = 4779; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4780 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4781 | __pyx_v_numGrid = ((int)__pyx_t_9); |
4782 | |
4783 | /* "abaqusFILReader.pyx":97 |
4784 | * numGrid = int(len(data.keys())) |
4785 | * |
4786 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) # <<<<<<<<<<<<<< |
4787 | * if not dataMatrix: |
4788 | * raise MemoryError() |
4789 | */ |
4790 | __pyx_v_dataMatrix = ((double **)EG_alloc((__pyx_v_numGrid * (sizeof(double *))))); |
4791 | |
4792 | /* "abaqusFILReader.pyx":98 |
4793 | * |
4794 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4795 | * if not dataMatrix: # <<<<<<<<<<<<<< |
4796 | * raise MemoryError() |
4797 | * |
4798 | */ |
4799 | __pyx_t_10 = (!(__pyx_v_dataMatrix != 0)); |
4800 | if (unlikely(__pyx_t_10)__builtin_expect(!!(__pyx_t_10), 0)) { |
4801 | |
4802 | /* "abaqusFILReader.pyx":99 |
4803 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4804 | * if not dataMatrix: |
4805 | * raise MemoryError() # <<<<<<<<<<<<<< |
4806 | * |
4807 | * i = 0 |
4808 | */ |
4809 | PyErr_NoMemory(); __PYX_ERR(0, 99, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 99; (void)__pyx_lineno; __pyx_clineno = 4809; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4810 | |
4811 | /* "abaqusFILReader.pyx":98 |
4812 | * |
4813 | * dataMatrix = <double **> cEGADS.EG_alloc(numGrid*sizeof(double *)) |
4814 | * if not dataMatrix: # <<<<<<<<<<<<<< |
4815 | * raise MemoryError() |
4816 | * |
4817 | */ |
4818 | } |
4819 | |
4820 | /* "abaqusFILReader.pyx":101 |
4821 | * raise MemoryError() |
4822 | * |
4823 | * i = 0 # <<<<<<<<<<<<<< |
4824 | * while i < numGrid: |
4825 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4826 | */ |
4827 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
4828 | __pyx_v_i = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
4829 | |
4830 | /* "abaqusFILReader.pyx":102 |
4831 | * |
4832 | * i = 0 |
4833 | * while i < numGrid: # <<<<<<<<<<<<<< |
4834 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4835 | * if not dataMatrix[i]: |
4836 | */ |
4837 | while (1) { |
4838 | __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_numGrid); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 102, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 102; (void)__pyx_lineno; __pyx_clineno = 4838; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4839 | __Pyx_GOTREF(__pyx_t_1); |
4840 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_i, __pyx_t_1, Py_LT0); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 102, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 102; (void)__pyx_lineno; __pyx_clineno = 4840; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4841 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
4842 | __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_10 < 0))__builtin_expect(!!((__pyx_t_10 < 0)), 0)) __PYX_ERR(0, 102, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 102; (void)__pyx_lineno; __pyx_clineno = 4842; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4843 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4844 | if (!__pyx_t_10) break; |
4845 | |
4846 | /* "abaqusFILReader.pyx":103 |
4847 | * i = 0 |
4848 | * while i < numGrid: |
4849 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) # <<<<<<<<<<<<<< |
4850 | * if not dataMatrix[i]: |
4851 | * j = 0 |
4852 | */ |
4853 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 103, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 103; (void)__pyx_lineno; __pyx_clineno = 4853; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4854 | (__pyx_v_dataMatrix[__pyx_t_9]) = ((double *)EG_alloc((__pyx_v_numVariable * (sizeof(double))))); |
4855 | |
4856 | /* "abaqusFILReader.pyx":104 |
4857 | * while i < numGrid: |
4858 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4859 | * if not dataMatrix[i]: # <<<<<<<<<<<<<< |
4860 | * j = 0 |
4861 | * while j < i: |
4862 | */ |
4863 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 104, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 104; (void)__pyx_lineno; __pyx_clineno = 4863; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4864 | __pyx_t_10 = (!((__pyx_v_dataMatrix[__pyx_t_9]) != 0)); |
4865 | if (__pyx_t_10) { |
4866 | |
4867 | /* "abaqusFILReader.pyx":105 |
4868 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4869 | * if not dataMatrix[i]: |
4870 | * j = 0 # <<<<<<<<<<<<<< |
4871 | * while j < i: |
4872 | * if dataMatrix[j]: |
4873 | */ |
4874 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
4875 | __pyx_v_j = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
4876 | |
4877 | /* "abaqusFILReader.pyx":106 |
4878 | * if not dataMatrix[i]: |
4879 | * j = 0 |
4880 | * while j < i: # <<<<<<<<<<<<<< |
4881 | * if dataMatrix[j]: |
4882 | * cEGADS.EG_free(dataMatrix[j]) |
4883 | */ |
4884 | while (1) { |
4885 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_j, __pyx_v_i, Py_LT0); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 106, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 106; (void)__pyx_lineno; __pyx_clineno = 4885; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4886 | __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_10 < 0))__builtin_expect(!!((__pyx_t_10 < 0)), 0)) __PYX_ERR(0, 106, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 106; (void)__pyx_lineno; __pyx_clineno = 4886; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4887 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
4888 | if (!__pyx_t_10) break; |
4889 | |
4890 | /* "abaqusFILReader.pyx":107 |
4891 | * j = 0 |
4892 | * while j < i: |
4893 | * if dataMatrix[j]: # <<<<<<<<<<<<<< |
4894 | * cEGADS.EG_free(dataMatrix[j]) |
4895 | * j += 1 |
4896 | */ |
4897 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 107, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 107; (void)__pyx_lineno; __pyx_clineno = 4897; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4898 | __pyx_t_10 = ((__pyx_v_dataMatrix[__pyx_t_9]) != 0); |
4899 | if (__pyx_t_10) { |
4900 | |
4901 | /* "abaqusFILReader.pyx":108 |
4902 | * while j < i: |
4903 | * if dataMatrix[j]: |
4904 | * cEGADS.EG_free(dataMatrix[j]) # <<<<<<<<<<<<<< |
4905 | * j += 1 |
4906 | * cEGADS.EG_free(dataMatrix) |
4907 | */ |
4908 | __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 108, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 108; (void)__pyx_lineno; __pyx_clineno = 4908; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4909 | EG_free((__pyx_v_dataMatrix[__pyx_t_9])); |
4910 | |
4911 | /* "abaqusFILReader.pyx":107 |
4912 | * j = 0 |
4913 | * while j < i: |
4914 | * if dataMatrix[j]: # <<<<<<<<<<<<<< |
4915 | * cEGADS.EG_free(dataMatrix[j]) |
4916 | * j += 1 |
4917 | */ |
4918 | } |
4919 | |
4920 | /* "abaqusFILReader.pyx":109 |
4921 | * if dataMatrix[j]: |
4922 | * cEGADS.EG_free(dataMatrix[j]) |
4923 | * j += 1 # <<<<<<<<<<<<<< |
4924 | * cEGADS.EG_free(dataMatrix) |
4925 | * |
4926 | */ |
4927 | __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_j, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 109, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 109; (void)__pyx_lineno; __pyx_clineno = 4927; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4928 | __Pyx_GOTREF(__pyx_t_2); |
4929 | __Pyx_DECREF_SET(__pyx_v_j, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_j; __pyx_v_j = __pyx_t_2 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4930 | __pyx_t_2 = 0; |
4931 | } |
4932 | |
4933 | /* "abaqusFILReader.pyx":110 |
4934 | * cEGADS.EG_free(dataMatrix[j]) |
4935 | * j += 1 |
4936 | * cEGADS.EG_free(dataMatrix) # <<<<<<<<<<<<<< |
4937 | * |
4938 | * raise MemoryError() |
4939 | */ |
4940 | EG_free(__pyx_v_dataMatrix); |
4941 | |
4942 | /* "abaqusFILReader.pyx":112 |
4943 | * cEGADS.EG_free(dataMatrix) |
4944 | * |
4945 | * raise MemoryError() # <<<<<<<<<<<<<< |
4946 | * |
4947 | * i += 1 |
4948 | */ |
4949 | PyErr_NoMemory(); __PYX_ERR(0, 112, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 112; (void)__pyx_lineno; __pyx_clineno = 4949; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4950 | |
4951 | /* "abaqusFILReader.pyx":104 |
4952 | * while i < numGrid: |
4953 | * dataMatrix[i] = <double *> cEGADS.EG_alloc(numVariable*sizeof(double)) |
4954 | * if not dataMatrix[i]: # <<<<<<<<<<<<<< |
4955 | * j = 0 |
4956 | * while j < i: |
4957 | */ |
4958 | } |
4959 | |
4960 | /* "abaqusFILReader.pyx":114 |
4961 | * raise MemoryError() |
4962 | * |
4963 | * i += 1 # <<<<<<<<<<<<<< |
4964 | * |
4965 | * j = 0 |
4966 | */ |
4967 | __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 114, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 114; (void)__pyx_lineno; __pyx_clineno = 4967; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4968 | __Pyx_GOTREF(__pyx_t_2); |
4969 | __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_i; __pyx_v_i = __pyx_t_2 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
4970 | __pyx_t_2 = 0; |
4971 | } |
4972 | |
4973 | /* "abaqusFILReader.pyx":116 |
4974 | * i += 1 |
4975 | * |
4976 | * j = 0 # <<<<<<<<<<<<<< |
4977 | * for i in data.keys(): |
4978 | * dataMatrix[j][0] = float(i) |
4979 | */ |
4980 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
4981 | __pyx_v_j = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
4982 | |
4983 | /* "abaqusFILReader.pyx":117 |
4984 | * |
4985 | * j = 0 |
4986 | * for i in data.keys(): # <<<<<<<<<<<<<< |
4987 | * dataMatrix[j][0] = float(i) |
4988 | * |
4989 | */ |
4990 | __pyx_t_9 = 0; |
4991 | if (unlikely(__pyx_v_data == Py_None)__builtin_expect(!!(__pyx_v_data == (&_Py_NoneStruct)), 0 )) { |
4992 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys"); |
4993 | __PYX_ERR(0, 117, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 117; (void)__pyx_lineno; __pyx_clineno = 4993; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4994 | } |
4995 | __pyx_t_1 = __Pyx_dict_iterator(__pyx_v_data, 0, __pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys, (&__pyx_t_11), (&__pyx_t_7)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 117, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 117; (void)__pyx_lineno; __pyx_clineno = 4995; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
4996 | __Pyx_GOTREF(__pyx_t_1); |
4997 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
4998 | __pyx_t_2 = __pyx_t_1; |
4999 | __pyx_t_1 = 0; |
5000 | while (1) { |
5001 | __pyx_t_12 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_11, &__pyx_t_9, &__pyx_t_1, NULL((void*)0), NULL((void*)0), __pyx_t_7); |
5002 | if (unlikely(__pyx_t_12 == 0)__builtin_expect(!!(__pyx_t_12 == 0), 0)) break; |
5003 | if (unlikely(__pyx_t_12 == -1)__builtin_expect(!!(__pyx_t_12 == -1), 0)) __PYX_ERR(0, 117, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 117; (void)__pyx_lineno; __pyx_clineno = 5003; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5004 | __Pyx_GOTREF(__pyx_t_1); |
5005 | __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_i; __pyx_v_i = __pyx_t_1 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
5006 | __pyx_t_1 = 0; |
5007 | |
5008 | /* "abaqusFILReader.pyx":118 |
5009 | * j = 0 |
5010 | * for i in data.keys(): |
5011 | * dataMatrix[j][0] = float(i) # <<<<<<<<<<<<<< |
5012 | * |
5013 | * dataMatrix[j][1] = data[i][1] |
5014 | */ |
5015 | __pyx_t_13 = __Pyx_PyObject_AsDouble(__pyx_v_i)((__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_i))), & PyFloat_Type)), 1)) ? (((PyFloatObject *)(__pyx_v_i))->ob_fval ) : __builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_i))) , &PyLong_Type)), 1) ? PyLong_AsDouble(__pyx_v_i) : __Pyx__PyObject_AsDouble (__pyx_v_i)); if (unlikely(__pyx_t_13 == ((double)((double)-1)) && PyErr_Occurred())__builtin_expect(!!(__pyx_t_13 == ((double)((double)-1)) && PyErr_Occurred()), 0)) __PYX_ERR(0, 118, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 118; (void)__pyx_lineno; __pyx_clineno = 5015; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5016 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 118, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 118; (void)__pyx_lineno; __pyx_clineno = 5016; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5017 | ((__pyx_v_dataMatrix[__pyx_t_14])[0]) = __pyx_t_13; |
5018 | |
5019 | /* "abaqusFILReader.pyx":120 |
5020 | * dataMatrix[j][0] = float(i) |
5021 | * |
5022 | * dataMatrix[j][1] = data[i][1] # <<<<<<<<<<<<<< |
5023 | * |
5024 | * j += 1 |
5025 | */ |
5026 | __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_i); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 120, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 120; (void)__pyx_lineno; __pyx_clineno = 5026; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5027 | __Pyx_GOTREF(__pyx_t_1); |
5028 | __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(1 < (long )9223372036854775807L || 1 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(1 > (long)(-9223372036854775807L -1) || 1 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(1 < (long)9223372036854775807L || 1 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_1, (Py_ssize_t)1, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_1 , __Pyx_PyInt_From_long(1)))); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 120, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 120; (void)__pyx_lineno; __pyx_clineno = 5028; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5029 | __Pyx_GOTREF(__pyx_t_3); |
5030 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5031 | __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_3)(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &PyFloat_Type) ? ( ((PyFloatObject *)(__pyx_t_3))->ob_fval) : PyFloat_AsDouble (__pyx_t_3)); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_13 == (double)-1) && PyErr_Occurred ()), 0)) __PYX_ERR(0, 120, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 120; (void)__pyx_lineno; __pyx_clineno = 5031; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5032 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
5033 | __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred()), 0)) __PYX_ERR(0, 120, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 120; (void)__pyx_lineno; __pyx_clineno = 5033; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5034 | ((__pyx_v_dataMatrix[__pyx_t_14])[1]) = __pyx_t_13; |
5035 | |
5036 | /* "abaqusFILReader.pyx":122 |
5037 | * dataMatrix[j][1] = data[i][1] |
5038 | * |
5039 | * j += 1 # <<<<<<<<<<<<<< |
5040 | * |
5041 | * #print(data) |
5042 | */ |
5043 | __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_j, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 122, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 122; (void)__pyx_lineno; __pyx_clineno = 5043; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5044 | __Pyx_GOTREF(__pyx_t_3); |
5045 | __Pyx_DECREF_SET(__pyx_v_j, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v_j; __pyx_v_j = __pyx_t_3 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
5046 | __pyx_t_3 = 0; |
5047 | } |
5048 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
5049 | |
5050 | /* "abaqusFILReader.pyx":126 |
5051 | * #print(data) |
5052 | * |
5053 | * numGridOut[0] = numGrid # <<<<<<<<<<<<<< |
5054 | * dataMatrixOut[0] = dataMatrix |
5055 | * |
5056 | */ |
5057 | (__pyx_v_numGridOut[0]) = __pyx_v_numGrid; |
5058 | |
5059 | /* "abaqusFILReader.pyx":127 |
5060 | * |
5061 | * numGridOut[0] = numGrid |
5062 | * dataMatrixOut[0] = dataMatrix # <<<<<<<<<<<<<< |
5063 | * |
5064 | * return 0 |
5065 | */ |
5066 | (__pyx_v_dataMatrixOut[0]) = __pyx_v_dataMatrix; |
5067 | |
5068 | /* "abaqusFILReader.pyx":129 |
5069 | * dataMatrixOut[0] = dataMatrix |
5070 | * |
5071 | * return 0 # <<<<<<<<<<<<<< |
5072 | * |
5073 | * #-------------------------------- |
5074 | */ |
5075 | __pyx_r = 0; |
5076 | goto __pyx_L0; |
5077 | |
5078 | /* "abaqusFILReader.pyx":85 |
5079 | * |
5080 | * # where variables are Element Id, vonMises |
5081 | * cdef public int abaqus_parseFILvonMises(const char *filename, int *numGridOut, double ***dataMatrixOut) except -1: # <<<<<<<<<<<<<< |
5082 | * |
5083 | * cdef: |
5084 | */ |
5085 | |
5086 | /* function exit code */ |
5087 | __pyx_L1_error:; |
5088 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); |
5089 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
5090 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); |
5091 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); |
5092 | __Pyx_XDECREF(__pyx_t_5)Py_XDECREF(((PyObject*)((__pyx_t_5)))); |
5093 | __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6)))); |
5094 | __Pyx_AddTraceback("abaqusFILReader.abaqus_parseFILvonMises", __pyx_clineno, __pyx_lineno, __pyx_filename); |
5095 | __pyx_r = -1; |
5096 | __pyx_L0:; |
5097 | __Pyx_XDECREF(__pyx_v__)Py_XDECREF(((PyObject*)((__pyx_v__)))); |
5098 | __Pyx_XDECREF(__pyx_v_data)Py_XDECREF(((PyObject*)((__pyx_v_data)))); |
5099 | __Pyx_XDECREF(__pyx_v_i)Py_XDECREF(((PyObject*)((__pyx_v_i)))); |
5100 | __Pyx_XDECREF(__pyx_v_j)Py_XDECREF(((PyObject*)((__pyx_v_j)))); |
5101 | __Pyx_RefNannyFinishContext(); |
5102 | return __pyx_r; |
5103 | } |
5104 | |
5105 | /* "abaqusFILReader.pyx":134 |
5106 | * # pull out displacement or von mises stress from file. |
5107 | * |
5108 | * def extractDispFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
5109 | * """Pulls out the node displacement values from a node output file |
5110 | * and returns a dictionary of the values. |
5111 | */ |
5112 | |
5113 | /* Python wrapper */ |
5114 | static PyObject *__pyx_pw_15abaqusFILReader_3extractDispFil(PyObject *__pyx_self, |
5115 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5116 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
5117 | #else |
5118 | PyObject *__pyx_args, PyObject *__pyx_kwds |
5119 | #endif |
5120 | ); /*proto*/ |
5121 | PyDoc_STRVAR(__pyx_doc_15abaqusFILReader_2extractDispFil, "Pulls out the node displacement values from a node output file\n and returns a dictionary of the values.\n\n Returns [status, message, displacements]. Status of 0 is good.\n Displacements is a dictionary with node numbers and U and UR\n status 2 means there was no displacement in files\n Status 3 means the file doesn't exist\n ")static const char __pyx_doc_15abaqusFILReader_2extractDispFil [] = "Pulls out the node displacement values from a node output file\n and returns a dictionary of the values.\n\n Returns [status, message, displacements]. Status of 0 is good.\n Displacements is a dictionary with node numbers and U and UR\n status 2 means there was no displacement in files\n Status 3 means the file doesn't exist\n "; |
5122 | static PyMethodDef __pyx_mdef_15abaqusFILReader_3extractDispFil = {"extractDispFil", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords)__pyx_pw_15abaqusFILReader_3extractDispFil, __Pyx_METH_FASTCALL0x0080|METH_KEYWORDS0x0002, __pyx_doc_15abaqusFILReader_2extractDispFil}; |
5123 | static PyObject *__pyx_pw_15abaqusFILReader_3extractDispFil(PyObject *__pyx_self, |
5124 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5125 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
5126 | #else |
5127 | PyObject *__pyx_args, PyObject *__pyx_kwds |
5128 | #endif |
5129 | ) { |
5130 | PyObject *__pyx_v_ParsedData = 0; |
5131 | PyObject *__pyx_v_debug = 0; |
5132 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5133 | CYTHON_UNUSED__attribute__ ((__unused__)) Py_ssize_t __pyx_nargs; |
5134 | #endif |
5135 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *const *__pyx_kwvalues; |
5136 | PyObject* values[2] = {0,0}; |
5137 | int __pyx_lineno = 0; |
5138 | const char *__pyx_filename = NULL((void*)0); |
5139 | int __pyx_clineno = 0; |
5140 | PyObject *__pyx_r = 0; |
5141 | __Pyx_RefNannyDeclarations |
5142 | __Pyx_RefNannySetupContext("extractDispFil (wrapper)", 0); |
5143 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5144 | #if CYTHON_ASSUME_SAFE_MACROS1 |
5145 | __pyx_nargs = PyTuple_GET_SIZE(__pyx_args)PyTuple_GET_SIZE(((PyObject*)((__pyx_args)))); |
5146 | #else |
5147 | __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)__builtin_expect(!!(__pyx_nargs < 0), 0)) return NULL((void*)0); |
5148 | #endif |
5149 | #endif |
5150 | __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs)((__pyx_args) + (__pyx_nargs)); |
5151 | { |
5152 | PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData,&__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug,0}; |
5153 | values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)((PyObject *)Py_False)))((PyObject *)((PyObject *)((PyObject *) &_Py_FalseStruct) )); |
5154 | if (__pyx_kwds) { |
5155 | Py_ssize_t kw_args; |
5156 | switch (__pyx_nargs) { |
5157 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
5158 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5159 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
5160 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5161 | case 0: break; |
5162 | default: goto __pyx_L5_argtuple_error; |
5163 | } |
5164 | kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds)PyTuple_GET_SIZE(((PyObject*)((__pyx_kwds)))); |
5165 | switch (__pyx_nargs) { |
5166 | case 0: |
5167 | if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ParsedData)) != 0)__builtin_expect(!!((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_ParsedData )) != 0), 1)) { |
5168 | (void)__Pyx_Arg_NewRef_FASTCALL(values[0])values[0]; |
5169 | kw_args--; |
5170 | } |
5171 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 134, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 5171; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5172 | else goto __pyx_L5_argtuple_error; |
5173 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5174 | case 1: |
5175 | if (kw_args > 0) { |
5176 | PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug); |
5177 | if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value)value; kw_args--; } |
5178 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 134, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 5178; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5179 | } |
5180 | } |
5181 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
5182 | const Py_ssize_t kwd_pos_args = __pyx_nargs; |
5183 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractDispFil") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues , __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractDispFil" ) < 0), 0)) __PYX_ERR(0, 134, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 5183; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5184 | } |
5185 | } else { |
5186 | switch (__pyx_nargs) { |
5187 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
5188 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5189 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
5190 | break; |
5191 | default: goto __pyx_L5_argtuple_error; |
5192 | } |
5193 | } |
5194 | __pyx_v_ParsedData = values[0]; |
5195 | __pyx_v_debug = values[1]; |
5196 | } |
5197 | goto __pyx_L6_skip; |
5198 | __pyx_L5_argtuple_error:; |
5199 | __Pyx_RaiseArgtupleInvalid("extractDispFil", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 134, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 5199; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5200 | __pyx_L6_skip:; |
5201 | goto __pyx_L4_argument_unpacking_done; |
5202 | __pyx_L3_error:; |
5203 | { |
5204 | Py_ssize_t __pyx_temp; |
5205 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
5206 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
5207 | } |
5208 | } |
5209 | __Pyx_AddTraceback("abaqusFILReader.extractDispFil", __pyx_clineno, __pyx_lineno, __pyx_filename); |
5210 | __Pyx_RefNannyFinishContext(); |
5211 | return NULL((void*)0); |
5212 | __pyx_L4_argument_unpacking_done:; |
5213 | __pyx_r = __pyx_pf_15abaqusFILReader_2extractDispFil(__pyx_self, __pyx_v_ParsedData, __pyx_v_debug); |
5214 | |
5215 | /* function exit code */ |
5216 | { |
5217 | Py_ssize_t __pyx_temp; |
5218 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
5219 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
5220 | } |
5221 | } |
5222 | __Pyx_RefNannyFinishContext(); |
5223 | return __pyx_r; |
5224 | } |
5225 | |
5226 | static PyObject *__pyx_pf_15abaqusFILReader_2extractDispFil(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_ParsedData, PyObject *__pyx_v_debug) { |
5227 | PyObject *__pyx_v_output = NULL((void*)0); |
5228 | PyObject *__pyx_v_record = NULL((void*)0); |
5229 | PyObject *__pyx_v_data = NULL((void*)0); |
5230 | PyObject *__pyx_v_displacements = NULL((void*)0); |
5231 | PyObject *__pyx_v_k = NULL((void*)0); |
5232 | PyObject *__pyx_r = NULL((void*)0); |
5233 | __Pyx_RefNannyDeclarations |
5234 | PyObject *__pyx_t_1 = NULL((void*)0); |
5235 | PyObject *__pyx_t_2 = NULL((void*)0); |
5236 | int __pyx_t_3; |
5237 | Py_ssize_t __pyx_t_4; |
5238 | PyObject *(*__pyx_t_5)(PyObject *); |
5239 | int __pyx_t_6; |
5240 | PyObject *__pyx_t_7 = NULL((void*)0); |
5241 | Py_ssize_t __pyx_t_8; |
5242 | int __pyx_lineno = 0; |
5243 | const char *__pyx_filename = NULL((void*)0); |
5244 | int __pyx_clineno = 0; |
5245 | __Pyx_RefNannySetupContext("extractDispFil", 1); |
5246 | |
5247 | /* "abaqusFILReader.pyx":144 |
5248 | * """ |
5249 | * #Get data in a single string |
5250 | * output=[] # <<<<<<<<<<<<<< |
5251 | * if ParsedData != []: |
5252 | * for record in ParsedData: |
5253 | */ |
5254 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 144, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 144; (void)__pyx_lineno; __pyx_clineno = 5254; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5255 | __Pyx_GOTREF(__pyx_t_1); |
5256 | __pyx_v_output = ((PyObject*)__pyx_t_1); |
5257 | __pyx_t_1 = 0; |
5258 | |
5259 | /* "abaqusFILReader.pyx":145 |
5260 | * #Get data in a single string |
5261 | * output=[] |
5262 | * if ParsedData != []: # <<<<<<<<<<<<<< |
5263 | * for record in ParsedData: |
5264 | * if record[0]==101: |
5265 | */ |
5266 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 145, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 145; (void)__pyx_lineno; __pyx_clineno = 5266; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5267 | __Pyx_GOTREF(__pyx_t_1); |
5268 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_ParsedData, __pyx_t_1, Py_NE3); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 145, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 145; (void)__pyx_lineno; __pyx_clineno = 5268; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5269 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5270 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 145, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 145; (void)__pyx_lineno; __pyx_clineno = 5270; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5271 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
5272 | if (__pyx_t_3) { |
5273 | |
5274 | /* "abaqusFILReader.pyx":146 |
5275 | * output=[] |
5276 | * if ParsedData != []: |
5277 | * for record in ParsedData: # <<<<<<<<<<<<<< |
5278 | * if record[0]==101: |
5279 | * output.append(record[1:]) |
5280 | */ |
5281 | if (likely(PyList_CheckExact(__pyx_v_ParsedData))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_ParsedData ))), &PyList_Type)), 1) || PyTuple_CheckExact(__pyx_v_ParsedData)Py_IS_TYPE(((PyObject*)((__pyx_v_ParsedData))), &PyTuple_Type )) { |
5282 | __pyx_t_2 = __pyx_v_ParsedData; __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
5283 | __pyx_t_4 = 0; |
5284 | __pyx_t_5 = NULL((void*)0); |
5285 | } else { |
5286 | __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_ParsedData); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5286; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5287 | __Pyx_GOTREF(__pyx_t_2); |
5288 | __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2)(Py_TYPE(((PyObject*)((__pyx_t_2))))->tp_iternext); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5288; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5289 | } |
5290 | for (;;) { |
5291 | if (likely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 1)) { |
5292 | if (likely(PyList_CheckExact(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyList_Type)), 1)) { |
5293 | { |
5294 | Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2)PyList_GET_SIZE(((PyObject*)((__pyx_t_2)))); |
5295 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
5296 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5296; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5297 | #endif |
5298 | if (__pyx_t_4 >= __pyx_temp) break; |
5299 | } |
5300 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
5301 | __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_2 )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_2)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(__pyx_t_2)", "abaqusFILReader.c" , 5301, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((__pyx_t_2))))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); __pyx_t_4++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5301; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5302 | #else |
5303 | __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4)( Py_TYPE(((PyObject*)((__pyx_t_2))))->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5303; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5304 | __Pyx_GOTREF(__pyx_t_1); |
5305 | #endif |
5306 | } else { |
5307 | { |
5308 | Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2)PyTuple_GET_SIZE(((PyObject*)((__pyx_t_2)))); |
5309 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
5310 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5310; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5311 | #endif |
5312 | if (__pyx_t_4 >= __pyx_temp) break; |
5313 | } |
5314 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
5315 | __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_2 )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_2)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(__pyx_t_2)", "abaqusFILReader.c" , 5315, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((__pyx_t_2))))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); __pyx_t_4++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5315; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5316 | #else |
5317 | __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4)( Py_TYPE(((PyObject*)((__pyx_t_2))))->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5317; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5318 | __Pyx_GOTREF(__pyx_t_1); |
5319 | #endif |
5320 | } |
5321 | } else { |
5322 | __pyx_t_1 = __pyx_t_5(__pyx_t_2); |
5323 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) { |
5324 | PyObject* exc_type = PyErr_Occurred(); |
5325 | if (exc_type) { |
5326 | if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(exc_type , PyExc_StopIteration)), 1)) PyErr_Clear(); |
5327 | else __PYX_ERR(0, 146, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 146; (void)__pyx_lineno; __pyx_clineno = 5327; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5328 | } |
5329 | break; |
5330 | } |
5331 | __Pyx_GOTREF(__pyx_t_1); |
5332 | } |
5333 | __Pyx_XDECREF_SET(__pyx_v_record, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_record; __pyx_v_record = __pyx_t_1; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
5334 | __pyx_t_1 = 0; |
5335 | |
5336 | /* "abaqusFILReader.pyx":147 |
5337 | * if ParsedData != []: |
5338 | * for record in ParsedData: |
5339 | * if record[0]==101: # <<<<<<<<<<<<<< |
5340 | * output.append(record[1:]) |
5341 | * if output==[]: |
5342 | */ |
5343 | __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_record, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(0 < (long )9223372036854775807L || 0 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(0 > (long)(-9223372036854775807L -1) || 0 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_v_record, (Py_ssize_t )0, 0, 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_v_record , __Pyx_PyInt_From_long(0)))); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 147, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 147; (void)__pyx_lineno; __pyx_clineno = 5343; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5344 | __Pyx_GOTREF(__pyx_t_1); |
5345 | __pyx_t_3 = (__Pyx_PyInt_BoolEqObjC(__pyx_t_1, __pyx_int_101__pyx_mstate_global->__pyx_int_101, 0x65, 0)); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 147, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 147; (void)__pyx_lineno; __pyx_clineno = 5345; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5346 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5347 | if (__pyx_t_3) { |
5348 | |
5349 | /* "abaqusFILReader.pyx":148 |
5350 | * for record in ParsedData: |
5351 | * if record[0]==101: |
5352 | * output.append(record[1:]) # <<<<<<<<<<<<<< |
5353 | * if output==[]: |
5354 | * return [2,"no data found",{}] |
5355 | */ |
5356 | __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_record, 1, 0, NULL((void*)0), NULL((void*)0), &__pyx_slice___pyx_mstate_global->__pyx_slice_, 1, 0, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 148, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 148; (void)__pyx_lineno; __pyx_clineno = 5356; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5357 | __Pyx_GOTREF(__pyx_t_1); |
5358 | __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_output, __pyx_t_1); if (unlikely(__pyx_t_6 == ((int)-1))__builtin_expect(!!(__pyx_t_6 == ((int)-1)), 0)) __PYX_ERR(0, 148, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 148; (void)__pyx_lineno; __pyx_clineno = 5358; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5359 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5360 | |
5361 | /* "abaqusFILReader.pyx":147 |
5362 | * if ParsedData != []: |
5363 | * for record in ParsedData: |
5364 | * if record[0]==101: # <<<<<<<<<<<<<< |
5365 | * output.append(record[1:]) |
5366 | * if output==[]: |
5367 | */ |
5368 | } |
5369 | |
5370 | /* "abaqusFILReader.pyx":146 |
5371 | * output=[] |
5372 | * if ParsedData != []: |
5373 | * for record in ParsedData: # <<<<<<<<<<<<<< |
5374 | * if record[0]==101: |
5375 | * output.append(record[1:]) |
5376 | */ |
5377 | } |
5378 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
5379 | |
5380 | /* "abaqusFILReader.pyx":149 |
5381 | * if record[0]==101: |
5382 | * output.append(record[1:]) |
5383 | * if output==[]: # <<<<<<<<<<<<<< |
5384 | * return [2,"no data found",{}] |
5385 | * else: |
5386 | */ |
5387 | __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 149, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 149; (void)__pyx_lineno; __pyx_clineno = 5387; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5388 | __Pyx_GOTREF(__pyx_t_2); |
5389 | __pyx_t_1 = PyObject_RichCompare(__pyx_v_output, __pyx_t_2, Py_EQ2); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 149, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 149; (void)__pyx_lineno; __pyx_clineno = 5389; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5390 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
5391 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 149, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 149; (void)__pyx_lineno; __pyx_clineno = 5391; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5392 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5393 | if (__pyx_t_3) { |
5394 | |
5395 | /* "abaqusFILReader.pyx":150 |
5396 | * output.append(record[1:]) |
5397 | * if output==[]: |
5398 | * return [2,"no data found",{}] # <<<<<<<<<<<<<< |
5399 | * else: |
5400 | * |
5401 | */ |
5402 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
5403 | __pyx_t_1 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 150, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 150; (void)__pyx_lineno; __pyx_clineno = 5403; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5404 | __Pyx_GOTREF(__pyx_t_1); |
5405 | __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 150, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 150; (void)__pyx_lineno; __pyx_clineno = 5405; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5406 | __Pyx_GOTREF(__pyx_t_2); |
5407 | __Pyx_INCREF(__pyx_int_2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_2)) )); |
5408 | __Pyx_GIVEREF(__pyx_int_2); |
5409 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_2)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_2)))), (0))) __PYX_ERR(0, 150, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 150; (void)__pyx_lineno; __pyx_clineno = 5409; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5410 | __Pyx_INCREF(__pyx_kp_u_no_data_found)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_no_data_found )))); |
5411 | __Pyx_GIVEREF(__pyx_kp_u_no_data_found); |
5412 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_u_no_data_found)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_no_data_found)))), (0))) __PYX_ERR(0, 150, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 150; (void)__pyx_lineno; __pyx_clineno = 5412; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5413 | __Pyx_GIVEREF(__pyx_t_1); |
5414 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_t_1)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 2, ((PyObject*)( (__pyx_t_1)))), (0))) __PYX_ERR(0, 150, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 150; (void)__pyx_lineno; __pyx_clineno = 5414; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5415 | __pyx_t_1 = 0; |
5416 | __pyx_r = __pyx_t_2; |
5417 | __pyx_t_2 = 0; |
5418 | goto __pyx_L0; |
5419 | |
5420 | /* "abaqusFILReader.pyx":149 |
5421 | * if record[0]==101: |
5422 | * output.append(record[1:]) |
5423 | * if output==[]: # <<<<<<<<<<<<<< |
5424 | * return [2,"no data found",{}] |
5425 | * else: |
5426 | */ |
5427 | } |
5428 | |
5429 | /* "abaqusFILReader.pyx":153 |
5430 | * else: |
5431 | * |
5432 | * data={} # <<<<<<<<<<<<<< |
5433 | * |
5434 | * for record in output: |
5435 | */ |
5436 | /*else*/ { |
5437 | __pyx_t_2 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 153, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 153; (void)__pyx_lineno; __pyx_clineno = 5437; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5438 | __Pyx_GOTREF(__pyx_t_2); |
5439 | __pyx_v_data = ((PyObject*)__pyx_t_2); |
5440 | __pyx_t_2 = 0; |
5441 | |
5442 | /* "abaqusFILReader.pyx":155 |
5443 | * data={} |
5444 | * |
5445 | * for record in output: # <<<<<<<<<<<<<< |
5446 | * if record==None: |
5447 | * pass |
5448 | */ |
5449 | __pyx_t_2 = __pyx_v_output; __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
5450 | __pyx_t_4 = 0; |
5451 | for (;;) { |
5452 | { |
5453 | Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2)PyList_GET_SIZE(((PyObject*)((__pyx_t_2)))); |
5454 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
5455 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 155, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 155; (void)__pyx_lineno; __pyx_clineno = 5455; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5456 | #endif |
5457 | if (__pyx_t_4 >= __pyx_temp) break; |
5458 | } |
5459 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
5460 | __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_2 )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_2)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(__pyx_t_2)", "abaqusFILReader.c" , 5460, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((__pyx_t_2))))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); __pyx_t_4++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 155, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 155; (void)__pyx_lineno; __pyx_clineno = 5460; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5461 | #else |
5462 | __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4)( Py_TYPE(((PyObject*)((__pyx_t_2))))->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 155, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 155; (void)__pyx_lineno; __pyx_clineno = 5462; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5463 | __Pyx_GOTREF(__pyx_t_1); |
5464 | #endif |
5465 | __Pyx_XDECREF_SET(__pyx_v_record, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_record; __pyx_v_record = __pyx_t_1; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
5466 | __pyx_t_1 = 0; |
5467 | |
5468 | /* "abaqusFILReader.pyx":156 |
5469 | * |
5470 | * for record in output: |
5471 | * if record==None: # <<<<<<<<<<<<<< |
5472 | * pass |
5473 | * else: |
5474 | */ |
5475 | __pyx_t_1 = PyObject_RichCompare(__pyx_v_record, Py_None(&_Py_NoneStruct), Py_EQ2); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 156, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 156; (void)__pyx_lineno; __pyx_clineno = 5475; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5476 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 156, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 156; (void)__pyx_lineno; __pyx_clineno = 5476; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5477 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5478 | if (__pyx_t_3) { |
5479 | goto __pyx_L11; |
5480 | } |
5481 | |
5482 | /* "abaqusFILReader.pyx":160 |
5483 | * else: |
5484 | * #NodeNum=record[0] |
5485 | * displacements={} # <<<<<<<<<<<<<< |
5486 | * k=0 |
5487 | * if debug: |
5488 | */ |
5489 | /*else*/ { |
5490 | __pyx_t_1 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 160, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 160; (void)__pyx_lineno; __pyx_clineno = 5490; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5491 | __Pyx_GOTREF(__pyx_t_1); |
5492 | __Pyx_XDECREF_SET(__pyx_v_displacements, ((PyObject*)__pyx_t_1))do { PyObject *tmp = (PyObject *) __pyx_v_displacements; __pyx_v_displacements = ((PyObject*)__pyx_t_1); Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
5493 | __pyx_t_1 = 0; |
5494 | |
5495 | /* "abaqusFILReader.pyx":161 |
5496 | * #NodeNum=record[0] |
5497 | * displacements={} |
5498 | * k=0 # <<<<<<<<<<<<<< |
5499 | * if debug: |
5500 | * print("record:", record) |
5501 | */ |
5502 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
5503 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_int_0)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_mstate_global ->__pyx_int_0; Py_XDECREF(((PyObject*)((tmp)))); } while ( 0); |
5504 | |
5505 | /* "abaqusFILReader.pyx":162 |
5506 | * displacements={} |
5507 | * k=0 |
5508 | * if debug: # <<<<<<<<<<<<<< |
5509 | * print("record:", record) |
5510 | * while k < len(record)-1: |
5511 | */ |
5512 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 162, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 162; (void)__pyx_lineno; __pyx_clineno = 5512; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5513 | if (__pyx_t_3) { |
5514 | |
5515 | /* "abaqusFILReader.pyx":163 |
5516 | * k=0 |
5517 | * if debug: |
5518 | * print("record:", record) # <<<<<<<<<<<<<< |
5519 | * while k < len(record)-1: |
5520 | * displacements[k+1]=record[k+1] |
5521 | */ |
5522 | __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 163, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 163; (void)__pyx_lineno; __pyx_clineno = 5522; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5523 | __Pyx_GOTREF(__pyx_t_1); |
5524 | __Pyx_INCREF(__pyx_kp_u_record)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_record )))); |
5525 | __Pyx_GIVEREF(__pyx_kp_u_record); |
5526 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_record)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_1))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_record)))), (0))) __PYX_ERR(0, 163, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 163; (void)__pyx_lineno; __pyx_clineno = 5526; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5527 | __Pyx_INCREF(__pyx_v_record)Py_INCREF(((PyObject*)((__pyx_v_record)))); |
5528 | __Pyx_GIVEREF(__pyx_v_record); |
5529 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_record)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_1))), 1, ((PyObject*) ((__pyx_v_record)))), (0))) __PYX_ERR(0, 163, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 163; (void)__pyx_lineno; __pyx_clineno = 5529; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5530 | __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 163, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 163; (void)__pyx_lineno; __pyx_clineno = 5530; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5531 | __Pyx_GOTREF(__pyx_t_7); |
5532 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5533 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
5534 | |
5535 | /* "abaqusFILReader.pyx":162 |
5536 | * displacements={} |
5537 | * k=0 |
5538 | * if debug: # <<<<<<<<<<<<<< |
5539 | * print("record:", record) |
5540 | * while k < len(record)-1: |
5541 | */ |
5542 | } |
5543 | |
5544 | /* "abaqusFILReader.pyx":164 |
5545 | * if debug: |
5546 | * print("record:", record) |
5547 | * while k < len(record)-1: # <<<<<<<<<<<<<< |
5548 | * displacements[k+1]=record[k+1] |
5549 | * k+=1 |
5550 | */ |
5551 | while (1) { |
5552 | __pyx_t_8 = PyObject_LengthPyObject_Size(__pyx_v_record); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_8 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 164, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 164; (void)__pyx_lineno; __pyx_clineno = 5552; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5553 | __pyx_t_7 = PyInt_FromSsize_tPyLong_FromSsize_t((__pyx_t_8 - 1)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 164, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 164; (void)__pyx_lineno; __pyx_clineno = 5553; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5554 | __Pyx_GOTREF(__pyx_t_7); |
5555 | __pyx_t_1 = PyObject_RichCompare(__pyx_v_k, __pyx_t_7, Py_LT0); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 164, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 164; (void)__pyx_lineno; __pyx_clineno = 5555; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5556 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
5557 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 164, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 164; (void)__pyx_lineno; __pyx_clineno = 5557; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5558 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5559 | if (!__pyx_t_3) break; |
5560 | |
5561 | /* "abaqusFILReader.pyx":165 |
5562 | * print("record:", record) |
5563 | * while k < len(record)-1: |
5564 | * displacements[k+1]=record[k+1] # <<<<<<<<<<<<<< |
5565 | * k+=1 |
5566 | * data[record[0]]=displacements |
5567 | */ |
5568 | __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_v_k, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 165, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 165; (void)__pyx_lineno; __pyx_clineno = 5568; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5569 | __Pyx_GOTREF(__pyx_t_1); |
5570 | __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_record, __pyx_t_1); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 165, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 165; (void)__pyx_lineno; __pyx_clineno = 5570; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5571 | __Pyx_GOTREF(__pyx_t_7); |
5572 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5573 | __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_v_k, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 165, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 165; (void)__pyx_lineno; __pyx_clineno = 5573; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5574 | __Pyx_GOTREF(__pyx_t_1); |
5575 | if (unlikely((PyDict_SetItem(__pyx_v_displacements, __pyx_t_1, __pyx_t_7) < 0))__builtin_expect(!!((PyDict_SetItem(__pyx_v_displacements, __pyx_t_1 , __pyx_t_7) < 0)), 0)) __PYX_ERR(0, 165, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 165; (void)__pyx_lineno; __pyx_clineno = 5575; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5576 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5577 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
5578 | |
5579 | /* "abaqusFILReader.pyx":166 |
5580 | * while k < len(record)-1: |
5581 | * displacements[k+1]=record[k+1] |
5582 | * k+=1 # <<<<<<<<<<<<<< |
5583 | * data[record[0]]=displacements |
5584 | * |
5585 | */ |
5586 | __pyx_t_7 = __Pyx_PyInt_AddObjC(__pyx_v_k, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 166, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 166; (void)__pyx_lineno; __pyx_clineno = 5586; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5587 | __Pyx_GOTREF(__pyx_t_7); |
5588 | __Pyx_DECREF_SET(__pyx_v_k, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_7 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
5589 | __pyx_t_7 = 0; |
5590 | } |
5591 | |
5592 | /* "abaqusFILReader.pyx":167 |
5593 | * displacements[k+1]=record[k+1] |
5594 | * k+=1 |
5595 | * data[record[0]]=displacements # <<<<<<<<<<<<<< |
5596 | * |
5597 | * return [0,"found data",data] |
5598 | */ |
5599 | __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_record, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(0 < (long )9223372036854775807L || 0 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(0 > (long)(-9223372036854775807L -1) || 0 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_v_record, (Py_ssize_t )0, 0, 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_v_record , __Pyx_PyInt_From_long(0)))); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 167, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 167; (void)__pyx_lineno; __pyx_clineno = 5599; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5600 | __Pyx_GOTREF(__pyx_t_7); |
5601 | if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_t_7, __pyx_v_displacements) < 0))__builtin_expect(!!((PyDict_SetItem(__pyx_v_data, __pyx_t_7, __pyx_v_displacements ) < 0)), 0)) __PYX_ERR(0, 167, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 167; (void)__pyx_lineno; __pyx_clineno = 5601; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5602 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
5603 | } |
5604 | __pyx_L11:; |
5605 | |
5606 | /* "abaqusFILReader.pyx":155 |
5607 | * data={} |
5608 | * |
5609 | * for record in output: # <<<<<<<<<<<<<< |
5610 | * if record==None: |
5611 | * pass |
5612 | */ |
5613 | } |
5614 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
5615 | |
5616 | /* "abaqusFILReader.pyx":169 |
5617 | * data[record[0]]=displacements |
5618 | * |
5619 | * return [0,"found data",data] # <<<<<<<<<<<<<< |
5620 | * else: |
5621 | * return [3,"file missing, abq probably didn't finish",{}] |
5622 | */ |
5623 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
5624 | __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 169, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 169; (void)__pyx_lineno; __pyx_clineno = 5624; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5625 | __Pyx_GOTREF(__pyx_t_2); |
5626 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
5627 | __Pyx_GIVEREF(__pyx_int_0); |
5628 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_0)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_0)))), (0))) __PYX_ERR(0, 169, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 169; (void)__pyx_lineno; __pyx_clineno = 5628; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5629 | __Pyx_INCREF(__pyx_kp_u_found_data)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_found_data )))); |
5630 | __Pyx_GIVEREF(__pyx_kp_u_found_data); |
5631 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_u_found_data)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_found_data)))), (0))) __PYX_ERR(0, 169, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 169; (void)__pyx_lineno; __pyx_clineno = 5631; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5632 | __Pyx_INCREF(__pyx_v_data)Py_INCREF(((PyObject*)((__pyx_v_data)))); |
5633 | __Pyx_GIVEREF(__pyx_v_data); |
5634 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_v_data)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 2, ((PyObject*)( (__pyx_v_data)))), (0))) __PYX_ERR(0, 169, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 169; (void)__pyx_lineno; __pyx_clineno = 5634; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5635 | __pyx_r = __pyx_t_2; |
5636 | __pyx_t_2 = 0; |
5637 | goto __pyx_L0; |
5638 | } |
5639 | |
5640 | /* "abaqusFILReader.pyx":145 |
5641 | * #Get data in a single string |
5642 | * output=[] |
5643 | * if ParsedData != []: # <<<<<<<<<<<<<< |
5644 | * for record in ParsedData: |
5645 | * if record[0]==101: |
5646 | */ |
5647 | } |
5648 | |
5649 | /* "abaqusFILReader.pyx":171 |
5650 | * return [0,"found data",data] |
5651 | * else: |
5652 | * return [3,"file missing, abq probably didn't finish",{}] # <<<<<<<<<<<<<< |
5653 | * |
5654 | * def extractMisesFil(ParsedData, debug=False): |
5655 | */ |
5656 | /*else*/ { |
5657 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
5658 | __pyx_t_2 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 171, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 171; (void)__pyx_lineno; __pyx_clineno = 5658; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5659 | __Pyx_GOTREF(__pyx_t_2); |
5660 | __pyx_t_7 = PyList_New(3); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 171, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 171; (void)__pyx_lineno; __pyx_clineno = 5660; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5661 | __Pyx_GOTREF(__pyx_t_7); |
5662 | __Pyx_INCREF(__pyx_int_3)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_3)) )); |
5663 | __Pyx_GIVEREF(__pyx_int_3); |
5664 | if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_int_3)(PyList_SET_ITEM(((PyObject*)((__pyx_t_7))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_3)))), (0))) __PYX_ERR(0, 171, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 171; (void)__pyx_lineno; __pyx_clineno = 5664; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5665 | __Pyx_INCREF(__pyx_kp_u_file_missing_abq_probably_didn_t)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t )))); |
5666 | __Pyx_GIVEREF(__pyx_kp_u_file_missing_abq_probably_didn_t); |
5667 | if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 1, __pyx_kp_u_file_missing_abq_probably_didn_t)(PyList_SET_ITEM(((PyObject*)((__pyx_t_7))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t )))), (0))) __PYX_ERR(0, 171, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 171; (void)__pyx_lineno; __pyx_clineno = 5667; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5668 | __Pyx_GIVEREF(__pyx_t_2); |
5669 | if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 2, __pyx_t_2)(PyList_SET_ITEM(((PyObject*)((__pyx_t_7))), 2, ((PyObject*)( (__pyx_t_2)))), (0))) __PYX_ERR(0, 171, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 171; (void)__pyx_lineno; __pyx_clineno = 5669; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5670 | __pyx_t_2 = 0; |
5671 | __pyx_r = __pyx_t_7; |
5672 | __pyx_t_7 = 0; |
5673 | goto __pyx_L0; |
5674 | } |
5675 | |
5676 | /* "abaqusFILReader.pyx":134 |
5677 | * # pull out displacement or von mises stress from file. |
5678 | * |
5679 | * def extractDispFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
5680 | * """Pulls out the node displacement values from a node output file |
5681 | * and returns a dictionary of the values. |
5682 | */ |
5683 | |
5684 | /* function exit code */ |
5685 | __pyx_L1_error:; |
5686 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); |
5687 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
5688 | __Pyx_XDECREF(__pyx_t_7)Py_XDECREF(((PyObject*)((__pyx_t_7)))); |
5689 | __Pyx_AddTraceback("abaqusFILReader.extractDispFil", __pyx_clineno, __pyx_lineno, __pyx_filename); |
5690 | __pyx_r = NULL((void*)0); |
5691 | __pyx_L0:; |
5692 | __Pyx_XDECREF(__pyx_v_output)Py_XDECREF(((PyObject*)((__pyx_v_output)))); |
5693 | __Pyx_XDECREF(__pyx_v_record)Py_XDECREF(((PyObject*)((__pyx_v_record)))); |
5694 | __Pyx_XDECREF(__pyx_v_data)Py_XDECREF(((PyObject*)((__pyx_v_data)))); |
5695 | __Pyx_XDECREF(__pyx_v_displacements)Py_XDECREF(((PyObject*)((__pyx_v_displacements)))); |
5696 | __Pyx_XDECREF(__pyx_v_k)Py_XDECREF(((PyObject*)((__pyx_v_k)))); |
5697 | __Pyx_XGIVEREF(__pyx_r); |
5698 | __Pyx_RefNannyFinishContext(); |
5699 | return __pyx_r; |
5700 | } |
5701 | |
5702 | /* "abaqusFILReader.pyx":173 |
5703 | * return [3,"file missing, abq probably didn't finish",{}] |
5704 | * |
5705 | * def extractMisesFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
5706 | * """Pulls out the element mises values from a element output |
5707 | * file and returns a dictionary of the values at the Section |
5708 | */ |
5709 | |
5710 | /* Python wrapper */ |
5711 | static PyObject *__pyx_pw_15abaqusFILReader_5extractMisesFil(PyObject *__pyx_self, |
5712 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5713 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
5714 | #else |
5715 | PyObject *__pyx_args, PyObject *__pyx_kwds |
5716 | #endif |
5717 | ); /*proto*/ |
5718 | PyDoc_STRVAR(__pyx_doc_15abaqusFILReader_4extractMisesFil, "Pulls out the element mises values from a element output\n file and returns a dictionary of the values at the Section\n points.\n\n Returns [status, message, mises]. Status of 0 is good.\n mises is a dictionary with element numbers and Mises at the\n section points\n status 2 means there was no displacement in files\n Status 3 means the file doesn't exist\n ")static const char __pyx_doc_15abaqusFILReader_4extractMisesFil [] = "Pulls out the element mises values from a element output\n file and returns a dictionary of the values at the Section\n points.\n\n Returns [status, message, mises]. Status of 0 is good.\n mises is a dictionary with element numbers and Mises at the\n section points\n status 2 means there was no displacement in files\n Status 3 means the file doesn't exist\n "; |
5719 | static PyMethodDef __pyx_mdef_15abaqusFILReader_5extractMisesFil = {"extractMisesFil", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords)__pyx_pw_15abaqusFILReader_5extractMisesFil, __Pyx_METH_FASTCALL0x0080|METH_KEYWORDS0x0002, __pyx_doc_15abaqusFILReader_4extractMisesFil}; |
5720 | static PyObject *__pyx_pw_15abaqusFILReader_5extractMisesFil(PyObject *__pyx_self, |
5721 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5722 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
5723 | #else |
5724 | PyObject *__pyx_args, PyObject *__pyx_kwds |
5725 | #endif |
5726 | ) { |
5727 | PyObject *__pyx_v_ParsedData = 0; |
5728 | PyObject *__pyx_v_debug = 0; |
5729 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5730 | CYTHON_UNUSED__attribute__ ((__unused__)) Py_ssize_t __pyx_nargs; |
5731 | #endif |
5732 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *const *__pyx_kwvalues; |
5733 | PyObject* values[2] = {0,0}; |
5734 | int __pyx_lineno = 0; |
5735 | const char *__pyx_filename = NULL((void*)0); |
5736 | int __pyx_clineno = 0; |
5737 | PyObject *__pyx_r = 0; |
5738 | __Pyx_RefNannyDeclarations |
5739 | __Pyx_RefNannySetupContext("extractMisesFil (wrapper)", 0); |
5740 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
5741 | #if CYTHON_ASSUME_SAFE_MACROS1 |
5742 | __pyx_nargs = PyTuple_GET_SIZE(__pyx_args)PyTuple_GET_SIZE(((PyObject*)((__pyx_args)))); |
5743 | #else |
5744 | __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)__builtin_expect(!!(__pyx_nargs < 0), 0)) return NULL((void*)0); |
5745 | #endif |
5746 | #endif |
5747 | __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs)((__pyx_args) + (__pyx_nargs)); |
5748 | { |
5749 | PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData,&__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug,0}; |
5750 | values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)((PyObject *)Py_False)))((PyObject *)((PyObject *)((PyObject *) &_Py_FalseStruct) )); |
5751 | if (__pyx_kwds) { |
5752 | Py_ssize_t kw_args; |
5753 | switch (__pyx_nargs) { |
5754 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
5755 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5756 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
5757 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5758 | case 0: break; |
5759 | default: goto __pyx_L5_argtuple_error; |
5760 | } |
5761 | kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds)PyTuple_GET_SIZE(((PyObject*)((__pyx_kwds)))); |
5762 | switch (__pyx_nargs) { |
5763 | case 0: |
5764 | if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ParsedData)) != 0)__builtin_expect(!!((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_ParsedData )) != 0), 1)) { |
5765 | (void)__Pyx_Arg_NewRef_FASTCALL(values[0])values[0]; |
5766 | kw_args--; |
5767 | } |
5768 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 173, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 5768; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5769 | else goto __pyx_L5_argtuple_error; |
5770 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5771 | case 1: |
5772 | if (kw_args > 0) { |
5773 | PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug); |
5774 | if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value)value; kw_args--; } |
5775 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 173, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 5775; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5776 | } |
5777 | } |
5778 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
5779 | const Py_ssize_t kwd_pos_args = __pyx_nargs; |
5780 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractMisesFil") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues , __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractMisesFil" ) < 0), 0)) __PYX_ERR(0, 173, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 5780; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5781 | } |
5782 | } else { |
5783 | switch (__pyx_nargs) { |
5784 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
5785 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
5786 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
5787 | break; |
5788 | default: goto __pyx_L5_argtuple_error; |
5789 | } |
5790 | } |
5791 | __pyx_v_ParsedData = values[0]; |
5792 | __pyx_v_debug = values[1]; |
5793 | } |
5794 | goto __pyx_L6_skip; |
5795 | __pyx_L5_argtuple_error:; |
5796 | __Pyx_RaiseArgtupleInvalid("extractMisesFil", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 173, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 5796; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
5797 | __pyx_L6_skip:; |
5798 | goto __pyx_L4_argument_unpacking_done; |
5799 | __pyx_L3_error:; |
5800 | { |
5801 | Py_ssize_t __pyx_temp; |
5802 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
5803 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
5804 | } |
5805 | } |
5806 | __Pyx_AddTraceback("abaqusFILReader.extractMisesFil", __pyx_clineno, __pyx_lineno, __pyx_filename); |
5807 | __Pyx_RefNannyFinishContext(); |
5808 | return NULL((void*)0); |
5809 | __pyx_L4_argument_unpacking_done:; |
5810 | __pyx_r = __pyx_pf_15abaqusFILReader_4extractMisesFil(__pyx_self, __pyx_v_ParsedData, __pyx_v_debug); |
5811 | |
5812 | /* function exit code */ |
5813 | { |
5814 | Py_ssize_t __pyx_temp; |
5815 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
5816 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
5817 | } |
5818 | } |
5819 | __Pyx_RefNannyFinishContext(); |
5820 | return __pyx_r; |
5821 | } |
5822 | |
5823 | static PyObject *__pyx_pf_15abaqusFILReader_4extractMisesFil(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_ParsedData, PyObject *__pyx_v_debug) { |
5824 | PyObject *__pyx_v_data = NULL((void*)0); |
5825 | PyObject *__pyx_v_record = NULL((void*)0); |
5826 | PyObject *__pyx_v_data2 = NULL((void*)0); |
5827 | PyObject *__pyx_v_elNum = NULL((void*)0); |
5828 | PyObject *__pyx_v_secNum = NULL((void*)0); |
5829 | PyObject *__pyx_v_mises = NULL((void*)0); |
5830 | PyObject *__pyx_r = NULL((void*)0); |
5831 | __Pyx_RefNannyDeclarations |
5832 | PyObject *__pyx_t_1 = NULL((void*)0); |
5833 | PyObject *__pyx_t_2 = NULL((void*)0); |
5834 | int __pyx_t_3; |
5835 | Py_ssize_t __pyx_t_4; |
5836 | PyObject *(*__pyx_t_5)(PyObject *); |
5837 | PyObject *__pyx_t_6 = NULL((void*)0); |
5838 | PyObject *__pyx_t_7 = NULL((void*)0); |
5839 | PyObject *__pyx_t_8 = NULL((void*)0); |
5840 | PyObject *__pyx_t_9 = NULL((void*)0); |
5841 | int __pyx_t_10; |
5842 | int __pyx_lineno = 0; |
5843 | const char *__pyx_filename = NULL((void*)0); |
5844 | int __pyx_clineno = 0; |
5845 | __Pyx_RefNannySetupContext("extractMisesFil", 1); |
5846 | |
5847 | /* "abaqusFILReader.pyx":185 |
5848 | * """ |
5849 | * |
5850 | * if ParsedData != []: # <<<<<<<<<<<<<< |
5851 | * data={} |
5852 | * for record,data2 in enumerate((ParsedData)): |
5853 | */ |
5854 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 185, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 185; (void)__pyx_lineno; __pyx_clineno = 5854; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5855 | __Pyx_GOTREF(__pyx_t_1); |
5856 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_ParsedData, __pyx_t_1, Py_NE3); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 185, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 185; (void)__pyx_lineno; __pyx_clineno = 5856; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5857 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
5858 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 185, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 185; (void)__pyx_lineno; __pyx_clineno = 5858; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5859 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
5860 | if (__pyx_t_3) { |
5861 | |
5862 | /* "abaqusFILReader.pyx":186 |
5863 | * |
5864 | * if ParsedData != []: |
5865 | * data={} # <<<<<<<<<<<<<< |
5866 | * for record,data2 in enumerate((ParsedData)): |
5867 | * if debug: |
5868 | */ |
5869 | __pyx_t_2 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 186, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 186; (void)__pyx_lineno; __pyx_clineno = 5869; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5870 | __Pyx_GOTREF(__pyx_t_2); |
5871 | __pyx_v_data = ((PyObject*)__pyx_t_2); |
5872 | __pyx_t_2 = 0; |
5873 | |
5874 | /* "abaqusFILReader.pyx":187 |
5875 | * if ParsedData != []: |
5876 | * data={} |
5877 | * for record,data2 in enumerate((ParsedData)): # <<<<<<<<<<<<<< |
5878 | * if debug: |
5879 | * print("data2: ",data2) |
5880 | */ |
5881 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
5882 | __pyx_t_2 = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
5883 | if (likely(PyList_CheckExact(__pyx_v_ParsedData))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_ParsedData ))), &PyList_Type)), 1) || PyTuple_CheckExact(__pyx_v_ParsedData)Py_IS_TYPE(((PyObject*)((__pyx_v_ParsedData))), &PyTuple_Type )) { |
5884 | __pyx_t_1 = __pyx_v_ParsedData; __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); |
5885 | __pyx_t_4 = 0; |
5886 | __pyx_t_5 = NULL((void*)0); |
5887 | } else { |
5888 | __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_ParsedData); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5888; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5889 | __Pyx_GOTREF(__pyx_t_1); |
5890 | __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1)(Py_TYPE(((PyObject*)((__pyx_t_1))))->tp_iternext); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5890; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5891 | } |
5892 | for (;;) { |
5893 | if (likely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 1)) { |
5894 | if (likely(PyList_CheckExact(__pyx_t_1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyList_Type)), 1)) { |
5895 | { |
5896 | Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1)PyList_GET_SIZE(((PyObject*)((__pyx_t_1)))); |
5897 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
5898 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5898; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5899 | #endif |
5900 | if (__pyx_t_4 >= __pyx_temp) break; |
5901 | } |
5902 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
5903 | __pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_1 )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_1)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(__pyx_t_1)", "abaqusFILReader.c" , 5903, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((__pyx_t_1))))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_6)Py_INCREF(((PyObject*)((__pyx_t_6)))); __pyx_t_4++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5903; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5904 | #else |
5905 | __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_4)( Py_TYPE(((PyObject*)((__pyx_t_1))))->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5905; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5906 | __Pyx_GOTREF(__pyx_t_6); |
5907 | #endif |
5908 | } else { |
5909 | { |
5910 | Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1)PyTuple_GET_SIZE(((PyObject*)((__pyx_t_1)))); |
5911 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
5912 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5912; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5913 | #endif |
5914 | if (__pyx_t_4 >= __pyx_temp) break; |
5915 | } |
5916 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
5917 | __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_1 )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_1)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(__pyx_t_1)", "abaqusFILReader.c" , 5917, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((__pyx_t_1))))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_6)Py_INCREF(((PyObject*)((__pyx_t_6)))); __pyx_t_4++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5917; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5918 | #else |
5919 | __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_4)( Py_TYPE(((PyObject*)((__pyx_t_1))))->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5919; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5920 | __Pyx_GOTREF(__pyx_t_6); |
5921 | #endif |
5922 | } |
5923 | } else { |
5924 | __pyx_t_6 = __pyx_t_5(__pyx_t_1); |
5925 | if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) { |
5926 | PyObject* exc_type = PyErr_Occurred(); |
5927 | if (exc_type) { |
5928 | if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(exc_type , PyExc_StopIteration)), 1)) PyErr_Clear(); |
5929 | else __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5929; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5930 | } |
5931 | break; |
5932 | } |
5933 | __Pyx_GOTREF(__pyx_t_6); |
5934 | } |
5935 | __Pyx_XDECREF_SET(__pyx_v_data2, __pyx_t_6)do { PyObject *tmp = (PyObject *) __pyx_v_data2; __pyx_v_data2 = __pyx_t_6; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
5936 | __pyx_t_6 = 0; |
5937 | __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
5938 | __Pyx_XDECREF_SET(__pyx_v_record, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_record; __pyx_v_record = __pyx_t_2; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
5939 | __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_2, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 5939; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5940 | __Pyx_GOTREF(__pyx_t_6); |
5941 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); |
5942 | __pyx_t_2 = __pyx_t_6; |
5943 | __pyx_t_6 = 0; |
5944 | |
5945 | /* "abaqusFILReader.pyx":188 |
5946 | * data={} |
5947 | * for record,data2 in enumerate((ParsedData)): |
5948 | * if debug: # <<<<<<<<<<<<<< |
5949 | * print("data2: ",data2) |
5950 | * if ParsedData[record][0]==1: |
5951 | */ |
5952 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 188, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 188; (void)__pyx_lineno; __pyx_clineno = 5952; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5953 | if (__pyx_t_3) { |
5954 | |
5955 | /* "abaqusFILReader.pyx":189 |
5956 | * for record,data2 in enumerate((ParsedData)): |
5957 | * if debug: |
5958 | * print("data2: ",data2) # <<<<<<<<<<<<<< |
5959 | * if ParsedData[record][0]==1: |
5960 | * elNum=ParsedData[record][1] |
5961 | */ |
5962 | __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 189, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 189; (void)__pyx_lineno; __pyx_clineno = 5962; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5963 | __Pyx_GOTREF(__pyx_t_6); |
5964 | __Pyx_INCREF(__pyx_kp_u_data2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_data2 )))); |
5965 | __Pyx_GIVEREF(__pyx_kp_u_data2); |
5966 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_data2)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_6))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_data2)))), (0))) __PYX_ERR(0, 189, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 189; (void)__pyx_lineno; __pyx_clineno = 5966; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5967 | __Pyx_INCREF(__pyx_v_data2)Py_INCREF(((PyObject*)((__pyx_v_data2)))); |
5968 | __Pyx_GIVEREF(__pyx_v_data2); |
5969 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_data2)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_6))), 1, ((PyObject*) ((__pyx_v_data2)))), (0))) __PYX_ERR(0, 189, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 189; (void)__pyx_lineno; __pyx_clineno = 5969; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
5970 | __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL((void*)0)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 189, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 189; (void)__pyx_lineno; __pyx_clineno = 5970; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5971 | __Pyx_GOTREF(__pyx_t_7); |
5972 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
5973 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
5974 | |
5975 | /* "abaqusFILReader.pyx":188 |
5976 | * data={} |
5977 | * for record,data2 in enumerate((ParsedData)): |
5978 | * if debug: # <<<<<<<<<<<<<< |
5979 | * print("data2: ",data2) |
5980 | * if ParsedData[record][0]==1: |
5981 | */ |
5982 | } |
5983 | |
5984 | /* "abaqusFILReader.pyx":190 |
5985 | * if debug: |
5986 | * print("data2: ",data2) |
5987 | * if ParsedData[record][0]==1: # <<<<<<<<<<<<<< |
5988 | * elNum=ParsedData[record][1] |
5989 | * secNum=ParsedData[record][3] |
5990 | */ |
5991 | __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_ParsedData, __pyx_v_record); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 190, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 190; (void)__pyx_lineno; __pyx_clineno = 5991; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5992 | __Pyx_GOTREF(__pyx_t_7); |
5993 | __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(0 < (long )9223372036854775807L || 0 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(0 > (long)(-9223372036854775807L -1) || 0 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_7, (Py_ssize_t)0, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_7 , __Pyx_PyInt_From_long(0)))); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 190, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 190; (void)__pyx_lineno; __pyx_clineno = 5993; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5994 | __Pyx_GOTREF(__pyx_t_6); |
5995 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
5996 | __pyx_t_3 = (__Pyx_PyInt_BoolEqObjC(__pyx_t_6, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 190, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 190; (void)__pyx_lineno; __pyx_clineno = 5996; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
5997 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
5998 | if (__pyx_t_3) { |
5999 | |
6000 | /* "abaqusFILReader.pyx":191 |
6001 | * print("data2: ",data2) |
6002 | * if ParsedData[record][0]==1: |
6003 | * elNum=ParsedData[record][1] # <<<<<<<<<<<<<< |
6004 | * secNum=ParsedData[record][3] |
6005 | * if ParsedData[record+1][0]==12: |
6006 | */ |
6007 | __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_ParsedData, __pyx_v_record); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 191, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 191; (void)__pyx_lineno; __pyx_clineno = 6007; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6008 | __Pyx_GOTREF(__pyx_t_6); |
6009 | __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(1 < (long )9223372036854775807L || 1 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(1 > (long)(-9223372036854775807L -1) || 1 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(1 < (long)9223372036854775807L || 1 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_6, (Py_ssize_t)1, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_6 , __Pyx_PyInt_From_long(1)))); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 191, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 191; (void)__pyx_lineno; __pyx_clineno = 6009; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6010 | __Pyx_GOTREF(__pyx_t_7); |
6011 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
6012 | __Pyx_XDECREF_SET(__pyx_v_elNum, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_elNum; __pyx_v_elNum = __pyx_t_7; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
6013 | __pyx_t_7 = 0; |
6014 | |
6015 | /* "abaqusFILReader.pyx":192 |
6016 | * if ParsedData[record][0]==1: |
6017 | * elNum=ParsedData[record][1] |
6018 | * secNum=ParsedData[record][3] # <<<<<<<<<<<<<< |
6019 | * if ParsedData[record+1][0]==12: |
6020 | * mises=ParsedData[record+1][1] |
6021 | */ |
6022 | __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_ParsedData, __pyx_v_record); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 192, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 192; (void)__pyx_lineno; __pyx_clineno = 6022; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6023 | __Pyx_GOTREF(__pyx_t_7); |
6024 | __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_7, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(3 < (long )9223372036854775807L || 3 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(3 > (long)(-9223372036854775807L -1) || 3 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(3 < (long)9223372036854775807L || 3 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_7, (Py_ssize_t)3, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_7 , __Pyx_PyInt_From_long(3)))); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 192, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 192; (void)__pyx_lineno; __pyx_clineno = 6024; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6025 | __Pyx_GOTREF(__pyx_t_6); |
6026 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6027 | __Pyx_XDECREF_SET(__pyx_v_secNum, __pyx_t_6)do { PyObject *tmp = (PyObject *) __pyx_v_secNum; __pyx_v_secNum = __pyx_t_6; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
6028 | __pyx_t_6 = 0; |
6029 | |
6030 | /* "abaqusFILReader.pyx":193 |
6031 | * elNum=ParsedData[record][1] |
6032 | * secNum=ParsedData[record][3] |
6033 | * if ParsedData[record+1][0]==12: # <<<<<<<<<<<<<< |
6034 | * mises=ParsedData[record+1][1] |
6035 | * if elNum in data: |
6036 | */ |
6037 | __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_record, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 193, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 193; (void)__pyx_lineno; __pyx_clineno = 6037; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6038 | __Pyx_GOTREF(__pyx_t_6); |
6039 | __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_ParsedData, __pyx_t_6); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 193, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 193; (void)__pyx_lineno; __pyx_clineno = 6039; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6040 | __Pyx_GOTREF(__pyx_t_7); |
6041 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
6042 | __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_7, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(0 < (long )9223372036854775807L || 0 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(0 > (long)(-9223372036854775807L -1) || 0 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_7, (Py_ssize_t)0, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_7 , __Pyx_PyInt_From_long(0)))); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 193, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 193; (void)__pyx_lineno; __pyx_clineno = 6042; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6043 | __Pyx_GOTREF(__pyx_t_6); |
6044 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6045 | __pyx_t_3 = (__Pyx_PyInt_BoolEqObjC(__pyx_t_6, __pyx_int_12__pyx_mstate_global->__pyx_int_12, 12, 0)); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 193, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 193; (void)__pyx_lineno; __pyx_clineno = 6045; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6046 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
6047 | if (__pyx_t_3) { |
6048 | |
6049 | /* "abaqusFILReader.pyx":194 |
6050 | * secNum=ParsedData[record][3] |
6051 | * if ParsedData[record+1][0]==12: |
6052 | * mises=ParsedData[record+1][1] # <<<<<<<<<<<<<< |
6053 | * if elNum in data: |
6054 | * data[elNum].update({secNum:mises}) |
6055 | */ |
6056 | __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_record, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 194, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 194; (void)__pyx_lineno; __pyx_clineno = 6056; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6057 | __Pyx_GOTREF(__pyx_t_6); |
6058 | __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_ParsedData, __pyx_t_6); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 194, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 194; (void)__pyx_lineno; __pyx_clineno = 6058; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6059 | __Pyx_GOTREF(__pyx_t_7); |
6060 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
6061 | __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_7, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(1 < (long )9223372036854775807L || 1 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(1 > (long)(-9223372036854775807L -1) || 1 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(1 < (long)9223372036854775807L || 1 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_t_7, (Py_ssize_t)1, 0 , 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_t_7 , __Pyx_PyInt_From_long(1)))); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 194, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 194; (void)__pyx_lineno; __pyx_clineno = 6061; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6062 | __Pyx_GOTREF(__pyx_t_6); |
6063 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6064 | __Pyx_XDECREF_SET(__pyx_v_mises, __pyx_t_6)do { PyObject *tmp = (PyObject *) __pyx_v_mises; __pyx_v_mises = __pyx_t_6; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
6065 | __pyx_t_6 = 0; |
6066 | |
6067 | /* "abaqusFILReader.pyx":195 |
6068 | * if ParsedData[record+1][0]==12: |
6069 | * mises=ParsedData[record+1][1] |
6070 | * if elNum in data: # <<<<<<<<<<<<<< |
6071 | * data[elNum].update({secNum:mises}) |
6072 | * else: |
6073 | */ |
6074 | __pyx_t_3 = (__Pyx_PyDict_ContainsTF(__pyx_v_elNum, __pyx_v_data, Py_EQ2)); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 195, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 195; (void)__pyx_lineno; __pyx_clineno = 6074; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6075 | if (__pyx_t_3) { |
6076 | |
6077 | /* "abaqusFILReader.pyx":196 |
6078 | * mises=ParsedData[record+1][1] |
6079 | * if elNum in data: |
6080 | * data[elNum].update({secNum:mises}) # <<<<<<<<<<<<<< |
6081 | * else: |
6082 | * data[elNum]={secNum:mises} |
6083 | */ |
6084 | __pyx_t_7 = __Pyx_PyDict_GetItem(__pyx_v_data, __pyx_v_elNum); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 196, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 196; (void)__pyx_lineno; __pyx_clineno = 6084; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6085 | __Pyx_GOTREF(__pyx_t_7); |
6086 | __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update__pyx_mstate_global->__pyx_n_s_update); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) __PYX_ERR(0, 196, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 196; (void)__pyx_lineno; __pyx_clineno = 6086; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6087 | __Pyx_GOTREF(__pyx_t_8); |
6088 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6089 | __pyx_t_7 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 196, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 196; (void)__pyx_lineno; __pyx_clineno = 6089; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6090 | __Pyx_GOTREF(__pyx_t_7); |
6091 | if (PyDict_SetItem(__pyx_t_7, __pyx_v_secNum, __pyx_v_mises) < 0) __PYX_ERR(0, 196, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 196; (void)__pyx_lineno; __pyx_clineno = 6091; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6092 | __pyx_t_9 = NULL((void*)0); |
6093 | __pyx_t_10 = 0; |
6094 | #if CYTHON_UNPACK_METHODS1 |
6095 | if (likely(PyMethod_Check(__pyx_t_8))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_8))), & PyMethod_Type)), 1)) { |
6096 | __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8)(((PyMethodObject *)__pyx_t_8) -> im_self); |
6097 | if (likely(__pyx_t_9)__builtin_expect(!!(__pyx_t_9), 1)) { |
6098 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8)(((PyMethodObject *)__pyx_t_8) -> im_func); |
6099 | __Pyx_INCREF(__pyx_t_9)Py_INCREF(((PyObject*)((__pyx_t_9)))); |
6100 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
6101 | __Pyx_DECREF_SET(__pyx_t_8, function)do { PyObject *tmp = (PyObject *) __pyx_t_8; __pyx_t_8 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6102 | __pyx_t_10 = 1; |
6103 | } |
6104 | } |
6105 | #endif |
6106 | { |
6107 | PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7}; |
6108 | __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10)__Pyx_PyObject_FastCallDict(__pyx_t_8, __pyx_callargs+1-__pyx_t_10 , (size_t)(1+__pyx_t_10), ((void*)0)); |
6109 | __Pyx_XDECREF(__pyx_t_9)Py_XDECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0; |
6110 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6111 | if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 196, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 196; (void)__pyx_lineno; __pyx_clineno = 6111; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6112 | __Pyx_GOTREF(__pyx_t_6); |
6113 | __Pyx_DECREF(__pyx_t_8)Py_DECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0; |
6114 | } |
6115 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
6116 | |
6117 | /* "abaqusFILReader.pyx":195 |
6118 | * if ParsedData[record+1][0]==12: |
6119 | * mises=ParsedData[record+1][1] |
6120 | * if elNum in data: # <<<<<<<<<<<<<< |
6121 | * data[elNum].update({secNum:mises}) |
6122 | * else: |
6123 | */ |
6124 | goto __pyx_L9; |
6125 | } |
6126 | |
6127 | /* "abaqusFILReader.pyx":198 |
6128 | * data[elNum].update({secNum:mises}) |
6129 | * else: |
6130 | * data[elNum]={secNum:mises} # <<<<<<<<<<<<<< |
6131 | * |
6132 | * if data==[]: |
6133 | */ |
6134 | /*else*/ { |
6135 | __pyx_t_6 = __Pyx_PyDict_NewPresized(1)((1 <= 8) ? PyDict_New() : _PyDict_NewPresized(1)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 198, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 198; (void)__pyx_lineno; __pyx_clineno = 6135; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6136 | __Pyx_GOTREF(__pyx_t_6); |
6137 | if (PyDict_SetItem(__pyx_t_6, __pyx_v_secNum, __pyx_v_mises) < 0) __PYX_ERR(0, 198, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 198; (void)__pyx_lineno; __pyx_clineno = 6137; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6138 | if (unlikely((PyDict_SetItem(__pyx_v_data, __pyx_v_elNum, __pyx_t_6) < 0))__builtin_expect(!!((PyDict_SetItem(__pyx_v_data, __pyx_v_elNum , __pyx_t_6) < 0)), 0)) __PYX_ERR(0, 198, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 198; (void)__pyx_lineno; __pyx_clineno = 6138; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6139 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
6140 | } |
6141 | __pyx_L9:; |
6142 | |
6143 | /* "abaqusFILReader.pyx":193 |
6144 | * elNum=ParsedData[record][1] |
6145 | * secNum=ParsedData[record][3] |
6146 | * if ParsedData[record+1][0]==12: # <<<<<<<<<<<<<< |
6147 | * mises=ParsedData[record+1][1] |
6148 | * if elNum in data: |
6149 | */ |
6150 | } |
6151 | |
6152 | /* "abaqusFILReader.pyx":190 |
6153 | * if debug: |
6154 | * print("data2: ",data2) |
6155 | * if ParsedData[record][0]==1: # <<<<<<<<<<<<<< |
6156 | * elNum=ParsedData[record][1] |
6157 | * secNum=ParsedData[record][3] |
6158 | */ |
6159 | } |
6160 | |
6161 | /* "abaqusFILReader.pyx":187 |
6162 | * if ParsedData != []: |
6163 | * data={} |
6164 | * for record,data2 in enumerate((ParsedData)): # <<<<<<<<<<<<<< |
6165 | * if debug: |
6166 | * print("data2: ",data2) |
6167 | */ |
6168 | } |
6169 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6170 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6171 | |
6172 | /* "abaqusFILReader.pyx":200 |
6173 | * data[elNum]={secNum:mises} |
6174 | * |
6175 | * if data==[]: # <<<<<<<<<<<<<< |
6176 | * return [2,"no data found",{}] |
6177 | * else: |
6178 | */ |
6179 | __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 200, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 200; (void)__pyx_lineno; __pyx_clineno = 6179; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6180 | __Pyx_GOTREF(__pyx_t_2); |
6181 | __pyx_t_1 = PyObject_RichCompare(__pyx_v_data, __pyx_t_2, Py_EQ2); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 200, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 200; (void)__pyx_lineno; __pyx_clineno = 6181; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6182 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6183 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 200, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 200; (void)__pyx_lineno; __pyx_clineno = 6183; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6184 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6185 | if (__pyx_t_3) { |
6186 | |
6187 | /* "abaqusFILReader.pyx":201 |
6188 | * |
6189 | * if data==[]: |
6190 | * return [2,"no data found",{}] # <<<<<<<<<<<<<< |
6191 | * else: |
6192 | * return [0,"found data",data] |
6193 | */ |
6194 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
6195 | __pyx_t_1 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 201, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 201; (void)__pyx_lineno; __pyx_clineno = 6195; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6196 | __Pyx_GOTREF(__pyx_t_1); |
6197 | __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 201, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 201; (void)__pyx_lineno; __pyx_clineno = 6197; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6198 | __Pyx_GOTREF(__pyx_t_2); |
6199 | __Pyx_INCREF(__pyx_int_2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_2)) )); |
6200 | __Pyx_GIVEREF(__pyx_int_2); |
6201 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_2)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_2)))), (0))) __PYX_ERR(0, 201, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 201; (void)__pyx_lineno; __pyx_clineno = 6201; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6202 | __Pyx_INCREF(__pyx_kp_u_no_data_found)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_no_data_found )))); |
6203 | __Pyx_GIVEREF(__pyx_kp_u_no_data_found); |
6204 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_u_no_data_found)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_no_data_found)))), (0))) __PYX_ERR(0, 201, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 201; (void)__pyx_lineno; __pyx_clineno = 6204; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6205 | __Pyx_GIVEREF(__pyx_t_1); |
6206 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_t_1)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 2, ((PyObject*)( (__pyx_t_1)))), (0))) __PYX_ERR(0, 201, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 201; (void)__pyx_lineno; __pyx_clineno = 6206; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6207 | __pyx_t_1 = 0; |
6208 | __pyx_r = __pyx_t_2; |
6209 | __pyx_t_2 = 0; |
6210 | goto __pyx_L0; |
6211 | |
6212 | /* "abaqusFILReader.pyx":200 |
6213 | * data[elNum]={secNum:mises} |
6214 | * |
6215 | * if data==[]: # <<<<<<<<<<<<<< |
6216 | * return [2,"no data found",{}] |
6217 | * else: |
6218 | */ |
6219 | } |
6220 | |
6221 | /* "abaqusFILReader.pyx":203 |
6222 | * return [2,"no data found",{}] |
6223 | * else: |
6224 | * return [0,"found data",data] # <<<<<<<<<<<<<< |
6225 | * else: |
6226 | * return [3,"file missing, abq probably didn't finish",{}] |
6227 | */ |
6228 | /*else*/ { |
6229 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
6230 | __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 203, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 203; (void)__pyx_lineno; __pyx_clineno = 6230; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6231 | __Pyx_GOTREF(__pyx_t_2); |
6232 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
6233 | __Pyx_GIVEREF(__pyx_int_0); |
6234 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_0)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_0)))), (0))) __PYX_ERR(0, 203, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 203; (void)__pyx_lineno; __pyx_clineno = 6234; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6235 | __Pyx_INCREF(__pyx_kp_u_found_data)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_found_data )))); |
6236 | __Pyx_GIVEREF(__pyx_kp_u_found_data); |
6237 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_u_found_data)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_found_data)))), (0))) __PYX_ERR(0, 203, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 203; (void)__pyx_lineno; __pyx_clineno = 6237; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6238 | __Pyx_INCREF(__pyx_v_data)Py_INCREF(((PyObject*)((__pyx_v_data)))); |
6239 | __Pyx_GIVEREF(__pyx_v_data); |
6240 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_v_data)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 2, ((PyObject*)( (__pyx_v_data)))), (0))) __PYX_ERR(0, 203, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 203; (void)__pyx_lineno; __pyx_clineno = 6240; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6241 | __pyx_r = __pyx_t_2; |
6242 | __pyx_t_2 = 0; |
6243 | goto __pyx_L0; |
6244 | } |
6245 | |
6246 | /* "abaqusFILReader.pyx":185 |
6247 | * """ |
6248 | * |
6249 | * if ParsedData != []: # <<<<<<<<<<<<<< |
6250 | * data={} |
6251 | * for record,data2 in enumerate((ParsedData)): |
6252 | */ |
6253 | } |
6254 | |
6255 | /* "abaqusFILReader.pyx":205 |
6256 | * return [0,"found data",data] |
6257 | * else: |
6258 | * return [3,"file missing, abq probably didn't finish",{}] # <<<<<<<<<<<<<< |
6259 | * |
6260 | * |
6261 | */ |
6262 | /*else*/ { |
6263 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
6264 | __pyx_t_2 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 205, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 205; (void)__pyx_lineno; __pyx_clineno = 6264; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6265 | __Pyx_GOTREF(__pyx_t_2); |
6266 | __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 205, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 205; (void)__pyx_lineno; __pyx_clineno = 6266; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6267 | __Pyx_GOTREF(__pyx_t_1); |
6268 | __Pyx_INCREF(__pyx_int_3)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_3)) )); |
6269 | __Pyx_GIVEREF(__pyx_int_3); |
6270 | if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, __pyx_int_3)(PyList_SET_ITEM(((PyObject*)((__pyx_t_1))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_3)))), (0))) __PYX_ERR(0, 205, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 205; (void)__pyx_lineno; __pyx_clineno = 6270; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6271 | __Pyx_INCREF(__pyx_kp_u_file_missing_abq_probably_didn_t)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t )))); |
6272 | __Pyx_GIVEREF(__pyx_kp_u_file_missing_abq_probably_didn_t); |
6273 | if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 1, __pyx_kp_u_file_missing_abq_probably_didn_t)(PyList_SET_ITEM(((PyObject*)((__pyx_t_1))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t )))), (0))) __PYX_ERR(0, 205, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 205; (void)__pyx_lineno; __pyx_clineno = 6273; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6274 | __Pyx_GIVEREF(__pyx_t_2); |
6275 | if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 2, __pyx_t_2)(PyList_SET_ITEM(((PyObject*)((__pyx_t_1))), 2, ((PyObject*)( (__pyx_t_2)))), (0))) __PYX_ERR(0, 205, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 205; (void)__pyx_lineno; __pyx_clineno = 6275; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6276 | __pyx_t_2 = 0; |
6277 | __pyx_r = __pyx_t_1; |
6278 | __pyx_t_1 = 0; |
6279 | goto __pyx_L0; |
6280 | } |
6281 | |
6282 | /* "abaqusFILReader.pyx":173 |
6283 | * return [3,"file missing, abq probably didn't finish",{}] |
6284 | * |
6285 | * def extractMisesFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
6286 | * """Pulls out the element mises values from a element output |
6287 | * file and returns a dictionary of the values at the Section |
6288 | */ |
6289 | |
6290 | /* function exit code */ |
6291 | __pyx_L1_error:; |
6292 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); |
6293 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
6294 | __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6)))); |
6295 | __Pyx_XDECREF(__pyx_t_7)Py_XDECREF(((PyObject*)((__pyx_t_7)))); |
6296 | __Pyx_XDECREF(__pyx_t_8)Py_XDECREF(((PyObject*)((__pyx_t_8)))); |
6297 | __Pyx_XDECREF(__pyx_t_9)Py_XDECREF(((PyObject*)((__pyx_t_9)))); |
6298 | __Pyx_AddTraceback("abaqusFILReader.extractMisesFil", __pyx_clineno, __pyx_lineno, __pyx_filename); |
6299 | __pyx_r = NULL((void*)0); |
6300 | __pyx_L0:; |
6301 | __Pyx_XDECREF(__pyx_v_data)Py_XDECREF(((PyObject*)((__pyx_v_data)))); |
6302 | __Pyx_XDECREF(__pyx_v_record)Py_XDECREF(((PyObject*)((__pyx_v_record)))); |
6303 | __Pyx_XDECREF(__pyx_v_data2)Py_XDECREF(((PyObject*)((__pyx_v_data2)))); |
6304 | __Pyx_XDECREF(__pyx_v_elNum)Py_XDECREF(((PyObject*)((__pyx_v_elNum)))); |
6305 | __Pyx_XDECREF(__pyx_v_secNum)Py_XDECREF(((PyObject*)((__pyx_v_secNum)))); |
6306 | __Pyx_XDECREF(__pyx_v_mises)Py_XDECREF(((PyObject*)((__pyx_v_mises)))); |
6307 | __Pyx_XGIVEREF(__pyx_r); |
6308 | __Pyx_RefNannyFinishContext(); |
6309 | return __pyx_r; |
6310 | } |
6311 | |
6312 | /* "abaqusFILReader.pyx":208 |
6313 | * |
6314 | * |
6315 | * def extractFilRecords(abqFile,debug=False): # <<<<<<<<<<<<<< |
6316 | * """Parses the FIL file into a list of records. |
6317 | * |
6318 | */ |
6319 | |
6320 | /* Python wrapper */ |
6321 | static PyObject *__pyx_pw_15abaqusFILReader_7extractFilRecords(PyObject *__pyx_self, |
6322 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
6323 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
6324 | #else |
6325 | PyObject *__pyx_args, PyObject *__pyx_kwds |
6326 | #endif |
6327 | ); /*proto*/ |
6328 | PyDoc_STRVAR(__pyx_doc_15abaqusFILReader_6extractFilRecords, "Parses the FIL file into a list of records.\n\n Returns [status, message, ParsedData].\n Status of 0 is good.\n ParsedData is a list of each record parsed into the correct\n format\n status 2 means there was no data in files\n Status 3 means the file doesn't exist\n ")static const char __pyx_doc_15abaqusFILReader_6extractFilRecords [] = "Parses the FIL file into a list of records.\n\n Returns [status, message, ParsedData].\n Status of 0 is good.\n ParsedData is a list of each record parsed into the correct\n format\n status 2 means there was no data in files\n Status 3 means the file doesn't exist\n "; |
6329 | static PyMethodDef __pyx_mdef_15abaqusFILReader_7extractFilRecords = {"extractFilRecords", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords)__pyx_pw_15abaqusFILReader_7extractFilRecords, __Pyx_METH_FASTCALL0x0080|METH_KEYWORDS0x0002, __pyx_doc_15abaqusFILReader_6extractFilRecords}; |
6330 | static PyObject *__pyx_pw_15abaqusFILReader_7extractFilRecords(PyObject *__pyx_self, |
6331 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
6332 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
6333 | #else |
6334 | PyObject *__pyx_args, PyObject *__pyx_kwds |
6335 | #endif |
6336 | ) { |
6337 | PyObject *__pyx_v_abqFile = 0; |
6338 | PyObject *__pyx_v_debug = 0; |
6339 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
6340 | CYTHON_UNUSED__attribute__ ((__unused__)) Py_ssize_t __pyx_nargs; |
6341 | #endif |
6342 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *const *__pyx_kwvalues; |
6343 | PyObject* values[2] = {0,0}; |
6344 | int __pyx_lineno = 0; |
6345 | const char *__pyx_filename = NULL((void*)0); |
6346 | int __pyx_clineno = 0; |
6347 | PyObject *__pyx_r = 0; |
6348 | __Pyx_RefNannyDeclarations |
6349 | __Pyx_RefNannySetupContext("extractFilRecords (wrapper)", 0); |
6350 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
6351 | #if CYTHON_ASSUME_SAFE_MACROS1 |
6352 | __pyx_nargs = PyTuple_GET_SIZE(__pyx_args)PyTuple_GET_SIZE(((PyObject*)((__pyx_args)))); |
6353 | #else |
6354 | __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)__builtin_expect(!!(__pyx_nargs < 0), 0)) return NULL((void*)0); |
6355 | #endif |
6356 | #endif |
6357 | __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs)((__pyx_args) + (__pyx_nargs)); |
6358 | { |
6359 | PyObject **__pyx_pyargnames[] = {&__pyx_n_s_abqFile__pyx_mstate_global->__pyx_n_s_abqFile,&__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug,0}; |
6360 | values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)((PyObject *)Py_False)))((PyObject *)((PyObject *)((PyObject *) &_Py_FalseStruct) )); |
6361 | if (__pyx_kwds) { |
6362 | Py_ssize_t kw_args; |
6363 | switch (__pyx_nargs) { |
6364 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
6365 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
6366 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
6367 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
6368 | case 0: break; |
6369 | default: goto __pyx_L5_argtuple_error; |
6370 | } |
6371 | kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds)PyTuple_GET_SIZE(((PyObject*)((__pyx_kwds)))); |
6372 | switch (__pyx_nargs) { |
6373 | case 0: |
6374 | if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_abqFile)) != 0)__builtin_expect(!!((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_abqFile)) != 0), 1)) { |
6375 | (void)__Pyx_Arg_NewRef_FASTCALL(values[0])values[0]; |
6376 | kw_args--; |
6377 | } |
6378 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 208, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 6378; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
6379 | else goto __pyx_L5_argtuple_error; |
6380 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
6381 | case 1: |
6382 | if (kw_args > 0) { |
6383 | PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug); |
6384 | if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value)value; kw_args--; } |
6385 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 208, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 6385; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
6386 | } |
6387 | } |
6388 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
6389 | const Py_ssize_t kwd_pos_args = __pyx_nargs; |
6390 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractFilRecords") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues , __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractFilRecords" ) < 0), 0)) __PYX_ERR(0, 208, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 6390; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
6391 | } |
6392 | } else { |
6393 | switch (__pyx_nargs) { |
6394 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
6395 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
6396 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
6397 | break; |
6398 | default: goto __pyx_L5_argtuple_error; |
6399 | } |
6400 | } |
6401 | __pyx_v_abqFile = values[0]; |
6402 | __pyx_v_debug = values[1]; |
6403 | } |
6404 | goto __pyx_L6_skip; |
6405 | __pyx_L5_argtuple_error:; |
6406 | __Pyx_RaiseArgtupleInvalid("extractFilRecords", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 208, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 6406; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
6407 | __pyx_L6_skip:; |
6408 | goto __pyx_L4_argument_unpacking_done; |
6409 | __pyx_L3_error:; |
6410 | { |
6411 | Py_ssize_t __pyx_temp; |
6412 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
6413 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
6414 | } |
6415 | } |
6416 | __Pyx_AddTraceback("abaqusFILReader.extractFilRecords", __pyx_clineno, __pyx_lineno, __pyx_filename); |
6417 | __Pyx_RefNannyFinishContext(); |
6418 | return NULL((void*)0); |
6419 | __pyx_L4_argument_unpacking_done:; |
6420 | __pyx_r = __pyx_pf_15abaqusFILReader_6extractFilRecords(__pyx_self, __pyx_v_abqFile, __pyx_v_debug); |
6421 | |
6422 | /* function exit code */ |
6423 | { |
6424 | Py_ssize_t __pyx_temp; |
6425 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
6426 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
6427 | } |
6428 | } |
6429 | __Pyx_RefNannyFinishContext(); |
6430 | return __pyx_r; |
6431 | } |
6432 | |
6433 | static PyObject *__pyx_pf_15abaqusFILReader_6extractFilRecords(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_abqFile, PyObject *__pyx_v_debug) { |
6434 | PyObject *__pyx_v_Rec = NULL((void*)0); |
6435 | PyObject *__pyx_v_f = NULL((void*)0); |
6436 | PyObject *__pyx_v_line = NULL((void*)0); |
6437 | PyObject *__pyx_v_ind = NULL((void*)0); |
6438 | PyObject *__pyx_v_RecSplit = NULL((void*)0); |
6439 | PyObject *__pyx_v_ParsedData = NULL((void*)0); |
6440 | PyObject *__pyx_v_record = NULL((void*)0); |
6441 | PyObject *__pyx_v_pos = NULL((void*)0); |
6442 | PyObject *__pyx_v_temp = NULL((void*)0); |
6443 | PyObject *__pyx_v_temp2 = NULL((void*)0); |
6444 | PyObject *__pyx_r = NULL((void*)0); |
6445 | __Pyx_RefNannyDeclarations |
6446 | PyObject *__pyx_t_1 = NULL((void*)0); |
6447 | PyObject *__pyx_t_2 = NULL((void*)0); |
6448 | PyObject *__pyx_t_3 = NULL((void*)0); |
6449 | PyObject *__pyx_t_4 = NULL((void*)0); |
6450 | int __pyx_t_5; |
6451 | int __pyx_t_6; |
6452 | PyObject *__pyx_t_7 = NULL((void*)0); |
6453 | PyObject *__pyx_t_8 = NULL((void*)0); |
6454 | PyObject *__pyx_t_9 = NULL((void*)0); |
6455 | PyObject *__pyx_t_10 = NULL((void*)0); |
6456 | Py_ssize_t __pyx_t_11; |
6457 | PyObject *(*__pyx_t_12)(PyObject *); |
6458 | PyObject *__pyx_t_13 = NULL((void*)0); |
6459 | int __pyx_t_14; |
6460 | Py_ssize_t __pyx_t_15; |
6461 | PyObject *__pyx_t_16 = NULL((void*)0); |
6462 | PyObject *__pyx_t_17 = NULL((void*)0); |
6463 | int __pyx_t_18; |
6464 | int __pyx_lineno = 0; |
6465 | const char *__pyx_filename = NULL((void*)0); |
6466 | int __pyx_clineno = 0; |
6467 | __Pyx_RefNannySetupContext("extractFilRecords", 1); |
6468 | |
6469 | /* "abaqusFILReader.pyx":219 |
6470 | * """ |
6471 | * #Get data in a single string |
6472 | * Rec="" # <<<<<<<<<<<<<< |
6473 | * if os.path.isfile(abqFile[0:-4]+".fil"): |
6474 | * with open(abqFile[0:-4]+".fil") as f: |
6475 | */ |
6476 | __Pyx_INCREF(__pyx_kp_u__2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u__2 )))); |
6477 | __pyx_v_Rec = __pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2; |
6478 | |
6479 | /* "abaqusFILReader.pyx":220 |
6480 | * #Get data in a single string |
6481 | * Rec="" |
6482 | * if os.path.isfile(abqFile[0:-4]+".fil"): # <<<<<<<<<<<<<< |
6483 | * with open(abqFile[0:-4]+".fil") as f: |
6484 | * for line in f: |
6485 | */ |
6486 | __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_os)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_2) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_os)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global ->__pyx_n_s_os, &__pyx_dict_version, &__pyx_dict_cached_value );} while(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 6486; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6487 | __Pyx_GOTREF(__pyx_t_2); |
6488 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_path__pyx_mstate_global->__pyx_n_s_path); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 6488; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6489 | __Pyx_GOTREF(__pyx_t_3); |
6490 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6491 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_isfile__pyx_mstate_global->__pyx_n_s_isfile); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 6491; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6492 | __Pyx_GOTREF(__pyx_t_2); |
6493 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
6494 | __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_abqFile, 0, -4L, NULL((void*)0), NULL((void*)0), &__pyx_slice__3__pyx_mstate_global->__pyx_slice__3, 1, 1, 1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 6494; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6495 | __Pyx_GOTREF(__pyx_t_3); |
6496 | __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_kp_u_fil__pyx_mstate_global->__pyx_kp_u_fil); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 6496; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6497 | __Pyx_GOTREF(__pyx_t_4); |
6498 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
6499 | __pyx_t_3 = NULL((void*)0); |
6500 | __pyx_t_5 = 0; |
6501 | #if CYTHON_UNPACK_METHODS1 |
6502 | if (likely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyMethod_Type)), 1)) { |
6503 | __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self); |
6504 | if (likely(__pyx_t_3)__builtin_expect(!!(__pyx_t_3), 1)) { |
6505 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func); |
6506 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
6507 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
6508 | __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6509 | __pyx_t_5 = 1; |
6510 | } |
6511 | } |
6512 | #endif |
6513 | { |
6514 | PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4}; |
6515 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_5 , (size_t)(1+__pyx_t_5), ((void*)0)); |
6516 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
6517 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
6518 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 6518; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6519 | __Pyx_GOTREF(__pyx_t_1); |
6520 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6521 | } |
6522 | __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))__builtin_expect(!!((__pyx_t_6 < 0)), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 6522; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6523 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6524 | if (__pyx_t_6) { |
6525 | |
6526 | /* "abaqusFILReader.pyx":221 |
6527 | * Rec="" |
6528 | * if os.path.isfile(abqFile[0:-4]+".fil"): |
6529 | * with open(abqFile[0:-4]+".fil") as f: # <<<<<<<<<<<<<< |
6530 | * for line in f: |
6531 | * Rec+=line |
6532 | */ |
6533 | /*with:*/ { |
6534 | __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_abqFile, 0, -4L, NULL((void*)0), NULL((void*)0), &__pyx_slice__3__pyx_mstate_global->__pyx_slice__3, 1, 1, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 221, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6534; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6535 | __Pyx_GOTREF(__pyx_t_1); |
6536 | __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_kp_u_fil__pyx_mstate_global->__pyx_kp_u_fil); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 221, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6536; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6537 | __Pyx_GOTREF(__pyx_t_2); |
6538 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6539 | __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_open, __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 221, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6539; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6540 | __Pyx_GOTREF(__pyx_t_1); |
6541 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6542 | __pyx_t_7 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_n_s_exit)__Pyx__PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global-> __pyx_n_s_exit, 1); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) __PYX_ERR(0, 221, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6542; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6543 | __Pyx_GOTREF(__pyx_t_7); |
6544 | __pyx_t_4 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_n_s_enter)__Pyx__PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global-> __pyx_n_s_enter, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 221, __pyx_L4_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6544; (void)__pyx_clineno ; } goto __pyx_L4_error; } |
6545 | __Pyx_GOTREF(__pyx_t_4); |
6546 | __pyx_t_3 = NULL((void*)0); |
6547 | __pyx_t_5 = 0; |
6548 | #if CYTHON_UNPACK_METHODS1 |
6549 | if (likely(PyMethod_Check(__pyx_t_4))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), & PyMethod_Type)), 1)) { |
6550 | __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_self); |
6551 | if (likely(__pyx_t_3)__builtin_expect(!!(__pyx_t_3), 1)) { |
6552 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4)(((PyMethodObject *)__pyx_t_4) -> im_func); |
6553 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
6554 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
6555 | __Pyx_DECREF_SET(__pyx_t_4, function)do { PyObject *tmp = (PyObject *) __pyx_t_4; __pyx_t_4 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6556 | __pyx_t_5 = 1; |
6557 | } |
6558 | } |
6559 | #endif |
6560 | { |
6561 | PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL((void*)0)}; |
6562 | __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5)__Pyx_PyObject_FastCallDict(__pyx_t_4, __pyx_callargs+1-__pyx_t_5 , (size_t)(0+__pyx_t_5), ((void*)0)); |
6563 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
6564 | if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 221, __pyx_L4_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6564; (void)__pyx_clineno ; } goto __pyx_L4_error; } |
6565 | __Pyx_GOTREF(__pyx_t_2); |
6566 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
6567 | } |
6568 | __pyx_t_4 = __pyx_t_2; |
6569 | __pyx_t_2 = 0; |
6570 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6571 | /*try:*/ { |
6572 | { |
6573 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
6574 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
6575 | __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10)__Pyx__ExceptionSave(__pyx_tstate, &__pyx_t_8, &__pyx_t_9 , &__pyx_t_10); |
6576 | __Pyx_XGOTREF(__pyx_t_8); |
6577 | __Pyx_XGOTREF(__pyx_t_9); |
6578 | __Pyx_XGOTREF(__pyx_t_10); |
6579 | /*try:*/ { |
6580 | __pyx_v_f = __pyx_t_4; |
6581 | __pyx_t_4 = 0; |
6582 | |
6583 | /* "abaqusFILReader.pyx":222 |
6584 | * if os.path.isfile(abqFile[0:-4]+".fil"): |
6585 | * with open(abqFile[0:-4]+".fil") as f: |
6586 | * for line in f: # <<<<<<<<<<<<<< |
6587 | * Rec+=line |
6588 | * Rec=Rec.replace("\n","") |
6589 | */ |
6590 | if (likely(PyList_CheckExact(__pyx_v_f))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_f))), & PyList_Type)), 1) || PyTuple_CheckExact(__pyx_v_f)Py_IS_TYPE(((PyObject*)((__pyx_v_f))), &PyTuple_Type)) { |
6591 | __pyx_t_4 = __pyx_v_f; __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
6592 | __pyx_t_11 = 0; |
6593 | __pyx_t_12 = NULL((void*)0); |
6594 | } else { |
6595 | __pyx_t_11 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_f); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6595; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6596 | __Pyx_GOTREF(__pyx_t_4); |
6597 | __pyx_t_12 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_4)(Py_TYPE(((PyObject*)((__pyx_t_4))))->tp_iternext); if (unlikely(!__pyx_t_12)__builtin_expect(!!(!__pyx_t_12), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6597; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6598 | } |
6599 | for (;;) { |
6600 | if (likely(!__pyx_t_12)__builtin_expect(!!(!__pyx_t_12), 1)) { |
6601 | if (likely(PyList_CheckExact(__pyx_t_4))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), & PyList_Type)), 1)) { |
6602 | { |
6603 | Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4)PyList_GET_SIZE(((PyObject*)((__pyx_t_4)))); |
6604 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
6605 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6605; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6606 | #endif |
6607 | if (__pyx_t_11 >= __pyx_temp) break; |
6608 | } |
6609 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
6610 | __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_11)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_4 )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_4)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(__pyx_t_4)", "abaqusFILReader.c" , 6610, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((__pyx_t_4))))->ob_item[__pyx_t_11]); __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); __pyx_t_11++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6610; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6611 | #else |
6612 | __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_11)( Py_TYPE(((PyObject*)((__pyx_t_4))))->tp_as_sequence-> sq_item(__pyx_t_4, __pyx_t_11) ); __pyx_t_11++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6612; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6613 | __Pyx_GOTREF(__pyx_t_1); |
6614 | #endif |
6615 | } else { |
6616 | { |
6617 | Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4)PyTuple_GET_SIZE(((PyObject*)((__pyx_t_4)))); |
6618 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
6619 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6619; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6620 | #endif |
6621 | if (__pyx_t_11 >= __pyx_temp) break; |
6622 | } |
6623 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
6624 | __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_11)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_4 )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_4)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(__pyx_t_4)", "abaqusFILReader.c" , 6624, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((__pyx_t_4))))->ob_item[__pyx_t_11]); __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); __pyx_t_11++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6624; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6625 | #else |
6626 | __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_11)( Py_TYPE(((PyObject*)((__pyx_t_4))))->tp_as_sequence-> sq_item(__pyx_t_4, __pyx_t_11) ); __pyx_t_11++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6626; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6627 | __Pyx_GOTREF(__pyx_t_1); |
6628 | #endif |
6629 | } |
6630 | } else { |
6631 | __pyx_t_1 = __pyx_t_12(__pyx_t_4); |
6632 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) { |
6633 | PyObject* exc_type = PyErr_Occurred(); |
6634 | if (exc_type) { |
6635 | if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(exc_type , PyExc_StopIteration)), 1)) PyErr_Clear(); |
6636 | else __PYX_ERR(0, 222, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 222; (void)__pyx_lineno; __pyx_clineno = 6636; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6637 | } |
6638 | break; |
6639 | } |
6640 | __Pyx_GOTREF(__pyx_t_1); |
6641 | } |
6642 | __Pyx_XDECREF_SET(__pyx_v_line, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_line; __pyx_v_line = __pyx_t_1; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
6643 | __pyx_t_1 = 0; |
6644 | |
6645 | /* "abaqusFILReader.pyx":223 |
6646 | * with open(abqFile[0:-4]+".fil") as f: |
6647 | * for line in f: |
6648 | * Rec+=line # <<<<<<<<<<<<<< |
6649 | * Rec=Rec.replace("\n","") |
6650 | * Rec=Rec.replace("\r","") |
6651 | */ |
6652 | __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_Rec, __pyx_v_line); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 223, __pyx_L8_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 223; (void)__pyx_lineno; __pyx_clineno = 6652; (void)__pyx_clineno ; } goto __pyx_L8_error; } |
6653 | __Pyx_GOTREF(__pyx_t_1); |
6654 | __Pyx_DECREF_SET(__pyx_v_Rec, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_Rec; __pyx_v_Rec = __pyx_t_1 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6655 | __pyx_t_1 = 0; |
6656 | |
6657 | /* "abaqusFILReader.pyx":222 |
6658 | * if os.path.isfile(abqFile[0:-4]+".fil"): |
6659 | * with open(abqFile[0:-4]+".fil") as f: |
6660 | * for line in f: # <<<<<<<<<<<<<< |
6661 | * Rec+=line |
6662 | * Rec=Rec.replace("\n","") |
6663 | */ |
6664 | } |
6665 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
6666 | |
6667 | /* "abaqusFILReader.pyx":221 |
6668 | * Rec="" |
6669 | * if os.path.isfile(abqFile[0:-4]+".fil"): |
6670 | * with open(abqFile[0:-4]+".fil") as f: # <<<<<<<<<<<<<< |
6671 | * for line in f: |
6672 | * Rec+=line |
6673 | */ |
6674 | } |
6675 | __Pyx_XDECREF(__pyx_t_8)Py_XDECREF(((PyObject*)((__pyx_t_8)))); __pyx_t_8 = 0; |
6676 | __Pyx_XDECREF(__pyx_t_9)Py_XDECREF(((PyObject*)((__pyx_t_9)))); __pyx_t_9 = 0; |
6677 | __Pyx_XDECREF(__pyx_t_10)Py_XDECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0; |
6678 | goto __pyx_L13_try_end; |
6679 | __pyx_L8_error:; |
6680 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6681 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6682 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
6683 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
6684 | /*except:*/ { |
6685 | __Pyx_AddTraceback("abaqusFILReader.extractFilRecords", __pyx_clineno, __pyx_lineno, __pyx_filename); |
6686 | if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_2)__Pyx__GetException(__pyx_tstate, &__pyx_t_4, &__pyx_t_1 , &__pyx_t_2) < 0) __PYX_ERR(0, 221, __pyx_L10_except_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6686; (void)__pyx_clineno ; } goto __pyx_L10_except_error; } |
6687 | __Pyx_XGOTREF(__pyx_t_4); |
6688 | __Pyx_XGOTREF(__pyx_t_1); |
6689 | __Pyx_XGOTREF(__pyx_t_2); |
6690 | __pyx_t_3 = PyTuple_Pack(3, __pyx_t_4, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 221, __pyx_L10_except_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6690; (void)__pyx_clineno ; } goto __pyx_L10_except_error; } |
6691 | __Pyx_GOTREF(__pyx_t_3); |
6692 | __pyx_t_13 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL((void*)0)); |
6693 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6694 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
6695 | if (unlikely(!__pyx_t_13)__builtin_expect(!!(!__pyx_t_13), 0)) __PYX_ERR(0, 221, __pyx_L10_except_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6695; (void)__pyx_clineno ; } goto __pyx_L10_except_error; } |
6696 | __Pyx_GOTREF(__pyx_t_13); |
6697 | __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_13); |
6698 | __Pyx_DECREF(__pyx_t_13)Py_DECREF(((PyObject*)((__pyx_t_13)))); __pyx_t_13 = 0; |
6699 | if (__pyx_t_6 < 0) __PYX_ERR(0, 221, __pyx_L10_except_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6699; (void)__pyx_clineno ; } goto __pyx_L10_except_error; } |
6700 | __pyx_t_14 = (!__pyx_t_6); |
6701 | if (unlikely(__pyx_t_14)__builtin_expect(!!(__pyx_t_14), 0)) { |
6702 | __Pyx_GIVEREF(__pyx_t_4); |
6703 | __Pyx_GIVEREF(__pyx_t_1); |
6704 | __Pyx_XGIVEREF(__pyx_t_2); |
6705 | __Pyx_ErrRestoreWithState(__pyx_t_4, __pyx_t_1, __pyx_t_2)__Pyx_ErrRestoreInState(PyThreadState_Get(), __pyx_t_4, __pyx_t_1 , __pyx_t_2); |
6706 | __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_t_2 = 0; |
6707 | __PYX_ERR(0, 221, __pyx_L10_except_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6707; (void)__pyx_clineno ; } goto __pyx_L10_except_error; } |
6708 | } |
6709 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
6710 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6711 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6712 | goto __pyx_L9_exception_handled; |
6713 | } |
6714 | __pyx_L10_except_error:; |
6715 | __Pyx_XGIVEREF(__pyx_t_8); |
6716 | __Pyx_XGIVEREF(__pyx_t_9); |
6717 | __Pyx_XGIVEREF(__pyx_t_10); |
6718 | __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10)__Pyx__ExceptionReset(__pyx_tstate, __pyx_t_8, __pyx_t_9, __pyx_t_10 ); |
6719 | goto __pyx_L1_error; |
6720 | __pyx_L9_exception_handled:; |
6721 | __Pyx_XGIVEREF(__pyx_t_8); |
6722 | __Pyx_XGIVEREF(__pyx_t_9); |
6723 | __Pyx_XGIVEREF(__pyx_t_10); |
6724 | __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10)__Pyx__ExceptionReset(__pyx_tstate, __pyx_t_8, __pyx_t_9, __pyx_t_10 ); |
6725 | __pyx_L13_try_end:; |
6726 | } |
6727 | } |
6728 | /*finally:*/ { |
6729 | /*normal exit:*/{ |
6730 | if (__pyx_t_7) { |
6731 | __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4, NULL((void*)0)); |
6732 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6733 | if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) __PYX_ERR(0, 221, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 6733; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6734 | __Pyx_GOTREF(__pyx_t_10); |
6735 | __Pyx_DECREF(__pyx_t_10)Py_DECREF(((PyObject*)((__pyx_t_10)))); __pyx_t_10 = 0; |
6736 | } |
6737 | goto __pyx_L7; |
6738 | } |
6739 | __pyx_L7:; |
6740 | } |
6741 | goto __pyx_L20; |
6742 | __pyx_L4_error:; |
6743 | __Pyx_DECREF(__pyx_t_7)Py_DECREF(((PyObject*)((__pyx_t_7)))); __pyx_t_7 = 0; |
6744 | goto __pyx_L1_error; |
6745 | __pyx_L20:; |
6746 | } |
6747 | |
6748 | /* "abaqusFILReader.pyx":224 |
6749 | * for line in f: |
6750 | * Rec+=line |
6751 | * Rec=Rec.replace("\n","") # <<<<<<<<<<<<<< |
6752 | * Rec=Rec.replace("\r","") |
6753 | * if debug: |
6754 | */ |
6755 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_Rec, __pyx_n_s_replace__pyx_mstate_global->__pyx_n_s_replace); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 224, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 224; (void)__pyx_lineno; __pyx_clineno = 6755; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6756 | __Pyx_GOTREF(__pyx_t_2); |
6757 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__6__pyx_mstate_global->__pyx_tuple__6, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 224, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 224; (void)__pyx_lineno; __pyx_clineno = 6757; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6758 | __Pyx_GOTREF(__pyx_t_1); |
6759 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6760 | __Pyx_DECREF_SET(__pyx_v_Rec, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_Rec; __pyx_v_Rec = __pyx_t_1 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6761 | __pyx_t_1 = 0; |
6762 | |
6763 | /* "abaqusFILReader.pyx":225 |
6764 | * Rec+=line |
6765 | * Rec=Rec.replace("\n","") |
6766 | * Rec=Rec.replace("\r","") # <<<<<<<<<<<<<< |
6767 | * if debug: |
6768 | * print('record',Rec) #debug |
6769 | */ |
6770 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_Rec, __pyx_n_s_replace__pyx_mstate_global->__pyx_n_s_replace); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 225, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 225; (void)__pyx_lineno; __pyx_clineno = 6770; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6771 | __Pyx_GOTREF(__pyx_t_1); |
6772 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__8__pyx_mstate_global->__pyx_tuple__8, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 225, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 225; (void)__pyx_lineno; __pyx_clineno = 6772; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6773 | __Pyx_GOTREF(__pyx_t_2); |
6774 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6775 | __Pyx_DECREF_SET(__pyx_v_Rec, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_Rec; __pyx_v_Rec = __pyx_t_2 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6776 | __pyx_t_2 = 0; |
6777 | |
6778 | /* "abaqusFILReader.pyx":226 |
6779 | * Rec=Rec.replace("\n","") |
6780 | * Rec=Rec.replace("\r","") |
6781 | * if debug: # <<<<<<<<<<<<<< |
6782 | * print('record',Rec) #debug |
6783 | * |
6784 | */ |
6785 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 226, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 226; (void)__pyx_lineno; __pyx_clineno = 6785; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6786 | if (__pyx_t_14) { |
6787 | |
6788 | /* "abaqusFILReader.pyx":227 |
6789 | * Rec=Rec.replace("\r","") |
6790 | * if debug: |
6791 | * print('record',Rec) #debug # <<<<<<<<<<<<<< |
6792 | * |
6793 | * ind = list(findAll(Rec, "*")) |
6794 | */ |
6795 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 227, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 227; (void)__pyx_lineno; __pyx_clineno = 6795; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6796 | __Pyx_GOTREF(__pyx_t_2); |
6797 | __Pyx_INCREF(__pyx_n_u_record_2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_n_u_record_2 )))); |
6798 | __Pyx_GIVEREF(__pyx_n_u_record_2); |
6799 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_record_2)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_n_u_record_2)))), (0))) __PYX_ERR(0, 227, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 227; (void)__pyx_lineno; __pyx_clineno = 6799; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6800 | __Pyx_INCREF(__pyx_v_Rec)Py_INCREF(((PyObject*)((__pyx_v_Rec)))); |
6801 | __Pyx_GIVEREF(__pyx_v_Rec); |
6802 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_Rec)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*) ((__pyx_v_Rec)))), (0))) __PYX_ERR(0, 227, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 227; (void)__pyx_lineno; __pyx_clineno = 6802; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6803 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 227, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 227; (void)__pyx_lineno; __pyx_clineno = 6803; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6804 | __Pyx_GOTREF(__pyx_t_1); |
6805 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6806 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6807 | |
6808 | /* "abaqusFILReader.pyx":226 |
6809 | * Rec=Rec.replace("\n","") |
6810 | * Rec=Rec.replace("\r","") |
6811 | * if debug: # <<<<<<<<<<<<<< |
6812 | * print('record',Rec) #debug |
6813 | * |
6814 | */ |
6815 | } |
6816 | |
6817 | /* "abaqusFILReader.pyx":229 |
6818 | * print('record',Rec) #debug |
6819 | * |
6820 | * ind = list(findAll(Rec, "*")) # <<<<<<<<<<<<<< |
6821 | * |
6822 | * if debug: |
6823 | */ |
6824 | __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_findAll)do { static uint64_t __pyx_dict_version = 0; static PyObject * __pyx_dict_cached_value = ((void*)0); (__pyx_t_2) = (__builtin_expect (!!(__pyx_dict_version == (((PyDictObject*)(__pyx_mstate_global ->__pyx_d))->ma_version_tag)), 1)) ? (__builtin_expect( !!(__pyx_dict_cached_value), 1) ? (Py_INCREF(((PyObject*)((__pyx_dict_cached_value )))), __pyx_dict_cached_value) : __Pyx_GetBuiltinName(__pyx_mstate_global ->__pyx_n_s_findAll)) : __Pyx__GetModuleGlobalName(__pyx_mstate_global ->__pyx_n_s_findAll, &__pyx_dict_version, &__pyx_dict_cached_value );} while(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 229, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 229; (void)__pyx_lineno; __pyx_clineno = 6824; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6825 | __Pyx_GOTREF(__pyx_t_2); |
6826 | __pyx_t_4 = NULL((void*)0); |
6827 | __pyx_t_5 = 0; |
6828 | #if CYTHON_UNPACK_METHODS1 |
6829 | if (unlikely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyMethod_Type)), 0)) { |
6830 | __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self); |
6831 | if (likely(__pyx_t_4)__builtin_expect(!!(__pyx_t_4), 1)) { |
6832 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func); |
6833 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
6834 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
6835 | __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6836 | __pyx_t_5 = 1; |
6837 | } |
6838 | } |
6839 | #endif |
6840 | { |
6841 | PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_Rec, __pyx_kp_u__9__pyx_mstate_global->__pyx_kp_u__9}; |
6842 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_5 , (size_t)(2+__pyx_t_5), ((void*)0)); |
6843 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
6844 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 229, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 229; (void)__pyx_lineno; __pyx_clineno = 6844; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6845 | __Pyx_GOTREF(__pyx_t_1); |
6846 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6847 | } |
6848 | __pyx_t_2 = __Pyx_PySequence_ListKeepNew(__pyx_t_1)(__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyList_Type) && Py_REFCNT(((PyObject*)((__pyx_t_1)))) == 1), 1) ? (Py_INCREF(((PyObject*)((__pyx_t_1)))), __pyx_t_1 ) : PySequence_List(__pyx_t_1)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 229, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 229; (void)__pyx_lineno; __pyx_clineno = 6848; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6849 | __Pyx_GOTREF(__pyx_t_2); |
6850 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6851 | __pyx_v_ind = ((PyObject*)__pyx_t_2); |
6852 | __pyx_t_2 = 0; |
6853 | |
6854 | /* "abaqusFILReader.pyx":231 |
6855 | * ind = list(findAll(Rec, "*")) |
6856 | * |
6857 | * if debug: # <<<<<<<<<<<<<< |
6858 | * print('index:',ind) |
6859 | * |
6860 | */ |
6861 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 231, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 231; (void)__pyx_lineno; __pyx_clineno = 6861; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6862 | if (__pyx_t_14) { |
6863 | |
6864 | /* "abaqusFILReader.pyx":232 |
6865 | * |
6866 | * if debug: |
6867 | * print('index:',ind) # <<<<<<<<<<<<<< |
6868 | * |
6869 | * if ind==None: |
6870 | */ |
6871 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 232, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 232; (void)__pyx_lineno; __pyx_clineno = 6871; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6872 | __Pyx_GOTREF(__pyx_t_2); |
6873 | __Pyx_INCREF(__pyx_kp_u_index)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_index )))); |
6874 | __Pyx_GIVEREF(__pyx_kp_u_index); |
6875 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_index)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_index)))), (0))) __PYX_ERR(0, 232, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 232; (void)__pyx_lineno; __pyx_clineno = 6875; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6876 | __Pyx_INCREF(__pyx_v_ind)Py_INCREF(((PyObject*)((__pyx_v_ind)))); |
6877 | __Pyx_GIVEREF(__pyx_v_ind); |
6878 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_ind)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*) ((__pyx_v_ind)))), (0))) __PYX_ERR(0, 232, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 232; (void)__pyx_lineno; __pyx_clineno = 6878; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6879 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 232, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 232; (void)__pyx_lineno; __pyx_clineno = 6879; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6880 | __Pyx_GOTREF(__pyx_t_1); |
6881 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
6882 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6883 | |
6884 | /* "abaqusFILReader.pyx":231 |
6885 | * ind = list(findAll(Rec, "*")) |
6886 | * |
6887 | * if debug: # <<<<<<<<<<<<<< |
6888 | * print('index:',ind) |
6889 | * |
6890 | */ |
6891 | } |
6892 | |
6893 | /* "abaqusFILReader.pyx":234 |
6894 | * print('index:',ind) |
6895 | * |
6896 | * if ind==None: # <<<<<<<<<<<<<< |
6897 | * return 2,"empty file",[] |
6898 | * RecSplit=Rec.split('*') |
6899 | */ |
6900 | __pyx_t_1 = PyObject_RichCompare(__pyx_v_ind, Py_None(&_Py_NoneStruct), Py_EQ2); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 234, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 234; (void)__pyx_lineno; __pyx_clineno = 6900; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6901 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 234, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 234; (void)__pyx_lineno; __pyx_clineno = 6901; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6902 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6903 | if (__pyx_t_14) { |
6904 | |
6905 | /* "abaqusFILReader.pyx":235 |
6906 | * |
6907 | * if ind==None: |
6908 | * return 2,"empty file",[] # <<<<<<<<<<<<<< |
6909 | * RecSplit=Rec.split('*') |
6910 | * del RecSplit[0] #first entry is blank |
6911 | */ |
6912 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
6913 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 235, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 235; (void)__pyx_lineno; __pyx_clineno = 6913; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6914 | __Pyx_GOTREF(__pyx_t_1); |
6915 | __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 235, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 235; (void)__pyx_lineno; __pyx_clineno = 6915; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6916 | __Pyx_GOTREF(__pyx_t_2); |
6917 | __Pyx_INCREF(__pyx_int_2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_2)) )); |
6918 | __Pyx_GIVEREF(__pyx_int_2); |
6919 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_2)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_int_2)))), (0))) __PYX_ERR(0, 235, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 235; (void)__pyx_lineno; __pyx_clineno = 6919; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6920 | __Pyx_INCREF(__pyx_kp_u_empty_file)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_empty_file )))); |
6921 | __Pyx_GIVEREF(__pyx_kp_u_empty_file); |
6922 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_kp_u_empty_file)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_empty_file)))), (0))) __PYX_ERR(0, 235, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 235; (void)__pyx_lineno; __pyx_clineno = 6922; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6923 | __Pyx_GIVEREF(__pyx_t_1); |
6924 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_1)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 2, ((PyObject*) ((__pyx_t_1)))), (0))) __PYX_ERR(0, 235, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 235; (void)__pyx_lineno; __pyx_clineno = 6924; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
6925 | __pyx_t_1 = 0; |
6926 | __pyx_r = __pyx_t_2; |
6927 | __pyx_t_2 = 0; |
6928 | goto __pyx_L0; |
6929 | |
6930 | /* "abaqusFILReader.pyx":234 |
6931 | * print('index:',ind) |
6932 | * |
6933 | * if ind==None: # <<<<<<<<<<<<<< |
6934 | * return 2,"empty file",[] |
6935 | * RecSplit=Rec.split('*') |
6936 | */ |
6937 | } |
6938 | |
6939 | /* "abaqusFILReader.pyx":236 |
6940 | * if ind==None: |
6941 | * return 2,"empty file",[] |
6942 | * RecSplit=Rec.split('*') # <<<<<<<<<<<<<< |
6943 | * del RecSplit[0] #first entry is blank |
6944 | * |
6945 | */ |
6946 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_Rec, __pyx_n_s_split__pyx_mstate_global->__pyx_n_s_split); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 236, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 236; (void)__pyx_lineno; __pyx_clineno = 6946; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6947 | __Pyx_GOTREF(__pyx_t_1); |
6948 | __pyx_t_4 = NULL((void*)0); |
6949 | __pyx_t_5 = 0; |
6950 | #if CYTHON_UNPACK_METHODS1 |
6951 | if (likely(PyMethod_Check(__pyx_t_1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyMethod_Type)), 1)) { |
6952 | __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1)(((PyMethodObject *)__pyx_t_1) -> im_self); |
6953 | if (likely(__pyx_t_4)__builtin_expect(!!(__pyx_t_4), 1)) { |
6954 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1)(((PyMethodObject *)__pyx_t_1) -> im_func); |
6955 | __Pyx_INCREF(__pyx_t_4)Py_INCREF(((PyObject*)((__pyx_t_4)))); |
6956 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
6957 | __Pyx_DECREF_SET(__pyx_t_1, function)do { PyObject *tmp = (PyObject *) __pyx_t_1; __pyx_t_1 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
6958 | __pyx_t_5 = 1; |
6959 | } |
6960 | } |
6961 | #endif |
6962 | { |
6963 | PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_kp_u__9__pyx_mstate_global->__pyx_kp_u__9}; |
6964 | __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5)__Pyx_PyObject_FastCallDict(__pyx_t_1, __pyx_callargs+1-__pyx_t_5 , (size_t)(1+__pyx_t_5), ((void*)0)); |
6965 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
6966 | if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 236, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 236; (void)__pyx_lineno; __pyx_clineno = 6966; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6967 | __Pyx_GOTREF(__pyx_t_2); |
6968 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
6969 | } |
6970 | __pyx_v_RecSplit = __pyx_t_2; |
6971 | __pyx_t_2 = 0; |
6972 | |
6973 | /* "abaqusFILReader.pyx":237 |
6974 | * return 2,"empty file",[] |
6975 | * RecSplit=Rec.split('*') |
6976 | * del RecSplit[0] #first entry is blank # <<<<<<<<<<<<<< |
6977 | * |
6978 | * if debug: |
6979 | */ |
6980 | if (unlikely((__Pyx_DelItemInt(__pyx_v_RecSplit, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1) < 0))__builtin_expect(!!(((( (sizeof(long) < sizeof(Py_ssize_t) ) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1) && (!1 || __builtin_expect(!!(0 > (long)(-9223372036854775807L -1) || 0 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1))) ) ? __Pyx_DelItemInt_Fast(__pyx_v_RecSplit, (Py_ssize_t )0, 0, 0) : (0 ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range" ), -1) : __Pyx_DelItem_Generic(__pyx_v_RecSplit, __Pyx_PyInt_From_long (0)))) < 0)), 0)) __PYX_ERR(0, 237, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 237; (void)__pyx_lineno; __pyx_clineno = 6980; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6981 | |
6982 | /* "abaqusFILReader.pyx":239 |
6983 | * del RecSplit[0] #first entry is blank |
6984 | * |
6985 | * if debug: # <<<<<<<<<<<<<< |
6986 | * print(RecSplit[0]) |
6987 | * |
6988 | */ |
6989 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 239, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 239; (void)__pyx_lineno; __pyx_clineno = 6989; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
6990 | if (__pyx_t_14) { |
6991 | |
6992 | /* "abaqusFILReader.pyx":240 |
6993 | * |
6994 | * if debug: |
6995 | * print(RecSplit[0]) # <<<<<<<<<<<<<< |
6996 | * |
6997 | * ParsedData=[] |
6998 | */ |
6999 | __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_RecSplit, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(0 < (long )9223372036854775807L || 0 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(0 > (long)(-9223372036854775807L -1) || 0 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_v_RecSplit, (Py_ssize_t )0, 0, 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_v_RecSplit , __Pyx_PyInt_From_long(0)))); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 240, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 240; (void)__pyx_lineno; __pyx_clineno = 6999; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7000 | __Pyx_GOTREF(__pyx_t_2); |
7001 | __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 240, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 240; (void)__pyx_lineno; __pyx_clineno = 7001; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7002 | __Pyx_GOTREF(__pyx_t_1); |
7003 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7004 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
7005 | |
7006 | /* "abaqusFILReader.pyx":239 |
7007 | * del RecSplit[0] #first entry is blank |
7008 | * |
7009 | * if debug: # <<<<<<<<<<<<<< |
7010 | * print(RecSplit[0]) |
7011 | * |
7012 | */ |
7013 | } |
7014 | |
7015 | /* "abaqusFILReader.pyx":242 |
7016 | * print(RecSplit[0]) |
7017 | * |
7018 | * ParsedData=[] # <<<<<<<<<<<<<< |
7019 | * |
7020 | * for record in RecSplit: |
7021 | */ |
7022 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 242, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 242; (void)__pyx_lineno; __pyx_clineno = 7022; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7023 | __Pyx_GOTREF(__pyx_t_1); |
7024 | __pyx_v_ParsedData = ((PyObject*)__pyx_t_1); |
7025 | __pyx_t_1 = 0; |
7026 | |
7027 | /* "abaqusFILReader.pyx":244 |
7028 | * ParsedData=[] |
7029 | * |
7030 | * for record in RecSplit: # <<<<<<<<<<<<<< |
7031 | * pos=0 |
7032 | * temp=[] |
7033 | */ |
7034 | if (likely(PyList_CheckExact(__pyx_v_RecSplit))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_RecSplit ))), &PyList_Type)), 1) || PyTuple_CheckExact(__pyx_v_RecSplit)Py_IS_TYPE(((PyObject*)((__pyx_v_RecSplit))), &PyTuple_Type )) { |
7035 | __pyx_t_1 = __pyx_v_RecSplit; __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); |
7036 | __pyx_t_11 = 0; |
7037 | __pyx_t_12 = NULL((void*)0); |
7038 | } else { |
7039 | __pyx_t_11 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_RecSplit); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7039; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7040 | __Pyx_GOTREF(__pyx_t_1); |
7041 | __pyx_t_12 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1)(Py_TYPE(((PyObject*)((__pyx_t_1))))->tp_iternext); if (unlikely(!__pyx_t_12)__builtin_expect(!!(!__pyx_t_12), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7041; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7042 | } |
7043 | for (;;) { |
7044 | if (likely(!__pyx_t_12)__builtin_expect(!!(!__pyx_t_12), 1)) { |
7045 | if (likely(PyList_CheckExact(__pyx_t_1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_1))), & PyList_Type)), 1)) { |
7046 | { |
7047 | Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1)PyList_GET_SIZE(((PyObject*)((__pyx_t_1)))); |
7048 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
7049 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7049; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7050 | #endif |
7051 | if (__pyx_t_11 >= __pyx_temp) break; |
7052 | } |
7053 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
7054 | __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_11)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_1 )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_1)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(__pyx_t_1)", "abaqusFILReader.c" , 7054, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((__pyx_t_1))))->ob_item[__pyx_t_11]); __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); __pyx_t_11++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7054; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7055 | #else |
7056 | __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_11)( Py_TYPE(((PyObject*)((__pyx_t_1))))->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_11) ); __pyx_t_11++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7056; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7057 | __Pyx_GOTREF(__pyx_t_2); |
7058 | #endif |
7059 | } else { |
7060 | { |
7061 | Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1)PyTuple_GET_SIZE(((PyObject*)((__pyx_t_1)))); |
7062 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
7063 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7063; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7064 | #endif |
7065 | if (__pyx_t_11 >= __pyx_temp) break; |
7066 | } |
7067 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
7068 | __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_11)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_1 )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_1)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(__pyx_t_1)", "abaqusFILReader.c" , 7068, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((__pyx_t_1))))->ob_item[__pyx_t_11]); __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); __pyx_t_11++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7068; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7069 | #else |
7070 | __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_11)( Py_TYPE(((PyObject*)((__pyx_t_1))))->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_11) ); __pyx_t_11++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7070; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7071 | __Pyx_GOTREF(__pyx_t_2); |
7072 | #endif |
7073 | } |
7074 | } else { |
7075 | __pyx_t_2 = __pyx_t_12(__pyx_t_1); |
7076 | if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) { |
7077 | PyObject* exc_type = PyErr_Occurred(); |
7078 | if (exc_type) { |
7079 | if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(exc_type , PyExc_StopIteration)), 1)) PyErr_Clear(); |
7080 | else __PYX_ERR(0, 244, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 244; (void)__pyx_lineno; __pyx_clineno = 7080; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7081 | } |
7082 | break; |
7083 | } |
7084 | __Pyx_GOTREF(__pyx_t_2); |
7085 | } |
7086 | __Pyx_XDECREF_SET(__pyx_v_record, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_record; __pyx_v_record = __pyx_t_2; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
7087 | __pyx_t_2 = 0; |
7088 | |
7089 | /* "abaqusFILReader.pyx":245 |
7090 | * |
7091 | * for record in RecSplit: |
7092 | * pos=0 # <<<<<<<<<<<<<< |
7093 | * temp=[] |
7094 | * |
7095 | */ |
7096 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
7097 | __Pyx_XDECREF_SET(__pyx_v_pos, __pyx_int_0)do { PyObject *tmp = (PyObject *) __pyx_v_pos; __pyx_v_pos = __pyx_mstate_global ->__pyx_int_0; Py_XDECREF(((PyObject*)((tmp)))); } while ( 0); |
7098 | |
7099 | /* "abaqusFILReader.pyx":246 |
7100 | * for record in RecSplit: |
7101 | * pos=0 |
7102 | * temp=[] # <<<<<<<<<<<<<< |
7103 | * |
7104 | * if debug: |
7105 | */ |
7106 | __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 246, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 246; (void)__pyx_lineno; __pyx_clineno = 7106; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7107 | __Pyx_GOTREF(__pyx_t_2); |
7108 | __Pyx_XDECREF_SET(__pyx_v_temp, ((PyObject*)__pyx_t_2))do { PyObject *tmp = (PyObject *) __pyx_v_temp; __pyx_v_temp = ((PyObject*)__pyx_t_2); Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
7109 | __pyx_t_2 = 0; |
7110 | |
7111 | /* "abaqusFILReader.pyx":248 |
7112 | * temp=[] |
7113 | * |
7114 | * if debug: # <<<<<<<<<<<<<< |
7115 | * print("record length: ",len(record)) |
7116 | * print("record: ",record) |
7117 | */ |
7118 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 248, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 248; (void)__pyx_lineno; __pyx_clineno = 7118; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7119 | if (__pyx_t_14) { |
7120 | |
7121 | /* "abaqusFILReader.pyx":249 |
7122 | * |
7123 | * if debug: |
7124 | * print("record length: ",len(record)) # <<<<<<<<<<<<<< |
7125 | * print("record: ",record) |
7126 | * #numberRec=int(record[3:3+int(record[2])]) #pull the # of records |
7127 | */ |
7128 | __pyx_t_15 = PyObject_LengthPyObject_Size(__pyx_v_record); if (unlikely(__pyx_t_15 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_15 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 249, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 249; (void)__pyx_lineno; __pyx_clineno = 7128; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7129 | __pyx_t_2 = PyInt_FromSsize_tPyLong_FromSsize_t(__pyx_t_15); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 249, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 249; (void)__pyx_lineno; __pyx_clineno = 7129; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7130 | __Pyx_GOTREF(__pyx_t_2); |
7131 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 249, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 249; (void)__pyx_lineno; __pyx_clineno = 7131; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7132 | __Pyx_GOTREF(__pyx_t_4); |
7133 | __Pyx_INCREF(__pyx_kp_u_record_length)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_record_length )))); |
7134 | __Pyx_GIVEREF(__pyx_kp_u_record_length); |
7135 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_record_length)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_4))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_record_length)))), (0))) __PYX_ERR(0, 249, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 249; (void)__pyx_lineno; __pyx_clineno = 7135; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7136 | __Pyx_GIVEREF(__pyx_t_2); |
7137 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_4))), 1, ((PyObject*) ((__pyx_t_2)))), (0))) __PYX_ERR(0, 249, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 249; (void)__pyx_lineno; __pyx_clineno = 7137; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7138 | __pyx_t_2 = 0; |
7139 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 249, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 249; (void)__pyx_lineno; __pyx_clineno = 7139; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7140 | __Pyx_GOTREF(__pyx_t_2); |
7141 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7142 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7143 | |
7144 | /* "abaqusFILReader.pyx":250 |
7145 | * if debug: |
7146 | * print("record length: ",len(record)) |
7147 | * print("record: ",record) # <<<<<<<<<<<<<< |
7148 | * #numberRec=int(record[3:3+int(record[2])]) #pull the # of records |
7149 | * if debug: |
7150 | */ |
7151 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 250, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 250; (void)__pyx_lineno; __pyx_clineno = 7151; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7152 | __Pyx_GOTREF(__pyx_t_2); |
7153 | __Pyx_INCREF(__pyx_kp_u_record_3)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_record_3 )))); |
7154 | __Pyx_GIVEREF(__pyx_kp_u_record_3); |
7155 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_record_3)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_record_3)))), (0))) __PYX_ERR(0, 250, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 250; (void)__pyx_lineno; __pyx_clineno = 7155; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7156 | __Pyx_INCREF(__pyx_v_record)Py_INCREF(((PyObject*)((__pyx_v_record)))); |
7157 | __Pyx_GIVEREF(__pyx_v_record); |
7158 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_record)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*) ((__pyx_v_record)))), (0))) __PYX_ERR(0, 250, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 250; (void)__pyx_lineno; __pyx_clineno = 7158; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7159 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 250, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 250; (void)__pyx_lineno; __pyx_clineno = 7159; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7160 | __Pyx_GOTREF(__pyx_t_4); |
7161 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7162 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7163 | |
7164 | /* "abaqusFILReader.pyx":248 |
7165 | * temp=[] |
7166 | * |
7167 | * if debug: # <<<<<<<<<<<<<< |
7168 | * print("record length: ",len(record)) |
7169 | * print("record: ",record) |
7170 | */ |
7171 | } |
7172 | |
7173 | /* "abaqusFILReader.pyx":252 |
7174 | * print("record: ",record) |
7175 | * #numberRec=int(record[3:3+int(record[2])]) #pull the # of records |
7176 | * if debug: # <<<<<<<<<<<<<< |
7177 | * print("record length: ",len(record)) |
7178 | * temp2="" |
7179 | */ |
7180 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 252, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 252; (void)__pyx_lineno; __pyx_clineno = 7180; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7181 | if (__pyx_t_14) { |
7182 | |
7183 | /* "abaqusFILReader.pyx":253 |
7184 | * #numberRec=int(record[3:3+int(record[2])]) #pull the # of records |
7185 | * if debug: |
7186 | * print("record length: ",len(record)) # <<<<<<<<<<<<<< |
7187 | * temp2="" |
7188 | * while pos < len(record): |
7189 | */ |
7190 | __pyx_t_15 = PyObject_LengthPyObject_Size(__pyx_v_record); if (unlikely(__pyx_t_15 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_15 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 253, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 253; (void)__pyx_lineno; __pyx_clineno = 7190; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7191 | __pyx_t_4 = PyInt_FromSsize_tPyLong_FromSsize_t(__pyx_t_15); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 253, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 253; (void)__pyx_lineno; __pyx_clineno = 7191; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7192 | __Pyx_GOTREF(__pyx_t_4); |
7193 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 253, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 253; (void)__pyx_lineno; __pyx_clineno = 7193; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7194 | __Pyx_GOTREF(__pyx_t_2); |
7195 | __Pyx_INCREF(__pyx_kp_u_record_length)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_record_length )))); |
7196 | __Pyx_GIVEREF(__pyx_kp_u_record_length); |
7197 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_record_length)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_record_length)))), (0))) __PYX_ERR(0, 253, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 253; (void)__pyx_lineno; __pyx_clineno = 7197; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7198 | __Pyx_GIVEREF(__pyx_t_4); |
7199 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*) ((__pyx_t_4)))), (0))) __PYX_ERR(0, 253, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 253; (void)__pyx_lineno; __pyx_clineno = 7199; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7200 | __pyx_t_4 = 0; |
7201 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 253, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 253; (void)__pyx_lineno; __pyx_clineno = 7201; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7202 | __Pyx_GOTREF(__pyx_t_4); |
7203 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7204 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7205 | |
7206 | /* "abaqusFILReader.pyx":252 |
7207 | * print("record: ",record) |
7208 | * #numberRec=int(record[3:3+int(record[2])]) #pull the # of records |
7209 | * if debug: # <<<<<<<<<<<<<< |
7210 | * print("record length: ",len(record)) |
7211 | * temp2="" |
7212 | */ |
7213 | } |
7214 | |
7215 | /* "abaqusFILReader.pyx":254 |
7216 | * if debug: |
7217 | * print("record length: ",len(record)) |
7218 | * temp2="" # <<<<<<<<<<<<<< |
7219 | * while pos < len(record): |
7220 | * if record[pos]=='I': |
7221 | */ |
7222 | __Pyx_INCREF(__pyx_kp_u__2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u__2 )))); |
7223 | __Pyx_XDECREF_SET(__pyx_v_temp2, __pyx_kp_u__2)do { PyObject *tmp = (PyObject *) __pyx_v_temp2; __pyx_v_temp2 = __pyx_mstate_global->__pyx_kp_u__2; Py_XDECREF(((PyObject *)((tmp)))); } while (0); |
7224 | |
7225 | /* "abaqusFILReader.pyx":255 |
7226 | * print("record length: ",len(record)) |
7227 | * temp2="" |
7228 | * while pos < len(record): # <<<<<<<<<<<<<< |
7229 | * if record[pos]=='I': |
7230 | * if pos==0: #at the beginning and need to get past intro |
7231 | */ |
7232 | while (1) { |
7233 | __pyx_t_15 = PyObject_LengthPyObject_Size(__pyx_v_record); if (unlikely(__pyx_t_15 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_15 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 255, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 255; (void)__pyx_lineno; __pyx_clineno = 7233; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7234 | __pyx_t_4 = PyInt_FromSsize_tPyLong_FromSsize_t(__pyx_t_15); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 255, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 255; (void)__pyx_lineno; __pyx_clineno = 7234; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7235 | __Pyx_GOTREF(__pyx_t_4); |
7236 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_pos, __pyx_t_4, Py_LT0); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 255, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 255; (void)__pyx_lineno; __pyx_clineno = 7236; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7237 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7238 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 255, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 255; (void)__pyx_lineno; __pyx_clineno = 7238; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7239 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7240 | if (!__pyx_t_14) break; |
7241 | |
7242 | /* "abaqusFILReader.pyx":256 |
7243 | * temp2="" |
7244 | * while pos < len(record): |
7245 | * if record[pos]=='I': # <<<<<<<<<<<<<< |
7246 | * if pos==0: #at the beginning and need to get past intro |
7247 | * pos=pos+3+int(record[pos+1:pos+3]) |
7248 | */ |
7249 | __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_record, __pyx_v_pos); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 256, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 256; (void)__pyx_lineno; __pyx_clineno = 7249; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7250 | __Pyx_GOTREF(__pyx_t_2); |
7251 | __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_I__pyx_mstate_global->__pyx_n_u_I, Py_EQ2)); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 256, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 256; (void)__pyx_lineno; __pyx_clineno = 7251; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7252 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7253 | if (__pyx_t_14) { |
7254 | |
7255 | /* "abaqusFILReader.pyx":257 |
7256 | * while pos < len(record): |
7257 | * if record[pos]=='I': |
7258 | * if pos==0: #at the beginning and need to get past intro # <<<<<<<<<<<<<< |
7259 | * pos=pos+3+int(record[pos+1:pos+3]) |
7260 | * if debug: |
7261 | */ |
7262 | __pyx_t_14 = (__Pyx_PyInt_BoolEqObjC(__pyx_v_pos, __pyx_int_0__pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 257, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 257; (void)__pyx_lineno; __pyx_clineno = 7262; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7263 | if (__pyx_t_14) { |
7264 | |
7265 | /* "abaqusFILReader.pyx":258 |
7266 | * if record[pos]=='I': |
7267 | * if pos==0: #at the beginning and need to get past intro |
7268 | * pos=pos+3+int(record[pos+1:pos+3]) # <<<<<<<<<<<<<< |
7269 | * if debug: |
7270 | * print("position",pos) |
7271 | */ |
7272 | __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_3__pyx_mstate_global->__pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 258, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 258; (void)__pyx_lineno; __pyx_clineno = 7272; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7273 | __Pyx_GOTREF(__pyx_t_2); |
7274 | __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 258, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 258; (void)__pyx_lineno; __pyx_clineno = 7274; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7275 | __Pyx_GOTREF(__pyx_t_4); |
7276 | __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_3__pyx_mstate_global->__pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 258, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 258; (void)__pyx_lineno; __pyx_clineno = 7276; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7277 | __Pyx_GOTREF(__pyx_t_3); |
7278 | __pyx_t_16 = __Pyx_PyObject_GetSlice(__pyx_v_record, 0, 0, &__pyx_t_4, &__pyx_t_3, NULL((void*)0), 0, 0, 1); if (unlikely(!__pyx_t_16)__builtin_expect(!!(!__pyx_t_16), 0)) __PYX_ERR(0, 258, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 258; (void)__pyx_lineno; __pyx_clineno = 7278; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7279 | __Pyx_GOTREF(__pyx_t_16); |
7280 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7281 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7282 | __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_16)(Py_IS_TYPE(((PyObject*)((__pyx_t_16))), &PyLong_Type) ? ( Py_INCREF(((PyObject*)((__pyx_t_16)))), __pyx_t_16) : PyNumber_Long (__pyx_t_16)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 258, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 258; (void)__pyx_lineno; __pyx_clineno = 7282; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7283 | __Pyx_GOTREF(__pyx_t_3); |
7284 | __Pyx_DECREF(__pyx_t_16)Py_DECREF(((PyObject*)((__pyx_t_16)))); __pyx_t_16 = 0; |
7285 | __pyx_t_16 = PyNumber_Add(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_16)__builtin_expect(!!(!__pyx_t_16), 0)) __PYX_ERR(0, 258, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 258; (void)__pyx_lineno; __pyx_clineno = 7285; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7286 | __Pyx_GOTREF(__pyx_t_16); |
7287 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7288 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7289 | __Pyx_DECREF_SET(__pyx_v_pos, __pyx_t_16)do { PyObject *tmp = (PyObject *) __pyx_v_pos; __pyx_v_pos = __pyx_t_16 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
7290 | __pyx_t_16 = 0; |
7291 | |
7292 | /* "abaqusFILReader.pyx":259 |
7293 | * if pos==0: #at the beginning and need to get past intro |
7294 | * pos=pos+3+int(record[pos+1:pos+3]) |
7295 | * if debug: # <<<<<<<<<<<<<< |
7296 | * print("position",pos) |
7297 | * else: |
7298 | */ |
7299 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 259, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 259; (void)__pyx_lineno; __pyx_clineno = 7299; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7300 | if (__pyx_t_14) { |
7301 | |
7302 | /* "abaqusFILReader.pyx":260 |
7303 | * pos=pos+3+int(record[pos+1:pos+3]) |
7304 | * if debug: |
7305 | * print("position",pos) # <<<<<<<<<<<<<< |
7306 | * else: |
7307 | * temp.append(int(record[pos+3:pos+3+ |
7308 | */ |
7309 | __pyx_t_16 = PyTuple_New(2); if (unlikely(!__pyx_t_16)__builtin_expect(!!(!__pyx_t_16), 0)) __PYX_ERR(0, 260, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 260; (void)__pyx_lineno; __pyx_clineno = 7309; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7310 | __Pyx_GOTREF(__pyx_t_16); |
7311 | __Pyx_INCREF(__pyx_n_u_position)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_n_u_position )))); |
7312 | __Pyx_GIVEREF(__pyx_n_u_position); |
7313 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_n_u_position)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_16))), 0, ((PyObject* )((__pyx_mstate_global->__pyx_n_u_position)))), (0))) __PYX_ERR(0, 260, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 260; (void)__pyx_lineno; __pyx_clineno = 7313; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7314 | __Pyx_INCREF(__pyx_v_pos)Py_INCREF(((PyObject*)((__pyx_v_pos)))); |
7315 | __Pyx_GIVEREF(__pyx_v_pos); |
7316 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_v_pos)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_16))), 1, ((PyObject* )((__pyx_v_pos)))), (0))) __PYX_ERR(0, 260, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 260; (void)__pyx_lineno; __pyx_clineno = 7316; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7317 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_16, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 260, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 260; (void)__pyx_lineno; __pyx_clineno = 7317; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7318 | __Pyx_GOTREF(__pyx_t_3); |
7319 | __Pyx_DECREF(__pyx_t_16)Py_DECREF(((PyObject*)((__pyx_t_16)))); __pyx_t_16 = 0; |
7320 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7321 | |
7322 | /* "abaqusFILReader.pyx":259 |
7323 | * if pos==0: #at the beginning and need to get past intro |
7324 | * pos=pos+3+int(record[pos+1:pos+3]) |
7325 | * if debug: # <<<<<<<<<<<<<< |
7326 | * print("position",pos) |
7327 | * else: |
7328 | */ |
7329 | } |
7330 | |
7331 | /* "abaqusFILReader.pyx":257 |
7332 | * while pos < len(record): |
7333 | * if record[pos]=='I': |
7334 | * if pos==0: #at the beginning and need to get past intro # <<<<<<<<<<<<<< |
7335 | * pos=pos+3+int(record[pos+1:pos+3]) |
7336 | * if debug: |
7337 | */ |
7338 | goto __pyx_L32; |
7339 | } |
7340 | |
7341 | /* "abaqusFILReader.pyx":262 |
7342 | * print("position",pos) |
7343 | * else: |
7344 | * temp.append(int(record[pos+3:pos+3+ # <<<<<<<<<<<<<< |
7345 | * int(record[pos+1:pos+3])])) |
7346 | * |
7347 | */ |
7348 | /*else*/ { |
7349 | __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_3__pyx_mstate_global->__pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 262, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 262; (void)__pyx_lineno; __pyx_clineno = 7349; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7350 | __Pyx_GOTREF(__pyx_t_3); |
7351 | __pyx_t_16 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_3__pyx_mstate_global->__pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_16)__builtin_expect(!!(!__pyx_t_16), 0)) __PYX_ERR(0, 262, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 262; (void)__pyx_lineno; __pyx_clineno = 7351; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7352 | __Pyx_GOTREF(__pyx_t_16); |
7353 | |
7354 | /* "abaqusFILReader.pyx":263 |
7355 | * else: |
7356 | * temp.append(int(record[pos+3:pos+3+ |
7357 | * int(record[pos+1:pos+3])])) # <<<<<<<<<<<<<< |
7358 | * |
7359 | * pos=pos+3+int(record[pos+2]) |
7360 | */ |
7361 | __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 263, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 263; (void)__pyx_lineno; __pyx_clineno = 7361; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7362 | __Pyx_GOTREF(__pyx_t_2); |
7363 | __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_3__pyx_mstate_global->__pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 263, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 263; (void)__pyx_lineno; __pyx_clineno = 7363; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7364 | __Pyx_GOTREF(__pyx_t_4); |
7365 | __pyx_t_17 = __Pyx_PyObject_GetSlice(__pyx_v_record, 0, 0, &__pyx_t_2, &__pyx_t_4, NULL((void*)0), 0, 0, 1); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 263, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 263; (void)__pyx_lineno; __pyx_clineno = 7365; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7366 | __Pyx_GOTREF(__pyx_t_17); |
7367 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
7368 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7369 | __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_17)(Py_IS_TYPE(((PyObject*)((__pyx_t_17))), &PyLong_Type) ? ( Py_INCREF(((PyObject*)((__pyx_t_17)))), __pyx_t_17) : PyNumber_Long (__pyx_t_17)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 263, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 263; (void)__pyx_lineno; __pyx_clineno = 7369; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7370 | __Pyx_GOTREF(__pyx_t_4); |
7371 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7372 | |
7373 | /* "abaqusFILReader.pyx":262 |
7374 | * print("position",pos) |
7375 | * else: |
7376 | * temp.append(int(record[pos+3:pos+3+ # <<<<<<<<<<<<<< |
7377 | * int(record[pos+1:pos+3])])) |
7378 | * |
7379 | */ |
7380 | __pyx_t_17 = PyNumber_Add(__pyx_t_16, __pyx_t_4); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 262, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 262; (void)__pyx_lineno; __pyx_clineno = 7380; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7381 | __Pyx_GOTREF(__pyx_t_17); |
7382 | __Pyx_DECREF(__pyx_t_16)Py_DECREF(((PyObject*)((__pyx_t_16)))); __pyx_t_16 = 0; |
7383 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7384 | __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_record, 0, 0, &__pyx_t_3, &__pyx_t_17, NULL((void*)0), 0, 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 262, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 262; (void)__pyx_lineno; __pyx_clineno = 7384; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7385 | __Pyx_GOTREF(__pyx_t_4); |
7386 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7387 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7388 | __pyx_t_17 = __Pyx_PyNumber_Int(__pyx_t_4)(Py_IS_TYPE(((PyObject*)((__pyx_t_4))), &PyLong_Type) ? ( Py_INCREF(((PyObject*)((__pyx_t_4)))), __pyx_t_4) : PyNumber_Long (__pyx_t_4)); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 262, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 262; (void)__pyx_lineno; __pyx_clineno = 7388; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7389 | __Pyx_GOTREF(__pyx_t_17); |
7390 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7391 | __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_temp, __pyx_t_17); if (unlikely(__pyx_t_18 == ((int)-1))__builtin_expect(!!(__pyx_t_18 == ((int)-1)), 0)) __PYX_ERR(0, 262, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 262; (void)__pyx_lineno; __pyx_clineno = 7391; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7392 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7393 | |
7394 | /* "abaqusFILReader.pyx":265 |
7395 | * int(record[pos+1:pos+3])])) |
7396 | * |
7397 | * pos=pos+3+int(record[pos+2]) # <<<<<<<<<<<<<< |
7398 | * if debug: |
7399 | * print("temp data: ", temp) |
7400 | */ |
7401 | __pyx_t_17 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_3__pyx_mstate_global->__pyx_int_3, 3, 0, 0); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 265, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 265; (void)__pyx_lineno; __pyx_clineno = 7401; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7402 | __Pyx_GOTREF(__pyx_t_17); |
7403 | __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_2__pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 265, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 265; (void)__pyx_lineno; __pyx_clineno = 7403; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7404 | __Pyx_GOTREF(__pyx_t_4); |
7405 | __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_record, __pyx_t_4); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 265, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 265; (void)__pyx_lineno; __pyx_clineno = 7405; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7406 | __Pyx_GOTREF(__pyx_t_3); |
7407 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7408 | __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_3)(Py_IS_TYPE(((PyObject*)((__pyx_t_3))), &PyLong_Type) ? ( Py_INCREF(((PyObject*)((__pyx_t_3)))), __pyx_t_3) : PyNumber_Long (__pyx_t_3)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 265, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 265; (void)__pyx_lineno; __pyx_clineno = 7408; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7409 | __Pyx_GOTREF(__pyx_t_4); |
7410 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7411 | __pyx_t_3 = PyNumber_Add(__pyx_t_17, __pyx_t_4); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 265, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 265; (void)__pyx_lineno; __pyx_clineno = 7411; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7412 | __Pyx_GOTREF(__pyx_t_3); |
7413 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7414 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7415 | __Pyx_DECREF_SET(__pyx_v_pos, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v_pos; __pyx_v_pos = __pyx_t_3 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
7416 | __pyx_t_3 = 0; |
7417 | |
7418 | /* "abaqusFILReader.pyx":266 |
7419 | * |
7420 | * pos=pos+3+int(record[pos+2]) |
7421 | * if debug: # <<<<<<<<<<<<<< |
7422 | * print("temp data: ", temp) |
7423 | * print("position", pos) |
7424 | */ |
7425 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 266, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 266; (void)__pyx_lineno; __pyx_clineno = 7425; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7426 | if (__pyx_t_14) { |
7427 | |
7428 | /* "abaqusFILReader.pyx":267 |
7429 | * pos=pos+3+int(record[pos+2]) |
7430 | * if debug: |
7431 | * print("temp data: ", temp) # <<<<<<<<<<<<<< |
7432 | * print("position", pos) |
7433 | * elif record[pos]=='D': |
7434 | */ |
7435 | __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 267, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 267; (void)__pyx_lineno; __pyx_clineno = 7435; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7436 | __Pyx_GOTREF(__pyx_t_3); |
7437 | __Pyx_INCREF(__pyx_kp_u_temp_data)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_temp_data )))); |
7438 | __Pyx_GIVEREF(__pyx_kp_u_temp_data); |
7439 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_temp_data)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_3))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_temp_data)))), (0))) __PYX_ERR(0, 267, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 267; (void)__pyx_lineno; __pyx_clineno = 7439; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7440 | __Pyx_INCREF(__pyx_v_temp)Py_INCREF(((PyObject*)((__pyx_v_temp)))); |
7441 | __Pyx_GIVEREF(__pyx_v_temp); |
7442 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_temp)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_3))), 1, ((PyObject*) ((__pyx_v_temp)))), (0))) __PYX_ERR(0, 267, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 267; (void)__pyx_lineno; __pyx_clineno = 7442; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7443 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 267, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 267; (void)__pyx_lineno; __pyx_clineno = 7443; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7444 | __Pyx_GOTREF(__pyx_t_4); |
7445 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7446 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7447 | |
7448 | /* "abaqusFILReader.pyx":268 |
7449 | * if debug: |
7450 | * print("temp data: ", temp) |
7451 | * print("position", pos) # <<<<<<<<<<<<<< |
7452 | * elif record[pos]=='D': |
7453 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) |
7454 | */ |
7455 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 268, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 268; (void)__pyx_lineno; __pyx_clineno = 7455; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7456 | __Pyx_GOTREF(__pyx_t_4); |
7457 | __Pyx_INCREF(__pyx_n_u_position)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_n_u_position )))); |
7458 | __Pyx_GIVEREF(__pyx_n_u_position); |
7459 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_position)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_4))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_n_u_position)))), (0))) __PYX_ERR(0, 268, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 268; (void)__pyx_lineno; __pyx_clineno = 7459; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7460 | __Pyx_INCREF(__pyx_v_pos)Py_INCREF(((PyObject*)((__pyx_v_pos)))); |
7461 | __Pyx_GIVEREF(__pyx_v_pos); |
7462 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_pos)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_4))), 1, ((PyObject*) ((__pyx_v_pos)))), (0))) __PYX_ERR(0, 268, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 268; (void)__pyx_lineno; __pyx_clineno = 7462; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7463 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 268, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 268; (void)__pyx_lineno; __pyx_clineno = 7463; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7464 | __Pyx_GOTREF(__pyx_t_3); |
7465 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7466 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7467 | |
7468 | /* "abaqusFILReader.pyx":266 |
7469 | * |
7470 | * pos=pos+3+int(record[pos+2]) |
7471 | * if debug: # <<<<<<<<<<<<<< |
7472 | * print("temp data: ", temp) |
7473 | * print("position", pos) |
7474 | */ |
7475 | } |
7476 | } |
7477 | __pyx_L32:; |
7478 | |
7479 | /* "abaqusFILReader.pyx":256 |
7480 | * temp2="" |
7481 | * while pos < len(record): |
7482 | * if record[pos]=='I': # <<<<<<<<<<<<<< |
7483 | * if pos==0: #at the beginning and need to get past intro |
7484 | * pos=pos+3+int(record[pos+1:pos+3]) |
7485 | */ |
7486 | goto __pyx_L31; |
7487 | } |
7488 | |
7489 | /* "abaqusFILReader.pyx":269 |
7490 | * print("temp data: ", temp) |
7491 | * print("position", pos) |
7492 | * elif record[pos]=='D': # <<<<<<<<<<<<<< |
7493 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) |
7494 | * pos+=22 |
7495 | */ |
7496 | __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_record, __pyx_v_pos); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 269, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 269; (void)__pyx_lineno; __pyx_clineno = 7496; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7497 | __Pyx_GOTREF(__pyx_t_3); |
7498 | __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_n_u_D__pyx_mstate_global->__pyx_n_u_D, Py_EQ2)); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 269, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 269; (void)__pyx_lineno; __pyx_clineno = 7498; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7499 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7500 | if (__pyx_t_14) { |
7501 | |
7502 | /* "abaqusFILReader.pyx":270 |
7503 | * print("position", pos) |
7504 | * elif record[pos]=='D': |
7505 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) # <<<<<<<<<<<<<< |
7506 | * pos+=22 |
7507 | * elif record[pos]=="A": |
7508 | */ |
7509 | __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 7509; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7510 | __Pyx_GOTREF(__pyx_t_3); |
7511 | __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_23__pyx_mstate_global->__pyx_int_23, 23, 0, 0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 7511; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7512 | __Pyx_GOTREF(__pyx_t_4); |
7513 | __pyx_t_17 = __Pyx_PyObject_GetSlice(__pyx_v_record, 0, 0, &__pyx_t_3, &__pyx_t_4, NULL((void*)0), 0, 0, 1); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 7513; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7514 | __Pyx_GOTREF(__pyx_t_17); |
7515 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7516 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7517 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_replace__pyx_mstate_global->__pyx_n_s_replace); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 7517; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7518 | __Pyx_GOTREF(__pyx_t_4); |
7519 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7520 | __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__10__pyx_mstate_global->__pyx_tuple__10, NULL((void*)0)); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 7520; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7521 | __Pyx_GOTREF(__pyx_t_17); |
7522 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7523 | __pyx_t_4 = __Pyx_PyNumber_Float(__pyx_t_17)(Py_IS_TYPE(((PyObject*)((__pyx_t_17))), &PyFloat_Type) ? (Py_INCREF(((PyObject*)((__pyx_t_17)))), __pyx_t_17) : __Pyx__PyNumber_Float (__pyx_t_17)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 7523; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7524 | __Pyx_GOTREF(__pyx_t_4); |
7525 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7526 | __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_temp, __pyx_t_4); if (unlikely(__pyx_t_18 == ((int)-1))__builtin_expect(!!(__pyx_t_18 == ((int)-1)), 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 7526; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7527 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7528 | |
7529 | /* "abaqusFILReader.pyx":271 |
7530 | * elif record[pos]=='D': |
7531 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) |
7532 | * pos+=22 # <<<<<<<<<<<<<< |
7533 | * elif record[pos]=="A": |
7534 | * temp2+=record[pos+1:pos+9] |
7535 | */ |
7536 | __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_22__pyx_mstate_global->__pyx_int_22, 22, 1, 0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 271, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 271; (void)__pyx_lineno; __pyx_clineno = 7536; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7537 | __Pyx_GOTREF(__pyx_t_4); |
7538 | __Pyx_DECREF_SET(__pyx_v_pos, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v_pos; __pyx_v_pos = __pyx_t_4 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
7539 | __pyx_t_4 = 0; |
7540 | |
7541 | /* "abaqusFILReader.pyx":269 |
7542 | * print("temp data: ", temp) |
7543 | * print("position", pos) |
7544 | * elif record[pos]=='D': # <<<<<<<<<<<<<< |
7545 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) |
7546 | * pos+=22 |
7547 | */ |
7548 | goto __pyx_L31; |
7549 | } |
7550 | |
7551 | /* "abaqusFILReader.pyx":272 |
7552 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) |
7553 | * pos+=22 |
7554 | * elif record[pos]=="A": # <<<<<<<<<<<<<< |
7555 | * temp2+=record[pos+1:pos+9] |
7556 | * pos+=9 |
7557 | */ |
7558 | __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_record, __pyx_v_pos); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 272, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 272; (void)__pyx_lineno; __pyx_clineno = 7558; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7559 | __Pyx_GOTREF(__pyx_t_4); |
7560 | __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_n_u_A__pyx_mstate_global->__pyx_n_u_A, Py_EQ2)); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 272, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 272; (void)__pyx_lineno; __pyx_clineno = 7560; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7561 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7562 | if (__pyx_t_14) { |
7563 | |
7564 | /* "abaqusFILReader.pyx":273 |
7565 | * pos+=22 |
7566 | * elif record[pos]=="A": |
7567 | * temp2+=record[pos+1:pos+9] # <<<<<<<<<<<<<< |
7568 | * pos+=9 |
7569 | * if pos < len(record): |
7570 | */ |
7571 | __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) __PYX_ERR(0, 273, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 273; (void)__pyx_lineno; __pyx_clineno = 7571; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7572 | __Pyx_GOTREF(__pyx_t_4); |
7573 | __pyx_t_17 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_9__pyx_mstate_global->__pyx_int_9, 9, 0, 0); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 273, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 273; (void)__pyx_lineno; __pyx_clineno = 7573; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7574 | __Pyx_GOTREF(__pyx_t_17); |
7575 | __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_record, 0, 0, &__pyx_t_4, &__pyx_t_17, NULL((void*)0), 0, 0, 1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 273, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 273; (void)__pyx_lineno; __pyx_clineno = 7575; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7576 | __Pyx_GOTREF(__pyx_t_3); |
7577 | __Pyx_DECREF(__pyx_t_4)Py_DECREF(((PyObject*)((__pyx_t_4)))); __pyx_t_4 = 0; |
7578 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7579 | __pyx_t_17 = PyNumber_InPlaceAdd(__pyx_v_temp2, __pyx_t_3); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 273, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 273; (void)__pyx_lineno; __pyx_clineno = 7579; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7580 | __Pyx_GOTREF(__pyx_t_17); |
7581 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7582 | __Pyx_DECREF_SET(__pyx_v_temp2, __pyx_t_17)do { PyObject *tmp = (PyObject *) __pyx_v_temp2; __pyx_v_temp2 = __pyx_t_17; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
7583 | __pyx_t_17 = 0; |
7584 | |
7585 | /* "abaqusFILReader.pyx":274 |
7586 | * elif record[pos]=="A": |
7587 | * temp2+=record[pos+1:pos+9] |
7588 | * pos+=9 # <<<<<<<<<<<<<< |
7589 | * if pos < len(record): |
7590 | * if record[pos]!="A": |
7591 | */ |
7592 | __pyx_t_17 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_9__pyx_mstate_global->__pyx_int_9, 9, 1, 0); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 274, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 274; (void)__pyx_lineno; __pyx_clineno = 7592; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7593 | __Pyx_GOTREF(__pyx_t_17); |
7594 | __Pyx_DECREF_SET(__pyx_v_pos, __pyx_t_17)do { PyObject *tmp = (PyObject *) __pyx_v_pos; __pyx_v_pos = __pyx_t_17 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
7595 | __pyx_t_17 = 0; |
7596 | |
7597 | /* "abaqusFILReader.pyx":275 |
7598 | * temp2+=record[pos+1:pos+9] |
7599 | * pos+=9 |
7600 | * if pos < len(record): # <<<<<<<<<<<<<< |
7601 | * if record[pos]!="A": |
7602 | * temp.append(temp2) |
7603 | */ |
7604 | __pyx_t_15 = PyObject_LengthPyObject_Size(__pyx_v_record); if (unlikely(__pyx_t_15 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_15 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 275, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 275; (void)__pyx_lineno; __pyx_clineno = 7604; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7605 | __pyx_t_17 = PyInt_FromSsize_tPyLong_FromSsize_t(__pyx_t_15); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 275, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 275; (void)__pyx_lineno; __pyx_clineno = 7605; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7606 | __Pyx_GOTREF(__pyx_t_17); |
7607 | __pyx_t_3 = PyObject_RichCompare(__pyx_v_pos, __pyx_t_17, Py_LT0); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 275, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 275; (void)__pyx_lineno; __pyx_clineno = 7607; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7608 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7609 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 275, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 275; (void)__pyx_lineno; __pyx_clineno = 7609; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7610 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7611 | if (__pyx_t_14) { |
7612 | |
7613 | /* "abaqusFILReader.pyx":276 |
7614 | * pos+=9 |
7615 | * if pos < len(record): |
7616 | * if record[pos]!="A": # <<<<<<<<<<<<<< |
7617 | * temp.append(temp2) |
7618 | * temp2=="" |
7619 | */ |
7620 | __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_record, __pyx_v_pos); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 276, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 276; (void)__pyx_lineno; __pyx_clineno = 7620; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7621 | __Pyx_GOTREF(__pyx_t_3); |
7622 | __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_n_u_A__pyx_mstate_global->__pyx_n_u_A, Py_NE3)); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 276, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 276; (void)__pyx_lineno; __pyx_clineno = 7622; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7623 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7624 | if (__pyx_t_14) { |
7625 | |
7626 | /* "abaqusFILReader.pyx":277 |
7627 | * if pos < len(record): |
7628 | * if record[pos]!="A": |
7629 | * temp.append(temp2) # <<<<<<<<<<<<<< |
7630 | * temp2=="" |
7631 | * else: |
7632 | */ |
7633 | __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_temp, __pyx_v_temp2); if (unlikely(__pyx_t_18 == ((int)-1))__builtin_expect(!!(__pyx_t_18 == ((int)-1)), 0)) __PYX_ERR(0, 277, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 277; (void)__pyx_lineno; __pyx_clineno = 7633; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7634 | |
7635 | /* "abaqusFILReader.pyx":278 |
7636 | * if record[pos]!="A": |
7637 | * temp.append(temp2) |
7638 | * temp2=="" # <<<<<<<<<<<<<< |
7639 | * else: |
7640 | * temp.append(temp2) |
7641 | */ |
7642 | __pyx_t_3 = PyObject_RichCompare(__pyx_v_temp2, __pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2, Py_EQ2); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 278, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 278; (void)__pyx_lineno; __pyx_clineno = 7642; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7643 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7644 | |
7645 | /* "abaqusFILReader.pyx":276 |
7646 | * pos+=9 |
7647 | * if pos < len(record): |
7648 | * if record[pos]!="A": # <<<<<<<<<<<<<< |
7649 | * temp.append(temp2) |
7650 | * temp2=="" |
7651 | */ |
7652 | } |
7653 | |
7654 | /* "abaqusFILReader.pyx":275 |
7655 | * temp2+=record[pos+1:pos+9] |
7656 | * pos+=9 |
7657 | * if pos < len(record): # <<<<<<<<<<<<<< |
7658 | * if record[pos]!="A": |
7659 | * temp.append(temp2) |
7660 | */ |
7661 | goto __pyx_L35; |
7662 | } |
7663 | |
7664 | /* "abaqusFILReader.pyx":280 |
7665 | * temp2=="" |
7666 | * else: |
7667 | * temp.append(temp2) # <<<<<<<<<<<<<< |
7668 | * temp2=="" |
7669 | * else: |
7670 | */ |
7671 | /*else*/ { |
7672 | __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_temp, __pyx_v_temp2); if (unlikely(__pyx_t_18 == ((int)-1))__builtin_expect(!!(__pyx_t_18 == ((int)-1)), 0)) __PYX_ERR(0, 280, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 280; (void)__pyx_lineno; __pyx_clineno = 7672; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7673 | |
7674 | /* "abaqusFILReader.pyx":281 |
7675 | * else: |
7676 | * temp.append(temp2) |
7677 | * temp2=="" # <<<<<<<<<<<<<< |
7678 | * else: |
7679 | * pos+=1 |
7680 | */ |
7681 | __pyx_t_3 = PyObject_RichCompare(__pyx_v_temp2, __pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2, Py_EQ2); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 281, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 281; (void)__pyx_lineno; __pyx_clineno = 7681; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7682 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7683 | } |
7684 | __pyx_L35:; |
7685 | |
7686 | /* "abaqusFILReader.pyx":272 |
7687 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) |
7688 | * pos+=22 |
7689 | * elif record[pos]=="A": # <<<<<<<<<<<<<< |
7690 | * temp2+=record[pos+1:pos+9] |
7691 | * pos+=9 |
7692 | */ |
7693 | goto __pyx_L31; |
7694 | } |
7695 | |
7696 | /* "abaqusFILReader.pyx":283 |
7697 | * temp2=="" |
7698 | * else: |
7699 | * pos+=1 # <<<<<<<<<<<<<< |
7700 | * if debug: |
7701 | * print("final temp data:", temp) |
7702 | */ |
7703 | /*else*/ { |
7704 | __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_v_pos, __pyx_int_1__pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 283, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 283; (void)__pyx_lineno; __pyx_clineno = 7704; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7705 | __Pyx_GOTREF(__pyx_t_3); |
7706 | __Pyx_DECREF_SET(__pyx_v_pos, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v_pos; __pyx_v_pos = __pyx_t_3 ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
7707 | __pyx_t_3 = 0; |
7708 | } |
7709 | __pyx_L31:; |
7710 | } |
7711 | |
7712 | /* "abaqusFILReader.pyx":284 |
7713 | * else: |
7714 | * pos+=1 |
7715 | * if debug: # <<<<<<<<<<<<<< |
7716 | * print("final temp data:", temp) |
7717 | * ParsedData.append(temp) |
7718 | */ |
7719 | __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_debug); if (unlikely((__pyx_t_14 < 0))__builtin_expect(!!((__pyx_t_14 < 0)), 0)) __PYX_ERR(0, 284, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 284; (void)__pyx_lineno; __pyx_clineno = 7719; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7720 | if (__pyx_t_14) { |
7721 | |
7722 | /* "abaqusFILReader.pyx":285 |
7723 | * pos+=1 |
7724 | * if debug: |
7725 | * print("final temp data:", temp) # <<<<<<<<<<<<<< |
7726 | * ParsedData.append(temp) |
7727 | * |
7728 | */ |
7729 | __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) __PYX_ERR(0, 285, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 285; (void)__pyx_lineno; __pyx_clineno = 7729; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7730 | __Pyx_GOTREF(__pyx_t_3); |
7731 | __Pyx_INCREF(__pyx_kp_u_final_temp_data)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_final_temp_data )))); |
7732 | __Pyx_GIVEREF(__pyx_kp_u_final_temp_data); |
7733 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_final_temp_data)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_3))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_final_temp_data)))), (0) )) __PYX_ERR(0, 285, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 285; (void)__pyx_lineno; __pyx_clineno = 7733; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7734 | __Pyx_INCREF(__pyx_v_temp)Py_INCREF(((PyObject*)((__pyx_v_temp)))); |
7735 | __Pyx_GIVEREF(__pyx_v_temp); |
7736 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_temp)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_3))), 1, ((PyObject*) ((__pyx_v_temp)))), (0))) __PYX_ERR(0, 285, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 285; (void)__pyx_lineno; __pyx_clineno = 7736; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7737 | __pyx_t_17 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 285, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 285; (void)__pyx_lineno; __pyx_clineno = 7737; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7738 | __Pyx_GOTREF(__pyx_t_17); |
7739 | __Pyx_DECREF(__pyx_t_3)Py_DECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
7740 | __Pyx_DECREF(__pyx_t_17)Py_DECREF(((PyObject*)((__pyx_t_17)))); __pyx_t_17 = 0; |
7741 | |
7742 | /* "abaqusFILReader.pyx":284 |
7743 | * else: |
7744 | * pos+=1 |
7745 | * if debug: # <<<<<<<<<<<<<< |
7746 | * print("final temp data:", temp) |
7747 | * ParsedData.append(temp) |
7748 | */ |
7749 | } |
7750 | |
7751 | /* "abaqusFILReader.pyx":286 |
7752 | * if debug: |
7753 | * print("final temp data:", temp) |
7754 | * ParsedData.append(temp) # <<<<<<<<<<<<<< |
7755 | * |
7756 | * return 0, "found data", ParsedData |
7757 | */ |
7758 | __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_ParsedData, __pyx_v_temp); if (unlikely(__pyx_t_18 == ((int)-1))__builtin_expect(!!(__pyx_t_18 == ((int)-1)), 0)) __PYX_ERR(0, 286, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 286; (void)__pyx_lineno; __pyx_clineno = 7758; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7759 | |
7760 | /* "abaqusFILReader.pyx":244 |
7761 | * ParsedData=[] |
7762 | * |
7763 | * for record in RecSplit: # <<<<<<<<<<<<<< |
7764 | * pos=0 |
7765 | * temp=[] |
7766 | */ |
7767 | } |
7768 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
7769 | |
7770 | /* "abaqusFILReader.pyx":288 |
7771 | * ParsedData.append(temp) |
7772 | * |
7773 | * return 0, "found data", ParsedData # <<<<<<<<<<<<<< |
7774 | * else: |
7775 | * return 3, "file missing, abq probably didn't finish", [] |
7776 | */ |
7777 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
7778 | __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 288, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 288; (void)__pyx_lineno; __pyx_clineno = 7778; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7779 | __Pyx_GOTREF(__pyx_t_1); |
7780 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
7781 | __Pyx_GIVEREF(__pyx_int_0); |
7782 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_0)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_1))), 0, ((PyObject*) ((__pyx_mstate_global->__pyx_int_0)))), (0))) __PYX_ERR(0, 288, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 288; (void)__pyx_lineno; __pyx_clineno = 7782; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7783 | __Pyx_INCREF(__pyx_kp_u_found_data)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_found_data )))); |
7784 | __Pyx_GIVEREF(__pyx_kp_u_found_data); |
7785 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_kp_u_found_data)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_1))), 1, ((PyObject*) ((__pyx_mstate_global->__pyx_kp_u_found_data)))), (0))) __PYX_ERR(0, 288, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 288; (void)__pyx_lineno; __pyx_clineno = 7785; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7786 | __Pyx_INCREF(__pyx_v_ParsedData)Py_INCREF(((PyObject*)((__pyx_v_ParsedData)))); |
7787 | __Pyx_GIVEREF(__pyx_v_ParsedData); |
7788 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_ParsedData)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_1))), 2, ((PyObject*) ((__pyx_v_ParsedData)))), (0))) __PYX_ERR(0, 288, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 288; (void)__pyx_lineno; __pyx_clineno = 7788; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7789 | __pyx_r = __pyx_t_1; |
7790 | __pyx_t_1 = 0; |
7791 | goto __pyx_L0; |
7792 | |
7793 | /* "abaqusFILReader.pyx":220 |
7794 | * #Get data in a single string |
7795 | * Rec="" |
7796 | * if os.path.isfile(abqFile[0:-4]+".fil"): # <<<<<<<<<<<<<< |
7797 | * with open(abqFile[0:-4]+".fil") as f: |
7798 | * for line in f: |
7799 | */ |
7800 | } |
7801 | |
7802 | /* "abaqusFILReader.pyx":290 |
7803 | * return 0, "found data", ParsedData |
7804 | * else: |
7805 | * return 3, "file missing, abq probably didn't finish", [] # <<<<<<<<<<<<<< |
7806 | * |
7807 | * def extractRecord(ParsedData,recnumber): |
7808 | */ |
7809 | /*else*/ { |
7810 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
7811 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 290, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 290; (void)__pyx_lineno; __pyx_clineno = 7811; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7812 | __Pyx_GOTREF(__pyx_t_1); |
7813 | __pyx_t_17 = PyTuple_New(3); if (unlikely(!__pyx_t_17)__builtin_expect(!!(!__pyx_t_17), 0)) __PYX_ERR(0, 290, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 290; (void)__pyx_lineno; __pyx_clineno = 7813; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
7814 | __Pyx_GOTREF(__pyx_t_17); |
7815 | __Pyx_INCREF(__pyx_int_3)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_3)) )); |
7816 | __Pyx_GIVEREF(__pyx_int_3); |
7817 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_int_3)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_17))), 0, ((PyObject* )((__pyx_mstate_global->__pyx_int_3)))), (0))) __PYX_ERR(0, 290, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 290; (void)__pyx_lineno; __pyx_clineno = 7817; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7818 | __Pyx_INCREF(__pyx_kp_u_file_missing_abq_probably_didn_t)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t )))); |
7819 | __Pyx_GIVEREF(__pyx_kp_u_file_missing_abq_probably_didn_t); |
7820 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_17, 1, __pyx_kp_u_file_missing_abq_probably_didn_t)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_17))), 1, ((PyObject* )((__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t )))), (0))) __PYX_ERR(0, 290, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 290; (void)__pyx_lineno; __pyx_clineno = 7820; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7821 | __Pyx_GIVEREF(__pyx_t_1); |
7822 | if (__Pyx_PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_t_1)(PyTuple_SET_ITEM(((PyObject*)((__pyx_t_17))), 2, ((PyObject* )((__pyx_t_1)))), (0))) __PYX_ERR(0, 290, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 290; (void)__pyx_lineno; __pyx_clineno = 7822; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
7823 | __pyx_t_1 = 0; |
7824 | __pyx_r = __pyx_t_17; |
7825 | __pyx_t_17 = 0; |
7826 | goto __pyx_L0; |
7827 | } |
7828 | |
7829 | /* "abaqusFILReader.pyx":208 |
7830 | * |
7831 | * |
7832 | * def extractFilRecords(abqFile,debug=False): # <<<<<<<<<<<<<< |
7833 | * """Parses the FIL file into a list of records. |
7834 | * |
7835 | */ |
7836 | |
7837 | /* function exit code */ |
7838 | __pyx_L1_error:; |
7839 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); |
7840 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
7841 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); |
7842 | __Pyx_XDECREF(__pyx_t_4)Py_XDECREF(((PyObject*)((__pyx_t_4)))); |
7843 | __Pyx_XDECREF(__pyx_t_16)Py_XDECREF(((PyObject*)((__pyx_t_16)))); |
7844 | __Pyx_XDECREF(__pyx_t_17)Py_XDECREF(((PyObject*)((__pyx_t_17)))); |
7845 | __Pyx_AddTraceback("abaqusFILReader.extractFilRecords", __pyx_clineno, __pyx_lineno, __pyx_filename); |
7846 | __pyx_r = NULL((void*)0); |
7847 | __pyx_L0:; |
7848 | __Pyx_XDECREF(__pyx_v_Rec)Py_XDECREF(((PyObject*)((__pyx_v_Rec)))); |
7849 | __Pyx_XDECREF(__pyx_v_f)Py_XDECREF(((PyObject*)((__pyx_v_f)))); |
7850 | __Pyx_XDECREF(__pyx_v_line)Py_XDECREF(((PyObject*)((__pyx_v_line)))); |
7851 | __Pyx_XDECREF(__pyx_v_ind)Py_XDECREF(((PyObject*)((__pyx_v_ind)))); |
7852 | __Pyx_XDECREF(__pyx_v_RecSplit)Py_XDECREF(((PyObject*)((__pyx_v_RecSplit)))); |
7853 | __Pyx_XDECREF(__pyx_v_ParsedData)Py_XDECREF(((PyObject*)((__pyx_v_ParsedData)))); |
7854 | __Pyx_XDECREF(__pyx_v_record)Py_XDECREF(((PyObject*)((__pyx_v_record)))); |
7855 | __Pyx_XDECREF(__pyx_v_pos)Py_XDECREF(((PyObject*)((__pyx_v_pos)))); |
7856 | __Pyx_XDECREF(__pyx_v_temp)Py_XDECREF(((PyObject*)((__pyx_v_temp)))); |
7857 | __Pyx_XDECREF(__pyx_v_temp2)Py_XDECREF(((PyObject*)((__pyx_v_temp2)))); |
7858 | __Pyx_XGIVEREF(__pyx_r); |
7859 | __Pyx_RefNannyFinishContext(); |
7860 | return __pyx_r; |
7861 | } |
7862 | |
7863 | /* "abaqusFILReader.pyx":292 |
7864 | * return 3, "file missing, abq probably didn't finish", [] |
7865 | * |
7866 | * def extractRecord(ParsedData,recnumber): # <<<<<<<<<<<<<< |
7867 | * """Pulls out the values from a parsed fil for just the records desired. |
7868 | * |
7869 | */ |
7870 | |
7871 | /* Python wrapper */ |
7872 | static PyObject *__pyx_pw_15abaqusFILReader_9extractRecord(PyObject *__pyx_self, |
7873 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
7874 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
7875 | #else |
7876 | PyObject *__pyx_args, PyObject *__pyx_kwds |
7877 | #endif |
7878 | ); /*proto*/ |
7879 | PyDoc_STRVAR(__pyx_doc_15abaqusFILReader_8extractRecord, "Pulls out the values from a parsed fil for just the records desired.\n\n Returns [status, message, data]. Status of 0 is good.\n data is records of interest\n status 2 means there no records of that type\n Status 3 means the data was empty\n ")static const char __pyx_doc_15abaqusFILReader_8extractRecord[ ] = "Pulls out the values from a parsed fil for just the records desired.\n\n Returns [status, message, data]. Status of 0 is good.\n data is records of interest\n status 2 means there no records of that type\n Status 3 means the data was empty\n "; |
7880 | static PyMethodDef __pyx_mdef_15abaqusFILReader_9extractRecord = {"extractRecord", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords)__pyx_pw_15abaqusFILReader_9extractRecord, __Pyx_METH_FASTCALL0x0080|METH_KEYWORDS0x0002, __pyx_doc_15abaqusFILReader_8extractRecord}; |
7881 | static PyObject *__pyx_pw_15abaqusFILReader_9extractRecord(PyObject *__pyx_self, |
7882 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
7883 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
7884 | #else |
7885 | PyObject *__pyx_args, PyObject *__pyx_kwds |
7886 | #endif |
7887 | ) { |
7888 | PyObject *__pyx_v_ParsedData = 0; |
7889 | PyObject *__pyx_v_recnumber = 0; |
7890 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
7891 | CYTHON_UNUSED__attribute__ ((__unused__)) Py_ssize_t __pyx_nargs; |
7892 | #endif |
7893 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *const *__pyx_kwvalues; |
7894 | PyObject* values[2] = {0,0}; |
7895 | int __pyx_lineno = 0; |
7896 | const char *__pyx_filename = NULL((void*)0); |
7897 | int __pyx_clineno = 0; |
7898 | PyObject *__pyx_r = 0; |
7899 | __Pyx_RefNannyDeclarations |
7900 | __Pyx_RefNannySetupContext("extractRecord (wrapper)", 0); |
7901 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
7902 | #if CYTHON_ASSUME_SAFE_MACROS1 |
7903 | __pyx_nargs = PyTuple_GET_SIZE(__pyx_args)PyTuple_GET_SIZE(((PyObject*)((__pyx_args)))); |
7904 | #else |
7905 | __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)__builtin_expect(!!(__pyx_nargs < 0), 0)) return NULL((void*)0); |
7906 | #endif |
7907 | #endif |
7908 | __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs)((__pyx_args) + (__pyx_nargs)); |
7909 | { |
7910 | PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData,&__pyx_n_s_recnumber__pyx_mstate_global->__pyx_n_s_recnumber,0}; |
7911 | if (__pyx_kwds) { |
7912 | Py_ssize_t kw_args; |
7913 | switch (__pyx_nargs) { |
7914 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
7915 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
7916 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
7917 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
7918 | case 0: break; |
7919 | default: goto __pyx_L5_argtuple_error; |
7920 | } |
7921 | kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds)PyTuple_GET_SIZE(((PyObject*)((__pyx_kwds)))); |
7922 | switch (__pyx_nargs) { |
7923 | case 0: |
7924 | if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ParsedData)) != 0)__builtin_expect(!!((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_ParsedData )) != 0), 1)) { |
7925 | (void)__Pyx_Arg_NewRef_FASTCALL(values[0])values[0]; |
7926 | kw_args--; |
7927 | } |
7928 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 292, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 7928; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
7929 | else goto __pyx_L5_argtuple_error; |
7930 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
7931 | case 1: |
7932 | if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_recnumber)) != 0)__builtin_expect(!!((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_recnumber )) != 0), 1)) { |
7933 | (void)__Pyx_Arg_NewRef_FASTCALL(values[1])values[1]; |
7934 | kw_args--; |
7935 | } |
7936 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 292, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 7936; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
7937 | else { |
7938 | __Pyx_RaiseArgtupleInvalid("extractRecord", 1, 2, 2, 1); __PYX_ERR(0, 292, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 7938; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
7939 | } |
7940 | } |
7941 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
7942 | const Py_ssize_t kwd_pos_args = __pyx_nargs; |
7943 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractRecord") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues , __pyx_pyargnames, 0, values + 0, kwd_pos_args, "extractRecord" ) < 0), 0)) __PYX_ERR(0, 292, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 7943; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
7944 | } |
7945 | } else if (unlikely(__pyx_nargs != 2)__builtin_expect(!!(__pyx_nargs != 2), 0)) { |
7946 | goto __pyx_L5_argtuple_error; |
7947 | } else { |
7948 | values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
7949 | values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
7950 | } |
7951 | __pyx_v_ParsedData = values[0]; |
7952 | __pyx_v_recnumber = values[1]; |
7953 | } |
7954 | goto __pyx_L6_skip; |
7955 | __pyx_L5_argtuple_error:; |
7956 | __Pyx_RaiseArgtupleInvalid("extractRecord", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 292, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 7956; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
7957 | __pyx_L6_skip:; |
7958 | goto __pyx_L4_argument_unpacking_done; |
7959 | __pyx_L3_error:; |
7960 | { |
7961 | Py_ssize_t __pyx_temp; |
7962 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
7963 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
7964 | } |
7965 | } |
7966 | __Pyx_AddTraceback("abaqusFILReader.extractRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); |
7967 | __Pyx_RefNannyFinishContext(); |
7968 | return NULL((void*)0); |
7969 | __pyx_L4_argument_unpacking_done:; |
7970 | __pyx_r = __pyx_pf_15abaqusFILReader_8extractRecord(__pyx_self, __pyx_v_ParsedData, __pyx_v_recnumber); |
7971 | |
7972 | /* function exit code */ |
7973 | { |
7974 | Py_ssize_t __pyx_temp; |
7975 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
7976 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
7977 | } |
7978 | } |
7979 | __Pyx_RefNannyFinishContext(); |
7980 | return __pyx_r; |
7981 | } |
7982 | |
7983 | static PyObject *__pyx_pf_15abaqusFILReader_8extractRecord(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_ParsedData, PyObject *__pyx_v_recnumber) { |
7984 | PyObject *__pyx_v_output = NULL((void*)0); |
7985 | PyObject *__pyx_v_record = NULL((void*)0); |
7986 | PyObject *__pyx_r = NULL((void*)0); |
7987 | __Pyx_RefNannyDeclarations |
7988 | PyObject *__pyx_t_1 = NULL((void*)0); |
7989 | PyObject *__pyx_t_2 = NULL((void*)0); |
7990 | int __pyx_t_3; |
7991 | Py_ssize_t __pyx_t_4; |
7992 | PyObject *(*__pyx_t_5)(PyObject *); |
7993 | PyObject *__pyx_t_6 = NULL((void*)0); |
7994 | int __pyx_t_7; |
7995 | int __pyx_lineno = 0; |
7996 | const char *__pyx_filename = NULL((void*)0); |
7997 | int __pyx_clineno = 0; |
7998 | __Pyx_RefNannySetupContext("extractRecord", 1); |
7999 | |
8000 | /* "abaqusFILReader.pyx":301 |
8001 | * """ |
8002 | * #Get data in a single string |
8003 | * output=[] # <<<<<<<<<<<<<< |
8004 | * if ParsedData != []: |
8005 | * for record in ParsedData: |
8006 | */ |
8007 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 301, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 301; (void)__pyx_lineno; __pyx_clineno = 8007; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8008 | __Pyx_GOTREF(__pyx_t_1); |
8009 | __pyx_v_output = ((PyObject*)__pyx_t_1); |
8010 | __pyx_t_1 = 0; |
8011 | |
8012 | /* "abaqusFILReader.pyx":302 |
8013 | * #Get data in a single string |
8014 | * output=[] |
8015 | * if ParsedData != []: # <<<<<<<<<<<<<< |
8016 | * for record in ParsedData: |
8017 | * if record[0]==recnumber: |
8018 | */ |
8019 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 302, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 302; (void)__pyx_lineno; __pyx_clineno = 8019; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8020 | __Pyx_GOTREF(__pyx_t_1); |
8021 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_ParsedData, __pyx_t_1, Py_NE3); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 302, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 302; (void)__pyx_lineno; __pyx_clineno = 8021; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8022 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
8023 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 302, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 302; (void)__pyx_lineno; __pyx_clineno = 8023; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8024 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
8025 | if (__pyx_t_3) { |
8026 | |
8027 | /* "abaqusFILReader.pyx":303 |
8028 | * output=[] |
8029 | * if ParsedData != []: |
8030 | * for record in ParsedData: # <<<<<<<<<<<<<< |
8031 | * if record[0]==recnumber: |
8032 | * output.append(record[1:]) |
8033 | */ |
8034 | if (likely(PyList_CheckExact(__pyx_v_ParsedData))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_v_ParsedData ))), &PyList_Type)), 1) || PyTuple_CheckExact(__pyx_v_ParsedData)Py_IS_TYPE(((PyObject*)((__pyx_v_ParsedData))), &PyTuple_Type )) { |
8035 | __pyx_t_2 = __pyx_v_ParsedData; __Pyx_INCREF(__pyx_t_2)Py_INCREF(((PyObject*)((__pyx_t_2)))); |
8036 | __pyx_t_4 = 0; |
8037 | __pyx_t_5 = NULL((void*)0); |
8038 | } else { |
8039 | __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_ParsedData); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8039; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8040 | __Pyx_GOTREF(__pyx_t_2); |
8041 | __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2)(Py_TYPE(((PyObject*)((__pyx_t_2))))->tp_iternext); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8041; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8042 | } |
8043 | for (;;) { |
8044 | if (likely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 1)) { |
8045 | if (likely(PyList_CheckExact(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyList_Type)), 1)) { |
8046 | { |
8047 | Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2)PyList_GET_SIZE(((PyObject*)((__pyx_t_2)))); |
8048 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
8049 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8049; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8050 | #endif |
8051 | if (__pyx_t_4 >= __pyx_temp) break; |
8052 | } |
8053 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
8054 | __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_2 )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_2)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(__pyx_t_2)", "abaqusFILReader.c" , 8054, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((__pyx_t_2))))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); __pyx_t_4++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8054; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8055 | #else |
8056 | __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4)( Py_TYPE(((PyObject*)((__pyx_t_2))))->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8056; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8057 | __Pyx_GOTREF(__pyx_t_1); |
8058 | #endif |
8059 | } else { |
8060 | { |
8061 | Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2)PyTuple_GET_SIZE(((PyObject*)((__pyx_t_2)))); |
8062 | #if !CYTHON_ASSUME_SAFE_MACROS1 |
8063 | if (unlikely((__pyx_temp < 0))__builtin_expect(!!((__pyx_temp < 0)), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8063; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8064 | #endif |
8065 | if (__pyx_t_4 >= __pyx_temp) break; |
8066 | } |
8067 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
8068 | __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((__pyx_t_2 )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((__pyx_t_2)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(__pyx_t_2)", "abaqusFILReader.c" , 8068, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((__pyx_t_2))))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_1)Py_INCREF(((PyObject*)((__pyx_t_1)))); __pyx_t_4++; if (unlikely((0 < 0))__builtin_expect(!!((0 < 0)), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8068; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8069 | #else |
8070 | __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4)( Py_TYPE(((PyObject*)((__pyx_t_2))))->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8070; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8071 | __Pyx_GOTREF(__pyx_t_1); |
8072 | #endif |
8073 | } |
8074 | } else { |
8075 | __pyx_t_1 = __pyx_t_5(__pyx_t_2); |
8076 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) { |
8077 | PyObject* exc_type = PyErr_Occurred(); |
8078 | if (exc_type) { |
8079 | if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(exc_type , PyExc_StopIteration)), 1)) PyErr_Clear(); |
8080 | else __PYX_ERR(0, 303, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 303; (void)__pyx_lineno; __pyx_clineno = 8080; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8081 | } |
8082 | break; |
8083 | } |
8084 | __Pyx_GOTREF(__pyx_t_1); |
8085 | } |
8086 | __Pyx_XDECREF_SET(__pyx_v_record, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_record; __pyx_v_record = __pyx_t_1; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
8087 | __pyx_t_1 = 0; |
8088 | |
8089 | /* "abaqusFILReader.pyx":304 |
8090 | * if ParsedData != []: |
8091 | * for record in ParsedData: |
8092 | * if record[0]==recnumber: # <<<<<<<<<<<<<< |
8093 | * output.append(record[1:]) |
8094 | * if output==[]: |
8095 | */ |
8096 | __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_record, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(0 < (long )9223372036854775807L || 0 == (long)9223372036854775807L), 1) && (!1 || __builtin_expect(!!(0 > (long)(-9223372036854775807L -1) || 0 == (long)(-9223372036854775807L -1)), 1))) || (sizeof (long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)9223372036854775807L || 0 == (long)9223372036854775807L ), 1))) ) ? __Pyx_GetItemInt_Fast(__pyx_v_record, (Py_ssize_t )0, 0, 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(__pyx_v_record , __Pyx_PyInt_From_long(0)))); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 304, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 304; (void)__pyx_lineno; __pyx_clineno = 8096; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8097 | __Pyx_GOTREF(__pyx_t_1); |
8098 | __pyx_t_6 = PyObject_RichCompare(__pyx_t_1, __pyx_v_recnumber, Py_EQ2); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 304, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 304; (void)__pyx_lineno; __pyx_clineno = 8098; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8099 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
8100 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 304, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 304; (void)__pyx_lineno; __pyx_clineno = 8100; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8101 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
8102 | if (__pyx_t_3) { |
8103 | |
8104 | /* "abaqusFILReader.pyx":305 |
8105 | * for record in ParsedData: |
8106 | * if record[0]==recnumber: |
8107 | * output.append(record[1:]) # <<<<<<<<<<<<<< |
8108 | * if output==[]: |
8109 | * return [2,"no data found",[]] |
8110 | */ |
8111 | __pyx_t_6 = __Pyx_PyObject_GetSlice(__pyx_v_record, 1, 0, NULL((void*)0), NULL((void*)0), &__pyx_slice___pyx_mstate_global->__pyx_slice_, 1, 0, 1); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 305, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 305; (void)__pyx_lineno; __pyx_clineno = 8111; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8112 | __Pyx_GOTREF(__pyx_t_6); |
8113 | __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_output, __pyx_t_6); if (unlikely(__pyx_t_7 == ((int)-1))__builtin_expect(!!(__pyx_t_7 == ((int)-1)), 0)) __PYX_ERR(0, 305, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 305; (void)__pyx_lineno; __pyx_clineno = 8113; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8114 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
8115 | |
8116 | /* "abaqusFILReader.pyx":304 |
8117 | * if ParsedData != []: |
8118 | * for record in ParsedData: |
8119 | * if record[0]==recnumber: # <<<<<<<<<<<<<< |
8120 | * output.append(record[1:]) |
8121 | * if output==[]: |
8122 | */ |
8123 | } |
8124 | |
8125 | /* "abaqusFILReader.pyx":303 |
8126 | * output=[] |
8127 | * if ParsedData != []: |
8128 | * for record in ParsedData: # <<<<<<<<<<<<<< |
8129 | * if record[0]==recnumber: |
8130 | * output.append(record[1:]) |
8131 | */ |
8132 | } |
8133 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
8134 | |
8135 | /* "abaqusFILReader.pyx":306 |
8136 | * if record[0]==recnumber: |
8137 | * output.append(record[1:]) |
8138 | * if output==[]: # <<<<<<<<<<<<<< |
8139 | * return [2,"no data found",[]] |
8140 | * else: |
8141 | */ |
8142 | __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 306, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 306; (void)__pyx_lineno; __pyx_clineno = 8142; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8143 | __Pyx_GOTREF(__pyx_t_2); |
8144 | __pyx_t_6 = PyObject_RichCompare(__pyx_v_output, __pyx_t_2, Py_EQ2); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 306, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 306; (void)__pyx_lineno; __pyx_clineno = 8144; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8145 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
8146 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_3 < 0))__builtin_expect(!!((__pyx_t_3 < 0)), 0)) __PYX_ERR(0, 306, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 306; (void)__pyx_lineno; __pyx_clineno = 8146; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8147 | __Pyx_DECREF(__pyx_t_6)Py_DECREF(((PyObject*)((__pyx_t_6)))); __pyx_t_6 = 0; |
8148 | if (__pyx_t_3) { |
8149 | |
8150 | /* "abaqusFILReader.pyx":307 |
8151 | * output.append(record[1:]) |
8152 | * if output==[]: |
8153 | * return [2,"no data found",[]] # <<<<<<<<<<<<<< |
8154 | * else: |
8155 | * return [0,"found data",output] |
8156 | */ |
8157 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
8158 | __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 307, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 307; (void)__pyx_lineno; __pyx_clineno = 8158; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8159 | __Pyx_GOTREF(__pyx_t_6); |
8160 | __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 307, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 307; (void)__pyx_lineno; __pyx_clineno = 8160; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8161 | __Pyx_GOTREF(__pyx_t_2); |
8162 | __Pyx_INCREF(__pyx_int_2)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_2)) )); |
8163 | __Pyx_GIVEREF(__pyx_int_2); |
8164 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_2)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_2)))), (0))) __PYX_ERR(0, 307, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 307; (void)__pyx_lineno; __pyx_clineno = 8164; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8165 | __Pyx_INCREF(__pyx_kp_u_no_data_found)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_no_data_found )))); |
8166 | __Pyx_GIVEREF(__pyx_kp_u_no_data_found); |
8167 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_u_no_data_found)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_no_data_found)))), (0))) __PYX_ERR(0, 307, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 307; (void)__pyx_lineno; __pyx_clineno = 8167; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8168 | __Pyx_GIVEREF(__pyx_t_6); |
8169 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_t_6)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 2, ((PyObject*)( (__pyx_t_6)))), (0))) __PYX_ERR(0, 307, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 307; (void)__pyx_lineno; __pyx_clineno = 8169; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8170 | __pyx_t_6 = 0; |
8171 | __pyx_r = __pyx_t_2; |
8172 | __pyx_t_2 = 0; |
8173 | goto __pyx_L0; |
8174 | |
8175 | /* "abaqusFILReader.pyx":306 |
8176 | * if record[0]==recnumber: |
8177 | * output.append(record[1:]) |
8178 | * if output==[]: # <<<<<<<<<<<<<< |
8179 | * return [2,"no data found",[]] |
8180 | * else: |
8181 | */ |
8182 | } |
8183 | |
8184 | /* "abaqusFILReader.pyx":309 |
8185 | * return [2,"no data found",[]] |
8186 | * else: |
8187 | * return [0,"found data",output] # <<<<<<<<<<<<<< |
8188 | * else: |
8189 | * return [3,"data missing, abq probably didn't finish",[]] |
8190 | */ |
8191 | /*else*/ { |
8192 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
8193 | __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 309, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 309; (void)__pyx_lineno; __pyx_clineno = 8193; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8194 | __Pyx_GOTREF(__pyx_t_2); |
8195 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
8196 | __Pyx_GIVEREF(__pyx_int_0); |
8197 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_int_0)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_0)))), (0))) __PYX_ERR(0, 309, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 309; (void)__pyx_lineno; __pyx_clineno = 8197; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8198 | __Pyx_INCREF(__pyx_kp_u_found_data)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_found_data )))); |
8199 | __Pyx_GIVEREF(__pyx_kp_u_found_data); |
8200 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_u_found_data)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_found_data)))), (0))) __PYX_ERR(0, 309, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 309; (void)__pyx_lineno; __pyx_clineno = 8200; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8201 | __Pyx_INCREF(__pyx_v_output)Py_INCREF(((PyObject*)((__pyx_v_output)))); |
8202 | __Pyx_GIVEREF(__pyx_v_output); |
8203 | if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_v_output)(PyList_SET_ITEM(((PyObject*)((__pyx_t_2))), 2, ((PyObject*)( (__pyx_v_output)))), (0))) __PYX_ERR(0, 309, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 309; (void)__pyx_lineno; __pyx_clineno = 8203; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8204 | __pyx_r = __pyx_t_2; |
8205 | __pyx_t_2 = 0; |
8206 | goto __pyx_L0; |
8207 | } |
8208 | |
8209 | /* "abaqusFILReader.pyx":302 |
8210 | * #Get data in a single string |
8211 | * output=[] |
8212 | * if ParsedData != []: # <<<<<<<<<<<<<< |
8213 | * for record in ParsedData: |
8214 | * if record[0]==recnumber: |
8215 | */ |
8216 | } |
8217 | |
8218 | /* "abaqusFILReader.pyx":311 |
8219 | * return [0,"found data",output] |
8220 | * else: |
8221 | * return [3,"data missing, abq probably didn't finish",[]] # <<<<<<<<<<<<<< |
8222 | * |
8223 | * def findAll(a_str, sub): |
8224 | */ |
8225 | /*else*/ { |
8226 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
8227 | __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 311, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 311; (void)__pyx_lineno; __pyx_clineno = 8227; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8228 | __Pyx_GOTREF(__pyx_t_2); |
8229 | __pyx_t_6 = PyList_New(3); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) __PYX_ERR(0, 311, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 311; (void)__pyx_lineno; __pyx_clineno = 8229; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8230 | __Pyx_GOTREF(__pyx_t_6); |
8231 | __Pyx_INCREF(__pyx_int_3)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_3)) )); |
8232 | __Pyx_GIVEREF(__pyx_int_3); |
8233 | if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_int_3)(PyList_SET_ITEM(((PyObject*)((__pyx_t_6))), 0, ((PyObject*)( (__pyx_mstate_global->__pyx_int_3)))), (0))) __PYX_ERR(0, 311, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 311; (void)__pyx_lineno; __pyx_clineno = 8233; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8234 | __Pyx_INCREF(__pyx_kp_u_data_missing_abq_probably_didn_t)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t )))); |
8235 | __Pyx_GIVEREF(__pyx_kp_u_data_missing_abq_probably_didn_t); |
8236 | if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 1, __pyx_kp_u_data_missing_abq_probably_didn_t)(PyList_SET_ITEM(((PyObject*)((__pyx_t_6))), 1, ((PyObject*)( (__pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t )))), (0))) __PYX_ERR(0, 311, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 311; (void)__pyx_lineno; __pyx_clineno = 8236; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8237 | __Pyx_GIVEREF(__pyx_t_2); |
8238 | if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 2, __pyx_t_2)(PyList_SET_ITEM(((PyObject*)((__pyx_t_6))), 2, ((PyObject*)( (__pyx_t_2)))), (0))) __PYX_ERR(0, 311, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 311; (void)__pyx_lineno; __pyx_clineno = 8238; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
8239 | __pyx_t_2 = 0; |
8240 | __pyx_r = __pyx_t_6; |
8241 | __pyx_t_6 = 0; |
8242 | goto __pyx_L0; |
8243 | } |
8244 | |
8245 | /* "abaqusFILReader.pyx":292 |
8246 | * return 3, "file missing, abq probably didn't finish", [] |
8247 | * |
8248 | * def extractRecord(ParsedData,recnumber): # <<<<<<<<<<<<<< |
8249 | * """Pulls out the values from a parsed fil for just the records desired. |
8250 | * |
8251 | */ |
8252 | |
8253 | /* function exit code */ |
8254 | __pyx_L1_error:; |
8255 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); |
8256 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
8257 | __Pyx_XDECREF(__pyx_t_6)Py_XDECREF(((PyObject*)((__pyx_t_6)))); |
8258 | __Pyx_AddTraceback("abaqusFILReader.extractRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); |
8259 | __pyx_r = NULL((void*)0); |
8260 | __pyx_L0:; |
8261 | __Pyx_XDECREF(__pyx_v_output)Py_XDECREF(((PyObject*)((__pyx_v_output)))); |
8262 | __Pyx_XDECREF(__pyx_v_record)Py_XDECREF(((PyObject*)((__pyx_v_record)))); |
8263 | __Pyx_XGIVEREF(__pyx_r); |
8264 | __Pyx_RefNannyFinishContext(); |
8265 | return __pyx_r; |
8266 | } |
8267 | static PyObject *__pyx_gb_15abaqusFILReader_12generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED__attribute__ ((__unused__)) PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ |
8268 | |
8269 | /* "abaqusFILReader.pyx":313 |
8270 | * return [3,"data missing, abq probably didn't finish",[]] |
8271 | * |
8272 | * def findAll(a_str, sub): # <<<<<<<<<<<<<< |
8273 | * """looks in a string for all occurances of a string |
8274 | * """ |
8275 | */ |
8276 | |
8277 | /* Python wrapper */ |
8278 | static PyObject *__pyx_pw_15abaqusFILReader_11findAll(PyObject *__pyx_self, |
8279 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
8280 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
8281 | #else |
8282 | PyObject *__pyx_args, PyObject *__pyx_kwds |
8283 | #endif |
8284 | ); /*proto*/ |
8285 | PyDoc_STRVAR(__pyx_doc_15abaqusFILReader_10findAll, "looks in a string for all occurances of a string\n ")static const char __pyx_doc_15abaqusFILReader_10findAll[] = "looks in a string for all occurances of a string\n "; |
8286 | static PyMethodDef __pyx_mdef_15abaqusFILReader_11findAll = {"findAll", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords_PyCFunctionFastWithKeywords)__pyx_pw_15abaqusFILReader_11findAll, __Pyx_METH_FASTCALL0x0080|METH_KEYWORDS0x0002, __pyx_doc_15abaqusFILReader_10findAll}; |
8287 | static PyObject *__pyx_pw_15abaqusFILReader_11findAll(PyObject *__pyx_self, |
8288 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
8289 | PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds |
8290 | #else |
8291 | PyObject *__pyx_args, PyObject *__pyx_kwds |
8292 | #endif |
8293 | ) { |
8294 | PyObject *__pyx_v_a_str = 0; |
8295 | PyObject *__pyx_v_sub = 0; |
8296 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
8297 | CYTHON_UNUSED__attribute__ ((__unused__)) Py_ssize_t __pyx_nargs; |
8298 | #endif |
8299 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *const *__pyx_kwvalues; |
8300 | PyObject* values[2] = {0,0}; |
8301 | int __pyx_lineno = 0; |
8302 | const char *__pyx_filename = NULL((void*)0); |
8303 | int __pyx_clineno = 0; |
8304 | PyObject *__pyx_r = 0; |
8305 | __Pyx_RefNannyDeclarations |
8306 | __Pyx_RefNannySetupContext("findAll (wrapper)", 0); |
8307 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
8308 | #if CYTHON_ASSUME_SAFE_MACROS1 |
8309 | __pyx_nargs = PyTuple_GET_SIZE(__pyx_args)PyTuple_GET_SIZE(((PyObject*)((__pyx_args)))); |
8310 | #else |
8311 | __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)__builtin_expect(!!(__pyx_nargs < 0), 0)) return NULL((void*)0); |
8312 | #endif |
8313 | #endif |
8314 | __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs)((__pyx_args) + (__pyx_nargs)); |
8315 | { |
8316 | PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a_str__pyx_mstate_global->__pyx_n_s_a_str,&__pyx_n_s_sub__pyx_mstate_global->__pyx_n_s_sub,0}; |
8317 | if (__pyx_kwds) { |
8318 | Py_ssize_t kw_args; |
8319 | switch (__pyx_nargs) { |
8320 | case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
8321 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
8322 | case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
8323 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
8324 | case 0: break; |
8325 | default: goto __pyx_L5_argtuple_error; |
8326 | } |
8327 | kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds)PyTuple_GET_SIZE(((PyObject*)((__pyx_kwds)))); |
8328 | switch (__pyx_nargs) { |
8329 | case 0: |
8330 | if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_a_str)) != 0)__builtin_expect(!!((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_a_str)) != 0), 1)) { |
8331 | (void)__Pyx_Arg_NewRef_FASTCALL(values[0])values[0]; |
8332 | kw_args--; |
8333 | } |
8334 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 313, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8334; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
8335 | else goto __pyx_L5_argtuple_error; |
8336 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
8337 | case 1: |
8338 | if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_sub)) != 0)__builtin_expect(!!((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds , __pyx_kwvalues, __pyx_mstate_global->__pyx_n_s_sub)) != 0 ), 1)) { |
8339 | (void)__Pyx_Arg_NewRef_FASTCALL(values[1])values[1]; |
8340 | kw_args--; |
8341 | } |
8342 | else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) __PYX_ERR(0, 313, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8342; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
8343 | else { |
8344 | __Pyx_RaiseArgtupleInvalid("findAll", 1, 2, 2, 1); __PYX_ERR(0, 313, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8344; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
8345 | } |
8346 | } |
8347 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
8348 | const Py_ssize_t kwd_pos_args = __pyx_nargs; |
8349 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "findAll") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues , __pyx_pyargnames, 0, values + 0, kwd_pos_args, "findAll") < 0), 0)) __PYX_ERR(0, 313, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8349; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
8350 | } |
8351 | } else if (unlikely(__pyx_nargs != 2)__builtin_expect(!!(__pyx_nargs != 2), 0)) { |
8352 | goto __pyx_L5_argtuple_error; |
8353 | } else { |
8354 | values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0)__pyx_args[0]; |
8355 | values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1)__pyx_args[1]; |
8356 | } |
8357 | __pyx_v_a_str = values[0]; |
8358 | __pyx_v_sub = values[1]; |
8359 | } |
8360 | goto __pyx_L6_skip; |
8361 | __pyx_L5_argtuple_error:; |
8362 | __Pyx_RaiseArgtupleInvalid("findAll", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 313, __pyx_L3_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8362; (void)__pyx_clineno ; } goto __pyx_L3_error; } |
8363 | __pyx_L6_skip:; |
8364 | goto __pyx_L4_argument_unpacking_done; |
8365 | __pyx_L3_error:; |
8366 | { |
8367 | Py_ssize_t __pyx_temp; |
8368 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
8369 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
8370 | } |
8371 | } |
8372 | __Pyx_AddTraceback("abaqusFILReader.findAll", __pyx_clineno, __pyx_lineno, __pyx_filename); |
8373 | __Pyx_RefNannyFinishContext(); |
8374 | return NULL((void*)0); |
8375 | __pyx_L4_argument_unpacking_done:; |
8376 | __pyx_r = __pyx_pf_15abaqusFILReader_10findAll(__pyx_self, __pyx_v_a_str, __pyx_v_sub); |
8377 | |
8378 | /* function exit code */ |
8379 | { |
8380 | Py_ssize_t __pyx_temp; |
8381 | for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { |
8382 | __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); |
8383 | } |
8384 | } |
8385 | __Pyx_RefNannyFinishContext(); |
8386 | return __pyx_r; |
8387 | } |
8388 | |
8389 | static PyObject *__pyx_pf_15abaqusFILReader_10findAll(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_a_str, PyObject *__pyx_v_sub) { |
8390 | struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *__pyx_cur_scope; |
8391 | PyObject *__pyx_r = NULL((void*)0); |
8392 | __Pyx_RefNannyDeclarations |
8393 | int __pyx_lineno = 0; |
8394 | const char *__pyx_filename = NULL((void*)0); |
8395 | int __pyx_clineno = 0; |
8396 | __Pyx_RefNannySetupContext("findAll", 0); |
8397 | __pyx_cur_scope = (struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *)__pyx_tp_new_15abaqusFILReader___pyx_scope_struct__findAll(__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, NULL((void*)0)); |
8398 | if (unlikely(!__pyx_cur_scope)__builtin_expect(!!(!__pyx_cur_scope), 0)) { |
8399 | __pyx_cur_scope = ((struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *)Py_None(&_Py_NoneStruct)); |
8400 | __Pyx_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
8401 | __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8401; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8402 | } else { |
8403 | __Pyx_GOTREF((PyObject *)__pyx_cur_scope); |
8404 | } |
8405 | __pyx_cur_scope->__pyx_v_a_str = __pyx_v_a_str; |
8406 | __Pyx_INCREF(__pyx_cur_scope->__pyx_v_a_str)Py_INCREF(((PyObject*)((__pyx_cur_scope->__pyx_v_a_str)))); |
8407 | __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_a_str); |
8408 | __pyx_cur_scope->__pyx_v_sub = __pyx_v_sub; |
8409 | __Pyx_INCREF(__pyx_cur_scope->__pyx_v_sub)Py_INCREF(((PyObject*)((__pyx_cur_scope->__pyx_v_sub)))); |
8410 | __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_sub); |
8411 | { |
8412 | __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_15abaqusFILReader_12generator, __pyx_codeobj__11, (PyObject *) __pyx_cur_scope, __pyx_n_s_findAll, __pyx_n_s_findAll, __pyx_n_s_abaqusFILReader)__Pyx__Coroutine_New(__pyx_mstate_global->__pyx_GeneratorType , (__pyx_coroutine_body_t) __pyx_gb_15abaqusFILReader_12generator , __pyx_mstate_global->__pyx_codeobj__11, (PyObject *) __pyx_cur_scope , __pyx_mstate_global->__pyx_n_s_findAll, __pyx_mstate_global ->__pyx_n_s_findAll, __pyx_mstate_global->__pyx_n_s_abaqusFILReader ); if (unlikely(!gen)__builtin_expect(!!(!gen), 0)) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8412; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8413 | __Pyx_DECREF(__pyx_cur_scope)Py_DECREF(((PyObject*)((__pyx_cur_scope)))); |
8414 | __Pyx_RefNannyFinishContext(); |
8415 | return (PyObject *) gen; |
8416 | } |
8417 | |
8418 | /* function exit code */ |
8419 | __pyx_L1_error:; |
8420 | __Pyx_AddTraceback("abaqusFILReader.findAll", __pyx_clineno, __pyx_lineno, __pyx_filename); |
8421 | __pyx_r = NULL((void*)0); |
8422 | __Pyx_DECREF((PyObject *)__pyx_cur_scope)Py_DECREF(((PyObject*)(((PyObject *)__pyx_cur_scope)))); |
8423 | __Pyx_XGIVEREF(__pyx_r); |
8424 | __Pyx_RefNannyFinishContext(); |
8425 | return __pyx_r; |
8426 | } |
8427 | |
8428 | static PyObject *__pyx_gb_15abaqusFILReader_12generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED__attribute__ ((__unused__)) PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ |
8429 | { |
8430 | struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *__pyx_cur_scope = ((struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *)__pyx_generator->closure); |
8431 | PyObject *__pyx_r = NULL((void*)0); |
8432 | PyObject *__pyx_t_1 = NULL((void*)0); |
8433 | PyObject *__pyx_t_2 = NULL((void*)0); |
8434 | PyObject *__pyx_t_3 = NULL((void*)0); |
8435 | int __pyx_t_4; |
8436 | int __pyx_t_5; |
8437 | Py_ssize_t __pyx_t_6; |
8438 | int __pyx_lineno = 0; |
8439 | const char *__pyx_filename = NULL((void*)0); |
8440 | int __pyx_clineno = 0; |
8441 | __Pyx_RefNannyDeclarations |
8442 | __Pyx_RefNannySetupContext("findAll", 0); |
8443 | switch (__pyx_generator->resume_label) { |
8444 | case 0: goto __pyx_L3_first_run; |
8445 | case 1: goto __pyx_L7_resume_from_yield; |
8446 | default: /* CPython raises the right error here */ |
8447 | __Pyx_RefNannyFinishContext(); |
8448 | return NULL((void*)0); |
8449 | } |
8450 | __pyx_L3_first_run:; |
8451 | if (unlikely(!__pyx_sent_value)__builtin_expect(!!(!__pyx_sent_value), 0)) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 8451; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8452 | |
8453 | /* "abaqusFILReader.pyx":316 |
8454 | * """looks in a string for all occurances of a string |
8455 | * """ |
8456 | * start = 0 # <<<<<<<<<<<<<< |
8457 | * while True: |
8458 | * start = a_str.find(sub, start) |
8459 | */ |
8460 | __Pyx_INCREF(__pyx_int_0)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_int_0)) )); |
8461 | __Pyx_GIVEREF(__pyx_int_0); |
8462 | __pyx_cur_scope->__pyx_v_start = __pyx_int_0__pyx_mstate_global->__pyx_int_0; |
8463 | |
8464 | /* "abaqusFILReader.pyx":317 |
8465 | * """ |
8466 | * start = 0 |
8467 | * while True: # <<<<<<<<<<<<<< |
8468 | * start = a_str.find(sub, start) |
8469 | * if start == -1: return |
8470 | */ |
8471 | while (1) { |
8472 | |
8473 | /* "abaqusFILReader.pyx":318 |
8474 | * start = 0 |
8475 | * while True: |
8476 | * start = a_str.find(sub, start) # <<<<<<<<<<<<<< |
8477 | * if start == -1: return |
8478 | * yield start |
8479 | */ |
8480 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_a_str, __pyx_n_s_find__pyx_mstate_global->__pyx_n_s_find); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 318, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 318; (void)__pyx_lineno; __pyx_clineno = 8480; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8481 | __Pyx_GOTREF(__pyx_t_2); |
8482 | __pyx_t_3 = NULL((void*)0); |
8483 | __pyx_t_4 = 0; |
8484 | #if CYTHON_UNPACK_METHODS1 |
8485 | if (likely(PyMethod_Check(__pyx_t_2))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((__pyx_t_2))), & PyMethod_Type)), 1)) { |
8486 | __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_self); |
8487 | if (likely(__pyx_t_3)__builtin_expect(!!(__pyx_t_3), 1)) { |
8488 | PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2)(((PyMethodObject *)__pyx_t_2) -> im_func); |
8489 | __Pyx_INCREF(__pyx_t_3)Py_INCREF(((PyObject*)((__pyx_t_3)))); |
8490 | __Pyx_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
8491 | __Pyx_DECREF_SET(__pyx_t_2, function)do { PyObject *tmp = (PyObject *) __pyx_t_2; __pyx_t_2 = function ; Py_DECREF(((PyObject*)((tmp)))); } while (0); |
8492 | __pyx_t_4 = 1; |
8493 | } |
8494 | } |
8495 | #endif |
8496 | { |
8497 | PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_cur_scope->__pyx_v_sub, __pyx_cur_scope->__pyx_v_start}; |
8498 | __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 2+__pyx_t_4)__Pyx_PyObject_FastCallDict(__pyx_t_2, __pyx_callargs+1-__pyx_t_4 , (size_t)(2+__pyx_t_4), ((void*)0)); |
8499 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); __pyx_t_3 = 0; |
8500 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 318, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 318; (void)__pyx_lineno; __pyx_clineno = 8500; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8501 | __Pyx_GOTREF(__pyx_t_1); |
8502 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
8503 | } |
8504 | __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_start); |
8505 | __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_start, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_cur_scope->__pyx_v_start ; __pyx_cur_scope->__pyx_v_start = __pyx_t_1; Py_DECREF((( PyObject*)((tmp)))); } while (0); |
8506 | __Pyx_GIVEREF(__pyx_t_1); |
8507 | __pyx_t_1 = 0; |
8508 | |
8509 | /* "abaqusFILReader.pyx":319 |
8510 | * while True: |
8511 | * start = a_str.find(sub, start) |
8512 | * if start == -1: return # <<<<<<<<<<<<<< |
8513 | * yield start |
8514 | * start += len(sub) # use start += 1 to find overlapping matches |
8515 | */ |
8516 | __pyx_t_5 = (__Pyx_PyInt_BoolEqObjC(__pyx_cur_scope->__pyx_v_start, __pyx_int_neg_1__pyx_mstate_global->__pyx_int_neg_1, -1L, 0)); if (unlikely((__pyx_t_5 < 0))__builtin_expect(!!((__pyx_t_5 < 0)), 0)) __PYX_ERR(0, 319, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 319; (void)__pyx_lineno; __pyx_clineno = 8516; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8517 | if (__pyx_t_5) { |
8518 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); |
8519 | __pyx_r = NULL((void*)0); |
8520 | goto __pyx_L0; |
8521 | } |
8522 | |
8523 | /* "abaqusFILReader.pyx":320 |
8524 | * start = a_str.find(sub, start) |
8525 | * if start == -1: return |
8526 | * yield start # <<<<<<<<<<<<<< |
8527 | * start += len(sub) # use start += 1 to find overlapping matches |
8528 | */ |
8529 | __Pyx_INCREF(__pyx_cur_scope->__pyx_v_start)Py_INCREF(((PyObject*)((__pyx_cur_scope->__pyx_v_start)))); |
8530 | __pyx_r = __pyx_cur_scope->__pyx_v_start; |
8531 | __Pyx_XGIVEREF(__pyx_r); |
8532 | __Pyx_RefNannyFinishContext(); |
8533 | __Pyx_Coroutine_ResetAndClearException(__pyx_generator)__Pyx_Coroutine_ExceptionClear(&(__pyx_generator)->gi_exc_state ); |
8534 | /* return from generator, yielding value */ |
8535 | __pyx_generator->resume_label = 1; |
8536 | return __pyx_r; |
8537 | __pyx_L7_resume_from_yield:; |
8538 | if (unlikely(!__pyx_sent_value)__builtin_expect(!!(!__pyx_sent_value), 0)) __PYX_ERR(0, 320, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 320; (void)__pyx_lineno; __pyx_clineno = 8538; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8539 | |
8540 | /* "abaqusFILReader.pyx":321 |
8541 | * if start == -1: return |
8542 | * yield start |
8543 | * start += len(sub) # use start += 1 to find overlapping matches # <<<<<<<<<<<<<< |
8544 | */ |
8545 | __pyx_t_6 = PyObject_LengthPyObject_Size(__pyx_cur_scope->__pyx_v_sub); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))__builtin_expect(!!(__pyx_t_6 == ((Py_ssize_t)-1)), 0)) __PYX_ERR(0, 321, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 321; (void)__pyx_lineno; __pyx_clineno = 8545; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8546 | __pyx_t_1 = PyInt_FromSsize_tPyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 321, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 321; (void)__pyx_lineno; __pyx_clineno = 8546; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8547 | __Pyx_GOTREF(__pyx_t_1); |
8548 | __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_cur_scope->__pyx_v_start, __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 321, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 321; (void)__pyx_lineno; __pyx_clineno = 8548; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8549 | __Pyx_GOTREF(__pyx_t_2); |
8550 | __Pyx_DECREF(__pyx_t_1)Py_DECREF(((PyObject*)((__pyx_t_1)))); __pyx_t_1 = 0; |
8551 | __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_start); |
8552 | __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_start, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_cur_scope->__pyx_v_start ; __pyx_cur_scope->__pyx_v_start = __pyx_t_2; Py_DECREF((( PyObject*)((tmp)))); } while (0); |
8553 | __Pyx_GIVEREF(__pyx_t_2); |
8554 | __pyx_t_2 = 0; |
8555 | } |
8556 | CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope)(void)(__pyx_cur_scope); |
8557 | |
8558 | /* "abaqusFILReader.pyx":313 |
8559 | * return [3,"data missing, abq probably didn't finish",[]] |
8560 | * |
8561 | * def findAll(a_str, sub): # <<<<<<<<<<<<<< |
8562 | * """looks in a string for all occurances of a string |
8563 | * """ |
8564 | */ |
8565 | |
8566 | /* function exit code */ |
8567 | PyErr_SetNone(PyExc_StopIteration); |
8568 | goto __pyx_L0; |
8569 | __pyx_L1_error:; |
8570 | __Pyx_Generator_Replace_StopIteration(0); |
8571 | __Pyx_XDECREF(__pyx_t_1)Py_XDECREF(((PyObject*)((__pyx_t_1)))); |
8572 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
8573 | __Pyx_XDECREF(__pyx_t_3)Py_XDECREF(((PyObject*)((__pyx_t_3)))); |
8574 | __Pyx_AddTraceback("findAll", __pyx_clineno, __pyx_lineno, __pyx_filename); |
8575 | __pyx_L0:; |
8576 | __Pyx_XDECREF(__pyx_r)Py_XDECREF(((PyObject*)((__pyx_r)))); __pyx_r = 0; |
8577 | #if !CYTHON_USE_EXC_INFO_STACK1 |
8578 | __Pyx_Coroutine_ResetAndClearException(__pyx_generator)__Pyx_Coroutine_ExceptionClear(&(__pyx_generator)->gi_exc_state ); |
8579 | #endif |
8580 | __pyx_generator->resume_label = -1; |
8581 | __Pyx_Coroutine_clear((PyObject*)__pyx_generator); |
8582 | __Pyx_RefNannyFinishContext(); |
8583 | return __pyx_r; |
8584 | } |
8585 | |
8586 | static struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *__pyx_freelist_15abaqusFILReader___pyx_scope_struct__findAll[8]; |
8587 | static int __pyx_freecount_15abaqusFILReader___pyx_scope_struct__findAll = 0; |
8588 | |
8589 | static PyObject *__pyx_tp_new_15abaqusFILReader___pyx_scope_struct__findAll(PyTypeObject *t, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *a, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *k) { |
8590 | PyObject *o; |
8591 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
8592 | allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc47); |
8593 | o = alloc_func(t, 0); |
8594 | #else |
8595 | #if CYTHON_COMPILING_IN_CPYTHON1 |
8596 | if (likely((int)(__pyx_freecount_15abaqusFILReader___pyx_scope_struct__findAll > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll)))__builtin_expect(!!((int)(__pyx_freecount_15abaqusFILReader___pyx_scope_struct__findAll > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll ))), 1)) { |
8597 | o = (PyObject*)__pyx_freelist_15abaqusFILReader___pyx_scope_struct__findAll[--__pyx_freecount_15abaqusFILReader___pyx_scope_struct__findAll]; |
8598 | memset(o, 0, sizeof(struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll)); |
8599 | (void) PyObject_INIT(o, t)PyObject_Init(((PyObject*)((o))), (t)); |
8600 | PyObject_GC_Track(o); |
8601 | } else |
8602 | #endif |
8603 | { |
8604 | o = (*t->tp_alloc)(t, 0); |
8605 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
8606 | } |
8607 | #endif |
8608 | return o; |
8609 | } |
8610 | |
8611 | static void __pyx_tp_dealloc_15abaqusFILReader___pyx_scope_struct__findAll(PyObject *o) { |
8612 | struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *p = (struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *)o; |
8613 | #if CYTHON_USE_TP_FINALIZE1 |
8614 | if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor))__builtin_expect(!!((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03080000 || (((((PyTypeObject *)Py_TYPE(((PyObject*)((o)))))->tp_flags ) & ((1UL << 0))) != 0)) && ((Py_TYPE(((PyObject *)((o)))))->tp_finalize)), 0) && !__Pyx_PyObject_GC_IsFinalized(o)PyObject_GC_IsFinalized(o)) { |
8615 | if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor)((Py_TYPE(((PyObject*)((o)))))->tp_dealloc) == __pyx_tp_dealloc_15abaqusFILReader___pyx_scope_struct__findAll) { |
8616 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
8617 | } |
8618 | } |
8619 | #endif |
8620 | PyObject_GC_UnTrack(o); |
8621 | Py_CLEAR(p->__pyx_v_a_str)do { PyObject *_py_tmp = ((PyObject*)((p->__pyx_v_a_str))) ; if (_py_tmp != ((void*)0)) { (p->__pyx_v_a_str) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
8622 | Py_CLEAR(p->__pyx_v_start)do { PyObject *_py_tmp = ((PyObject*)((p->__pyx_v_start))) ; if (_py_tmp != ((void*)0)) { (p->__pyx_v_start) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
8623 | Py_CLEAR(p->__pyx_v_sub)do { PyObject *_py_tmp = ((PyObject*)((p->__pyx_v_sub))); if (_py_tmp != ((void*)0)) { (p->__pyx_v_sub) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
8624 | #if CYTHON_COMPILING_IN_CPYTHON1 |
8625 | if (((int)(__pyx_freecount_15abaqusFILReader___pyx_scope_struct__findAll < 8) & (int)(Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_basicsize == sizeof(struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll)))) { |
8626 | __pyx_freelist_15abaqusFILReader___pyx_scope_struct__findAll[__pyx_freecount_15abaqusFILReader___pyx_scope_struct__findAll++] = ((struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *)o); |
8627 | } else |
8628 | #endif |
8629 | { |
8630 | #if CYTHON_USE_TYPE_SLOTS1 || CYTHON_COMPILING_IN_PYPY0 |
8631 | (*Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_free)(o); |
8632 | #else |
8633 | { |
8634 | freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o)Py_TYPE(((PyObject*)((o)))), Py_tp_free74); |
8635 | if (tp_free) tp_free(o); |
8636 | } |
8637 | #endif |
8638 | } |
8639 | } |
8640 | |
8641 | static int __pyx_tp_traverse_15abaqusFILReader___pyx_scope_struct__findAll(PyObject *o, visitproc v, void *a) { |
8642 | int e; |
8643 | struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *p = (struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll *)o; |
8644 | if (p->__pyx_v_a_str) { |
8645 | e = (*v)(p->__pyx_v_a_str, a); if (e) return e; |
8646 | } |
8647 | if (p->__pyx_v_start) { |
8648 | e = (*v)(p->__pyx_v_start, a); if (e) return e; |
8649 | } |
8650 | if (p->__pyx_v_sub) { |
8651 | e = (*v)(p->__pyx_v_sub, a); if (e) return e; |
8652 | } |
8653 | return 0; |
8654 | } |
8655 | #if CYTHON_USE_TYPE_SPECS0 |
8656 | static PyType_Slot __pyx_type_15abaqusFILReader___pyx_scope_struct__findAll_slots[] = { |
8657 | {Py_tp_dealloc52, (void *)__pyx_tp_dealloc_15abaqusFILReader___pyx_scope_struct__findAll}, |
8658 | {Py_tp_traverse71, (void *)__pyx_tp_traverse_15abaqusFILReader___pyx_scope_struct__findAll}, |
8659 | {Py_tp_new65, (void *)__pyx_tp_new_15abaqusFILReader___pyx_scope_struct__findAll}, |
8660 | {0, 0}, |
8661 | }; |
8662 | static PyType_Spec __pyx_type_15abaqusFILReader___pyx_scope_struct__findAll_spec = { |
8663 | "abaqusFILReader.__pyx_scope_struct__findAll", |
8664 | sizeof(struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll), |
8665 | 0, |
8666 | Py_TPFLAGS_DEFAULT( 0 | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1UL << 18)|Py_TPFLAGS_CHECKTYPES0|Py_TPFLAGS_HAVE_NEWBUFFER0|Py_TPFLAGS_HAVE_GC(1UL << 14)|Py_TPFLAGS_HAVE_FINALIZE(1UL << 0), |
8667 | __pyx_type_15abaqusFILReader___pyx_scope_struct__findAll_slots, |
8668 | }; |
8669 | #else |
8670 | |
8671 | static PyTypeObject __pyx_type_15abaqusFILReader___pyx_scope_struct__findAll = { |
8672 | PyVarObject_HEAD_INIT(0, 0){ { 1, 0 }, 0 }, |
8673 | "abaqusFILReader.""__pyx_scope_struct__findAll", /*tp_name*/ |
8674 | sizeof(struct __pyx_obj_15abaqusFILReader___pyx_scope_struct__findAll), /*tp_basicsize*/ |
8675 | 0, /*tp_itemsize*/ |
8676 | __pyx_tp_dealloc_15abaqusFILReader___pyx_scope_struct__findAll, /*tp_dealloc*/ |
8677 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800b4 |
8678 | 0, /*tp_print*/ |
8679 | #endif |
8680 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 |
8681 | 0, /*tp_vectorcall_offset*/ |
8682 | #endif |
8683 | 0, /*tp_getattr*/ |
8684 | 0, /*tp_setattr*/ |
8685 | #if PY_MAJOR_VERSION3 < 3 |
8686 | 0, /*tp_compare*/ |
8687 | #endif |
8688 | #if PY_MAJOR_VERSION3 >= 3 |
8689 | 0, /*tp_as_async*/ |
8690 | #endif |
8691 | 0, /*tp_repr*/ |
8692 | 0, /*tp_as_number*/ |
8693 | 0, /*tp_as_sequence*/ |
8694 | 0, /*tp_as_mapping*/ |
8695 | 0, /*tp_hash*/ |
8696 | 0, /*tp_call*/ |
8697 | 0, /*tp_str*/ |
8698 | 0, /*tp_getattro*/ |
8699 | 0, /*tp_setattro*/ |
8700 | 0, /*tp_as_buffer*/ |
8701 | Py_TPFLAGS_DEFAULT( 0 | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1UL << 18)|Py_TPFLAGS_CHECKTYPES0|Py_TPFLAGS_HAVE_NEWBUFFER0|Py_TPFLAGS_HAVE_GC(1UL << 14)|Py_TPFLAGS_HAVE_FINALIZE(1UL << 0), /*tp_flags*/ |
8702 | 0, /*tp_doc*/ |
8703 | __pyx_tp_traverse_15abaqusFILReader___pyx_scope_struct__findAll, /*tp_traverse*/ |
8704 | 0, /*tp_clear*/ |
8705 | 0, /*tp_richcompare*/ |
8706 | 0, /*tp_weaklistoffset*/ |
8707 | 0, /*tp_iter*/ |
8708 | 0, /*tp_iternext*/ |
8709 | 0, /*tp_methods*/ |
8710 | 0, /*tp_members*/ |
8711 | 0, /*tp_getset*/ |
8712 | 0, /*tp_base*/ |
8713 | 0, /*tp_dict*/ |
8714 | 0, /*tp_descr_get*/ |
8715 | 0, /*tp_descr_set*/ |
8716 | #if !CYTHON_USE_TYPE_SPECS0 |
8717 | 0, /*tp_dictoffset*/ |
8718 | #endif |
8719 | 0, /*tp_init*/ |
8720 | 0, /*tp_alloc*/ |
8721 | __pyx_tp_new_15abaqusFILReader___pyx_scope_struct__findAll, /*tp_new*/ |
8722 | 0, /*tp_free*/ |
8723 | 0, /*tp_is_gc*/ |
8724 | 0, /*tp_bases*/ |
8725 | 0, /*tp_mro*/ |
8726 | 0, /*tp_cache*/ |
8727 | 0, /*tp_subclasses*/ |
8728 | 0, /*tp_weaklist*/ |
8729 | 0, /*tp_del*/ |
8730 | 0, /*tp_version_tag*/ |
8731 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
8732 | #if CYTHON_USE_TP_FINALIZE1 |
8733 | 0, /*tp_finalize*/ |
8734 | #else |
8735 | NULL((void*)0), /*tp_finalize*/ |
8736 | #endif |
8737 | #endif |
8738 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY0 || PYPY_VERSION_NUM >= 0x07030800) |
8739 | 0, /*tp_vectorcall*/ |
8740 | #endif |
8741 | #if __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000) == 1 |
8742 | 0, /*tp_print*/ |
8743 | #endif |
8744 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C0000 |
8745 | 0, /*tp_watched*/ |
8746 | #endif |
8747 | #if CYTHON_COMPILING_IN_PYPY0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03090000 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030a0000 |
8748 | 0, /*tp_pypy_flags*/ |
8749 | #endif |
8750 | }; |
8751 | #endif |
8752 | |
8753 | static PyMethodDef __pyx_methods[] = { |
8754 | {0, 0, 0, 0} |
8755 | }; |
8756 | #ifndef CYTHON_SMALL_CODE |
8757 | #if defined(__clang__1) |
8758 | #define CYTHON_SMALL_CODE |
8759 | #elif defined(__GNUC__4) && (__GNUC__4 > 4 || (__GNUC__4 == 4 && __GNUC_MINOR__2 >= 3)) |
8760 | #define CYTHON_SMALL_CODE __attribute__((cold)) |
8761 | #else |
8762 | #define CYTHON_SMALL_CODE |
8763 | #endif |
8764 | #endif |
8765 | /* #### Code section: pystring_table ### */ |
8766 | |
8767 | static int __Pyx_CreateStringTabAndInitStrings(void) { |
8768 | __Pyx_StringTabEntry __pyx_string_tab[] = { |
8769 | {&__pyx_n_u_A__pyx_mstate_global->__pyx_n_u_A, __pyx_k_A, sizeof(__pyx_k_A), 0, 1, 0, 1}, |
8770 | {&__pyx_n_u_D__pyx_mstate_global->__pyx_n_u_D, __pyx_k_D, sizeof(__pyx_k_D), 0, 1, 0, 1}, |
8771 | {&__pyx_n_u_E__pyx_mstate_global->__pyx_n_u_E, __pyx_k_E, sizeof(__pyx_k_E), 0, 1, 0, 1}, |
8772 | {&__pyx_n_u_I__pyx_mstate_global->__pyx_n_u_I, __pyx_k_I, sizeof(__pyx_k_I), 0, 1, 0, 1}, |
8773 | {&__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1}, |
8774 | {&__pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData, __pyx_k_ParsedData, sizeof(__pyx_k_ParsedData), 0, 0, 1, 1}, |
8775 | {&__pyx_n_s_Rec__pyx_mstate_global->__pyx_n_s_Rec, __pyx_k_Rec, sizeof(__pyx_k_Rec), 0, 0, 1, 1}, |
8776 | {&__pyx_n_s_RecSplit__pyx_mstate_global->__pyx_n_s_RecSplit, __pyx_k_RecSplit, sizeof(__pyx_k_RecSplit), 0, 0, 1, 1}, |
8777 | {&__pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2, __pyx_k__2, sizeof(__pyx_k__2), 0, 1, 0, 0}, |
8778 | {&__pyx_n_s__24__pyx_mstate_global->__pyx_n_s__24, __pyx_k__24, sizeof(__pyx_k__24), 0, 0, 1, 1}, |
8779 | {&__pyx_kp_u__5__pyx_mstate_global->__pyx_kp_u__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 1, 0, 0}, |
8780 | {&__pyx_kp_u__7__pyx_mstate_global->__pyx_kp_u__7, __pyx_k__7, sizeof(__pyx_k__7), 0, 1, 0, 0}, |
8781 | {&__pyx_n_s__9__pyx_mstate_global->__pyx_n_s__9, __pyx_k__9, sizeof(__pyx_k__9), 0, 0, 1, 1}, |
8782 | {&__pyx_kp_u__9__pyx_mstate_global->__pyx_kp_u__9, __pyx_k__9, sizeof(__pyx_k__9), 0, 1, 0, 0}, |
8783 | {&__pyx_n_s_a_str__pyx_mstate_global->__pyx_n_s_a_str, __pyx_k_a_str, sizeof(__pyx_k_a_str), 0, 0, 1, 1}, |
8784 | {&__pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader, __pyx_k_abaqusFILReader, sizeof(__pyx_k_abaqusFILReader), 0, 0, 1, 1}, |
8785 | {&__pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx, __pyx_k_abaqusFILReader_pyx, sizeof(__pyx_k_abaqusFILReader_pyx), 0, 0, 1, 0}, |
8786 | {&__pyx_n_s_abqFile__pyx_mstate_global->__pyx_n_s_abqFile, __pyx_k_abqFile, sizeof(__pyx_k_abqFile), 0, 0, 1, 1}, |
8787 | {&__pyx_n_s_args__pyx_mstate_global->__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, |
8788 | {&__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines, __pyx_k_asyncio_coroutines, sizeof(__pyx_k_asyncio_coroutines), 0, 0, 1, 1}, |
8789 | {&__pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem, __pyx_k_class_getitem, sizeof(__pyx_k_class_getitem), 0, 0, 1, 1}, |
8790 | {&__pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, |
8791 | {&__pyx_n_s_close__pyx_mstate_global->__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, |
8792 | {&__pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, |
8793 | {&__pyx_kp_u_data2__pyx_mstate_global->__pyx_kp_u_data2, __pyx_k_data2, sizeof(__pyx_k_data2), 0, 1, 0, 0}, |
8794 | {&__pyx_n_s_data2_2__pyx_mstate_global->__pyx_n_s_data2_2, __pyx_k_data2_2, sizeof(__pyx_k_data2_2), 0, 0, 1, 1}, |
8795 | {&__pyx_kp_u_data_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_data_missing_abq_probably_didn_t, __pyx_k_data_missing_abq_probably_didn_t, sizeof(__pyx_k_data_missing_abq_probably_didn_t), 0, 1, 0, 0}, |
8796 | {&__pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug, __pyx_k_debug, sizeof(__pyx_k_debug), 0, 0, 1, 1}, |
8797 | {&__pyx_n_s_decode__pyx_mstate_global->__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1}, |
8798 | {&__pyx_kp_u_disable__pyx_mstate_global->__pyx_kp_u_disable, __pyx_k_disable, sizeof(__pyx_k_disable), 0, 1, 0, 0}, |
8799 | {&__pyx_n_s_displacements__pyx_mstate_global->__pyx_n_s_displacements, __pyx_k_displacements, sizeof(__pyx_k_displacements), 0, 0, 1, 1}, |
8800 | {&__pyx_n_s_elNum__pyx_mstate_global->__pyx_n_s_elNum, __pyx_k_elNum, sizeof(__pyx_k_elNum), 0, 0, 1, 1}, |
8801 | {&__pyx_kp_u_empty_file__pyx_mstate_global->__pyx_kp_u_empty_file, __pyx_k_empty_file, sizeof(__pyx_k_empty_file), 0, 1, 0, 0}, |
8802 | {&__pyx_kp_u_enable__pyx_mstate_global->__pyx_kp_u_enable, __pyx_k_enable, sizeof(__pyx_k_enable), 0, 1, 0, 0}, |
8803 | {&__pyx_n_s_enter__pyx_mstate_global->__pyx_n_s_enter, __pyx_k_enter, sizeof(__pyx_k_enter), 0, 0, 1, 1}, |
8804 | {&__pyx_n_s_enumerate__pyx_mstate_global->__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1}, |
8805 | {&__pyx_n_s_exit__pyx_mstate_global->__pyx_n_s_exit, __pyx_k_exit, sizeof(__pyx_k_exit), 0, 0, 1, 1}, |
8806 | {&__pyx_n_s_extractDispFil__pyx_mstate_global->__pyx_n_s_extractDispFil, __pyx_k_extractDispFil, sizeof(__pyx_k_extractDispFil), 0, 0, 1, 1}, |
8807 | {&__pyx_n_s_extractFilRecords__pyx_mstate_global->__pyx_n_s_extractFilRecords, __pyx_k_extractFilRecords, sizeof(__pyx_k_extractFilRecords), 0, 0, 1, 1}, |
8808 | {&__pyx_n_s_extractMisesFil__pyx_mstate_global->__pyx_n_s_extractMisesFil, __pyx_k_extractMisesFil, sizeof(__pyx_k_extractMisesFil), 0, 0, 1, 1}, |
8809 | {&__pyx_n_s_extractRecord__pyx_mstate_global->__pyx_n_s_extractRecord, __pyx_k_extractRecord, sizeof(__pyx_k_extractRecord), 0, 0, 1, 1}, |
8810 | {&__pyx_n_s_f__pyx_mstate_global->__pyx_n_s_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 0, 1, 1}, |
8811 | {&__pyx_kp_u_fil__pyx_mstate_global->__pyx_kp_u_fil, __pyx_k_fil, sizeof(__pyx_k_fil), 0, 1, 0, 0}, |
8812 | {&__pyx_kp_u_file_missing_abq_probably_didn_t__pyx_mstate_global->__pyx_kp_u_file_missing_abq_probably_didn_t, __pyx_k_file_missing_abq_probably_didn_t, sizeof(__pyx_k_file_missing_abq_probably_didn_t), 0, 1, 0, 0}, |
8813 | {&__pyx_kp_u_final_temp_data__pyx_mstate_global->__pyx_kp_u_final_temp_data, __pyx_k_final_temp_data, sizeof(__pyx_k_final_temp_data), 0, 1, 0, 0}, |
8814 | {&__pyx_n_s_find__pyx_mstate_global->__pyx_n_s_find, __pyx_k_find, sizeof(__pyx_k_find), 0, 0, 1, 1}, |
8815 | {&__pyx_n_s_findAll__pyx_mstate_global->__pyx_n_s_findAll, __pyx_k_findAll, sizeof(__pyx_k_findAll), 0, 0, 1, 1}, |
8816 | {&__pyx_kp_u_found_data__pyx_mstate_global->__pyx_kp_u_found_data, __pyx_k_found_data, sizeof(__pyx_k_found_data), 0, 1, 0, 0}, |
8817 | {&__pyx_kp_u_gc__pyx_mstate_global->__pyx_kp_u_gc, __pyx_k_gc, sizeof(__pyx_k_gc), 0, 1, 0, 0}, |
8818 | {&__pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, __pyx_k_ignore_dicts, sizeof(__pyx_k_ignore_dicts), 0, 0, 1, 1}, |
8819 | {&__pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, |
8820 | {&__pyx_n_s_ind__pyx_mstate_global->__pyx_n_s_ind, __pyx_k_ind, sizeof(__pyx_k_ind), 0, 0, 1, 1}, |
8821 | {&__pyx_kp_u_index__pyx_mstate_global->__pyx_kp_u_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 1, 0, 0}, |
8822 | {&__pyx_n_s_initializing__pyx_mstate_global->__pyx_n_s_initializing, __pyx_k_initializing, sizeof(__pyx_k_initializing), 0, 0, 1, 1}, |
8823 | {&__pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine, __pyx_k_is_coroutine, sizeof(__pyx_k_is_coroutine), 0, 0, 1, 1}, |
8824 | {&__pyx_kp_u_isenabled__pyx_mstate_global->__pyx_kp_u_isenabled, __pyx_k_isenabled, sizeof(__pyx_k_isenabled), 0, 1, 0, 0}, |
8825 | {&__pyx_n_s_isfile__pyx_mstate_global->__pyx_n_s_isfile, __pyx_k_isfile, sizeof(__pyx_k_isfile), 0, 0, 1, 1}, |
8826 | {&__pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1}, |
8827 | {&__pyx_n_s_iteritems__pyx_mstate_global->__pyx_n_s_iteritems, __pyx_k_iteritems, sizeof(__pyx_k_iteritems), 0, 0, 1, 1}, |
8828 | {&__pyx_n_s_k__pyx_mstate_global->__pyx_n_s_k, __pyx_k_k, sizeof(__pyx_k_k), 0, 0, 1, 1}, |
8829 | {&__pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1}, |
8830 | {&__pyx_n_s_keys__pyx_mstate_global->__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1}, |
8831 | {&__pyx_n_s_line__pyx_mstate_global->__pyx_n_s_line, __pyx_k_line, sizeof(__pyx_k_line), 0, 0, 1, 1}, |
8832 | {&__pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, |
8833 | {&__pyx_n_s_mises__pyx_mstate_global->__pyx_n_s_mises, __pyx_k_mises, sizeof(__pyx_k_mises), 0, 0, 1, 1}, |
8834 | {&__pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, |
8835 | {&__pyx_kp_u_no_data_found__pyx_mstate_global->__pyx_kp_u_no_data_found, __pyx_k_no_data_found, sizeof(__pyx_k_no_data_found), 0, 1, 0, 0}, |
8836 | {&__pyx_n_s_open__pyx_mstate_global->__pyx_n_s_open, __pyx_k_open, sizeof(__pyx_k_open), 0, 0, 1, 1}, |
8837 | {&__pyx_n_s_os__pyx_mstate_global->__pyx_n_s_os, __pyx_k_os, sizeof(__pyx_k_os), 0, 0, 1, 1}, |
8838 | {&__pyx_n_s_output__pyx_mstate_global->__pyx_n_s_output, __pyx_k_output, sizeof(__pyx_k_output), 0, 0, 1, 1}, |
8839 | {&__pyx_n_s_path__pyx_mstate_global->__pyx_n_s_path, __pyx_k_path, sizeof(__pyx_k_path), 0, 0, 1, 1}, |
8840 | {&__pyx_n_s_pos__pyx_mstate_global->__pyx_n_s_pos, __pyx_k_pos, sizeof(__pyx_k_pos), 0, 0, 1, 1}, |
8841 | {&__pyx_n_u_position__pyx_mstate_global->__pyx_n_u_position, __pyx_k_position, sizeof(__pyx_k_position), 0, 1, 0, 1}, |
8842 | {&__pyx_n_s_print__pyx_mstate_global->__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1}, |
8843 | {&__pyx_n_s_recnumber__pyx_mstate_global->__pyx_n_s_recnumber, __pyx_k_recnumber, sizeof(__pyx_k_recnumber), 0, 0, 1, 1}, |
8844 | {&__pyx_kp_u_record__pyx_mstate_global->__pyx_kp_u_record, __pyx_k_record, sizeof(__pyx_k_record), 0, 1, 0, 0}, |
8845 | {&__pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2, __pyx_k_record_2, sizeof(__pyx_k_record_2), 0, 0, 1, 1}, |
8846 | {&__pyx_n_u_record_2__pyx_mstate_global->__pyx_n_u_record_2, __pyx_k_record_2, sizeof(__pyx_k_record_2), 0, 1, 0, 1}, |
8847 | {&__pyx_kp_u_record_3__pyx_mstate_global->__pyx_kp_u_record_3, __pyx_k_record_3, sizeof(__pyx_k_record_3), 0, 1, 0, 0}, |
8848 | {&__pyx_kp_u_record_length__pyx_mstate_global->__pyx_kp_u_record_length, __pyx_k_record_length, sizeof(__pyx_k_record_length), 0, 1, 0, 0}, |
8849 | {&__pyx_n_s_replace__pyx_mstate_global->__pyx_n_s_replace, __pyx_k_replace, sizeof(__pyx_k_replace), 0, 0, 1, 1}, |
8850 | {&__pyx_n_s_secNum__pyx_mstate_global->__pyx_n_s_secNum, __pyx_k_secNum, sizeof(__pyx_k_secNum), 0, 0, 1, 1}, |
8851 | {&__pyx_n_s_send__pyx_mstate_global->__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1}, |
8852 | {&__pyx_n_s_spec__pyx_mstate_global->__pyx_n_s_spec, __pyx_k_spec, sizeof(__pyx_k_spec), 0, 0, 1, 1}, |
8853 | {&__pyx_n_s_split__pyx_mstate_global->__pyx_n_s_split, __pyx_k_split, sizeof(__pyx_k_split), 0, 0, 1, 1}, |
8854 | {&__pyx_n_s_start__pyx_mstate_global->__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1}, |
8855 | {&__pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, __pyx_k_str, sizeof(__pyx_k_str), 0, 0, 1, 1}, |
8856 | {&__pyx_n_s_sub__pyx_mstate_global->__pyx_n_s_sub, __pyx_k_sub, sizeof(__pyx_k_sub), 0, 0, 1, 1}, |
8857 | {&__pyx_n_s_sys__pyx_mstate_global->__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1}, |
8858 | {&__pyx_n_s_temp__pyx_mstate_global->__pyx_n_s_temp, __pyx_k_temp, sizeof(__pyx_k_temp), 0, 0, 1, 1}, |
8859 | {&__pyx_n_s_temp2__pyx_mstate_global->__pyx_n_s_temp2, __pyx_k_temp2, sizeof(__pyx_k_temp2), 0, 0, 1, 1}, |
8860 | {&__pyx_kp_u_temp_data__pyx_mstate_global->__pyx_kp_u_temp_data, __pyx_k_temp_data, sizeof(__pyx_k_temp_data), 0, 1, 0, 0}, |
8861 | {&__pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, |
8862 | {&__pyx_n_s_throw__pyx_mstate_global->__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1}, |
8863 | {&__pyx_n_s_update__pyx_mstate_global->__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1}, |
8864 | {&__pyx_kp_u_utf_8__pyx_mstate_global->__pyx_kp_u_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 1, 0, 0}, |
8865 | {&__pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, |
8866 | {0, 0, 0, 0, 0, 0, 0} |
8867 | }; |
8868 | return __Pyx_InitStrings(__pyx_string_tab); |
8869 | } |
8870 | /* #### Code section: cached_builtins ### */ |
8871 | static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { |
8872 | __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError__pyx_mstate_global->__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(0, 46, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 46; (void)__pyx_lineno; __pyx_clineno = 8872; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8873 | __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_n_s_print__pyx_mstate_global->__pyx_n_s_print); if (!__pyx_builtin_print) __PYX_ERR(0, 163, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 163; (void)__pyx_lineno; __pyx_clineno = 8873; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8874 | __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate__pyx_mstate_global->__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 187, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 187; (void)__pyx_lineno; __pyx_clineno = 8874; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8875 | __pyx_builtin_open = __Pyx_GetBuiltinName(__pyx_n_s_open__pyx_mstate_global->__pyx_n_s_open); if (!__pyx_builtin_open) __PYX_ERR(0, 221, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 8875; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8876 | return 0; |
8877 | __pyx_L1_error:; |
8878 | return -1; |
8879 | } |
8880 | /* #### Code section: cached_constants ### */ |
8881 | |
8882 | static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { |
8883 | __Pyx_RefNannyDeclarations |
8884 | __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); |
8885 | |
8886 | /* "abaqusFILReader.pyx":148 |
8887 | * for record in ParsedData: |
8888 | * if record[0]==101: |
8889 | * output.append(record[1:]) # <<<<<<<<<<<<<< |
8890 | * if output==[]: |
8891 | * return [2,"no data found",{}] |
8892 | */ |
8893 | __pyx_slice___pyx_mstate_global->__pyx_slice_ = PySlice_New(__pyx_int_1__pyx_mstate_global->__pyx_int_1, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); if (unlikely(!__pyx_slice_)__builtin_expect(!!(!__pyx_mstate_global->__pyx_slice_), 0 )) __PYX_ERR(0, 148, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 148; (void)__pyx_lineno; __pyx_clineno = 8893; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8894 | __Pyx_GOTREF(__pyx_slice_); |
8895 | __Pyx_GIVEREF(__pyx_slice_); |
8896 | |
8897 | /* "abaqusFILReader.pyx":220 |
8898 | * #Get data in a single string |
8899 | * Rec="" |
8900 | * if os.path.isfile(abqFile[0:-4]+".fil"): # <<<<<<<<<<<<<< |
8901 | * with open(abqFile[0:-4]+".fil") as f: |
8902 | * for line in f: |
8903 | */ |
8904 | __pyx_slice__3__pyx_mstate_global->__pyx_slice__3 = PySlice_New(__pyx_int_0__pyx_mstate_global->__pyx_int_0, __pyx_int_neg_4__pyx_mstate_global->__pyx_int_neg_4, Py_None(&_Py_NoneStruct)); if (unlikely(!__pyx_slice__3)__builtin_expect(!!(!__pyx_mstate_global->__pyx_slice__3), 0)) __PYX_ERR(0, 220, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 220; (void)__pyx_lineno; __pyx_clineno = 8904; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8905 | __Pyx_GOTREF(__pyx_slice__3); |
8906 | __Pyx_GIVEREF(__pyx_slice__3); |
8907 | |
8908 | /* "abaqusFILReader.pyx":221 |
8909 | * Rec="" |
8910 | * if os.path.isfile(abqFile[0:-4]+".fil"): |
8911 | * with open(abqFile[0:-4]+".fil") as f: # <<<<<<<<<<<<<< |
8912 | * for line in f: |
8913 | * Rec+=line |
8914 | */ |
8915 | __pyx_tuple__4__pyx_mstate_global->__pyx_tuple__4 = PyTuple_Pack(3, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); if (unlikely(!__pyx_tuple__4)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__4), 0)) __PYX_ERR(0, 221, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 221; (void)__pyx_lineno; __pyx_clineno = 8915; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8916 | __Pyx_GOTREF(__pyx_tuple__4); |
8917 | __Pyx_GIVEREF(__pyx_tuple__4); |
8918 | |
8919 | /* "abaqusFILReader.pyx":224 |
8920 | * for line in f: |
8921 | * Rec+=line |
8922 | * Rec=Rec.replace("\n","") # <<<<<<<<<<<<<< |
8923 | * Rec=Rec.replace("\r","") |
8924 | * if debug: |
8925 | */ |
8926 | __pyx_tuple__6__pyx_mstate_global->__pyx_tuple__6 = PyTuple_Pack(2, __pyx_kp_u__5__pyx_mstate_global->__pyx_kp_u__5, __pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2); if (unlikely(!__pyx_tuple__6)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__6), 0)) __PYX_ERR(0, 224, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 224; (void)__pyx_lineno; __pyx_clineno = 8926; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8927 | __Pyx_GOTREF(__pyx_tuple__6); |
8928 | __Pyx_GIVEREF(__pyx_tuple__6); |
8929 | |
8930 | /* "abaqusFILReader.pyx":225 |
8931 | * Rec+=line |
8932 | * Rec=Rec.replace("\n","") |
8933 | * Rec=Rec.replace("\r","") # <<<<<<<<<<<<<< |
8934 | * if debug: |
8935 | * print('record',Rec) #debug |
8936 | */ |
8937 | __pyx_tuple__8__pyx_mstate_global->__pyx_tuple__8 = PyTuple_Pack(2, __pyx_kp_u__7__pyx_mstate_global->__pyx_kp_u__7, __pyx_kp_u__2__pyx_mstate_global->__pyx_kp_u__2); if (unlikely(!__pyx_tuple__8)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__8), 0)) __PYX_ERR(0, 225, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 225; (void)__pyx_lineno; __pyx_clineno = 8937; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8938 | __Pyx_GOTREF(__pyx_tuple__8); |
8939 | __Pyx_GIVEREF(__pyx_tuple__8); |
8940 | |
8941 | /* "abaqusFILReader.pyx":270 |
8942 | * print("position", pos) |
8943 | * elif record[pos]=='D': |
8944 | * temp.append(float(record[pos+1:pos+23].replace("D","E"))) # <<<<<<<<<<<<<< |
8945 | * pos+=22 |
8946 | * elif record[pos]=="A": |
8947 | */ |
8948 | __pyx_tuple__10__pyx_mstate_global->__pyx_tuple__10 = PyTuple_Pack(2, __pyx_n_u_D__pyx_mstate_global->__pyx_n_u_D, __pyx_n_u_E__pyx_mstate_global->__pyx_n_u_E); if (unlikely(!__pyx_tuple__10)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__10) , 0)) __PYX_ERR(0, 270, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 270; (void)__pyx_lineno; __pyx_clineno = 8948; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8949 | __Pyx_GOTREF(__pyx_tuple__10); |
8950 | __Pyx_GIVEREF(__pyx_tuple__10); |
8951 | |
8952 | /* "abaqusFILReader.pyx":16 |
8953 | * |
8954 | * # Handles all byte to uni-code and and byte conversion. |
8955 | * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<< |
8956 | * |
8957 | * if PY_MAJOR_VERSION >= 3: |
8958 | */ |
8959 | __pyx_tuple__12__pyx_mstate_global->__pyx_tuple__12 = PyTuple_Pack(5, __pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data, __pyx_n_s_ignore_dicts__pyx_mstate_global->__pyx_n_s_ignore_dicts, __pyx_n_s_item__pyx_mstate_global->__pyx_n_s_item, __pyx_n_s_key__pyx_mstate_global->__pyx_n_s_key, __pyx_n_s_value__pyx_mstate_global->__pyx_n_s_value); if (unlikely(!__pyx_tuple__12)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__12) , 0)) __PYX_ERR(0, 16, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 8959; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8960 | __Pyx_GOTREF(__pyx_tuple__12); |
8961 | __Pyx_GIVEREF(__pyx_tuple__12); |
8962 | __pyx_codeobj__13__pyx_mstate_global->__pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED0x0001|CO_NEWLOCALS0x0002, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_tuple__12__pyx_mstate_global->__pyx_tuple__12, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx, __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, 16, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)__builtin_expect(!!(!__pyx_mstate_global->__pyx_codeobj__13 ), 0)) __PYX_ERR(0, 16, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 8962; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8963 | __pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14 = PyTuple_Pack(1, ((PyObject *)Py_False((PyObject *) &_Py_FalseStruct))); if (unlikely(!__pyx_tuple__14)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__14) , 0)) __PYX_ERR(0, 16, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 8963; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8964 | __Pyx_GOTREF(__pyx_tuple__14); |
8965 | __Pyx_GIVEREF(__pyx_tuple__14); |
8966 | |
8967 | /* "abaqusFILReader.pyx":134 |
8968 | * # pull out displacement or von mises stress from file. |
8969 | * |
8970 | * def extractDispFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
8971 | * """Pulls out the node displacement values from a node output file |
8972 | * and returns a dictionary of the values. |
8973 | */ |
8974 | __pyx_tuple__15__pyx_mstate_global->__pyx_tuple__15 = PyTuple_Pack(7, __pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData, __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug, __pyx_n_s_output__pyx_mstate_global->__pyx_n_s_output, __pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2, __pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data, __pyx_n_s_displacements__pyx_mstate_global->__pyx_n_s_displacements, __pyx_n_s_k__pyx_mstate_global->__pyx_n_s_k); if (unlikely(!__pyx_tuple__15)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__15) , 0)) __PYX_ERR(0, 134, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 8974; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8975 | __Pyx_GOTREF(__pyx_tuple__15); |
8976 | __Pyx_GIVEREF(__pyx_tuple__15); |
8977 | __pyx_codeobj__16__pyx_mstate_global->__pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED0x0001|CO_NEWLOCALS0x0002, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_tuple__15__pyx_mstate_global->__pyx_tuple__15, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx, __pyx_n_s_extractDispFil__pyx_mstate_global->__pyx_n_s_extractDispFil, 134, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)__builtin_expect(!!(!__pyx_mstate_global->__pyx_codeobj__16 ), 0)) __PYX_ERR(0, 134, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 8977; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8978 | |
8979 | /* "abaqusFILReader.pyx":173 |
8980 | * return [3,"file missing, abq probably didn't finish",{}] |
8981 | * |
8982 | * def extractMisesFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
8983 | * """Pulls out the element mises values from a element output |
8984 | * file and returns a dictionary of the values at the Section |
8985 | */ |
8986 | __pyx_tuple__17__pyx_mstate_global->__pyx_tuple__17 = PyTuple_Pack(8, __pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData, __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug, __pyx_n_s_data__pyx_mstate_global->__pyx_n_s_data, __pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2, __pyx_n_s_data2_2__pyx_mstate_global->__pyx_n_s_data2_2, __pyx_n_s_elNum__pyx_mstate_global->__pyx_n_s_elNum, __pyx_n_s_secNum__pyx_mstate_global->__pyx_n_s_secNum, __pyx_n_s_mises__pyx_mstate_global->__pyx_n_s_mises); if (unlikely(!__pyx_tuple__17)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__17) , 0)) __PYX_ERR(0, 173, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 8986; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8987 | __Pyx_GOTREF(__pyx_tuple__17); |
8988 | __Pyx_GIVEREF(__pyx_tuple__17); |
8989 | __pyx_codeobj__18__pyx_mstate_global->__pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED0x0001|CO_NEWLOCALS0x0002, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_tuple__17__pyx_mstate_global->__pyx_tuple__17, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx, __pyx_n_s_extractMisesFil__pyx_mstate_global->__pyx_n_s_extractMisesFil, 173, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)__builtin_expect(!!(!__pyx_mstate_global->__pyx_codeobj__18 ), 0)) __PYX_ERR(0, 173, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 8989; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8990 | |
8991 | /* "abaqusFILReader.pyx":208 |
8992 | * |
8993 | * |
8994 | * def extractFilRecords(abqFile,debug=False): # <<<<<<<<<<<<<< |
8995 | * """Parses the FIL file into a list of records. |
8996 | * |
8997 | */ |
8998 | __pyx_tuple__19__pyx_mstate_global->__pyx_tuple__19 = PyTuple_Pack(12, __pyx_n_s_abqFile__pyx_mstate_global->__pyx_n_s_abqFile, __pyx_n_s_debug__pyx_mstate_global->__pyx_n_s_debug, __pyx_n_s_Rec__pyx_mstate_global->__pyx_n_s_Rec, __pyx_n_s_f__pyx_mstate_global->__pyx_n_s_f, __pyx_n_s_line__pyx_mstate_global->__pyx_n_s_line, __pyx_n_s_ind__pyx_mstate_global->__pyx_n_s_ind, __pyx_n_s_RecSplit__pyx_mstate_global->__pyx_n_s_RecSplit, __pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData, __pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2, __pyx_n_s_pos__pyx_mstate_global->__pyx_n_s_pos, __pyx_n_s_temp__pyx_mstate_global->__pyx_n_s_temp, __pyx_n_s_temp2__pyx_mstate_global->__pyx_n_s_temp2); if (unlikely(!__pyx_tuple__19)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__19) , 0)) __PYX_ERR(0, 208, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 8998; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
8999 | __Pyx_GOTREF(__pyx_tuple__19); |
9000 | __Pyx_GIVEREF(__pyx_tuple__19); |
9001 | __pyx_codeobj__20__pyx_mstate_global->__pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 12, 0, CO_OPTIMIZED0x0001|CO_NEWLOCALS0x0002, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_tuple__19__pyx_mstate_global->__pyx_tuple__19, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx, __pyx_n_s_extractFilRecords__pyx_mstate_global->__pyx_n_s_extractFilRecords, 208, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)__builtin_expect(!!(!__pyx_mstate_global->__pyx_codeobj__20 ), 0)) __PYX_ERR(0, 208, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 9001; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9002 | |
9003 | /* "abaqusFILReader.pyx":292 |
9004 | * return 3, "file missing, abq probably didn't finish", [] |
9005 | * |
9006 | * def extractRecord(ParsedData,recnumber): # <<<<<<<<<<<<<< |
9007 | * """Pulls out the values from a parsed fil for just the records desired. |
9008 | * |
9009 | */ |
9010 | __pyx_tuple__21__pyx_mstate_global->__pyx_tuple__21 = PyTuple_Pack(4, __pyx_n_s_ParsedData__pyx_mstate_global->__pyx_n_s_ParsedData, __pyx_n_s_recnumber__pyx_mstate_global->__pyx_n_s_recnumber, __pyx_n_s_output__pyx_mstate_global->__pyx_n_s_output, __pyx_n_s_record_2__pyx_mstate_global->__pyx_n_s_record_2); if (unlikely(!__pyx_tuple__21)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__21) , 0)) __PYX_ERR(0, 292, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 9010; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9011 | __Pyx_GOTREF(__pyx_tuple__21); |
9012 | __Pyx_GIVEREF(__pyx_tuple__21); |
9013 | __pyx_codeobj__22__pyx_mstate_global->__pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED0x0001|CO_NEWLOCALS0x0002, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_tuple__21__pyx_mstate_global->__pyx_tuple__21, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx, __pyx_n_s_extractRecord__pyx_mstate_global->__pyx_n_s_extractRecord, 292, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)__builtin_expect(!!(!__pyx_mstate_global->__pyx_codeobj__22 ), 0)) __PYX_ERR(0, 292, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 9013; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9014 | |
9015 | /* "abaqusFILReader.pyx":313 |
9016 | * return [3,"data missing, abq probably didn't finish",[]] |
9017 | * |
9018 | * def findAll(a_str, sub): # <<<<<<<<<<<<<< |
9019 | * """looks in a string for all occurances of a string |
9020 | * """ |
9021 | */ |
9022 | __pyx_tuple__23__pyx_mstate_global->__pyx_tuple__23 = PyTuple_Pack(3, __pyx_n_s_a_str__pyx_mstate_global->__pyx_n_s_a_str, __pyx_n_s_sub__pyx_mstate_global->__pyx_n_s_sub, __pyx_n_s_start__pyx_mstate_global->__pyx_n_s_start); if (unlikely(!__pyx_tuple__23)__builtin_expect(!!(!__pyx_mstate_global->__pyx_tuple__23) , 0)) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 9022; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9023 | __Pyx_GOTREF(__pyx_tuple__23); |
9024 | __Pyx_GIVEREF(__pyx_tuple__23); |
9025 | __pyx_codeobj__11__pyx_mstate_global->__pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED0x0001|CO_NEWLOCALS0x0002|CO_GENERATOR0x0020, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_tuple__23__pyx_mstate_global->__pyx_tuple__23, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, __pyx_kp_s_abaqusFILReader_pyx__pyx_mstate_global->__pyx_kp_s_abaqusFILReader_pyx, __pyx_n_s_findAll__pyx_mstate_global->__pyx_n_s_findAll, 313, __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)__builtin_expect(!!(!__pyx_mstate_global->__pyx_codeobj__11 ), 0)) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 9025; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9026 | __Pyx_RefNannyFinishContext(); |
9027 | return 0; |
9028 | __pyx_L1_error:; |
9029 | __Pyx_RefNannyFinishContext(); |
9030 | return -1; |
9031 | } |
9032 | /* #### Code section: init_constants ### */ |
9033 | |
9034 | static CYTHON_SMALL_CODE int __Pyx_InitConstants(void) { |
9035 | if (__Pyx_CreateStringTabAndInitStrings() < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9035; (void)__pyx_clineno ; } goto __pyx_L1_error; }; |
9036 | __pyx_int_0__pyx_mstate_global->__pyx_int_0 = PyInt_FromLongPyLong_FromLong(0); if (unlikely(!__pyx_int_0)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_0), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9036; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9037 | __pyx_int_1__pyx_mstate_global->__pyx_int_1 = PyInt_FromLongPyLong_FromLong(1); if (unlikely(!__pyx_int_1)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_1), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9037; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9038 | __pyx_int_2__pyx_mstate_global->__pyx_int_2 = PyInt_FromLongPyLong_FromLong(2); if (unlikely(!__pyx_int_2)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_2), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9038; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9039 | __pyx_int_3__pyx_mstate_global->__pyx_int_3 = PyInt_FromLongPyLong_FromLong(3); if (unlikely(!__pyx_int_3)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_3), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9039; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9040 | __pyx_int_9__pyx_mstate_global->__pyx_int_9 = PyInt_FromLongPyLong_FromLong(9); if (unlikely(!__pyx_int_9)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_9), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9040; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9041 | __pyx_int_12__pyx_mstate_global->__pyx_int_12 = PyInt_FromLongPyLong_FromLong(12); if (unlikely(!__pyx_int_12)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_12), 0 )) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9041; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9042 | __pyx_int_22__pyx_mstate_global->__pyx_int_22 = PyInt_FromLongPyLong_FromLong(22); if (unlikely(!__pyx_int_22)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_22), 0 )) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9042; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9043 | __pyx_int_23__pyx_mstate_global->__pyx_int_23 = PyInt_FromLongPyLong_FromLong(23); if (unlikely(!__pyx_int_23)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_23), 0 )) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9043; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9044 | __pyx_int_101__pyx_mstate_global->__pyx_int_101 = PyInt_FromLongPyLong_FromLong(101); if (unlikely(!__pyx_int_101)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_101), 0 )) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9044; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9045 | __pyx_int_neg_1__pyx_mstate_global->__pyx_int_neg_1 = PyInt_FromLongPyLong_FromLong(-1); if (unlikely(!__pyx_int_neg_1)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_neg_1) , 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9045; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9046 | __pyx_int_neg_4__pyx_mstate_global->__pyx_int_neg_4 = PyInt_FromLongPyLong_FromLong(-4); if (unlikely(!__pyx_int_neg_4)__builtin_expect(!!(!__pyx_mstate_global->__pyx_int_neg_4) , 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9046; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9047 | return 0; |
9048 | __pyx_L1_error:; |
9049 | return -1; |
9050 | } |
9051 | /* #### Code section: init_globals ### */ |
9052 | |
9053 | static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { |
9054 | return 0; |
9055 | } |
9056 | /* #### Code section: init_module ### */ |
9057 | |
9058 | static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/ |
9059 | static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/ |
9060 | static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/ |
9061 | static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/ |
9062 | static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/ |
9063 | static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/ |
9064 | static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/ |
9065 | |
9066 | static int __Pyx_modinit_global_init_code(void) { |
9067 | __Pyx_RefNannyDeclarations |
9068 | __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); |
9069 | /*--- Global init code ---*/ |
9070 | __Pyx_RefNannyFinishContext(); |
9071 | return 0; |
9072 | } |
9073 | |
9074 | static int __Pyx_modinit_variable_export_code(void) { |
9075 | __Pyx_RefNannyDeclarations |
9076 | __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); |
9077 | /*--- Variable export code ---*/ |
9078 | __Pyx_RefNannyFinishContext(); |
9079 | return 0; |
9080 | } |
9081 | |
9082 | static int __Pyx_modinit_function_export_code(void) { |
9083 | __Pyx_RefNannyDeclarations |
9084 | __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); |
9085 | /*--- Function export code ---*/ |
9086 | __Pyx_RefNannyFinishContext(); |
9087 | return 0; |
9088 | } |
9089 | |
9090 | static int __Pyx_modinit_type_init_code(void) { |
9091 | __Pyx_RefNannyDeclarations |
9092 | int __pyx_lineno = 0; |
9093 | const char *__pyx_filename = NULL((void*)0); |
9094 | int __pyx_clineno = 0; |
9095 | __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); |
9096 | /*--- Type init code ---*/ |
9097 | #if CYTHON_USE_TYPE_SPECS0 |
9098 | __pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll_spec, NULL)PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll_spec , ((void*)0)); if (unlikely(!__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll)__builtin_expect(!!(!__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll ), 0)) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 9098; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9099 | if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll_spec, __pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll) < 0) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 9099; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9100 | #else |
9101 | __pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll = &__pyx_type_15abaqusFILReader___pyx_scope_struct__findAll; |
9102 | #endif |
9103 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
9104 | #endif |
9105 | #if !CYTHON_USE_TYPE_SPECS0 |
9106 | if (__Pyx_PyType_Ready(__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll) < 0) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 9106; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9107 | #endif |
9108 | #if PY_MAJOR_VERSION3 < 3 |
9109 | __pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll->tp_print = 0; |
9110 | #endif |
9111 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
9112 | if ((CYTHON_USE_TYPE_SLOTS1 && CYTHON_USE_PYTYPE_LOOKUP1) && likely(!__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll->tp_dictoffset && __pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll->tp_getattro == PyObject_GenericGetAttr)__builtin_expect(!!(!__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll ->tp_dictoffset && __pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll ->tp_getattro == PyObject_GenericGetAttr), 1)) { |
9113 | __pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll__pyx_mstate_global->__pyx_ptype_15abaqusFILReader___pyx_scope_struct__findAll->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDictPyObject_GenericGetAttr; |
9114 | } |
9115 | #endif |
9116 | __Pyx_RefNannyFinishContext(); |
9117 | return 0; |
9118 | __pyx_L1_error:; |
9119 | __Pyx_RefNannyFinishContext(); |
9120 | return -1; |
9121 | } |
9122 | |
9123 | static int __Pyx_modinit_type_import_code(void) { |
9124 | __Pyx_RefNannyDeclarations |
9125 | __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); |
9126 | /*--- Type import code ---*/ |
9127 | __Pyx_RefNannyFinishContext(); |
9128 | return 0; |
9129 | } |
9130 | |
9131 | static int __Pyx_modinit_variable_import_code(void) { |
9132 | __Pyx_RefNannyDeclarations |
9133 | __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); |
9134 | /*--- Variable import code ---*/ |
9135 | __Pyx_RefNannyFinishContext(); |
9136 | return 0; |
9137 | } |
9138 | |
9139 | static int __Pyx_modinit_function_import_code(void) { |
9140 | __Pyx_RefNannyDeclarations |
9141 | __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); |
9142 | /*--- Function import code ---*/ |
9143 | __Pyx_RefNannyFinishContext(); |
9144 | return 0; |
9145 | } |
9146 | |
9147 | |
9148 | #if PY_MAJOR_VERSION3 >= 3 |
9149 | #if CYTHON_PEP489_MULTI_PHASE_INIT1 |
9150 | static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ |
9151 | static int __pyx_pymod_exec_abaqusFILReader(PyObject* module); /*proto*/ |
9152 | static PyModuleDef_Slot __pyx_moduledef_slots[] = { |
9153 | {Py_mod_create1, (void*)__pyx_pymod_create}, |
9154 | {Py_mod_exec2, (void*)__pyx_pymod_exec_abaqusFILReader}, |
9155 | {0, NULL((void*)0)} |
9156 | }; |
9157 | #endif |
9158 | |
9159 | #ifdef __cplusplus |
9160 | namespace { |
9161 | struct PyModuleDef __pyx_moduledef = |
9162 | #else |
9163 | static struct PyModuleDef __pyx_moduledef = |
9164 | #endif |
9165 | { |
9166 | PyModuleDef_HEAD_INIT{ { 1, ((void*)0) }, ((void*)0), 0, ((void*)0), }, |
9167 | "abaqusFILReader", |
9168 | 0, /* m_doc */ |
9169 | #if CYTHON_PEP489_MULTI_PHASE_INIT1 |
9170 | 0, /* m_size */ |
9171 | #elif CYTHON_USE_MODULE_STATE0 |
9172 | sizeof(__pyx_mstate), /* m_size */ |
9173 | #else |
9174 | -1, /* m_size */ |
9175 | #endif |
9176 | __pyx_methods /* m_methods */, |
9177 | #if CYTHON_PEP489_MULTI_PHASE_INIT1 |
9178 | __pyx_moduledef_slots, /* m_slots */ |
9179 | #else |
9180 | NULL((void*)0), /* m_reload */ |
9181 | #endif |
9182 | #if CYTHON_USE_MODULE_STATE0 |
9183 | __pyx_m_traverse, /* m_traverse */ |
9184 | __pyx_m_clear, /* m_clear */ |
9185 | NULL((void*)0) /* m_free */ |
9186 | #else |
9187 | NULL((void*)0), /* m_traverse */ |
9188 | NULL((void*)0), /* m_clear */ |
9189 | NULL((void*)0) /* m_free */ |
9190 | #endif |
9191 | }; |
9192 | #ifdef __cplusplus |
9193 | } /* anonymous namespace */ |
9194 | #endif |
9195 | #endif |
9196 | |
9197 | #ifndef CYTHON_NO_PYINIT_EXPORT |
9198 | #define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* |
9199 | #elif PY_MAJOR_VERSION3 < 3 |
9200 | #ifdef __cplusplus |
9201 | #define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* extern "C" void |
9202 | #else |
9203 | #define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* void |
9204 | #endif |
9205 | #else |
9206 | #ifdef __cplusplus |
9207 | #define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* extern "C" PyObject * |
9208 | #else |
9209 | #define __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyObject * |
9210 | #endif |
9211 | #endif |
9212 | |
9213 | |
9214 | #if PY_MAJOR_VERSION3 < 3 |
9215 | __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* initabaqusFILReader(void) CYTHON_SMALL_CODE; /*proto*/ |
9216 | __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* initabaqusFILReader(void) |
9217 | #else |
9218 | __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyInit_abaqusFILReader(void) CYTHON_SMALL_CODE; /*proto*/ |
9219 | __Pyx_PyMODINIT_FUNC__attribute__ ((visibility ("default"))) PyObject* PyInit_abaqusFILReader(void) |
9220 | #if CYTHON_PEP489_MULTI_PHASE_INIT1 |
9221 | { |
9222 | return PyModuleDef_Init(&__pyx_moduledef); |
9223 | } |
9224 | static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) { |
9225 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1 |
9226 | static PY_INT64_Tint64_t main_interpreter_id = -1; |
9227 | PY_INT64_Tint64_t current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp); |
9228 | if (main_interpreter_id == -1) { |
9229 | main_interpreter_id = current_id; |
9230 | return (unlikely(current_id == -1)__builtin_expect(!!(current_id == -1), 0)) ? -1 : 0; |
9231 | } else if (unlikely(main_interpreter_id != current_id)__builtin_expect(!!(main_interpreter_id != current_id), 0)) |
9232 | #else |
9233 | static PyInterpreterState *main_interpreter = NULL((void*)0); |
9234 | PyInterpreterState *current_interpreter = PyThreadState_Get()->interp; |
9235 | if (!main_interpreter) { |
9236 | main_interpreter = current_interpreter; |
9237 | } else if (unlikely(main_interpreter != current_interpreter)__builtin_expect(!!(main_interpreter != current_interpreter), 0)) |
9238 | #endif |
9239 | { |
9240 | PyErr_SetString( |
9241 | PyExc_ImportError, |
9242 | "Interpreter change detected - this module can only be loaded into one interpreter per process."); |
9243 | return -1; |
9244 | } |
9245 | return 0; |
9246 | } |
9247 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
9248 | static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *module, const char* from_name, const char* to_name, int allow_none) |
9249 | #else |
9250 | static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) |
9251 | #endif |
9252 | { |
9253 | PyObject *value = PyObject_GetAttrString(spec, from_name); |
9254 | int result = 0; |
9255 | if (likely(value)__builtin_expect(!!(value), 1)) { |
9256 | if (allow_none || value != Py_None(&_Py_NoneStruct)) { |
9257 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
9258 | result = PyModule_AddObject(module, to_name, value); |
9259 | #else |
9260 | result = PyDict_SetItemString(moddict, to_name, value); |
9261 | #endif |
9262 | } |
9263 | Py_DECREF(value)Py_DECREF(((PyObject*)((value)))); |
9264 | } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { |
9265 | PyErr_Clear(); |
9266 | } else { |
9267 | result = -1; |
9268 | } |
9269 | return result; |
9270 | } |
9271 | static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) { |
9272 | PyObject *module = NULL((void*)0), *moddict, *modname; |
9273 | CYTHON_UNUSED_VAR(def)(void)(def); |
9274 | if (__Pyx_check_single_interpreter()) |
9275 | return NULL((void*)0); |
9276 | if (__pyx_m) |
9277 | return __Pyx_NewRef(__pyx_m)(Py_INCREF(((PyObject*)((__pyx_m)))), __pyx_m); |
9278 | modname = PyObject_GetAttrString(spec, "name"); |
9279 | if (unlikely(!modname)__builtin_expect(!!(!modname), 0)) goto bad; |
9280 | module = PyModule_NewObject(modname); |
9281 | Py_DECREF(modname)Py_DECREF(((PyObject*)((modname)))); |
9282 | if (unlikely(!module)__builtin_expect(!!(!module), 0)) goto bad; |
9283 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
9284 | moddict = module; |
9285 | #else |
9286 | moddict = PyModule_GetDict(module); |
9287 | if (unlikely(!moddict)__builtin_expect(!!(!moddict), 0)) goto bad; |
9288 | #endif |
9289 | if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "loader" , "__loader__", 1) < 0), 0)) goto bad; |
9290 | if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "origin" , "__file__", 1) < 0), 0)) goto bad; |
9291 | if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "parent" , "__package__", 1) < 0), 0)) goto bad; |
9292 | if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)__builtin_expect(!!(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations" , "__path__", 0) < 0), 0)) goto bad; |
9293 | return module; |
9294 | bad: |
9295 | Py_XDECREF(module)Py_XDECREF(((PyObject*)((module)))); |
9296 | return NULL((void*)0); |
9297 | } |
9298 | |
9299 | |
9300 | static CYTHON_SMALL_CODE int __pyx_pymod_exec_abaqusFILReader(PyObject *__pyx_pyinit_module) |
9301 | #endif |
9302 | #endif |
9303 | { |
9304 | int stringtab_initialized = 0; |
9305 | #if CYTHON_USE_MODULE_STATE0 |
9306 | int pystate_addmodule_run = 0; |
9307 | #endif |
9308 | PyObject *__pyx_t_1 = NULL((void*)0); |
9309 | PyObject *__pyx_t_2 = NULL((void*)0); |
9310 | int __pyx_lineno = 0; |
9311 | const char *__pyx_filename = NULL((void*)0); |
9312 | int __pyx_clineno = 0; |
9313 | __Pyx_RefNannyDeclarations |
9314 | #if CYTHON_PEP489_MULTI_PHASE_INIT1 |
9315 | if (__pyx_m) { |
9316 | if (__pyx_m == __pyx_pyinit_module) return 0; |
9317 | PyErr_SetString(PyExc_RuntimeError, "Module 'abaqusFILReader' has already been imported. Re-initialisation is not supported."); |
9318 | return -1; |
9319 | } |
9320 | #elif PY_MAJOR_VERSION3 >= 3 |
9321 | if (__pyx_m) return __Pyx_NewRef(__pyx_m)(Py_INCREF(((PyObject*)((__pyx_m)))), __pyx_m); |
9322 | #endif |
9323 | /*--- Module creation code ---*/ |
9324 | #if CYTHON_PEP489_MULTI_PHASE_INIT1 |
9325 | __pyx_m = __pyx_pyinit_module; |
9326 | Py_INCREF(__pyx_m)Py_INCREF(((PyObject*)((__pyx_m)))); |
9327 | #else |
9328 | #if PY_MAJOR_VERSION3 < 3 |
9329 | __pyx_m = Py_InitModule4("abaqusFILReader", __pyx_methods, 0, 0, PYTHON_API_VERSION1013); Py_XINCREF(__pyx_m)Py_XINCREF(((PyObject*)((__pyx_m)))); |
9330 | if (unlikely(!__pyx_m)__builtin_expect(!!(!__pyx_m), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9330; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9331 | #elif CYTHON_USE_MODULE_STATE0 |
9332 | __pyx_t_1 = PyModule_Create(&__pyx_moduledef)PyModule_Create2(&__pyx_moduledef, 1013); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9332; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9333 | { |
9334 | int add_module_result = PyState_AddModule(__pyx_t_1, &__pyx_moduledef); |
9335 | __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to abaqusFILReader pseudovariable */ |
9336 | if (unlikely((add_module_result < 0))__builtin_expect(!!((add_module_result < 0)), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9336; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9337 | pystate_addmodule_run = 1; |
9338 | } |
9339 | #else |
9340 | __pyx_m = PyModule_Create(&__pyx_moduledef)PyModule_Create2(&__pyx_moduledef, 1013); |
9341 | if (unlikely(!__pyx_m)__builtin_expect(!!(!__pyx_m), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9341; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9342 | #endif |
9343 | #endif |
9344 | CYTHON_UNUSED_VAR(__pyx_t_1)(void)(__pyx_t_1); |
9345 | __pyx_d__pyx_mstate_global->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)__builtin_expect(!!(!__pyx_mstate_global->__pyx_d), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9345; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9346 | Py_INCREF(__pyx_d)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_d)))); |
9347 | __pyx_b__pyx_mstate_global->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME"builtins"); if (unlikely(!__pyx_b)__builtin_expect(!!(!__pyx_mstate_global->__pyx_b), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9347; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9348 | __pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef((const char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)__builtin_expect(!!(!__pyx_mstate_global->__pyx_cython_runtime ), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9348; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9349 | if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b__pyx_mstate_global->__pyx_b) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9349; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9350 | #if CYTHON_REFNANNY0 |
9351 | __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); |
9352 | if (!__Pyx_RefNanny) { |
9353 | PyErr_Clear(); |
9354 | __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); |
9355 | if (!__Pyx_RefNanny) |
9356 | Py_FatalError("failed to import 'refnanny' module")_Py_FatalErrorFunc(__func__, "failed to import 'refnanny' module" ); |
9357 | } |
9358 | #endif |
9359 | __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_abaqusFILReader(void)", 0); |
9360 | if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)), __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API0) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9360; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9361 | #ifdef __Pxy_PyFrame_Initialize_Offsets |
9362 | __Pxy_PyFrame_Initialize_Offsets(); |
9363 | #endif |
9364 | __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)__builtin_expect(!!(!__pyx_mstate_global->__pyx_empty_tuple ), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9364; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9365 | __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)__builtin_expect(!!(!__pyx_mstate_global->__pyx_empty_bytes ), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9365; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9366 | __pyx_empty_unicode__pyx_mstate_global->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)__builtin_expect(!!(!__pyx_mstate_global->__pyx_empty_unicode ), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9366; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9367 | #ifdef __Pyx_CyFunction_USED |
9368 | if (__pyx_CyFunction_init(__pyx_m) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9368; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9369 | #endif |
9370 | #ifdef __Pyx_FusedFunction_USED |
9371 | if (__pyx_FusedFunction_init(__pyx_m) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9371; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9372 | #endif |
9373 | #ifdef __Pyx_Coroutine_USED |
9374 | if (__pyx_Coroutine_init(__pyx_m) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9374; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9375 | #endif |
9376 | #ifdef __Pyx_Generator_USED |
9377 | if (__pyx_Generator_init(__pyx_m) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9377; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9378 | #endif |
9379 | #ifdef __Pyx_AsyncGen_USED |
9380 | if (__pyx_AsyncGen_init(__pyx_m) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9380; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9381 | #endif |
9382 | #ifdef __Pyx_StopAsyncIteration_USED |
9383 | if (__pyx_StopAsyncIteration_init(__pyx_m) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9383; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9384 | #endif |
9385 | /*--- Library function declarations ---*/ |
9386 | /*--- Threads initialization code ---*/ |
9387 | #if defined(WITH_THREAD) && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS0) && __PYX_FORCE_INIT_THREADS0 |
9388 | PyEval_InitThreads(); |
9389 | #endif |
9390 | /*--- Initialize various global constants etc. ---*/ |
9391 | if (__Pyx_InitConstants() < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9391; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9392 | stringtab_initialized = 1; |
9393 | if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9393; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9394 | #if PY_MAJOR_VERSION3 < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0)) |
9395 | if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9395; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9396 | #endif |
9397 | if (__pyx_module_is_main_abaqusFILReader) { |
9398 | if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name, __pyx_n_s_main__pyx_mstate_global->__pyx_n_s_main) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9398; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9399 | } |
9400 | #if PY_MAJOR_VERSION3 >= 3 |
9401 | { |
9402 | PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)__builtin_expect(!!(!modules), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9402; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9403 | if (!PyDict_GetItemString(modules, "abaqusFILReader")) { |
9404 | if (unlikely((PyDict_SetItemString(modules, "abaqusFILReader", __pyx_m) < 0))__builtin_expect(!!((PyDict_SetItemString(modules, "abaqusFILReader" , __pyx_m) < 0)), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9404; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9405 | } |
9406 | } |
9407 | #endif |
9408 | /*--- Builtin init code ---*/ |
9409 | if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9409; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9410 | /*--- Constants init code ---*/ |
9411 | if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9411; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9412 | /*--- Global type/function init code ---*/ |
9413 | (void)__Pyx_modinit_global_init_code(); |
9414 | (void)__Pyx_modinit_variable_export_code(); |
9415 | (void)__Pyx_modinit_function_export_code(); |
9416 | if (unlikely((__Pyx_modinit_type_init_code() < 0))__builtin_expect(!!((__Pyx_modinit_type_init_code() < 0)), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9416; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9417 | (void)__Pyx_modinit_type_import_code(); |
9418 | (void)__Pyx_modinit_variable_import_code(); |
9419 | (void)__Pyx_modinit_function_import_code(); |
9420 | /*--- Execution code ---*/ |
9421 | #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) |
9422 | if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9422; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9423 | #endif |
9424 | |
9425 | /* "abaqusFILReader.pyx":12 |
9426 | * |
9427 | * # Import Python modules |
9428 | * import sys # <<<<<<<<<<<<<< |
9429 | * import os |
9430 | * |
9431 | */ |
9432 | __pyx_t_2 = __Pyx_ImportDottedModule(__pyx_n_s_sys__pyx_mstate_global->__pyx_n_s_sys, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 12, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 12; (void)__pyx_lineno; __pyx_clineno = 9432; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9433 | __Pyx_GOTREF(__pyx_t_2); |
9434 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_sys__pyx_mstate_global->__pyx_n_s_sys, __pyx_t_2) < 0) __PYX_ERR(0, 12, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 12; (void)__pyx_lineno; __pyx_clineno = 9434; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9435 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9436 | |
9437 | /* "abaqusFILReader.pyx":13 |
9438 | * # Import Python modules |
9439 | * import sys |
9440 | * import os # <<<<<<<<<<<<<< |
9441 | * |
9442 | * # Handles all byte to uni-code and and byte conversion. |
9443 | */ |
9444 | __pyx_t_2 = __Pyx_ImportDottedModule(__pyx_n_s_os__pyx_mstate_global->__pyx_n_s_os, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 13, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 13; (void)__pyx_lineno; __pyx_clineno = 9444; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9445 | __Pyx_GOTREF(__pyx_t_2); |
9446 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_os__pyx_mstate_global->__pyx_n_s_os, __pyx_t_2) < 0) __PYX_ERR(0, 13, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 13; (void)__pyx_lineno; __pyx_clineno = 9446; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9447 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9448 | |
9449 | /* "abaqusFILReader.pyx":16 |
9450 | * |
9451 | * # Handles all byte to uni-code and and byte conversion. |
9452 | * def _str(data,ignore_dicts = False): # <<<<<<<<<<<<<< |
9453 | * |
9454 | * if PY_MAJOR_VERSION >= 3: |
9455 | */ |
9456 | __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_15abaqusFILReader_1_str, 0, __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, NULL((void*)0), __pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader, __pyx_d__pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_codeobj__13__pyx_mstate_global->__pyx_codeobj__13)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 16, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 9456; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9457 | __Pyx_GOTREF(__pyx_t_2); |
9458 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14); |
9459 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_str__pyx_mstate_global->__pyx_n_s_str, __pyx_t_2) < 0) __PYX_ERR(0, 16, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 16; (void)__pyx_lineno; __pyx_clineno = 9459; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9460 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9461 | |
9462 | /* "abaqusFILReader.pyx":134 |
9463 | * # pull out displacement or von mises stress from file. |
9464 | * |
9465 | * def extractDispFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
9466 | * """Pulls out the node displacement values from a node output file |
9467 | * and returns a dictionary of the values. |
9468 | */ |
9469 | __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_15abaqusFILReader_3extractDispFil, 0, __pyx_n_s_extractDispFil__pyx_mstate_global->__pyx_n_s_extractDispFil, NULL((void*)0), __pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader, __pyx_d__pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_codeobj__16__pyx_mstate_global->__pyx_codeobj__16)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 134, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 9469; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9470 | __Pyx_GOTREF(__pyx_t_2); |
9471 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14); |
9472 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_extractDispFil__pyx_mstate_global->__pyx_n_s_extractDispFil, __pyx_t_2) < 0) __PYX_ERR(0, 134, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 134; (void)__pyx_lineno; __pyx_clineno = 9472; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9473 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9474 | |
9475 | /* "abaqusFILReader.pyx":173 |
9476 | * return [3,"file missing, abq probably didn't finish",{}] |
9477 | * |
9478 | * def extractMisesFil(ParsedData, debug=False): # <<<<<<<<<<<<<< |
9479 | * """Pulls out the element mises values from a element output |
9480 | * file and returns a dictionary of the values at the Section |
9481 | */ |
9482 | __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_15abaqusFILReader_5extractMisesFil, 0, __pyx_n_s_extractMisesFil__pyx_mstate_global->__pyx_n_s_extractMisesFil, NULL((void*)0), __pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader, __pyx_d__pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_codeobj__18__pyx_mstate_global->__pyx_codeobj__18)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 173, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 9482; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9483 | __Pyx_GOTREF(__pyx_t_2); |
9484 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14); |
9485 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_extractMisesFil__pyx_mstate_global->__pyx_n_s_extractMisesFil, __pyx_t_2) < 0) __PYX_ERR(0, 173, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 173; (void)__pyx_lineno; __pyx_clineno = 9485; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9486 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9487 | |
9488 | /* "abaqusFILReader.pyx":208 |
9489 | * |
9490 | * |
9491 | * def extractFilRecords(abqFile,debug=False): # <<<<<<<<<<<<<< |
9492 | * """Parses the FIL file into a list of records. |
9493 | * |
9494 | */ |
9495 | __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_15abaqusFILReader_7extractFilRecords, 0, __pyx_n_s_extractFilRecords__pyx_mstate_global->__pyx_n_s_extractFilRecords, NULL((void*)0), __pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader, __pyx_d__pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_codeobj__20__pyx_mstate_global->__pyx_codeobj__20)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 208, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 9495; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9496 | __Pyx_GOTREF(__pyx_t_2); |
9497 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__14__pyx_mstate_global->__pyx_tuple__14); |
9498 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_extractFilRecords__pyx_mstate_global->__pyx_n_s_extractFilRecords, __pyx_t_2) < 0) __PYX_ERR(0, 208, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 208; (void)__pyx_lineno; __pyx_clineno = 9498; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9499 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9500 | |
9501 | /* "abaqusFILReader.pyx":292 |
9502 | * return 3, "file missing, abq probably didn't finish", [] |
9503 | * |
9504 | * def extractRecord(ParsedData,recnumber): # <<<<<<<<<<<<<< |
9505 | * """Pulls out the values from a parsed fil for just the records desired. |
9506 | * |
9507 | */ |
9508 | __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_15abaqusFILReader_9extractRecord, 0, __pyx_n_s_extractRecord__pyx_mstate_global->__pyx_n_s_extractRecord, NULL((void*)0), __pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader, __pyx_d__pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_codeobj__22__pyx_mstate_global->__pyx_codeobj__22)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 292, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 9508; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9509 | __Pyx_GOTREF(__pyx_t_2); |
9510 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_extractRecord__pyx_mstate_global->__pyx_n_s_extractRecord, __pyx_t_2) < 0) __PYX_ERR(0, 292, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 292; (void)__pyx_lineno; __pyx_clineno = 9510; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9511 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9512 | |
9513 | /* "abaqusFILReader.pyx":313 |
9514 | * return [3,"data missing, abq probably didn't finish",[]] |
9515 | * |
9516 | * def findAll(a_str, sub): # <<<<<<<<<<<<<< |
9517 | * """looks in a string for all occurances of a string |
9518 | * """ |
9519 | */ |
9520 | __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_15abaqusFILReader_11findAll, 0, __pyx_n_s_findAll__pyx_mstate_global->__pyx_n_s_findAll, NULL((void*)0), __pyx_n_s_abaqusFILReader__pyx_mstate_global->__pyx_n_s_abaqusFILReader, __pyx_d__pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_codeobj__11__pyx_mstate_global->__pyx_codeobj__11)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 9520; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9521 | __Pyx_GOTREF(__pyx_t_2); |
9522 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_findAll__pyx_mstate_global->__pyx_n_s_findAll, __pyx_t_2) < 0) __PYX_ERR(0, 313, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 313; (void)__pyx_lineno; __pyx_clineno = 9522; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9523 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9524 | |
9525 | /* "abaqusFILReader.pyx":2 |
9526 | * |
9527 | * # Cython declarations # <<<<<<<<<<<<<< |
9528 | * # cython: language_level=3 |
9529 | * |
9530 | */ |
9531 | __pyx_t_2 = __Pyx_PyDict_NewPresized(0)((0 <= 8) ? PyDict_New() : _PyDict_NewPresized(0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9531; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9532 | __Pyx_GOTREF(__pyx_t_2); |
9533 | if (PyDict_SetItem(__pyx_d__pyx_mstate_global->__pyx_d, __pyx_n_s_test__pyx_mstate_global->__pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 2, __pyx_L1_error){ { __pyx_filename = __pyx_f[0]; (void)__pyx_filename; __pyx_lineno = 2; (void)__pyx_lineno; __pyx_clineno = 9533; (void)__pyx_clineno ; } goto __pyx_L1_error; } |
9534 | __Pyx_DECREF(__pyx_t_2)Py_DECREF(((PyObject*)((__pyx_t_2)))); __pyx_t_2 = 0; |
9535 | |
9536 | /*--- Wrapped vars code ---*/ |
9537 | |
9538 | goto __pyx_L0; |
9539 | __pyx_L1_error:; |
9540 | __Pyx_XDECREF(__pyx_t_2)Py_XDECREF(((PyObject*)((__pyx_t_2)))); |
9541 | if (__pyx_m) { |
9542 | if (__pyx_d__pyx_mstate_global->__pyx_d && stringtab_initialized) { |
9543 | __Pyx_AddTraceback("init abaqusFILReader", __pyx_clineno, __pyx_lineno, __pyx_filename); |
9544 | } |
9545 | #if !CYTHON_USE_MODULE_STATE0 |
9546 | Py_CLEAR(__pyx_m)do { PyObject *_py_tmp = ((PyObject*)((__pyx_m))); if (_py_tmp != ((void*)0)) { (__pyx_m) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
9547 | #else |
9548 | Py_DECREF(__pyx_m)Py_DECREF(((PyObject*)((__pyx_m)))); |
9549 | if (pystate_addmodule_run) { |
9550 | PyObject *tp, *value, *tb; |
9551 | PyErr_Fetch(&tp, &value, &tb); |
9552 | PyState_RemoveModule(&__pyx_moduledef); |
9553 | PyErr_Restore(tp, value, tb); |
9554 | } |
9555 | #endif |
9556 | } else if (!PyErr_Occurred()) { |
9557 | PyErr_SetString(PyExc_ImportError, "init abaqusFILReader"); |
9558 | } |
9559 | __pyx_L0:; |
9560 | __Pyx_RefNannyFinishContext(); |
9561 | #if CYTHON_PEP489_MULTI_PHASE_INIT1 |
9562 | return (__pyx_m != NULL((void*)0)) ? 0 : -1; |
9563 | #elif PY_MAJOR_VERSION3 >= 3 |
9564 | return __pyx_m; |
9565 | #else |
9566 | return; |
9567 | #endif |
9568 | } |
9569 | /* #### Code section: cleanup_globals ### */ |
9570 | /* #### Code section: cleanup_module ### */ |
9571 | /* #### Code section: main_method ### */ |
9572 | /* #### Code section: utility_code_pragmas ### */ |
9573 | #ifdef _MSC_VER |
9574 | #pragma warning( push ) |
9575 | /* Warning 4127: conditional expression is constant |
9576 | * Cython uses constant conditional expressions to allow in inline functions to be optimized at |
9577 | * compile-time, so this warning is not useful |
9578 | */ |
9579 | #pragma warning( disable : 4127 ) |
9580 | #endif |
9581 | |
9582 | |
9583 | |
9584 | /* #### Code section: utility_code_def ### */ |
9585 | |
9586 | /* --- Runtime support code --- */ |
9587 | /* Refnanny */ |
9588 | #if CYTHON_REFNANNY0 |
9589 | static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { |
9590 | PyObject *m = NULL((void*)0), *p = NULL((void*)0); |
9591 | void *r = NULL((void*)0); |
9592 | m = PyImport_ImportModule(modname); |
9593 | if (!m) goto end; |
9594 | p = PyObject_GetAttrString(m, "RefNannyAPI"); |
9595 | if (!p) goto end; |
9596 | r = PyLong_AsVoidPtr(p); |
9597 | end: |
9598 | Py_XDECREF(p)Py_XDECREF(((PyObject*)((p)))); |
9599 | Py_XDECREF(m)Py_XDECREF(((PyObject*)((m)))); |
9600 | return (__Pyx_RefNannyAPIStruct *)r; |
9601 | } |
9602 | #endif |
9603 | |
9604 | /* PyErrExceptionMatches */ |
9605 | #if CYTHON_FAST_THREAD_STATE1 |
9606 | static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { |
9607 | Py_ssize_t i, n; |
9608 | n = PyTuple_GET_SIZE(tuple)PyTuple_GET_SIZE(((PyObject*)((tuple)))); |
9609 | #if PY_MAJOR_VERSION3 >= 3 |
9610 | for (i=0; i<n; i++) { |
9611 | if (exc_type == PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(tuple)", "abaqusFILReader.c", 9611, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))-> ob_item[i])) return 1; |
9612 | } |
9613 | #endif |
9614 | for (i=0; i<n; i++) { |
9615 | if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(tuple)", "abaqusFILReader.c", 9615, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))-> ob_item[i]))) return 1; |
9616 | } |
9617 | return 0; |
9618 | } |
9619 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { |
9620 | int result; |
9621 | PyObject *exc_type; |
9622 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A6 |
9623 | PyObject *current_exception = tstate->current_exception; |
9624 | if (unlikely(!current_exception)__builtin_expect(!!(!current_exception), 0)) return 0; |
9625 | exc_type = (PyObject*) Py_TYPE(current_exception)Py_TYPE(((PyObject*)((current_exception)))); |
9626 | if (exc_type == err) return 1; |
9627 | #else |
9628 | exc_type = tstate->curexc_type; |
9629 | if (exc_type == err) return 1; |
9630 | if (unlikely(!exc_type)__builtin_expect(!!(!exc_type), 0)) return 0; |
9631 | #endif |
9632 | #if CYTHON_AVOID_BORROWED_REFS0 |
9633 | Py_INCREF(exc_type)Py_INCREF(((PyObject*)((exc_type)))); |
9634 | #endif |
9635 | if (unlikely(PyTuple_Check(err))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((err )))), (1UL << 26))), 0)) { |
9636 | result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); |
9637 | } else { |
9638 | result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err); |
9639 | } |
9640 | #if CYTHON_AVOID_BORROWED_REFS0 |
9641 | Py_DECREF(exc_type)Py_DECREF(((PyObject*)((exc_type)))); |
9642 | #endif |
9643 | return result; |
9644 | } |
9645 | #endif |
9646 | |
9647 | /* PyErrFetchRestore */ |
9648 | #if CYTHON_FAST_THREAD_STATE1 |
9649 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { |
9650 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A6 |
9651 | PyObject *tmp_value; |
9652 | assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)))((void) sizeof ((type == ((void*)0) || (value != ((void*)0) && type == (PyObject*) Py_TYPE(((PyObject*)((value)))))) ? 1 : 0 ), __extension__ ({ if (type == ((void*)0) || (value != ((void *)0) && type == (PyObject*) Py_TYPE(((PyObject*)((value )))))) ; else __assert_fail ("type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value))" , "abaqusFILReader.c", 9652, __extension__ __PRETTY_FUNCTION__ ); })); |
9653 | if (value) { |
9654 | #if CYTHON_COMPILING_IN_CPYTHON1 |
9655 | if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb)__builtin_expect(!!(((PyBaseExceptionObject*) value)->traceback != tb), 0)) |
9656 | #endif |
9657 | PyException_SetTraceback(value, tb); |
9658 | } |
9659 | tmp_value = tstate->current_exception; |
9660 | tstate->current_exception = value; |
9661 | Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value)))); |
9662 | Py_XDECREF(type)Py_XDECREF(((PyObject*)((type)))); |
9663 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
9664 | #else |
9665 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
9666 | tmp_type = tstate->curexc_type; |
9667 | tmp_value = tstate->curexc_value; |
9668 | tmp_tb = tstate->curexc_traceback; |
9669 | tstate->curexc_type = type; |
9670 | tstate->curexc_value = value; |
9671 | tstate->curexc_traceback = tb; |
9672 | Py_XDECREF(tmp_type)Py_XDECREF(((PyObject*)((tmp_type)))); |
9673 | Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value)))); |
9674 | Py_XDECREF(tmp_tb)Py_XDECREF(((PyObject*)((tmp_tb)))); |
9675 | #endif |
9676 | } |
9677 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { |
9678 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A6 |
9679 | PyObject* exc_value; |
9680 | exc_value = tstate->current_exception; |
9681 | tstate->current_exception = 0; |
9682 | *value = exc_value; |
9683 | *type = NULL((void*)0); |
9684 | *tb = NULL((void*)0); |
9685 | if (exc_value) { |
9686 | *type = (PyObject*) Py_TYPE(exc_value)Py_TYPE(((PyObject*)((exc_value)))); |
9687 | Py_INCREF(*type)Py_INCREF(((PyObject*)((*type)))); |
9688 | #if CYTHON_COMPILING_IN_CPYTHON1 |
9689 | *tb = ((PyBaseExceptionObject*) exc_value)->traceback; |
9690 | Py_XINCREF(*tb)Py_XINCREF(((PyObject*)((*tb)))); |
9691 | #else |
9692 | *tb = PyException_GetTraceback(exc_value); |
9693 | #endif |
9694 | } |
9695 | #else |
9696 | *type = tstate->curexc_type; |
9697 | *value = tstate->curexc_value; |
9698 | *tb = tstate->curexc_traceback; |
9699 | tstate->curexc_type = 0; |
9700 | tstate->curexc_value = 0; |
9701 | tstate->curexc_traceback = 0; |
9702 | #endif |
9703 | } |
9704 | #endif |
9705 | |
9706 | /* PyObjectGetAttrStr */ |
9707 | #if CYTHON_USE_TYPE_SLOTS1 |
9708 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { |
9709 | PyTypeObject* tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))); |
9710 | if (likely(tp->tp_getattro)__builtin_expect(!!(tp->tp_getattro), 1)) |
9711 | return tp->tp_getattro(obj, attr_name); |
9712 | #if PY_MAJOR_VERSION3 < 3 |
9713 | if (likely(tp->tp_getattr)__builtin_expect(!!(tp->tp_getattr), 1)) |
9714 | return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); |
9715 | #endif |
9716 | return PyObject_GetAttr(obj, attr_name); |
9717 | } |
9718 | #endif |
9719 | |
9720 | /* PyObjectGetAttrStrNoError */ |
9721 | #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d00A1 |
9722 | static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) { |
9723 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
9724 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
9725 | if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError))__builtin_expect(!!(__Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate , PyExc_AttributeError)), 1)) |
9726 | __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0), ((void*)0)); |
9727 | } |
9728 | #endif |
9729 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) { |
9730 | PyObject *result; |
9731 | #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030d00A1 |
9732 | (void) PyObject_GetOptionalAttr(obj, attr_name, &result); |
9733 | return result; |
9734 | #else |
9735 | #if CYTHON_COMPILING_IN_CPYTHON1 && CYTHON_USE_TYPE_SLOTS1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700B1 |
9736 | PyTypeObject* tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))); |
9737 | if (likely(tp->tp_getattro == PyObject_GenericGetAttr)__builtin_expect(!!(tp->tp_getattro == PyObject_GenericGetAttr ), 1)) { |
9738 | return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL((void*)0), 1); |
9739 | } |
9740 | #endif |
9741 | result = __Pyx_PyObject_GetAttrStr(obj, attr_name); |
9742 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
9743 | __Pyx_PyObject_GetAttrStr_ClearAttributeError(); |
9744 | } |
9745 | return result; |
9746 | #endif |
9747 | } |
9748 | |
9749 | /* GetBuiltinName */ |
9750 | static PyObject *__Pyx_GetBuiltinName(PyObject *name) { |
9751 | PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_b__pyx_mstate_global->__pyx_b, name); |
9752 | if (unlikely(!result)__builtin_expect(!!(!result), 0) && !PyErr_Occurred()) { |
9753 | PyErr_Format(PyExc_NameError, |
9754 | #if PY_MAJOR_VERSION3 >= 3 |
9755 | "name '%U' is not defined", name); |
9756 | #else |
9757 | "name '%.200s' is not defined", PyString_AS_STRING(name)); |
9758 | #endif |
9759 | } |
9760 | return result; |
9761 | } |
9762 | |
9763 | /* TupleAndListFromArray */ |
9764 | #if CYTHON_COMPILING_IN_CPYTHON1 |
9765 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT__restrict__ src, PyObject** CYTHON_RESTRICT__restrict__ dest, Py_ssize_t length) { |
9766 | PyObject *v; |
9767 | Py_ssize_t i; |
9768 | for (i = 0; i < length; i++) { |
9769 | v = dest[i] = src[i]; |
9770 | Py_INCREF(v)Py_INCREF(((PyObject*)((v)))); |
9771 | } |
9772 | } |
9773 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * |
9774 | __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) |
9775 | { |
9776 | PyObject *res; |
9777 | if (n <= 0) { |
9778 | Py_INCREF(__pyx_empty_tuple)Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_empty_tuple )))); |
9779 | return __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple; |
9780 | } |
9781 | res = PyTuple_New(n); |
9782 | if (unlikely(res == NULL)__builtin_expect(!!(res == ((void*)0)), 0)) return NULL((void*)0); |
9783 | __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n); |
9784 | return res; |
9785 | } |
9786 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * |
9787 | __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n) |
9788 | { |
9789 | PyObject *res; |
9790 | if (n <= 0) { |
9791 | return PyList_New(0); |
9792 | } |
9793 | res = PyList_New(n); |
9794 | if (unlikely(res == NULL)__builtin_expect(!!(res == ((void*)0)), 0)) return NULL((void*)0); |
9795 | __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n); |
9796 | return res; |
9797 | } |
9798 | #endif |
9799 | |
9800 | /* BytesEquals */ |
9801 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { |
9802 | #if CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0 |
9803 | return PyObject_RichCompareBool(s1, s2, equals); |
9804 | #else |
9805 | if (s1 == s2) { |
9806 | return (equals == Py_EQ2); |
9807 | } else if (PyBytes_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyBytes_Type) & PyBytes_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyBytes_Type)) { |
9808 | const char *ps1, *ps2; |
9809 | Py_ssize_t length = PyBytes_GET_SIZE(s1)PyBytes_GET_SIZE(((PyObject*)((s1)))); |
9810 | if (length != PyBytes_GET_SIZE(s2)PyBytes_GET_SIZE(((PyObject*)((s2))))) |
9811 | return (equals == Py_NE3); |
9812 | ps1 = PyBytes_AS_STRING(s1)PyBytes_AS_STRING(((PyObject*)((s1)))); |
9813 | ps2 = PyBytes_AS_STRING(s2)PyBytes_AS_STRING(((PyObject*)((s2)))); |
9814 | if (ps1[0] != ps2[0]) { |
9815 | return (equals == Py_NE3); |
9816 | } else if (length == 1) { |
9817 | return (equals == Py_EQ2); |
9818 | } else { |
9819 | int result; |
9820 | #if CYTHON_USE_UNICODE_INTERNALS1 && (PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000) |
9821 | Py_hash_t hash1, hash2; |
9822 | hash1 = ((PyBytesObject*)s1)->ob_shash; |
9823 | hash2 = ((PyBytesObject*)s2)->ob_shash; |
9824 | if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { |
9825 | return (equals == Py_NE3); |
9826 | } |
9827 | #endif |
9828 | result = memcmp(ps1, ps2, (size_t)length); |
9829 | return (equals == Py_EQ2) ? (result == 0) : (result != 0); |
9830 | } |
9831 | } else if ((s1 == Py_None(&_Py_NoneStruct)) & PyBytes_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyBytes_Type)) { |
9832 | return (equals == Py_NE3); |
9833 | } else if ((s2 == Py_None(&_Py_NoneStruct)) & PyBytes_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyBytes_Type)) { |
9834 | return (equals == Py_NE3); |
9835 | } else { |
9836 | int result; |
9837 | PyObject* py_result = PyObject_RichCompare(s1, s2, equals); |
9838 | if (!py_result) |
9839 | return -1; |
9840 | result = __Pyx_PyObject_IsTrue(py_result); |
9841 | Py_DECREF(py_result)Py_DECREF(((PyObject*)((py_result)))); |
9842 | return result; |
9843 | } |
9844 | #endif |
9845 | } |
9846 | |
9847 | /* UnicodeEquals */ |
9848 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { |
9849 | #if CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0 |
9850 | return PyObject_RichCompareBool(s1, s2, equals); |
9851 | #else |
9852 | #if PY_MAJOR_VERSION3 < 3 |
9853 | PyObject* owned_ref = NULL((void*)0); |
9854 | #endif |
9855 | int s1_is_unicode, s2_is_unicode; |
9856 | if (s1 == s2) { |
9857 | goto return_eq; |
9858 | } |
9859 | s1_is_unicode = PyUnicode_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyUnicode_Type); |
9860 | s2_is_unicode = PyUnicode_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyUnicode_Type); |
9861 | #if PY_MAJOR_VERSION3 < 3 |
9862 | if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)Py_IS_TYPE(((PyObject*)((s2))), &PyUnicode_Type)) { |
9863 | owned_ref = PyUnicode_FromObject(s2); |
9864 | if (unlikely(!owned_ref)__builtin_expect(!!(!owned_ref), 0)) |
9865 | return -1; |
9866 | s2 = owned_ref; |
9867 | s2_is_unicode = 1; |
9868 | } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)Py_IS_TYPE(((PyObject*)((s1))), &PyUnicode_Type)) { |
9869 | owned_ref = PyUnicode_FromObject(s1); |
9870 | if (unlikely(!owned_ref)__builtin_expect(!!(!owned_ref), 0)) |
9871 | return -1; |
9872 | s1 = owned_ref; |
9873 | s1_is_unicode = 1; |
9874 | } else if (((!s2_is_unicode) & (!s1_is_unicode))) { |
9875 | return __Pyx_PyBytes_Equals(s1, s2, equals); |
9876 | } |
9877 | #endif |
9878 | if (s1_is_unicode & s2_is_unicode) { |
9879 | Py_ssize_t length; |
9880 | int kind; |
9881 | void *data1, *data2; |
9882 | if (unlikely(__Pyx_PyUnicode_READY(s1) < 0)__builtin_expect(!!((__builtin_expect(!!(PyUnicode_IS_READY(( (PyObject*)((s1))))), 1) ? 0 : _PyUnicode_Ready((PyObject *)( s1))) < 0), 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)__builtin_expect(!!((__builtin_expect(!!(PyUnicode_IS_READY(( (PyObject*)((s2))))), 1) ? 0 : _PyUnicode_Ready((PyObject *)( s2))) < 0), 0)) |
9883 | return -1; |
9884 | length = __Pyx_PyUnicode_GET_LENGTH(s1)PyUnicode_GET_LENGTH(((PyObject*)((s1)))); |
9885 | if (length != __Pyx_PyUnicode_GET_LENGTH(s2)PyUnicode_GET_LENGTH(((PyObject*)((s2))))) { |
9886 | goto return_ne; |
9887 | } |
9888 | #if CYTHON_USE_UNICODE_INTERNALS1 |
9889 | { |
9890 | Py_hash_t hash1, hash2; |
9891 | #if CYTHON_PEP393_ENABLED1 |
9892 | hash1 = ((PyASCIIObject*)s1)->hash; |
9893 | hash2 = ((PyASCIIObject*)s2)->hash; |
9894 | #else |
9895 | hash1 = ((PyUnicodeObject*)s1)->hash; |
9896 | hash2 = ((PyUnicodeObject*)s2)->hash; |
9897 | #endif |
9898 | if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { |
9899 | goto return_ne; |
9900 | } |
9901 | } |
9902 | #endif |
9903 | kind = __Pyx_PyUnicode_KIND(s1)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((s1)) ))) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject *)((s1))))) ; else __assert_fail ("PyUnicode_IS_READY(s1)", "abaqusFILReader.c" , 9903, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((s1)))), (1UL << 28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE (((PyObject*)((s1)))), (1UL << 28))) ; else __assert_fail ("PyUnicode_Check(s1)", "abaqusFILReader.c", 9903, __extension__ __PRETTY_FUNCTION__); })), ((PyASCIIObject*)((s1))))->state .kind)); |
9904 | if (kind != __Pyx_PyUnicode_KIND(s2)((int)(((void) sizeof ((PyUnicode_IS_READY(((PyObject*)((s2)) ))) ? 1 : 0), __extension__ ({ if (PyUnicode_IS_READY(((PyObject *)((s2))))) ; else __assert_fail ("PyUnicode_IS_READY(s2)", "abaqusFILReader.c" , 9904, __extension__ __PRETTY_FUNCTION__); })), (((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((s2)))), (1UL << 28))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature(Py_TYPE (((PyObject*)((s2)))), (1UL << 28))) ; else __assert_fail ("PyUnicode_Check(s2)", "abaqusFILReader.c", 9904, __extension__ __PRETTY_FUNCTION__); })), ((PyASCIIObject*)((s2))))->state .kind))) { |
9905 | goto return_ne; |
9906 | } |
9907 | data1 = __Pyx_PyUnicode_DATA(s1)PyUnicode_DATA(((PyObject*)((s1)))); |
9908 | data2 = __Pyx_PyUnicode_DATA(s2)PyUnicode_DATA(((PyObject*)((s2)))); |
9909 | if (__Pyx_PyUnicode_READ(kind, data1, 0)PyUnicode_READ(((int)(kind)), ((const void*)(data1)), (0)) != __Pyx_PyUnicode_READ(kind, data2, 0)PyUnicode_READ(((int)(kind)), ((const void*)(data2)), (0))) { |
9910 | goto return_ne; |
9911 | } else if (length == 1) { |
9912 | goto return_eq; |
9913 | } else { |
9914 | int result = memcmp(data1, data2, (size_t)(length * kind)); |
9915 | #if PY_MAJOR_VERSION3 < 3 |
9916 | Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref)))); |
9917 | #endif |
9918 | return (equals == Py_EQ2) ? (result == 0) : (result != 0); |
9919 | } |
9920 | } else if ((s1 == Py_None(&_Py_NoneStruct)) & s2_is_unicode) { |
9921 | goto return_ne; |
9922 | } else if ((s2 == Py_None(&_Py_NoneStruct)) & s1_is_unicode) { |
9923 | goto return_ne; |
9924 | } else { |
9925 | int result; |
9926 | PyObject* py_result = PyObject_RichCompare(s1, s2, equals); |
9927 | #if PY_MAJOR_VERSION3 < 3 |
9928 | Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref)))); |
9929 | #endif |
9930 | if (!py_result) |
9931 | return -1; |
9932 | result = __Pyx_PyObject_IsTrue(py_result); |
9933 | Py_DECREF(py_result)Py_DECREF(((PyObject*)((py_result)))); |
9934 | return result; |
9935 | } |
9936 | return_eq: |
9937 | #if PY_MAJOR_VERSION3 < 3 |
9938 | Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref)))); |
9939 | #endif |
9940 | return (equals == Py_EQ2); |
9941 | return_ne: |
9942 | #if PY_MAJOR_VERSION3 < 3 |
9943 | Py_XDECREF(owned_ref)Py_XDECREF(((PyObject*)((owned_ref)))); |
9944 | #endif |
9945 | return (equals == Py_NE3); |
9946 | #endif |
9947 | } |
9948 | |
9949 | /* fastcall */ |
9950 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
9951 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s) |
9952 | { |
9953 | Py_ssize_t i, n = PyTuple_GET_SIZE(kwnames)PyTuple_GET_SIZE(((PyObject*)((kwnames)))); |
9954 | for (i = 0; i < n; i++) |
9955 | { |
9956 | if (s == PyTuple_GET_ITEM(kwnames, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwnames )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((kwnames)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(kwnames)", "abaqusFILReader.c" , 9956, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((kwnames))))->ob_item[i])) return kwvalues[i]; |
9957 | } |
9958 | for (i = 0; i < n; i++) |
9959 | { |
9960 | int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwnames )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((kwnames)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(kwnames)", "abaqusFILReader.c" , 9960, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((kwnames))))->ob_item[i]), Py_EQ2); |
9961 | if (unlikely(eq != 0)__builtin_expect(!!(eq != 0), 0)) { |
9962 | if (unlikely(eq < 0)__builtin_expect(!!(eq < 0), 0)) return NULL((void*)0); // error |
9963 | return kwvalues[i]; |
9964 | } |
9965 | } |
9966 | return NULL((void*)0); // not found (no exception set) |
9967 | } |
9968 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030d0000 |
9969 | static CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues)_PyStack_AsDict(PyObject *const *kwvalues, PyObject *kwnames) { |
9970 | Py_ssize_t i, nkwargs = PyTuple_GET_SIZE(kwnames)PyTuple_GET_SIZE(((PyObject*)((kwnames)))); |
9971 | PyObject *dict; |
9972 | dict = PyDict_New(); |
9973 | if (unlikely(!dict)__builtin_expect(!!(!dict), 0)) |
9974 | return NULL((void*)0); |
9975 | for (i=0; i<nkwargs; i++) { |
9976 | PyObject *key = PyTuple_GET_ITEM(kwnames, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwnames )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((kwnames)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(kwnames)", "abaqusFILReader.c" , 9976, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((kwnames))))->ob_item[i]); |
9977 | if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0)__builtin_expect(!!(PyDict_SetItem(dict, key, kwvalues[i]) < 0), 0)) |
9978 | goto bad; |
9979 | } |
9980 | return dict; |
9981 | bad: |
9982 | Py_DECREF(dict)Py_DECREF(((PyObject*)((dict)))); |
9983 | return NULL((void*)0); |
9984 | } |
9985 | #endif |
9986 | #endif |
9987 | |
9988 | /* RaiseDoubleKeywords */ |
9989 | static void __Pyx_RaiseDoubleKeywordsError( |
9990 | const char* func_name, |
9991 | PyObject* kw_name) |
9992 | { |
9993 | PyErr_Format(PyExc_TypeError, |
9994 | #if PY_MAJOR_VERSION3 >= 3 |
9995 | "%s() got multiple values for keyword argument '%U'", func_name, kw_name); |
9996 | #else |
9997 | "%s() got multiple values for keyword argument '%s'", func_name, |
9998 | PyString_AsString(kw_name)); |
9999 | #endif |
10000 | } |
10001 | |
10002 | /* ParseKeywords */ |
10003 | static int __Pyx_ParseOptionalKeywords( |
10004 | PyObject *kwds, |
10005 | PyObject *const *kwvalues, |
10006 | PyObject **argnames[], |
10007 | PyObject *kwds2, |
10008 | PyObject *values[], |
10009 | Py_ssize_t num_pos_args, |
10010 | const char* function_name) |
10011 | { |
10012 | PyObject *key = 0, *value = 0; |
10013 | Py_ssize_t pos = 0; |
10014 | PyObject*** name; |
10015 | PyObject*** first_kw_arg = argnames + num_pos_args; |
10016 | int kwds_is_tuple = CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && likely(PyTuple_Check(kwds))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((kwds )))), (1UL << 26))), 1); |
10017 | while (1) { |
10018 | Py_XDECREF(key)Py_XDECREF(((PyObject*)((key)))); key = NULL((void*)0); |
10019 | Py_XDECREF(value)Py_XDECREF(((PyObject*)((value)))); value = NULL((void*)0); |
10020 | if (kwds_is_tuple) { |
10021 | Py_ssize_t size; |
10022 | #if CYTHON_ASSUME_SAFE_MACROS1 |
10023 | size = PyTuple_GET_SIZE(kwds)PyTuple_GET_SIZE(((PyObject*)((kwds)))); |
10024 | #else |
10025 | size = PyTuple_Size(kwds); |
10026 | if (size < 0) goto bad; |
10027 | #endif |
10028 | if (pos >= size) break; |
10029 | #if CYTHON_AVOID_BORROWED_REFS0 |
10030 | key = __Pyx_PySequence_ITEM(kwds, pos)( Py_TYPE(((PyObject*)((kwds))))->tp_as_sequence->sq_item (kwds, pos) ); |
10031 | if (!key) goto bad; |
10032 | #elif CYTHON_ASSUME_SAFE_MACROS1 |
10033 | key = PyTuple_GET_ITEM(kwds, pos)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwds )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((kwds)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(kwds)", "abaqusFILReader.c", 10033, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((kwds))))->ob_item [pos]); |
10034 | #else |
10035 | key = PyTuple_GetItem(kwds, pos); |
10036 | if (!key) goto bad; |
10037 | #endif |
10038 | value = kwvalues[pos]; |
10039 | pos++; |
10040 | } |
10041 | else |
10042 | { |
10043 | if (!PyDict_Next(kwds, &pos, &key, &value)) break; |
10044 | #if CYTHON_AVOID_BORROWED_REFS0 |
10045 | Py_INCREF(key)Py_INCREF(((PyObject*)((key)))); |
10046 | #endif |
10047 | } |
10048 | name = first_kw_arg; |
10049 | while (*name && (**name != key)) name++; |
10050 | if (*name) { |
10051 | values[name-argnames] = value; |
10052 | #if CYTHON_AVOID_BORROWED_REFS0 |
10053 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); // transfer ownership of value to values |
10054 | Py_DECREF(key)Py_DECREF(((PyObject*)((key)))); |
10055 | #endif |
10056 | key = NULL((void*)0); |
10057 | value = NULL((void*)0); |
10058 | continue; |
10059 | } |
10060 | #if !CYTHON_AVOID_BORROWED_REFS0 |
10061 | Py_INCREF(key)Py_INCREF(((PyObject*)((key)))); |
10062 | #endif |
10063 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
10064 | name = first_kw_arg; |
10065 | #if PY_MAJOR_VERSION3 < 3 |
10066 | if (likely(PyString_Check(key))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((key )))), (1UL << 28))), 1)) { |
10067 | while (*name) { |
10068 | if ((CYTHON_COMPILING_IN_PYPY0 || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) |
10069 | && _PyString_Eq(**name, key)) { |
10070 | values[name-argnames] = value; |
10071 | #if CYTHON_AVOID_BORROWED_REFS0 |
10072 | value = NULL((void*)0); // ownership transferred to values |
10073 | #endif |
10074 | break; |
10075 | } |
10076 | name++; |
10077 | } |
10078 | if (*name) continue; |
10079 | else { |
10080 | PyObject*** argname = argnames; |
10081 | while (argname != first_kw_arg) { |
10082 | if ((**argname == key) || ( |
10083 | (CYTHON_COMPILING_IN_PYPY0 || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) |
10084 | && _PyString_Eq(**argname, key))) { |
10085 | goto arg_passed_twice; |
10086 | } |
10087 | argname++; |
10088 | } |
10089 | } |
10090 | } else |
10091 | #endif |
10092 | if (likely(PyUnicode_Check(key))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((key )))), (1UL << 28))), 1)) { |
10093 | while (*name) { |
10094 | int cmp = ( |
10095 | #if !CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION3 >= 3 |
10096 | (__Pyx_PyUnicode_GET_LENGTH(**name)PyUnicode_GET_LENGTH(((PyObject*)((**name)))) != __Pyx_PyUnicode_GET_LENGTH(key)PyUnicode_GET_LENGTH(((PyObject*)((key))))) ? 1 : |
10097 | #endif |
10098 | PyUnicode_Compare(**name, key) |
10099 | ); |
10100 | if (cmp < 0 && unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) goto bad; |
10101 | if (cmp == 0) { |
10102 | values[name-argnames] = value; |
10103 | #if CYTHON_AVOID_BORROWED_REFS0 |
10104 | value = NULL((void*)0); // ownership transferred to values |
10105 | #endif |
10106 | break; |
10107 | } |
10108 | name++; |
10109 | } |
10110 | if (*name) continue; |
10111 | else { |
10112 | PyObject*** argname = argnames; |
10113 | while (argname != first_kw_arg) { |
10114 | int cmp = (**argname == key) ? 0 : |
10115 | #if !CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION3 >= 3 |
10116 | (__Pyx_PyUnicode_GET_LENGTH(**argname)PyUnicode_GET_LENGTH(((PyObject*)((**argname)))) != __Pyx_PyUnicode_GET_LENGTH(key)PyUnicode_GET_LENGTH(((PyObject*)((key))))) ? 1 : |
10117 | #endif |
10118 | PyUnicode_Compare(**argname, key); |
10119 | if (cmp < 0 && unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) goto bad; |
10120 | if (cmp == 0) goto arg_passed_twice; |
10121 | argname++; |
10122 | } |
10123 | } |
10124 | } else |
10125 | goto invalid_keyword_type; |
10126 | if (kwds2) { |
10127 | if (unlikely(PyDict_SetItem(kwds2, key, value))__builtin_expect(!!(PyDict_SetItem(kwds2, key, value)), 0)) goto bad; |
10128 | } else { |
10129 | goto invalid_keyword; |
10130 | } |
10131 | } |
10132 | Py_XDECREF(key)Py_XDECREF(((PyObject*)((key)))); |
10133 | Py_XDECREF(value)Py_XDECREF(((PyObject*)((value)))); |
10134 | return 0; |
10135 | arg_passed_twice: |
10136 | __Pyx_RaiseDoubleKeywordsError(function_name, key); |
10137 | goto bad; |
10138 | invalid_keyword_type: |
10139 | PyErr_Format(PyExc_TypeError, |
10140 | "%.200s() keywords must be strings", function_name); |
10141 | goto bad; |
10142 | invalid_keyword: |
10143 | #if PY_MAJOR_VERSION3 < 3 |
10144 | PyErr_Format(PyExc_TypeError, |
10145 | "%.200s() got an unexpected keyword argument '%.200s'", |
10146 | function_name, PyString_AsString(key)); |
10147 | #else |
10148 | PyErr_Format(PyExc_TypeError, |
10149 | "%s() got an unexpected keyword argument '%U'", |
10150 | function_name, key); |
10151 | #endif |
10152 | bad: |
10153 | Py_XDECREF(key)Py_XDECREF(((PyObject*)((key)))); |
10154 | Py_XDECREF(value)Py_XDECREF(((PyObject*)((value)))); |
10155 | return -1; |
10156 | } |
10157 | |
10158 | /* RaiseArgTupleInvalid */ |
10159 | static void __Pyx_RaiseArgtupleInvalid( |
10160 | const char* func_name, |
10161 | int exact, |
10162 | Py_ssize_t num_min, |
10163 | Py_ssize_t num_max, |
10164 | Py_ssize_t num_found) |
10165 | { |
10166 | Py_ssize_t num_expected; |
10167 | const char *more_or_less; |
10168 | if (num_found < num_min) { |
10169 | num_expected = num_min; |
10170 | more_or_less = "at least"; |
10171 | } else { |
10172 | num_expected = num_max; |
10173 | more_or_less = "at most"; |
10174 | } |
10175 | if (exact) { |
10176 | more_or_less = "exactly"; |
10177 | } |
10178 | PyErr_Format(PyExc_TypeError, |
10179 | "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T"z" "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
10180 | func_name, more_or_less, num_expected, |
10181 | (num_expected == 1) ? "" : "s", num_found); |
10182 | } |
10183 | |
10184 | /* PyFunctionFastCall */ |
10185 | #if CYTHON_FAST_PYCALL1 && !CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) |
10186 | static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, |
10187 | PyObject *globals) { |
10188 | PyFrameObject *f; |
10189 | PyThreadState *tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(); |
10190 | PyObject **fastlocals; |
10191 | Py_ssize_t i; |
10192 | PyObject *result; |
10193 | assert(globals != NULL)((void) sizeof ((globals != ((void*)0)) ? 1 : 0), __extension__ ({ if (globals != ((void*)0)) ; else __assert_fail ("globals != NULL" , "abaqusFILReader.c", 10193, __extension__ __PRETTY_FUNCTION__ ); })); |
10194 | /* XXX Perhaps we should create a specialized |
10195 | PyFrame_New() that doesn't take locals, but does |
10196 | take builtins without sanity checking them. |
10197 | */ |
10198 | assert(tstate != NULL)((void) sizeof ((tstate != ((void*)0)) ? 1 : 0), __extension__ ({ if (tstate != ((void*)0)) ; else __assert_fail ("tstate != NULL" , "abaqusFILReader.c", 10198, __extension__ __PRETTY_FUNCTION__ ); })); |
10199 | f = PyFrame_New(tstate, co, globals, NULL((void*)0)); |
10200 | if (f == NULL((void*)0)) { |
10201 | return NULL((void*)0); |
10202 | } |
10203 | fastlocals = __Pyx_PyFrame_GetLocalsplus(f); |
10204 | for (i = 0; i < na; i++) { |
10205 | Py_INCREF(*args)Py_INCREF(((PyObject*)((*args)))); |
10206 | fastlocals[i] = *args++; |
10207 | } |
10208 | result = PyEval_EvalFrameEx(f,0); |
10209 | ++tstate->recursion_depth; |
10210 | Py_DECREF(f)Py_DECREF(((PyObject*)((f)))); |
10211 | --tstate->recursion_depth; |
10212 | return result; |
10213 | } |
10214 | static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) { |
10215 | PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func)(((PyFunctionObject *)func) -> func_code); |
10216 | PyObject *globals = PyFunction_GET_GLOBALS(func)(((PyFunctionObject *)func) -> func_globals); |
10217 | PyObject *argdefs = PyFunction_GET_DEFAULTS(func)(((PyFunctionObject *)func) -> func_defaults); |
10218 | PyObject *closure; |
10219 | #if PY_MAJOR_VERSION3 >= 3 |
10220 | PyObject *kwdefs; |
10221 | #endif |
10222 | PyObject *kwtuple, **k; |
10223 | PyObject **d; |
10224 | Py_ssize_t nd; |
10225 | Py_ssize_t nk; |
10226 | PyObject *result; |
10227 | assert(kwargs == NULL || PyDict_Check(kwargs))((void) sizeof ((kwargs == ((void*)0) || PyType_HasFeature(Py_TYPE (((PyObject*)((kwargs)))), (1UL << 29))) ? 1 : 0), __extension__ ({ if (kwargs == ((void*)0) || PyType_HasFeature(Py_TYPE(((PyObject *)((kwargs)))), (1UL << 29))) ; else __assert_fail ("kwargs == NULL || PyDict_Check(kwargs)" , "abaqusFILReader.c", 10227, __extension__ __PRETTY_FUNCTION__ ); })); |
10228 | nk = kwargs ? PyDict_Size(kwargs) : 0; |
10229 | #if PY_MAJOR_VERSION3 < 3 |
10230 | if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall((char*)" while calling a Python object" )), 0)) { |
10231 | return NULL((void*)0); |
10232 | } |
10233 | #else |
10234 | if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall(" while calling a Python object" )), 0)) { |
10235 | return NULL((void*)0); |
10236 | } |
10237 | #endif |
10238 | if ( |
10239 | #if PY_MAJOR_VERSION3 >= 3 |
10240 | co->co_kwonlyargcount == 0 && |
10241 | #endif |
10242 | likely(kwargs == NULL || nk == 0)__builtin_expect(!!(kwargs == ((void*)0) || nk == 0), 1) && |
10243 | co->co_flags == (CO_OPTIMIZED0x0001 | CO_NEWLOCALS0x0002 | CO_NOFREE)) { |
10244 | if (argdefs == NULL((void*)0) && co->co_argcount == nargs) { |
10245 | result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); |
10246 | goto done; |
10247 | } |
10248 | else if (nargs == 0 && argdefs != NULL((void*)0) |
10249 | && co->co_argcount == Py_SIZE(argdefs)Py_SIZE(((PyObject*)((argdefs))))) { |
10250 | /* function called with no arguments, but all parameters have |
10251 | a default value: use default values as arguments .*/ |
10252 | args = &PyTuple_GET_ITEM(argdefs, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((argdefs )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((argdefs)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(argdefs)", "abaqusFILReader.c" , 10252, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((argdefs))))->ob_item[0]); |
10253 | result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs)Py_SIZE(((PyObject*)((argdefs)))), globals); |
10254 | goto done; |
10255 | } |
10256 | } |
10257 | if (kwargs != NULL((void*)0)) { |
10258 | Py_ssize_t pos, i; |
10259 | kwtuple = PyTuple_New(2 * nk); |
10260 | if (kwtuple == NULL((void*)0)) { |
10261 | result = NULL((void*)0); |
10262 | goto done; |
10263 | } |
10264 | k = &PyTuple_GET_ITEM(kwtuple, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kwtuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((kwtuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(kwtuple)", "abaqusFILReader.c" , 10264, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((kwtuple))))->ob_item[0]); |
10265 | pos = i = 0; |
10266 | while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { |
10267 | Py_INCREF(k[i])Py_INCREF(((PyObject*)((k[i])))); |
10268 | Py_INCREF(k[i+1])Py_INCREF(((PyObject*)((k[i+1])))); |
10269 | i += 2; |
10270 | } |
10271 | nk = i / 2; |
10272 | } |
10273 | else { |
10274 | kwtuple = NULL((void*)0); |
10275 | k = NULL((void*)0); |
10276 | } |
10277 | closure = PyFunction_GET_CLOSURE(func)(((PyFunctionObject *)func) -> func_closure); |
10278 | #if PY_MAJOR_VERSION3 >= 3 |
10279 | kwdefs = PyFunction_GET_KW_DEFAULTS(func)(((PyFunctionObject *)func) -> func_kwdefaults); |
10280 | #endif |
10281 | if (argdefs != NULL((void*)0)) { |
10282 | d = &PyTuple_GET_ITEM(argdefs, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((argdefs )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((argdefs)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(argdefs)", "abaqusFILReader.c" , 10282, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((argdefs))))->ob_item[0]); |
10283 | nd = Py_SIZE(argdefs)Py_SIZE(((PyObject*)((argdefs)))); |
10284 | } |
10285 | else { |
10286 | d = NULL((void*)0); |
10287 | nd = 0; |
10288 | } |
10289 | #if PY_MAJOR_VERSION3 >= 3 |
10290 | result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL((void*)0), |
10291 | args, (int)nargs, |
10292 | k, (int)nk, |
10293 | d, (int)nd, kwdefs, closure); |
10294 | #else |
10295 | result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL((void*)0), |
10296 | args, (int)nargs, |
10297 | k, (int)nk, |
10298 | d, (int)nd, closure); |
10299 | #endif |
10300 | Py_XDECREF(kwtuple)Py_XDECREF(((PyObject*)((kwtuple)))); |
10301 | done: |
10302 | Py_LeaveRecursiveCall(); |
10303 | return result; |
10304 | } |
10305 | #endif |
10306 | |
10307 | /* PyObjectCall */ |
10308 | #if CYTHON_COMPILING_IN_CPYTHON1 |
10309 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { |
10310 | PyObject *result; |
10311 | ternaryfunc call = Py_TYPE(func)Py_TYPE(((PyObject*)((func))))->tp_call; |
10312 | if (unlikely(!call)__builtin_expect(!!(!call), 0)) |
10313 | return PyObject_Call(func, arg, kw); |
10314 | #if PY_MAJOR_VERSION3 < 3 |
10315 | if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall((char*)" while calling a Python object" )), 0)) |
10316 | return NULL((void*)0); |
10317 | #else |
10318 | if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall(" while calling a Python object" )), 0)) |
10319 | return NULL((void*)0); |
10320 | #endif |
10321 | result = (*call)(func, arg, kw); |
10322 | Py_LeaveRecursiveCall(); |
10323 | if (unlikely(!result)__builtin_expect(!!(!result), 0) && unlikely(!PyErr_Occurred())__builtin_expect(!!(!PyErr_Occurred()), 0)) { |
10324 | PyErr_SetString( |
10325 | PyExc_SystemError, |
10326 | "NULL result without error in PyObject_Call"); |
10327 | } |
10328 | return result; |
10329 | } |
10330 | #endif |
10331 | |
10332 | /* PyObjectCallMethO */ |
10333 | #if CYTHON_COMPILING_IN_CPYTHON1 |
10334 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { |
10335 | PyObject *self, *result; |
10336 | PyCFunction cfunc; |
10337 | cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth); |
10338 | self = __Pyx_CyOrPyCFunction_GET_SELF(func); |
10339 | #if PY_MAJOR_VERSION3 < 3 |
10340 | if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall((char*)" while calling a Python object" )), 0)) |
10341 | return NULL((void*)0); |
10342 | #else |
10343 | if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))__builtin_expect(!!(Py_EnterRecursiveCall(" while calling a Python object" )), 0)) |
10344 | return NULL((void*)0); |
10345 | #endif |
10346 | result = cfunc(self, arg); |
10347 | Py_LeaveRecursiveCall(); |
10348 | if (unlikely(!result)__builtin_expect(!!(!result), 0) && unlikely(!PyErr_Occurred())__builtin_expect(!!(!PyErr_Occurred()), 0)) { |
10349 | PyErr_SetString( |
10350 | PyExc_SystemError, |
10351 | "NULL result without error in PyObject_Call"); |
10352 | } |
10353 | return result; |
10354 | } |
10355 | #endif |
10356 | |
10357 | /* PyObjectFastCall */ |
10358 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API0 |
10359 | static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs) { |
10360 | PyObject *argstuple; |
10361 | PyObject *result = 0; |
10362 | size_t i; |
10363 | argstuple = PyTuple_New((Py_ssize_t)nargs); |
10364 | if (unlikely(!argstuple)__builtin_expect(!!(!argstuple), 0)) return NULL((void*)0); |
10365 | for (i = 0; i < nargs; i++) { |
10366 | Py_INCREF(args[i])Py_INCREF(((PyObject*)((args[i])))); |
10367 | if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i])(PyTuple_SET_ITEM(((PyObject*)((argstuple))), (Py_ssize_t)i, ( (PyObject*)((args[i])))), (0)) < 0) goto bad; |
10368 | } |
10369 | result = __Pyx_PyObject_Call(func, argstuple, kwargs); |
10370 | bad: |
10371 | Py_DECREF(argstuple)Py_DECREF(((PyObject*)((argstuple)))); |
10372 | return result; |
10373 | } |
10374 | #endif |
10375 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t _nargs, PyObject *kwargs) { |
10376 | Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs)PyVectorcall_NARGS((size_t)(_nargs)); |
10377 | #if CYTHON_COMPILING_IN_CPYTHON1 |
10378 | if (nargs == 0 && kwargs == NULL((void*)0)) { |
10379 | if (__Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject *)&PyCFunction_Type) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS)__builtin_expect(!!((((PyCFunctionObject*)(func))->m_ml-> ml_flags) & 0x0004), 1)) |
10380 | return __Pyx_PyObject_CallMethO(func, NULL((void*)0)); |
10381 | } |
10382 | else if (nargs == 1 && kwargs == NULL((void*)0)) { |
10383 | if (__Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject *)&PyCFunction_Type) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O)__builtin_expect(!!((((PyCFunctionObject*)(func))->m_ml-> ml_flags) & 0x0008), 1)) |
10384 | return __Pyx_PyObject_CallMethO(func, args[0]); |
10385 | } |
10386 | #endif |
10387 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1 |
10388 | #if CYTHON_FAST_PYCCALL(1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) |
10389 | if (PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type )) { |
10390 | if (kwargs) { |
10391 | return _PyCFunction_FastCallDict(func, args, nargs, kwargs); |
10392 | } else { |
10393 | return _PyCFunction_FastCallKeywords(func, args, nargs, NULL((void*)0)); |
10394 | } |
10395 | } |
10396 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1 |
10397 | if (!kwargs && __Pyx_IS_TYPE(func, &PyMethodDescr_Type)Py_IS_TYPE(((PyObject*)((func))), &PyMethodDescr_Type)) { |
10398 | return _PyMethodDescr_FastCallKeywords(func, args, nargs, NULL((void*)0)); |
10399 | } |
10400 | #endif |
10401 | #endif |
10402 | #if CYTHON_FAST_PYCALL1 |
10403 | if (PyFunction_Check(func)Py_IS_TYPE(((PyObject*)((func))), &PyFunction_Type)) { |
10404 | return __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs); |
10405 | } |
10406 | #endif |
10407 | #endif |
10408 | if (kwargs == NULL((void*)0)) { |
10409 | #if CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) |
10410 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000 |
10411 | vectorcallfunc f = _PyVectorcall_FunctionPyVectorcall_Function(func); |
10412 | #else |
10413 | vectorcallfunc f = PyVectorcall_Function(func); |
10414 | #endif |
10415 | if (f) { |
10416 | return f(func, args, (size_t)nargs, NULL((void*)0)); |
10417 | } |
10418 | #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
10419 | if (__Pyx_CyFunction_CheckExact(func)Py_IS_TYPE(((PyObject*)((func))), __pyx_mstate_global->__pyx_CyFunctionType )) { |
10420 | __pyx_vectorcallfuncvectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func)(((PyCFunctionObject*)func)->vectorcall); |
10421 | if (f) return f(func, args, (size_t)nargs, NULL((void*)0)); |
10422 | } |
10423 | #endif |
10424 | } |
10425 | if (nargs == 0) { |
10426 | return __Pyx_PyObject_Call(func, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, kwargs); |
10427 | } |
10428 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API0 |
10429 | return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs); |
10430 | #else |
10431 | return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs); |
10432 | #endif |
10433 | } |
10434 | |
10435 | /* PyDictVersioning */ |
10436 | #if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) && CYTHON_USE_TYPE_SLOTS1 |
10437 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_tp_dict_version(PyObject *obj) { |
10438 | PyObject *dict = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_dict; |
10439 | return likely(dict)__builtin_expect(!!(dict), 1) ? __PYX_GET_DICT_VERSION(dict)(((PyDictObject*)(dict))->ma_version_tag) : 0; |
10440 | } |
10441 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PY_UINT64_Tuint64_t __Pyx_get_object_dict_version(PyObject *obj) { |
10442 | PyObject **dictptr = NULL((void*)0); |
10443 | Py_ssize_t offset = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_dictoffset; |
10444 | if (offset) { |
10445 | #if CYTHON_COMPILING_IN_CPYTHON1 |
10446 | dictptr = (likely(offset > 0)__builtin_expect(!!(offset > 0), 1)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); |
10447 | #else |
10448 | dictptr = _PyObject_GetDictPtr(obj); |
10449 | #endif |
10450 | } |
10451 | return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr)(((PyDictObject*)(*dictptr))->ma_version_tag) : 0; |
10452 | } |
10453 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_Tuint64_t tp_dict_version, PY_UINT64_Tuint64_t obj_dict_version) { |
10454 | PyObject *dict = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_dict; |
10455 | if (unlikely(!dict)__builtin_expect(!!(!dict), 0) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))__builtin_expect(!!(tp_dict_version != (((PyDictObject*)(dict ))->ma_version_tag)), 0)) |
10456 | return 0; |
10457 | return obj_dict_version == __Pyx_get_object_dict_version(obj); |
10458 | } |
10459 | #endif |
10460 | |
10461 | /* GetModuleGlobalName */ |
10462 | #if CYTHON_USE_DICT_VERSIONS(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A5) |
10463 | static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_Tuint64_t *dict_version, PyObject **dict_cached_value) |
10464 | #else |
10465 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx__GetModuleGlobalName(PyObject *name) |
10466 | #endif |
10467 | { |
10468 | PyObject *result; |
10469 | #if !CYTHON_AVOID_BORROWED_REFS0 |
10470 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030500A1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d0000 |
10471 | result = _PyDict_GetItem_KnownHash(__pyx_d__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash); |
10472 | __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)(*dict_version) = (((PyDictObject*)(__pyx_mstate_global->__pyx_d ))->ma_version_tag); (*dict_cached_value) = (result); |
10473 | if (likely(result)__builtin_expect(!!(result), 1)) { |
10474 | return __Pyx_NewRef(result)(Py_INCREF(((PyObject*)((result)))), result); |
10475 | } else if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) { |
10476 | return NULL((void*)0); |
10477 | } |
10478 | #elif CYTHON_COMPILING_IN_LIMITED_API0 |
10479 | if (unlikely(!__pyx_m)__builtin_expect(!!(!__pyx_m), 0)) { |
10480 | return NULL((void*)0); |
10481 | } |
10482 | result = PyObject_GetAttr(__pyx_m, name); |
10483 | if (likely(result)__builtin_expect(!!(result), 1)) { |
10484 | return result; |
10485 | } |
10486 | #else |
10487 | result = PyDict_GetItem(__pyx_d__pyx_mstate_global->__pyx_d, name); |
10488 | __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)(*dict_version) = (((PyDictObject*)(__pyx_mstate_global->__pyx_d ))->ma_version_tag); (*dict_cached_value) = (result); |
10489 | if (likely(result)__builtin_expect(!!(result), 1)) { |
10490 | return __Pyx_NewRef(result)(Py_INCREF(((PyObject*)((result)))), result); |
10491 | } |
10492 | #endif |
10493 | #else |
10494 | result = PyObject_GetItem(__pyx_d__pyx_mstate_global->__pyx_d, name); |
10495 | __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)(*dict_version) = (((PyDictObject*)(__pyx_mstate_global->__pyx_d ))->ma_version_tag); (*dict_cached_value) = (result); |
10496 | if (likely(result)__builtin_expect(!!(result), 1)) { |
10497 | return __Pyx_NewRef(result)(Py_INCREF(((PyObject*)((result)))), result); |
10498 | } |
10499 | PyErr_Clear(); |
10500 | #endif |
10501 | return __Pyx_GetBuiltinName(name); |
10502 | } |
10503 | |
10504 | /* IterFinish */ |
10505 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IterFinish(void) { |
10506 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
10507 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
10508 | PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType()(__pyx_tstate->curexc_type); |
10509 | if (unlikely(exc_type)__builtin_expect(!!(exc_type), 0)) { |
10510 | if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(!__Pyx_PyErr_GivenExceptionMatches(exc_type , PyExc_StopIteration)), 0)) |
10511 | return -1; |
10512 | __Pyx_PyErr_Clear()__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0), ((void*)0)); |
10513 | return 0; |
10514 | } |
10515 | return 0; |
10516 | } |
10517 | |
10518 | /* PyObjectCallNoArg */ |
10519 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { |
10520 | PyObject *arg[2] = {NULL((void*)0), NULL((void*)0)}; |
10521 | return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)__Pyx_PyObject_FastCallDict(func, arg + 1, (size_t)(0 | (((size_t )(1)) << (8 * sizeof(size_t) - 1))), ((void*)0)); |
10522 | } |
10523 | |
10524 | /* PyObjectCallOneArg */ |
10525 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { |
10526 | PyObject *args[2] = {NULL((void*)0), arg}; |
10527 | return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)__Pyx_PyObject_FastCallDict(func, args+1, (size_t)(1 | (((size_t )(1)) << (8 * sizeof(size_t) - 1))), ((void*)0)); |
10528 | } |
10529 | |
10530 | /* PyObjectGetMethod */ |
10531 | static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) { |
10532 | PyObject *attr; |
10533 | #if CYTHON_UNPACK_METHODS1 && CYTHON_COMPILING_IN_CPYTHON1 && CYTHON_USE_PYTYPE_LOOKUP1 |
10534 | __Pyx_TypeName type_name; |
10535 | PyTypeObject *tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))); |
10536 | PyObject *descr; |
10537 | descrgetfunc f = NULL((void*)0); |
10538 | PyObject **dictptr, *dict; |
10539 | int meth_found = 0; |
10540 | assert (*method == NULL)((void) sizeof ((*method == ((void*)0)) ? 1 : 0), __extension__ ({ if (*method == ((void*)0)) ; else __assert_fail ("*method == NULL" , "abaqusFILReader.c", 10540, __extension__ __PRETTY_FUNCTION__ ); })); |
10541 | if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)__builtin_expect(!!(tp->tp_getattro != PyObject_GenericGetAttr ), 0)) { |
10542 | attr = __Pyx_PyObject_GetAttrStr(obj, name); |
10543 | goto try_unpack; |
10544 | } |
10545 | if (unlikely(tp->tp_dict == NULL)__builtin_expect(!!(tp->tp_dict == ((void*)0)), 0) && unlikely(PyType_Ready(tp) < 0)__builtin_expect(!!(PyType_Ready(tp) < 0), 0)) { |
10546 | return 0; |
10547 | } |
10548 | descr = _PyType_Lookup(tp, name); |
10549 | if (likely(descr != NULL)__builtin_expect(!!(descr != ((void*)0)), 1)) { |
10550 | Py_INCREF(descr)Py_INCREF(((PyObject*)((descr)))); |
10551 | #if defined(Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17)) && Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17) |
10552 | if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR)(((((PyTypeObject *)Py_TYPE(((PyObject*)((descr)))))->tp_flags ) & ((1UL << 17))) != 0)) |
10553 | #elif PY_MAJOR_VERSION3 >= 3 |
10554 | #ifdef __Pyx_CyFunction_USED |
10555 | if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type ) || Py_IS_TYPE(((PyObject*)((descr))), &PyMethodDescr_Type ) || __Pyx_IsSubtype(Py_TYPE(((PyObject*)((descr)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType)), 1)) |
10556 | #else |
10557 | if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type ) || Py_IS_TYPE(((PyObject*)((descr))), &PyMethodDescr_Type )), 1)) |
10558 | #endif |
10559 | #else |
10560 | #ifdef __Pyx_CyFunction_USED |
10561 | if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type ) || __Pyx_IsSubtype(Py_TYPE(((PyObject*)((descr)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType)), 1)) |
10562 | #else |
10563 | if (likely(PyFunction_Check(descr))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((descr))), &PyFunction_Type )), 1)) |
10564 | #endif |
10565 | #endif |
10566 | { |
10567 | meth_found = 1; |
10568 | } else { |
10569 | f = Py_TYPE(descr)Py_TYPE(((PyObject*)((descr))))->tp_descr_get; |
10570 | if (f != NULL((void*)0) && PyDescr_IsData(descr)) { |
10571 | attr = f(descr, obj, (PyObject *)Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))); |
10572 | Py_DECREF(descr)Py_DECREF(((PyObject*)((descr)))); |
10573 | goto try_unpack; |
10574 | } |
10575 | } |
10576 | } |
10577 | dictptr = _PyObject_GetDictPtr(obj); |
10578 | if (dictptr != NULL((void*)0) && (dict = *dictptr) != NULL((void*)0)) { |
10579 | Py_INCREF(dict)Py_INCREF(((PyObject*)((dict)))); |
10580 | attr = __Pyx_PyDict_GetItemStr(dict, name); |
10581 | if (attr != NULL((void*)0)) { |
10582 | Py_INCREF(attr)Py_INCREF(((PyObject*)((attr)))); |
10583 | Py_DECREF(dict)Py_DECREF(((PyObject*)((dict)))); |
10584 | Py_XDECREF(descr)Py_XDECREF(((PyObject*)((descr)))); |
10585 | goto try_unpack; |
10586 | } |
10587 | Py_DECREF(dict)Py_DECREF(((PyObject*)((dict)))); |
10588 | } |
10589 | if (meth_found) { |
10590 | *method = descr; |
10591 | return 1; |
10592 | } |
10593 | if (f != NULL((void*)0)) { |
10594 | attr = f(descr, obj, (PyObject *)Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))); |
10595 | Py_DECREF(descr)Py_DECREF(((PyObject*)((descr)))); |
10596 | goto try_unpack; |
10597 | } |
10598 | if (likely(descr != NULL)__builtin_expect(!!(descr != ((void*)0)), 1)) { |
10599 | *method = descr; |
10600 | return 0; |
10601 | } |
10602 | type_name = __Pyx_PyType_GetName(tp)((tp)->tp_name); |
10603 | PyErr_Format(PyExc_AttributeError, |
10604 | #if PY_MAJOR_VERSION3 >= 3 |
10605 | "'" __Pyx_FMT_TYPENAME"%.200s" "' object has no attribute '%U'", |
10606 | type_name, name); |
10607 | #else |
10608 | "'" __Pyx_FMT_TYPENAME"%.200s" "' object has no attribute '%.400s'", |
10609 | type_name, PyString_AS_STRING(name)); |
10610 | #endif |
10611 | __Pyx_DECREF_TypeName(type_name); |
10612 | return 0; |
10613 | #else |
10614 | attr = __Pyx_PyObject_GetAttrStr(obj, name); |
10615 | goto try_unpack; |
10616 | #endif |
10617 | try_unpack: |
10618 | #if CYTHON_UNPACK_METHODS1 |
10619 | if (likely(attr)__builtin_expect(!!(attr), 1) && PyMethod_Check(attr)Py_IS_TYPE(((PyObject*)((attr))), &PyMethod_Type) && likely(PyMethod_GET_SELF(attr) == obj)__builtin_expect(!!((((PyMethodObject *)attr) -> im_self) == obj), 1)) { |
10620 | PyObject *function = PyMethod_GET_FUNCTION(attr)(((PyMethodObject *)attr) -> im_func); |
10621 | Py_INCREF(function)Py_INCREF(((PyObject*)((function)))); |
10622 | Py_DECREF(attr)Py_DECREF(((PyObject*)((attr)))); |
10623 | *method = function; |
10624 | return 1; |
10625 | } |
10626 | #endif |
10627 | *method = attr; |
10628 | return 0; |
10629 | } |
10630 | |
10631 | /* PyObjectCallMethod0 */ |
10632 | static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) { |
10633 | PyObject *method = NULL((void*)0), *result = NULL((void*)0); |
10634 | int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); |
10635 | if (likely(is_method)__builtin_expect(!!(is_method), 1)) { |
10636 | result = __Pyx_PyObject_CallOneArg(method, obj); |
10637 | Py_DECREF(method)Py_DECREF(((PyObject*)((method)))); |
10638 | return result; |
10639 | } |
10640 | if (unlikely(!method)__builtin_expect(!!(!method), 0)) goto bad; |
10641 | result = __Pyx_PyObject_CallNoArg(method); |
10642 | Py_DECREF(method)Py_DECREF(((PyObject*)((method)))); |
10643 | bad: |
10644 | return result; |
10645 | } |
10646 | |
10647 | /* RaiseNeedMoreValuesToUnpack */ |
10648 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { |
10649 | PyErr_Format(PyExc_ValueError, |
10650 | "need more than %" CYTHON_FORMAT_SSIZE_T"z" "d value%.1s to unpack", |
10651 | index, (index == 1) ? "" : "s"); |
10652 | } |
10653 | |
10654 | /* RaiseTooManyValuesToUnpack */ |
10655 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { |
10656 | PyErr_Format(PyExc_ValueError, |
10657 | "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T"z" "d)", expected); |
10658 | } |
10659 | |
10660 | /* UnpackItemEndCheck */ |
10661 | static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { |
10662 | if (unlikely(retval)__builtin_expect(!!(retval), 0)) { |
10663 | Py_DECREF(retval)Py_DECREF(((PyObject*)((retval)))); |
10664 | __Pyx_RaiseTooManyValuesError(expected); |
10665 | return -1; |
10666 | } |
10667 | return __Pyx_IterFinish(); |
10668 | } |
10669 | |
10670 | /* RaiseNoneIterError */ |
10671 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_RaiseNoneNotIterableError(void) { |
10672 | PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); |
10673 | } |
10674 | |
10675 | /* UnpackTupleError */ |
10676 | static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) { |
10677 | if (t == Py_None(&_Py_NoneStruct)) { |
10678 | __Pyx_RaiseNoneNotIterableError(); |
10679 | } else if (PyTuple_GET_SIZE(t)PyTuple_GET_SIZE(((PyObject*)((t)))) < index) { |
10680 | __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)PyTuple_GET_SIZE(((PyObject*)((t))))); |
10681 | } else { |
10682 | __Pyx_RaiseTooManyValuesError(index); |
10683 | } |
10684 | } |
10685 | |
10686 | /* UnpackTuple2 */ |
10687 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_unpack_tuple2_exact( |
10688 | PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) { |
10689 | PyObject *value1 = NULL((void*)0), *value2 = NULL((void*)0); |
10690 | #if CYTHON_COMPILING_IN_PYPY0 |
10691 | value1 = PySequence_ITEM(tuple, 0)( Py_TYPE(((PyObject*)((tuple))))->tp_as_sequence->sq_item (tuple, 0) ); if (unlikely(!value1)__builtin_expect(!!(!value1), 0)) goto bad; |
10692 | value2 = PySequence_ITEM(tuple, 1)( Py_TYPE(((PyObject*)((tuple))))->tp_as_sequence->sq_item (tuple, 1) ); if (unlikely(!value2)__builtin_expect(!!(!value2), 0)) goto bad; |
10693 | #else |
10694 | value1 = PyTuple_GET_ITEM(tuple, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(tuple)", "abaqusFILReader.c", 10694, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))-> ob_item[0]); Py_INCREF(value1)Py_INCREF(((PyObject*)((value1)))); |
10695 | value2 = PyTuple_GET_ITEM(tuple, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(tuple)", "abaqusFILReader.c", 10695, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))-> ob_item[1]); Py_INCREF(value2)Py_INCREF(((PyObject*)((value2)))); |
10696 | #endif |
10697 | if (decref_tuple) { |
10698 | Py_DECREF(tuple)Py_DECREF(((PyObject*)((tuple)))); |
10699 | } |
10700 | *pvalue1 = value1; |
10701 | *pvalue2 = value2; |
10702 | return 0; |
10703 | #if CYTHON_COMPILING_IN_PYPY0 |
10704 | bad: |
10705 | Py_XDECREF(value1)Py_XDECREF(((PyObject*)((value1)))); |
10706 | Py_XDECREF(value2)Py_XDECREF(((PyObject*)((value2)))); |
10707 | if (decref_tuple) { Py_XDECREF(tuple)Py_XDECREF(((PyObject*)((tuple)))); } |
10708 | return -1; |
10709 | #endif |
10710 | } |
10711 | static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, |
10712 | int has_known_size, int decref_tuple) { |
10713 | Py_ssize_t index; |
10714 | PyObject *value1 = NULL((void*)0), *value2 = NULL((void*)0), *iter = NULL((void*)0); |
10715 | iternextfunc iternext; |
10716 | iter = PyObject_GetIter(tuple); |
10717 | if (unlikely(!iter)__builtin_expect(!!(!iter), 0)) goto bad; |
10718 | if (decref_tuple) { Py_DECREF(tuple)Py_DECREF(((PyObject*)((tuple)))); tuple = NULL((void*)0); } |
10719 | iternext = __Pyx_PyObject_GetIterNextFunc(iter)(Py_TYPE(((PyObject*)((iter))))->tp_iternext); |
10720 | value1 = iternext(iter); if (unlikely(!value1)__builtin_expect(!!(!value1), 0)) { index = 0; goto unpacking_failed; } |
10721 | value2 = iternext(iter); if (unlikely(!value2)__builtin_expect(!!(!value2), 0)) { index = 1; goto unpacking_failed; } |
10722 | if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))__builtin_expect(!!(__Pyx_IternextUnpackEndCheck(iternext(iter ), 2)), 0)) goto bad; |
10723 | Py_DECREF(iter)Py_DECREF(((PyObject*)((iter)))); |
10724 | *pvalue1 = value1; |
10725 | *pvalue2 = value2; |
10726 | return 0; |
10727 | unpacking_failed: |
10728 | if (!has_known_size && __Pyx_IterFinish() == 0) |
10729 | __Pyx_RaiseNeedMoreValuesError(index); |
10730 | bad: |
10731 | Py_XDECREF(iter)Py_XDECREF(((PyObject*)((iter)))); |
10732 | Py_XDECREF(value1)Py_XDECREF(((PyObject*)((value1)))); |
10733 | Py_XDECREF(value2)Py_XDECREF(((PyObject*)((value2)))); |
10734 | if (decref_tuple) { Py_XDECREF(tuple)Py_XDECREF(((PyObject*)((tuple)))); } |
10735 | return -1; |
10736 | } |
10737 | |
10738 | /* dict_iter */ |
10739 | #if CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION3 >= 3 |
10740 | #include <string.h> |
10741 | #endif |
10742 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, |
10743 | Py_ssize_t* p_orig_length, int* p_source_is_dict) { |
10744 | is_dict = is_dict || likely(PyDict_CheckExact(iterable))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((iterable))), & PyDict_Type)), 1); |
10745 | *p_source_is_dict = is_dict; |
10746 | if (is_dict) { |
10747 | #if !CYTHON_COMPILING_IN_PYPY0 |
10748 | *p_orig_length = PyDict_Size(iterable); |
10749 | Py_INCREF(iterable)Py_INCREF(((PyObject*)((iterable)))); |
10750 | return iterable; |
10751 | #elif PY_MAJOR_VERSION3 >= 3 |
10752 | static PyObject *py_items = NULL((void*)0), *py_keys = NULL((void*)0), *py_values = NULL((void*)0); |
10753 | PyObject **pp = NULL((void*)0); |
10754 | if (method_name) { |
10755 | const char *name = PyUnicode_AsUTF8(method_name); |
10756 | if (strcmp(name, "iteritems") == 0) pp = &py_items; |
10757 | else if (strcmp(name, "iterkeys") == 0) pp = &py_keys; |
10758 | else if (strcmp(name, "itervalues") == 0) pp = &py_values; |
10759 | if (pp) { |
10760 | if (!*pp) { |
10761 | *pp = PyUnicode_FromString(name + 4); |
10762 | if (!*pp) |
10763 | return NULL((void*)0); |
10764 | } |
10765 | method_name = *pp; |
10766 | } |
10767 | } |
10768 | #endif |
10769 | } |
10770 | *p_orig_length = 0; |
10771 | if (method_name) { |
10772 | PyObject* iter; |
10773 | iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); |
10774 | if (!iterable) |
10775 | return NULL((void*)0); |
10776 | #if !CYTHON_COMPILING_IN_PYPY0 |
10777 | if (PyTuple_CheckExact(iterable)Py_IS_TYPE(((PyObject*)((iterable))), &PyTuple_Type) || PyList_CheckExact(iterable)Py_IS_TYPE(((PyObject*)((iterable))), &PyList_Type)) |
10778 | return iterable; |
10779 | #endif |
10780 | iter = PyObject_GetIter(iterable); |
10781 | Py_DECREF(iterable)Py_DECREF(((PyObject*)((iterable)))); |
10782 | return iter; |
10783 | } |
10784 | return PyObject_GetIter(iterable); |
10785 | } |
10786 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_dict_iter_next( |
10787 | PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos, |
10788 | PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) { |
10789 | PyObject* next_item; |
10790 | #if !CYTHON_COMPILING_IN_PYPY0 |
10791 | if (source_is_dict) { |
10792 | PyObject *key, *value; |
10793 | if (unlikely(orig_length != PyDict_Size(iter_obj))__builtin_expect(!!(orig_length != PyDict_Size(iter_obj)), 0)) { |
10794 | PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); |
10795 | return -1; |
10796 | } |
10797 | if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))__builtin_expect(!!(!PyDict_Next(iter_obj, ppos, &key, & value)), 0)) { |
10798 | return 0; |
10799 | } |
10800 | if (pitem) { |
10801 | PyObject* tuple = PyTuple_New(2); |
10802 | if (unlikely(!tuple)__builtin_expect(!!(!tuple), 0)) { |
10803 | return -1; |
10804 | } |
10805 | Py_INCREF(key)Py_INCREF(((PyObject*)((key)))); |
10806 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
10807 | PyTuple_SET_ITEM(tuple, 0, key)PyTuple_SET_ITEM(((PyObject*)((tuple))), 0, ((PyObject*)((key )))); |
10808 | PyTuple_SET_ITEM(tuple, 1, value)PyTuple_SET_ITEM(((PyObject*)((tuple))), 1, ((PyObject*)((value )))); |
10809 | *pitem = tuple; |
10810 | } else { |
10811 | if (pkey) { |
10812 | Py_INCREF(key)Py_INCREF(((PyObject*)((key)))); |
10813 | *pkey = key; |
10814 | } |
10815 | if (pvalue) { |
10816 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
10817 | *pvalue = value; |
10818 | } |
10819 | } |
10820 | return 1; |
10821 | } else if (PyTuple_CheckExact(iter_obj)Py_IS_TYPE(((PyObject*)((iter_obj))), &PyTuple_Type)) { |
10822 | Py_ssize_t pos = *ppos; |
10823 | if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))__builtin_expect(!!(pos >= PyTuple_GET_SIZE(((PyObject*)(( iter_obj))))), 0)) return 0; |
10824 | *ppos = pos + 1; |
10825 | next_item = PyTuple_GET_ITEM(iter_obj, pos)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((iter_obj )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((iter_obj)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(iter_obj)", "abaqusFILReader.c" , 10825, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((iter_obj))))->ob_item[pos]); |
10826 | Py_INCREF(next_item)Py_INCREF(((PyObject*)((next_item)))); |
10827 | } else if (PyList_CheckExact(iter_obj)Py_IS_TYPE(((PyObject*)((iter_obj))), &PyList_Type)) { |
10828 | Py_ssize_t pos = *ppos; |
10829 | if (unlikely(pos >= PyList_GET_SIZE(iter_obj))__builtin_expect(!!(pos >= PyList_GET_SIZE(((PyObject*)((iter_obj ))))), 0)) return 0; |
10830 | *ppos = pos + 1; |
10831 | next_item = PyList_GET_ITEM(iter_obj, pos)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((iter_obj )))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((iter_obj)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(iter_obj)", "abaqusFILReader.c" , 10831, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject *)((iter_obj))))->ob_item[pos]); |
10832 | Py_INCREF(next_item)Py_INCREF(((PyObject*)((next_item)))); |
10833 | } else |
10834 | #endif |
10835 | { |
10836 | next_item = PyIter_Next(iter_obj); |
10837 | if (unlikely(!next_item)__builtin_expect(!!(!next_item), 0)) { |
10838 | return __Pyx_IterFinish(); |
10839 | } |
10840 | } |
10841 | if (pitem) { |
10842 | *pitem = next_item; |
10843 | } else if (pkey && pvalue) { |
10844 | if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)(__builtin_expect(!!(source_is_dict || PyType_HasFeature(Py_TYPE (((PyObject*)((next_item)))), (1UL << 26))), 1) ? (__builtin_expect (!!(source_is_dict || PyTuple_GET_SIZE(((PyObject*)((next_item )))) == 2), 1) ? __Pyx_unpack_tuple2_exact(next_item, pkey, pvalue , 1) : (__Pyx_UnpackTupleError(next_item, 2), -1)) : __Pyx_unpack_tuple2_generic (next_item, pkey, pvalue, source_is_dict, 1))) |
10845 | return -1; |
10846 | } else if (pkey) { |
10847 | *pkey = next_item; |
10848 | } else { |
10849 | *pvalue = next_item; |
10850 | } |
10851 | return 1; |
10852 | } |
10853 | |
10854 | /* PyIntBinop */ |
10855 | #if !CYTHON_COMPILING_IN_PYPY0 |
10856 | static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) { |
10857 | CYTHON_MAYBE_UNUSED_VAR(intval)(void)(intval); |
10858 | CYTHON_MAYBE_UNUSED_VAR(inplace)(void)(inplace); |
10859 | CYTHON_UNUSED_VAR(zerodivision_check)(void)(zerodivision_check); |
10860 | #if PY_MAJOR_VERSION3 < 3 |
10861 | if (likely(PyInt_CheckExact(op1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((op1))), &PyLong_Type )), 1)) { |
10862 | const long b = intval; |
10863 | long x; |
10864 | long a = PyInt_AS_LONG(op1)PyLong_AsLong(op1); |
10865 | |
10866 | x = (long)((unsigned long)a + (unsigned long)b); |
10867 | if (likely((x^a) >= 0 || (x^b) >= 0)__builtin_expect(!!((x^a) >= 0 || (x^b) >= 0), 1)) |
10868 | return PyInt_FromLongPyLong_FromLong(x); |
10869 | return PyLong_Type.tp_as_number->nb_add(op1, op2); |
10870 | } |
10871 | #endif |
10872 | #if CYTHON_USE_PYLONG_INTERNALS1 |
10873 | if (likely(PyLong_CheckExact(op1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((op1))), &PyLong_Type )), 1)) { |
10874 | const long b = intval; |
10875 | long a, x; |
10876 | #ifdef HAVE_LONG_LONG1 |
10877 | const PY_LONG_LONGlong long llb = intval; |
10878 | PY_LONG_LONGlong long lla, llx; |
10879 | #endif |
10880 | if (unlikely(__Pyx_PyLong_IsZero(op1))__builtin_expect(!!((Py_SIZE(((PyObject*)((op1)))) == 0)), 0)) { |
10881 | return __Pyx_NewRef(op2)(Py_INCREF(((PyObject*)((op2)))), op2); |
10882 | } |
10883 | if (likely(__Pyx_PyLong_IsCompact(op1))__builtin_expect(!!((Py_SIZE(((PyObject*)((op1)))) == 0 || Py_SIZE (((PyObject*)((op1)))) == 1 || Py_SIZE(((PyObject*)((op1)))) == -1)), 1)) { |
10884 | a = __Pyx_PyLong_CompactValue(op1)((Py_SIZE(((PyObject*)((op1)))) == 0) ? (sdigit) 0 : ((Py_SIZE (((PyObject*)((op1)))) < 0) ? -(sdigit)(((PyLongObject*)op1 )->ob_digit)[0] : (sdigit)(((PyLongObject*)op1)->ob_digit )[0])); |
10885 | } else { |
10886 | const digit* digits = __Pyx_PyLong_Digits(op1)(((PyLongObject*)op1)->ob_digit); |
10887 | const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1)Py_SIZE(((PyObject*)((op1)))); |
10888 | switch (size) { |
10889 | case -2: |
10890 | if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30) { |
10891 | a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0])); |
10892 | break; |
10893 | #ifdef HAVE_LONG_LONG1 |
10894 | } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 2 * PyLong_SHIFT30) { |
10895 | lla = -(PY_LONG_LONGlong long) (((((unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0])); |
10896 | goto long_long; |
10897 | #endif |
10898 | } |
10899 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
10900 | case 2: |
10901 | if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30) { |
10902 | a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0])); |
10903 | break; |
10904 | #ifdef HAVE_LONG_LONG1 |
10905 | } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 2 * PyLong_SHIFT30) { |
10906 | lla = (PY_LONG_LONGlong long) (((((unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0])); |
10907 | goto long_long; |
10908 | #endif |
10909 | } |
10910 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
10911 | case -3: |
10912 | if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30) { |
10913 | a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0])); |
10914 | break; |
10915 | #ifdef HAVE_LONG_LONG1 |
10916 | } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 3 * PyLong_SHIFT30) { |
10917 | lla = -(PY_LONG_LONGlong long) (((((((unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0])); |
10918 | goto long_long; |
10919 | #endif |
10920 | } |
10921 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
10922 | case 3: |
10923 | if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30) { |
10924 | a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0])); |
10925 | break; |
10926 | #ifdef HAVE_LONG_LONG1 |
10927 | } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 3 * PyLong_SHIFT30) { |
10928 | lla = (PY_LONG_LONGlong long) (((((((unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0])); |
10929 | goto long_long; |
10930 | #endif |
10931 | } |
10932 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
10933 | case -4: |
10934 | if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30) { |
10935 | a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT30) | (unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0])); |
10936 | break; |
10937 | #ifdef HAVE_LONG_LONG1 |
10938 | } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 4 * PyLong_SHIFT30) { |
10939 | lla = -(PY_LONG_LONGlong long) (((((((((unsigned PY_LONG_LONGlong long)digits[3]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0])); |
10940 | goto long_long; |
10941 | #endif |
10942 | } |
10943 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
10944 | case 4: |
10945 | if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30) { |
10946 | a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT30) | (unsigned long)digits[2]) << PyLong_SHIFT30) | (unsigned long)digits[1]) << PyLong_SHIFT30) | (unsigned long)digits[0])); |
10947 | break; |
10948 | #ifdef HAVE_LONG_LONG1 |
10949 | } else if (8 * sizeof(PY_LONG_LONGlong long) - 1 > 4 * PyLong_SHIFT30) { |
10950 | lla = (PY_LONG_LONGlong long) (((((((((unsigned PY_LONG_LONGlong long)digits[3]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[2]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[1]) << PyLong_SHIFT30) | (unsigned PY_LONG_LONGlong long)digits[0])); |
10951 | goto long_long; |
10952 | #endif |
10953 | } |
10954 | CYTHON_FALLTHROUGH__attribute__((fallthrough)); |
10955 | default: return PyLong_Type.tp_as_number->nb_add(op1, op2); |
10956 | } |
10957 | } |
10958 | x = a + b; |
10959 | return PyLong_FromLong(x); |
10960 | #ifdef HAVE_LONG_LONG1 |
10961 | long_long: |
10962 | llx = lla + llb; |
10963 | return PyLong_FromLongLong(llx); |
10964 | #endif |
10965 | |
10966 | |
10967 | } |
10968 | #endif |
10969 | if (PyFloat_CheckExact(op1)Py_IS_TYPE(((PyObject*)((op1))), &PyFloat_Type)) { |
10970 | const long b = intval; |
10971 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
10972 | double a = __pyx_PyFloat_AsDouble(op1)(Py_IS_TYPE(((PyObject*)((op1))), &PyFloat_Type) ? (((PyFloatObject *)(op1))->ob_fval) : PyFloat_AsDouble(op1)); |
10973 | #else |
10974 | double a = PyFloat_AS_DOUBLE(op1)(((PyFloatObject *)(op1))->ob_fval); |
10975 | #endif |
10976 | double result; |
10977 | |
10978 | PyFPE_START_PROTECT("add", return NULL) |
10979 | result = ((double)a) + (double)b; |
10980 | PyFPE_END_PROTECT(result) |
10981 | return PyFloat_FromDouble(result); |
10982 | } |
10983 | return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); |
10984 | } |
10985 | #endif |
10986 | |
10987 | /* pybytes_as_double */ |
10988 | static double __Pyx_SlowPyString_AsDouble(PyObject *obj) { |
10989 | PyObject *float_value; |
10990 | #if PY_MAJOR_VERSION3 >= 3 |
10991 | float_value = PyFloat_FromString(obj); |
10992 | #else |
10993 | float_value = PyFloat_FromString(obj, 0); |
10994 | #endif |
10995 | if (likely(float_value)__builtin_expect(!!(float_value), 1)) { |
10996 | double value = PyFloat_AS_DOUBLE(float_value)(((PyFloatObject *)(float_value))->ob_fval); |
10997 | Py_DECREF(float_value)Py_DECREF(((PyObject*)((float_value)))); |
10998 | return value; |
10999 | } |
11000 | return (double)-1; |
11001 | } |
11002 | static const char* __Pyx__PyBytes_AsDouble_Copy(const char* start, char* buffer, Py_ssize_t length) { |
11003 | int last_was_punctuation = 1; |
11004 | Py_ssize_t i; |
11005 | for (i=0; i < length; i++) { |
11006 | char chr = start[i]; |
11007 | int is_punctuation = (chr == '_') | (chr == '.') | (chr == 'e') | (chr == 'E'); |
11008 | *buffer = chr; |
11009 | buffer += (chr != '_'); |
11010 | if (unlikely(last_was_punctuation & is_punctuation)__builtin_expect(!!(last_was_punctuation & is_punctuation ), 0)) goto parse_failure; |
11011 | last_was_punctuation = is_punctuation; |
11012 | } |
11013 | if (unlikely(last_was_punctuation)__builtin_expect(!!(last_was_punctuation), 0)) goto parse_failure; |
11014 | *buffer = '\0'; |
11015 | return buffer; |
11016 | parse_failure: |
11017 | return NULL((void*)0); |
11018 | } |
11019 | static double __Pyx__PyBytes_AsDouble_inf_nan(const char* start, Py_ssize_t length) { |
11020 | int matches = 1; |
11021 | char sign = start[0]; |
11022 | int is_signed = (sign == '+') | (sign == '-'); |
11023 | start += is_signed; |
11024 | length -= is_signed; |
11025 | switch (start[0]) { |
11026 | #ifdef Py_NAN(__builtin_nan("")) |
11027 | case 'n': |
11028 | case 'N': |
11029 | if (unlikely(length != 3)__builtin_expect(!!(length != 3), 0)) goto parse_failure; |
11030 | matches &= (start[1] == 'a' || start[1] == 'A'); |
11031 | matches &= (start[2] == 'n' || start[2] == 'N'); |
11032 | if (unlikely(!matches)__builtin_expect(!!(!matches), 0)) goto parse_failure; |
11033 | return (sign == '-') ? -Py_NAN(__builtin_nan("")) : Py_NAN(__builtin_nan("")); |
11034 | #endif |
11035 | case 'i': |
11036 | case 'I': |
11037 | if (unlikely(length < 3)__builtin_expect(!!(length < 3), 0)) goto parse_failure; |
11038 | matches &= (start[1] == 'n' || start[1] == 'N'); |
11039 | matches &= (start[2] == 'f' || start[2] == 'F'); |
11040 | if (likely(length == 3 && matches)__builtin_expect(!!(length == 3 && matches), 1)) |
11041 | return (sign == '-') ? -Py_HUGE_VAL(__builtin_huge_val ()) : Py_HUGE_VAL(__builtin_huge_val ()); |
11042 | if (unlikely(length != 8)__builtin_expect(!!(length != 8), 0)) goto parse_failure; |
11043 | matches &= (start[3] == 'i' || start[3] == 'I'); |
11044 | matches &= (start[4] == 'n' || start[4] == 'N'); |
11045 | matches &= (start[5] == 'i' || start[5] == 'I'); |
11046 | matches &= (start[6] == 't' || start[6] == 'T'); |
11047 | matches &= (start[7] == 'y' || start[7] == 'Y'); |
11048 | if (unlikely(!matches)__builtin_expect(!!(!matches), 0)) goto parse_failure; |
11049 | return (sign == '-') ? -Py_HUGE_VAL(__builtin_huge_val ()) : Py_HUGE_VAL(__builtin_huge_val ()); |
11050 | case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': |
11051 | break; |
11052 | default: |
11053 | goto parse_failure; |
11054 | } |
11055 | return 0.0; |
11056 | parse_failure: |
11057 | return -1.0; |
11058 | } |
11059 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__PyBytes_AsDouble_IsSpace(char ch) { |
11060 | return (ch == 0x20) | !((ch < 0x9) | (ch > 0xd)); |
11061 | } |
11062 | CYTHON_UNUSED__attribute__ ((__unused__)) static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length) { |
11063 | double value; |
11064 | Py_ssize_t i, digits; |
11065 | const char *last = start + length; |
11066 | char *end; |
11067 | while (__Pyx__PyBytes_AsDouble_IsSpace(*start)) |
11068 | start++; |
11069 | while (start < last - 1 && __Pyx__PyBytes_AsDouble_IsSpace(last[-1])) |
11070 | last--; |
11071 | length = last - start; |
11072 | if (unlikely(length <= 0)__builtin_expect(!!(length <= 0), 0)) goto fallback; |
11073 | value = __Pyx__PyBytes_AsDouble_inf_nan(start, length); |
11074 | if (unlikely(value == -1.0)__builtin_expect(!!(value == -1.0), 0)) goto fallback; |
11075 | if (value != 0.0) return value; |
11076 | digits = 0; |
11077 | for (i=0; i < length; digits += start[i++] != '_'); |
11078 | if (likely(digits == length)__builtin_expect(!!(digits == length), 1)) { |
11079 | value = PyOS_string_to_double(start, &end, NULL((void*)0)); |
11080 | } else if (digits < 40) { |
11081 | char number[40]; |
11082 | last = __Pyx__PyBytes_AsDouble_Copy(start, number, length); |
11083 | if (unlikely(!last)__builtin_expect(!!(!last), 0)) goto fallback; |
11084 | value = PyOS_string_to_double(number, &end, NULL((void*)0)); |
11085 | } else { |
11086 | char *number = (char*) PyMem_Malloc((digits + 1) * sizeof(char)); |
11087 | if (unlikely(!number)__builtin_expect(!!(!number), 0)) goto fallback; |
11088 | last = __Pyx__PyBytes_AsDouble_Copy(start, number, length); |
11089 | if (unlikely(!last)__builtin_expect(!!(!last), 0)) { |
11090 | PyMem_Free(number); |
11091 | goto fallback; |
11092 | } |
11093 | value = PyOS_string_to_double(number, &end, NULL((void*)0)); |
11094 | PyMem_Free(number); |
11095 | } |
11096 | if (likely(end == last)__builtin_expect(!!(end == last), 1) || (value == (double)-1 && PyErr_Occurred())) { |
11097 | return value; |
11098 | } |
11099 | fallback: |
11100 | return __Pyx_SlowPyString_AsDouble(obj); |
11101 | } |
11102 | |
11103 | /* pyobject_as_double */ |
11104 | static double __Pyx__PyObject_AsDouble(PyObject* obj) { |
11105 | if (PyUnicode_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type)) { |
11106 | return __Pyx_PyUnicode_AsDouble(obj); |
11107 | } else if (PyBytes_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyBytes_Type)) { |
11108 | return __Pyx_PyBytes_AsDouble(obj); |
11109 | } else if (PyByteArray_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyByteArray_Type)) { |
11110 | return __Pyx_PyByteArray_AsDouble(obj); |
11111 | } else { |
11112 | PyObject* float_value; |
11113 | #if !CYTHON_USE_TYPE_SLOTS1 |
11114 | float_value = PyNumber_Float(obj); if ((0)) goto bad; |
11115 | (void)__Pyx_PyObject_CallOneArg; |
11116 | #else |
11117 | PyNumberMethods *nb = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_as_number; |
11118 | if (likely(nb)__builtin_expect(!!(nb), 1) && likely(nb->nb_float)__builtin_expect(!!(nb->nb_float), 1)) { |
11119 | float_value = nb->nb_float(obj); |
11120 | if (likely(float_value)__builtin_expect(!!(float_value), 1) && unlikely(!PyFloat_Check(float_value))__builtin_expect(!!(!PyObject_TypeCheck(((PyObject*)((float_value ))), &PyFloat_Type)), 0)) { |
11121 | __Pyx_TypeName float_value_type_name = __Pyx_PyType_GetName(Py_TYPE(float_value))((Py_TYPE(((PyObject*)((float_value)))))->tp_name); |
11122 | PyErr_Format(PyExc_TypeError, |
11123 | "__float__ returned non-float (type " __Pyx_FMT_TYPENAME"%.200s" ")", |
11124 | float_value_type_name); |
11125 | __Pyx_DECREF_TypeName(float_value_type_name); |
11126 | Py_DECREF(float_value)Py_DECREF(((PyObject*)((float_value)))); |
11127 | goto bad; |
11128 | } |
11129 | } else { |
11130 | float_value = __Pyx_PyObject_CallOneArg((PyObject*)&PyFloat_Type, obj); |
11131 | } |
11132 | #endif |
11133 | if (likely(float_value)__builtin_expect(!!(float_value), 1)) { |
11134 | double value = PyFloat_AS_DOUBLE(float_value)(((PyFloatObject *)(float_value))->ob_fval); |
11135 | Py_DECREF(float_value)Py_DECREF(((PyObject*)((float_value)))); |
11136 | return value; |
11137 | } |
11138 | } |
11139 | bad: |
11140 | return (double)-1; |
11141 | } |
11142 | |
11143 | /* GetItemInt */ |
11144 | static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { |
11145 | PyObject *r; |
11146 | if (unlikely(!j)__builtin_expect(!!(!j), 0)) return NULL((void*)0); |
11147 | r = PyObject_GetItem(o, j); |
11148 | Py_DECREF(j)Py_DECREF(((PyObject*)((j)))); |
11149 | return r; |
11150 | } |
11151 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, |
11152 | CYTHON_NCP_UNUSED int wraparound, |
11153 | CYTHON_NCP_UNUSED int boundscheck) { |
11154 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
11155 | Py_ssize_t wrapped_i = i; |
11156 | if (wraparound & unlikely(i < 0)__builtin_expect(!!(i < 0), 0)) { |
11157 | wrapped_i += PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o)))); |
11158 | } |
11159 | if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE (((PyObject*)((o)))))), 1)) { |
11160 | PyObject *r = PyList_GET_ITEM(o, wrapped_i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o) ))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((o)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(o)", "abaqusFILReader.c", 11160, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject*)((o))))->ob_item [wrapped_i]); |
11161 | Py_INCREF(r)Py_INCREF(((PyObject*)((r)))); |
11162 | return r; |
11163 | } |
11164 | return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_tPyLong_FromSsize_t(i)); |
11165 | #else |
11166 | return PySequence_GetItem(o, i); |
11167 | #endif |
11168 | } |
11169 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, |
11170 | CYTHON_NCP_UNUSED int wraparound, |
11171 | CYTHON_NCP_UNUSED int boundscheck) { |
11172 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
11173 | Py_ssize_t wrapped_i = i; |
11174 | if (wraparound & unlikely(i < 0)__builtin_expect(!!(i < 0), 0)) { |
11175 | wrapped_i += PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o)))); |
11176 | } |
11177 | if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE (((PyObject*)((o)))))), 1)) { |
11178 | PyObject *r = PyTuple_GET_ITEM(o, wrapped_i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o) ))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((o)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(o)", "abaqusFILReader.c", 11178, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((o))))->ob_item [wrapped_i]); |
11179 | Py_INCREF(r)Py_INCREF(((PyObject*)((r)))); |
11180 | return r; |
11181 | } |
11182 | return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_tPyLong_FromSsize_t(i)); |
11183 | #else |
11184 | return PySequence_GetItem(o, i); |
11185 | #endif |
11186 | } |
11187 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, |
11188 | CYTHON_NCP_UNUSED int wraparound, |
11189 | CYTHON_NCP_UNUSED int boundscheck) { |
11190 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 && CYTHON_USE_TYPE_SLOTS1 |
11191 | if (is_list || PyList_CheckExact(o)Py_IS_TYPE(((PyObject*)((o))), &PyList_Type)) { |
11192 | Py_ssize_t n = ((!wraparound) | likely(i >= 0)__builtin_expect(!!(i >= 0), 1)) ? i : i + PyList_GET_SIZE(o)PyList_GET_SIZE(((PyObject*)((o)))); |
11193 | if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(n, PyList_GET_SIZE(( (PyObject*)((o)))))), 1))) { |
11194 | PyObject *r = PyList_GET_ITEM(o, n)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o) ))), (1UL << 25))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((o)))), (1UL << 25))) ; else __assert_fail ("PyList_Check(o)", "abaqusFILReader.c", 11194, __extension__ __PRETTY_FUNCTION__); })), ((PyListObject*)((o))))->ob_item [n]); |
11195 | Py_INCREF(r)Py_INCREF(((PyObject*)((r)))); |
11196 | return r; |
11197 | } |
11198 | } |
11199 | else if (PyTuple_CheckExact(o)Py_IS_TYPE(((PyObject*)((o))), &PyTuple_Type)) { |
11200 | Py_ssize_t n = ((!wraparound) | likely(i >= 0)__builtin_expect(!!(i >= 0), 1)) ? i : i + PyTuple_GET_SIZE(o)PyTuple_GET_SIZE(((PyObject*)((o)))); |
11201 | if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))__builtin_expect(!!(__Pyx_is_valid_index(n, PyTuple_GET_SIZE( ((PyObject*)((o)))))), 1)) { |
11202 | PyObject *r = PyTuple_GET_ITEM(o, n)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((o) ))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((o)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(o)", "abaqusFILReader.c", 11202, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((o))))->ob_item [n]); |
11203 | Py_INCREF(r)Py_INCREF(((PyObject*)((r)))); |
11204 | return r; |
11205 | } |
11206 | } else { |
11207 | PyMappingMethods *mm = Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_as_mapping; |
11208 | PySequenceMethods *sm = Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_as_sequence; |
11209 | if (mm && mm->mp_subscript) { |
11210 | PyObject *r, *key = PyInt_FromSsize_tPyLong_FromSsize_t(i); |
11211 | if (unlikely(!key)__builtin_expect(!!(!key), 0)) return NULL((void*)0); |
11212 | r = mm->mp_subscript(o, key); |
11213 | Py_DECREF(key)Py_DECREF(((PyObject*)((key)))); |
11214 | return r; |
11215 | } |
11216 | if (likely(sm && sm->sq_item)__builtin_expect(!!(sm && sm->sq_item), 1)) { |
11217 | if (wraparound && unlikely(i < 0)__builtin_expect(!!(i < 0), 0) && likely(sm->sq_length)__builtin_expect(!!(sm->sq_length), 1)) { |
11218 | Py_ssize_t l = sm->sq_length(o); |
11219 | if (likely(l >= 0)__builtin_expect(!!(l >= 0), 1)) { |
11220 | i += l; |
11221 | } else { |
11222 | if (!PyErr_ExceptionMatches(PyExc_OverflowError)) |
11223 | return NULL((void*)0); |
11224 | PyErr_Clear(); |
11225 | } |
11226 | } |
11227 | return sm->sq_item(o, i); |
11228 | } |
11229 | } |
11230 | #else |
11231 | if (is_list || PySequence_Check(o)) { |
11232 | return PySequence_GetItem(o, i); |
11233 | } |
11234 | #endif |
11235 | return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_tPyLong_FromSsize_t(i)); |
11236 | } |
11237 | |
11238 | /* ObjectGetItem */ |
11239 | #if CYTHON_USE_TYPE_SLOTS1 |
11240 | static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) { |
11241 | PyObject *runerr = NULL((void*)0); |
11242 | Py_ssize_t key_value; |
11243 | key_value = __Pyx_PyIndex_AsSsize_t(index); |
11244 | if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))__builtin_expect(!!(key_value != -1 || !(runerr = PyErr_Occurred ())), 1)) { |
11245 | return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1); |
11246 | } |
11247 | if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) { |
11248 | __Pyx_TypeName index_type_name = __Pyx_PyType_GetName(Py_TYPE(index))((Py_TYPE(((PyObject*)((index)))))->tp_name); |
11249 | PyErr_Clear(); |
11250 | PyErr_Format(PyExc_IndexError, |
11251 | "cannot fit '" __Pyx_FMT_TYPENAME"%.200s" "' into an index-sized integer", index_type_name); |
11252 | __Pyx_DECREF_TypeName(index_type_name); |
11253 | } |
11254 | return NULL((void*)0); |
11255 | } |
11256 | static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) { |
11257 | __Pyx_TypeName obj_type_name; |
11258 | if (likely(PyType_Check(obj))__builtin_expect(!!(PyType_Check(((PyObject*)((obj))))), 1)) { |
11259 | PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_n_s_class_getitem__pyx_mstate_global->__pyx_n_s_class_getitem); |
11260 | if (!meth) { |
11261 | PyErr_Clear(); |
11262 | } else { |
11263 | PyObject *result = __Pyx_PyObject_CallOneArg(meth, key); |
11264 | Py_DECREF(meth)Py_DECREF(((PyObject*)((meth)))); |
11265 | return result; |
11266 | } |
11267 | } |
11268 | obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj))((Py_TYPE(((PyObject*)((obj)))))->tp_name); |
11269 | PyErr_Format(PyExc_TypeError, |
11270 | "'" __Pyx_FMT_TYPENAME"%.200s" "' object is not subscriptable", obj_type_name); |
11271 | __Pyx_DECREF_TypeName(obj_type_name); |
11272 | return NULL((void*)0); |
11273 | } |
11274 | static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) { |
11275 | PyTypeObject *tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))); |
11276 | PyMappingMethods *mm = tp->tp_as_mapping; |
11277 | PySequenceMethods *sm = tp->tp_as_sequence; |
11278 | if (likely(mm && mm->mp_subscript)__builtin_expect(!!(mm && mm->mp_subscript), 1)) { |
11279 | return mm->mp_subscript(obj, key); |
11280 | } |
11281 | if (likely(sm && sm->sq_item)__builtin_expect(!!(sm && sm->sq_item), 1)) { |
11282 | return __Pyx_PyObject_GetIndex(obj, key); |
11283 | } |
11284 | return __Pyx_PyObject_GetItem_Slow(obj, key); |
11285 | } |
11286 | #endif |
11287 | |
11288 | /* PyIntCompare */ |
11289 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyInt_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace) { |
11290 | CYTHON_MAYBE_UNUSED_VAR(intval)(void)(intval); |
11291 | CYTHON_UNUSED_VAR(inplace)(void)(inplace); |
11292 | if (op1 == op2) { |
11293 | return 1; |
11294 | } |
11295 | #if PY_MAJOR_VERSION3 < 3 |
11296 | if (likely(PyInt_CheckExact(op1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((op1))), &PyLong_Type )), 1)) { |
11297 | const long b = intval; |
11298 | long a = PyInt_AS_LONG(op1)PyLong_AsLong(op1); |
11299 | return (a == b); |
11300 | } |
11301 | #endif |
11302 | #if CYTHON_USE_PYLONG_INTERNALS1 |
11303 | if (likely(PyLong_CheckExact(op1))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((op1))), &PyLong_Type )), 1)) { |
11304 | int unequal; |
11305 | unsigned long uintval; |
11306 | Py_ssize_t size = __Pyx_PyLong_DigitCount(op1)labs(Py_SIZE(((PyObject*)((op1))))); |
11307 | const digit* digits = __Pyx_PyLong_Digits(op1)(((PyLongObject*)op1)->ob_digit); |
11308 | if (intval == 0) { |
11309 | return (__Pyx_PyLong_IsZero(op1)(Py_SIZE(((PyObject*)((op1)))) == 0) == 1); |
11310 | } else if (intval < 0) { |
11311 | if (__Pyx_PyLong_IsNonNeg(op1)(Py_SIZE(((PyObject*)((op1)))) >= 0)) |
11312 | return 0; |
11313 | intval = -intval; |
11314 | } else { |
11315 | if (__Pyx_PyLong_IsNeg(op1)(Py_SIZE(((PyObject*)((op1)))) < 0)) |
11316 | return 0; |
11317 | } |
11318 | uintval = (unsigned long) intval; |
11319 | #if PyLong_SHIFT30 * 4 < SIZEOF_LONG8*8 |
11320 | if (uintval >> (PyLong_SHIFT30 * 4)) { |
11321 | unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) |
11322 | | (digits[1] != ((uintval >> (1 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))); |
11323 | } else |
11324 | #endif |
11325 | #if PyLong_SHIFT30 * 3 < SIZEOF_LONG8*8 |
11326 | if (uintval >> (PyLong_SHIFT30 * 3)) { |
11327 | unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) |
11328 | | (digits[1] != ((uintval >> (1 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))); |
11329 | } else |
11330 | #endif |
11331 | #if PyLong_SHIFT30 * 2 < SIZEOF_LONG8*8 |
11332 | if (uintval >> (PyLong_SHIFT30 * 2)) { |
11333 | unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) |
11334 | | (digits[1] != ((uintval >> (1 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))); |
11335 | } else |
11336 | #endif |
11337 | #if PyLong_SHIFT30 * 1 < SIZEOF_LONG8*8 |
11338 | if (uintval >> (PyLong_SHIFT30 * 1)) { |
11339 | unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))) |
11340 | | (digits[1] != ((uintval >> (1 * PyLong_SHIFT30)) & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))); |
11341 | } else |
11342 | #endif |
11343 | unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK((digit)(((digit)1 << 30) - 1)))); |
11344 | return (unequal == 0); |
11345 | } |
11346 | #endif |
11347 | if (PyFloat_CheckExact(op1)Py_IS_TYPE(((PyObject*)((op1))), &PyFloat_Type)) { |
11348 | const long b = intval; |
11349 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
11350 | double a = __pyx_PyFloat_AsDouble(op1)(Py_IS_TYPE(((PyObject*)((op1))), &PyFloat_Type) ? (((PyFloatObject *)(op1))->ob_fval) : PyFloat_AsDouble(op1)); |
11351 | #else |
11352 | double a = PyFloat_AS_DOUBLE(op1)(((PyFloatObject *)(op1))->ob_fval); |
11353 | #endif |
11354 | return ((double)a == (double)b); |
11355 | } |
11356 | return __Pyx_PyObject_IsTrueAndDecref( |
11357 | PyObject_RichCompare(op1, op2, Py_EQ2)); |
11358 | } |
11359 | |
11360 | /* SliceObject */ |
11361 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GetSlice(PyObject* obj, |
11362 | Py_ssize_t cstart, Py_ssize_t cstop, |
11363 | PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, |
11364 | int has_cstart, int has_cstop, int wraparound) { |
11365 | __Pyx_TypeName obj_type_name; |
11366 | #if CYTHON_USE_TYPE_SLOTS1 |
11367 | PyMappingMethods* mp; |
11368 | #if PY_MAJOR_VERSION3 < 3 |
11369 | PySequenceMethods* ms = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_as_sequence; |
11370 | if (likely(ms && ms->sq_slice)__builtin_expect(!!(ms && ms->sq_slice), 1)) { |
11371 | if (!has_cstart) { |
11372 | if (_py_start && (*_py_start != Py_None(&_Py_NoneStruct))) { |
11373 | cstart = __Pyx_PyIndex_AsSsize_t(*_py_start); |
11374 | if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; |
11375 | } else |
11376 | cstart = 0; |
11377 | } |
11378 | if (!has_cstop) { |
11379 | if (_py_stop && (*_py_stop != Py_None(&_Py_NoneStruct))) { |
11380 | cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop); |
11381 | if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; |
11382 | } else |
11383 | cstop = PY_SSIZE_T_MAX9223372036854775807L; |
11384 | } |
11385 | if (wraparound && unlikely((cstart < 0) | (cstop < 0))__builtin_expect(!!((cstart < 0) | (cstop < 0)), 0) && likely(ms->sq_length)__builtin_expect(!!(ms->sq_length), 1)) { |
11386 | Py_ssize_t l = ms->sq_length(obj); |
11387 | if (likely(l >= 0)__builtin_expect(!!(l >= 0), 1)) { |
11388 | if (cstop < 0) { |
11389 | cstop += l; |
11390 | if (cstop < 0) cstop = 0; |
11391 | } |
11392 | if (cstart < 0) { |
11393 | cstart += l; |
11394 | if (cstart < 0) cstart = 0; |
11395 | } |
11396 | } else { |
11397 | if (!PyErr_ExceptionMatches(PyExc_OverflowError)) |
11398 | goto bad; |
11399 | PyErr_Clear(); |
11400 | } |
11401 | } |
11402 | return ms->sq_slice(obj, cstart, cstop); |
11403 | } |
11404 | #else |
11405 | CYTHON_UNUSED_VAR(wraparound)(void)(wraparound); |
11406 | #endif |
11407 | mp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj))))->tp_as_mapping; |
11408 | if (likely(mp && mp->mp_subscript)__builtin_expect(!!(mp && mp->mp_subscript), 1)) |
11409 | #else |
11410 | CYTHON_UNUSED_VAR(wraparound)(void)(wraparound); |
11411 | #endif |
11412 | { |
11413 | PyObject* result; |
11414 | PyObject *py_slice, *py_start, *py_stop; |
11415 | if (_py_slice) { |
11416 | py_slice = *_py_slice; |
11417 | } else { |
11418 | PyObject* owned_start = NULL((void*)0); |
11419 | PyObject* owned_stop = NULL((void*)0); |
11420 | if (_py_start) { |
11421 | py_start = *_py_start; |
11422 | } else { |
11423 | if (has_cstart) { |
11424 | owned_start = py_start = PyInt_FromSsize_tPyLong_FromSsize_t(cstart); |
11425 | if (unlikely(!py_start)__builtin_expect(!!(!py_start), 0)) goto bad; |
11426 | } else |
11427 | py_start = Py_None(&_Py_NoneStruct); |
11428 | } |
11429 | if (_py_stop) { |
11430 | py_stop = *_py_stop; |
11431 | } else { |
11432 | if (has_cstop) { |
11433 | owned_stop = py_stop = PyInt_FromSsize_tPyLong_FromSsize_t(cstop); |
11434 | if (unlikely(!py_stop)__builtin_expect(!!(!py_stop), 0)) { |
11435 | Py_XDECREF(owned_start)Py_XDECREF(((PyObject*)((owned_start)))); |
11436 | goto bad; |
11437 | } |
11438 | } else |
11439 | py_stop = Py_None(&_Py_NoneStruct); |
11440 | } |
11441 | py_slice = PySlice_New(py_start, py_stop, Py_None(&_Py_NoneStruct)); |
11442 | Py_XDECREF(owned_start)Py_XDECREF(((PyObject*)((owned_start)))); |
11443 | Py_XDECREF(owned_stop)Py_XDECREF(((PyObject*)((owned_stop)))); |
11444 | if (unlikely(!py_slice)__builtin_expect(!!(!py_slice), 0)) goto bad; |
11445 | } |
11446 | #if CYTHON_USE_TYPE_SLOTS1 |
11447 | result = mp->mp_subscript(obj, py_slice); |
11448 | #else |
11449 | result = PyObject_GetItem(obj, py_slice); |
11450 | #endif |
11451 | if (!_py_slice) { |
11452 | Py_DECREF(py_slice)Py_DECREF(((PyObject*)((py_slice)))); |
11453 | } |
11454 | return result; |
11455 | } |
11456 | obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj))((Py_TYPE(((PyObject*)((obj)))))->tp_name); |
11457 | PyErr_Format(PyExc_TypeError, |
11458 | "'" __Pyx_FMT_TYPENAME"%.200s" "' object is unsliceable", obj_type_name); |
11459 | __Pyx_DECREF_TypeName(obj_type_name); |
11460 | bad: |
11461 | return NULL((void*)0); |
11462 | } |
11463 | |
11464 | /* DictGetItem */ |
11465 | #if PY_MAJOR_VERSION3 >= 3 && !CYTHON_COMPILING_IN_PYPY0 |
11466 | static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { |
11467 | PyObject *value; |
11468 | value = PyDict_GetItemWithError(d, key); |
11469 | if (unlikely(!value)__builtin_expect(!!(!value), 0)) { |
11470 | if (!PyErr_Occurred()) { |
11471 | if (unlikely(PyTuple_Check(key))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((key )))), (1UL << 26))), 0)) { |
11472 | PyObject* args = PyTuple_Pack(1, key); |
11473 | if (likely(args)__builtin_expect(!!(args), 1)) { |
11474 | PyErr_SetObject(PyExc_KeyError, args); |
11475 | Py_DECREF(args)Py_DECREF(((PyObject*)((args)))); |
11476 | } |
11477 | } else { |
11478 | PyErr_SetObject(PyExc_KeyError, key); |
11479 | } |
11480 | } |
11481 | return NULL((void*)0); |
11482 | } |
11483 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
11484 | return value; |
11485 | } |
11486 | #endif |
11487 | |
11488 | /* PyObjectLookupSpecial */ |
11489 | #if CYTHON_USE_PYTYPE_LOOKUP1 && CYTHON_USE_TYPE_SLOTS1 |
11490 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) { |
11491 | PyObject *res; |
11492 | PyTypeObject *tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))); |
11493 | #if PY_MAJOR_VERSION3 < 3 |
11494 | if (unlikely(PyInstance_Check(obj))__builtin_expect(!!(PyInstance_Check(obj)), 0)) |
11495 | return with_error ? __Pyx_PyObject_GetAttrStr(obj, attr_name) : __Pyx_PyObject_GetAttrStrNoError(obj, attr_name); |
11496 | #endif |
11497 | res = _PyType_Lookup(tp, attr_name); |
11498 | if (likely(res)__builtin_expect(!!(res), 1)) { |
11499 | descrgetfunc f = Py_TYPE(res)Py_TYPE(((PyObject*)((res))))->tp_descr_get; |
11500 | if (!f) { |
11501 | Py_INCREF(res)Py_INCREF(((PyObject*)((res)))); |
11502 | } else { |
11503 | res = f(res, obj, (PyObject *)tp); |
11504 | } |
11505 | } else if (with_error) { |
11506 | PyErr_SetObject(PyExc_AttributeError, attr_name); |
11507 | } |
11508 | return res; |
11509 | } |
11510 | #endif |
11511 | |
11512 | /* GetTopmostException */ |
11513 | #if CYTHON_USE_EXC_INFO_STACK1 && CYTHON_FAST_THREAD_STATE1 |
11514 | static _PyErr_StackItem * |
11515 | __Pyx_PyErr_GetTopmostException(PyThreadState *tstate) |
11516 | { |
11517 | _PyErr_StackItem *exc_info = tstate->exc_info; |
11518 | while ((exc_info->exc_value == NULL((void*)0) || exc_info->exc_value == Py_None(&_Py_NoneStruct)) && |
11519 | exc_info->previous_item != NULL((void*)0)) |
11520 | { |
11521 | exc_info = exc_info->previous_item; |
11522 | } |
11523 | return exc_info; |
11524 | } |
11525 | #endif |
11526 | |
11527 | /* SaveResetException */ |
11528 | #if CYTHON_FAST_THREAD_STATE1 |
11529 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { |
11530 | #if CYTHON_USE_EXC_INFO_STACK1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
11531 | _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate); |
11532 | PyObject *exc_value = exc_info->exc_value; |
11533 | if (exc_value == NULL((void*)0) || exc_value == Py_None(&_Py_NoneStruct)) { |
11534 | *value = NULL((void*)0); |
11535 | *type = NULL((void*)0); |
11536 | *tb = NULL((void*)0); |
11537 | } else { |
11538 | *value = exc_value; |
11539 | Py_INCREF(*value)Py_INCREF(((PyObject*)((*value)))); |
11540 | *type = (PyObject*) Py_TYPE(exc_value)Py_TYPE(((PyObject*)((exc_value)))); |
11541 | Py_INCREF(*type)Py_INCREF(((PyObject*)((*type)))); |
11542 | *tb = PyException_GetTraceback(exc_value); |
11543 | } |
11544 | #elif CYTHON_USE_EXC_INFO_STACK1 |
11545 | _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate); |
11546 | *type = exc_info->exc_type; |
11547 | *value = exc_info->exc_value; |
11548 | *tb = exc_info->exc_traceback; |
11549 | Py_XINCREF(*type)Py_XINCREF(((PyObject*)((*type)))); |
11550 | Py_XINCREF(*value)Py_XINCREF(((PyObject*)((*value)))); |
11551 | Py_XINCREF(*tb)Py_XINCREF(((PyObject*)((*tb)))); |
11552 | #else |
11553 | *type = tstate->exc_type; |
11554 | *value = tstate->exc_value; |
11555 | *tb = tstate->exc_traceback; |
11556 | Py_XINCREF(*type)Py_XINCREF(((PyObject*)((*type)))); |
11557 | Py_XINCREF(*value)Py_XINCREF(((PyObject*)((*value)))); |
11558 | Py_XINCREF(*tb)Py_XINCREF(((PyObject*)((*tb)))); |
11559 | #endif |
11560 | } |
11561 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { |
11562 | #if CYTHON_USE_EXC_INFO_STACK1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
11563 | _PyErr_StackItem *exc_info = tstate->exc_info; |
11564 | PyObject *tmp_value = exc_info->exc_value; |
11565 | exc_info->exc_value = value; |
11566 | Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value)))); |
11567 | Py_XDECREF(type)Py_XDECREF(((PyObject*)((type)))); |
11568 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
11569 | #else |
11570 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
11571 | #if CYTHON_USE_EXC_INFO_STACK1 |
11572 | _PyErr_StackItem *exc_info = tstate->exc_info; |
11573 | tmp_type = exc_info->exc_type; |
11574 | tmp_value = exc_info->exc_value; |
11575 | tmp_tb = exc_info->exc_traceback; |
11576 | exc_info->exc_type = type; |
11577 | exc_info->exc_value = value; |
11578 | exc_info->exc_traceback = tb; |
11579 | #else |
11580 | tmp_type = tstate->exc_type; |
11581 | tmp_value = tstate->exc_value; |
11582 | tmp_tb = tstate->exc_traceback; |
11583 | tstate->exc_type = type; |
11584 | tstate->exc_value = value; |
11585 | tstate->exc_traceback = tb; |
11586 | #endif |
11587 | Py_XDECREF(tmp_type)Py_XDECREF(((PyObject*)((tmp_type)))); |
11588 | Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value)))); |
11589 | Py_XDECREF(tmp_tb)Py_XDECREF(((PyObject*)((tmp_tb)))); |
11590 | #endif |
11591 | } |
11592 | #endif |
11593 | |
11594 | /* GetException */ |
11595 | #if CYTHON_FAST_THREAD_STATE1 |
11596 | static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) |
11597 | #else |
11598 | static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)__Pyx__GetException(__pyx_tstate, PyObject **type, PyObject * *value, PyObject **tb) |
11599 | #endif |
11600 | { |
11601 | PyObject *local_type = NULL((void*)0), *local_value, *local_tb = NULL((void*)0); |
11602 | #if CYTHON_FAST_THREAD_STATE1 |
11603 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
11604 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A6 |
11605 | local_value = tstate->current_exception; |
11606 | tstate->current_exception = 0; |
11607 | if (likely(local_value)__builtin_expect(!!(local_value), 1)) { |
11608 | local_type = (PyObject*) Py_TYPE(local_value)Py_TYPE(((PyObject*)((local_value)))); |
11609 | Py_INCREF(local_type)Py_INCREF(((PyObject*)((local_type)))); |
11610 | local_tb = PyException_GetTraceback(local_value); |
11611 | } |
11612 | #else |
11613 | local_type = tstate->curexc_type; |
11614 | local_value = tstate->curexc_value; |
11615 | local_tb = tstate->curexc_traceback; |
11616 | tstate->curexc_type = 0; |
11617 | tstate->curexc_value = 0; |
11618 | tstate->curexc_traceback = 0; |
11619 | #endif |
11620 | #else |
11621 | PyErr_Fetch(&local_type, &local_value, &local_tb); |
11622 | #endif |
11623 | PyErr_NormalizeException(&local_type, &local_value, &local_tb); |
11624 | #if CYTHON_FAST_THREAD_STATE1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A6 |
11625 | if (unlikely(tstate->current_exception)__builtin_expect(!!(tstate->current_exception), 0)) |
11626 | #elif CYTHON_FAST_THREAD_STATE1 |
11627 | if (unlikely(tstate->curexc_type)__builtin_expect(!!(tstate->curexc_type), 0)) |
11628 | #else |
11629 | if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) |
11630 | #endif |
11631 | goto bad; |
11632 | #if PY_MAJOR_VERSION3 >= 3 |
11633 | if (local_tb) { |
11634 | if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)__builtin_expect(!!(PyException_SetTraceback(local_value, local_tb ) < 0), 0)) |
11635 | goto bad; |
11636 | } |
11637 | #endif |
11638 | Py_XINCREF(local_tb)Py_XINCREF(((PyObject*)((local_tb)))); |
11639 | Py_XINCREF(local_type)Py_XINCREF(((PyObject*)((local_type)))); |
11640 | Py_XINCREF(local_value)Py_XINCREF(((PyObject*)((local_value)))); |
11641 | *type = local_type; |
11642 | *value = local_value; |
11643 | *tb = local_tb; |
11644 | #if CYTHON_FAST_THREAD_STATE1 |
11645 | #if CYTHON_USE_EXC_INFO_STACK1 |
11646 | { |
11647 | _PyErr_StackItem *exc_info = tstate->exc_info; |
11648 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
11649 | tmp_value = exc_info->exc_value; |
11650 | exc_info->exc_value = local_value; |
11651 | tmp_type = NULL((void*)0); |
11652 | tmp_tb = NULL((void*)0); |
11653 | Py_XDECREF(local_type)Py_XDECREF(((PyObject*)((local_type)))); |
11654 | Py_XDECREF(local_tb)Py_XDECREF(((PyObject*)((local_tb)))); |
11655 | #else |
11656 | tmp_type = exc_info->exc_type; |
11657 | tmp_value = exc_info->exc_value; |
11658 | tmp_tb = exc_info->exc_traceback; |
11659 | exc_info->exc_type = local_type; |
11660 | exc_info->exc_value = local_value; |
11661 | exc_info->exc_traceback = local_tb; |
11662 | #endif |
11663 | } |
11664 | #else |
11665 | tmp_type = tstate->exc_type; |
11666 | tmp_value = tstate->exc_value; |
11667 | tmp_tb = tstate->exc_traceback; |
11668 | tstate->exc_type = local_type; |
11669 | tstate->exc_value = local_value; |
11670 | tstate->exc_traceback = local_tb; |
11671 | #endif |
11672 | Py_XDECREF(tmp_type)Py_XDECREF(((PyObject*)((tmp_type)))); |
11673 | Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value)))); |
11674 | Py_XDECREF(tmp_tb)Py_XDECREF(((PyObject*)((tmp_tb)))); |
11675 | #else |
11676 | PyErr_SetExcInfo(local_type, local_value, local_tb); |
11677 | #endif |
11678 | return 0; |
11679 | bad: |
11680 | *type = 0; |
11681 | *value = 0; |
11682 | *tb = 0; |
11683 | Py_XDECREF(local_type)Py_XDECREF(((PyObject*)((local_type)))); |
11684 | Py_XDECREF(local_value)Py_XDECREF(((PyObject*)((local_value)))); |
11685 | Py_XDECREF(local_tb)Py_XDECREF(((PyObject*)((local_tb)))); |
11686 | return -1; |
11687 | } |
11688 | |
11689 | /* DelItemInt */ |
11690 | static int __Pyx_DelItem_Generic(PyObject *o, PyObject *j) { |
11691 | int r; |
11692 | if (unlikely(!j)__builtin_expect(!!(!j), 0)) return -1; |
11693 | r = PyObject_DelItem(o, j); |
11694 | Py_DECREF(j)Py_DECREF(((PyObject*)((j)))); |
11695 | return r; |
11696 | } |
11697 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_DelItemInt_Fast(PyObject *o, Py_ssize_t i, |
11698 | int is_list, CYTHON_NCP_UNUSED int wraparound) { |
11699 | #if !CYTHON_USE_TYPE_SLOTS1 |
11700 | if (is_list || PySequence_Check(o)) { |
11701 | return PySequence_DelItem(o, i); |
11702 | } |
11703 | #else |
11704 | PyMappingMethods *mm = Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_as_mapping; |
11705 | PySequenceMethods *sm = Py_TYPE(o)Py_TYPE(((PyObject*)((o))))->tp_as_sequence; |
11706 | if ((!is_list) && mm && mm->mp_ass_subscript) { |
11707 | PyObject *key = PyInt_FromSsize_tPyLong_FromSsize_t(i); |
11708 | return likely(key)__builtin_expect(!!(key), 1) ? mm->mp_ass_subscript(o, key, (PyObject *)NULL((void*)0)) : -1; |
11709 | } |
11710 | if (likely(sm && sm->sq_ass_item)__builtin_expect(!!(sm && sm->sq_ass_item), 1)) { |
11711 | if (wraparound && unlikely(i < 0)__builtin_expect(!!(i < 0), 0) && likely(sm->sq_length)__builtin_expect(!!(sm->sq_length), 1)) { |
11712 | Py_ssize_t l = sm->sq_length(o); |
11713 | if (likely(l >= 0)__builtin_expect(!!(l >= 0), 1)) { |
11714 | i += l; |
11715 | } else { |
11716 | if (!PyErr_ExceptionMatches(PyExc_OverflowError)) |
11717 | return -1; |
11718 | PyErr_Clear(); |
11719 | } |
11720 | } |
11721 | return sm->sq_ass_item(o, i, (PyObject *)NULL((void*)0)); |
11722 | } |
11723 | #endif |
11724 | return __Pyx_DelItem_Generic(o, PyInt_FromSsize_tPyLong_FromSsize_t(i)); |
11725 | } |
11726 | |
11727 | /* pynumber_float */ |
11728 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx__PyNumber_Float(PyObject* obj) { |
11729 | double val; |
11730 | if (PyLong_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyLong_Type)) { |
11731 | #if CYTHON_USE_PYLONG_INTERNALS1 |
11732 | if (likely(__Pyx_PyLong_IsCompact(obj))__builtin_expect(!!((Py_SIZE(((PyObject*)((obj)))) == 0 || Py_SIZE (((PyObject*)((obj)))) == 1 || Py_SIZE(((PyObject*)((obj)))) == -1)), 1)) { |
11733 | val = (double) __Pyx_PyLong_CompactValue(obj)((Py_SIZE(((PyObject*)((obj)))) == 0) ? (sdigit) 0 : ((Py_SIZE (((PyObject*)((obj)))) < 0) ? -(sdigit)(((PyLongObject*)obj )->ob_digit)[0] : (sdigit)(((PyLongObject*)obj)->ob_digit )[0])); |
11734 | goto no_error; |
11735 | } |
11736 | #endif |
11737 | val = PyLong_AsDouble(obj); |
11738 | } else if (PyUnicode_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyUnicode_Type)) { |
11739 | val = __Pyx_PyUnicode_AsDouble(obj); |
11740 | } else if (PyBytes_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyBytes_Type)) { |
11741 | val = __Pyx_PyBytes_AsDouble(obj); |
11742 | } else if (PyByteArray_CheckExact(obj)Py_IS_TYPE(((PyObject*)((obj))), &PyByteArray_Type)) { |
11743 | val = __Pyx_PyByteArray_AsDouble(obj); |
11744 | } else { |
11745 | return PyNumber_Float(obj); |
11746 | } |
11747 | if (unlikely(val == -1 && PyErr_Occurred())__builtin_expect(!!(val == -1 && PyErr_Occurred()), 0 )) { |
11748 | return NULL((void*)0); |
11749 | } |
11750 | #if CYTHON_USE_PYLONG_INTERNALS1 |
11751 | no_error: |
11752 | #endif |
11753 | return PyFloat_FromDouble(val); |
11754 | } |
11755 | |
11756 | /* pep479 */ |
11757 | static void __Pyx_Generator_Replace_StopIteration(int in_async_gen) { |
11758 | PyObject *exc, *val, *tb, *cur_exc; |
11759 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
11760 | #ifdef __Pyx_StopAsyncIteration_USED |
11761 | int is_async_stopiteration = 0; |
11762 | #endif |
11763 | CYTHON_MAYBE_UNUSED_VAR(in_async_gen)(void)(in_async_gen); |
11764 | cur_exc = PyErr_Occurred(); |
11765 | if (likely(!__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopIteration))__builtin_expect(!!(!__Pyx_PyErr_GivenExceptionMatches(cur_exc , PyExc_StopIteration)), 1)) { |
11766 | #ifdef __Pyx_StopAsyncIteration_USED |
11767 | if (in_async_gen && unlikely(__Pyx_PyErr_GivenExceptionMatches(cur_exc, __Pyx_PyExc_StopAsyncIteration))__builtin_expect(!!(__Pyx_PyErr_GivenExceptionMatches(cur_exc , __Pyx_PyExc_StopAsyncIteration)), 0)) { |
11768 | is_async_stopiteration = 1; |
11769 | } else |
11770 | #endif |
11771 | return; |
11772 | } |
11773 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
11774 | __Pyx_GetException(&exc, &val, &tb)__Pyx__GetException(__pyx_tstate, &exc, &val, &tb ); |
11775 | Py_XDECREF(exc)Py_XDECREF(((PyObject*)((exc)))); |
11776 | Py_XDECREF(val)Py_XDECREF(((PyObject*)((val)))); |
11777 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
11778 | PyErr_SetString(PyExc_RuntimeError, |
11779 | #ifdef __Pyx_StopAsyncIteration_USED |
11780 | is_async_stopiteration ? "async generator raised StopAsyncIteration" : |
11781 | in_async_gen ? "async generator raised StopIteration" : |
11782 | #endif |
11783 | "generator raised StopIteration"); |
11784 | } |
11785 | |
11786 | /* FixUpExtensionType */ |
11787 | #if CYTHON_USE_TYPE_SPECS0 |
11788 | static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) { |
11789 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) > 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0 |
11790 | CYTHON_UNUSED_VAR(spec)(void)(spec); |
11791 | CYTHON_UNUSED_VAR(type)(void)(type); |
11792 | #else |
11793 | const PyType_Slot *slot = spec->slots; |
11794 | while (slot && slot->slot && slot->slot != Py_tp_members72) |
11795 | slot++; |
11796 | if (slot && slot->slot == Py_tp_members72) { |
11797 | int changed = 0; |
11798 | #if !(PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON1) |
11799 | const |
11800 | #endif |
11801 | PyMemberDef *memb = (PyMemberDef*) slot->pfunc; |
11802 | while (memb && memb->name) { |
11803 | if (memb->name[0] == '_' && memb->name[1] == '_') { |
11804 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900b1 |
11805 | if (strcmp(memb->name, "__weaklistoffset__") == 0) { |
11806 | assert(memb->type == T_PYSSIZET)((void) sizeof ((memb->type == 19) ? 1 : 0), __extension__ ({ if (memb->type == 19) ; else __assert_fail ("memb->type == T_PYSSIZET" , "abaqusFILReader.c", 11806, __extension__ __PRETTY_FUNCTION__ ); })); |
11807 | assert(memb->flags == READONLY)((void) sizeof ((memb->flags == 1) ? 1 : 0), __extension__ ({ if (memb->flags == 1) ; else __assert_fail ("memb->flags == READONLY" , "abaqusFILReader.c", 11807, __extension__ __PRETTY_FUNCTION__ ); })); |
11808 | type->tp_weaklistoffset = memb->offset; |
11809 | changed = 1; |
11810 | } |
11811 | else if (strcmp(memb->name, "__dictoffset__") == 0) { |
11812 | assert(memb->type == T_PYSSIZET)((void) sizeof ((memb->type == 19) ? 1 : 0), __extension__ ({ if (memb->type == 19) ; else __assert_fail ("memb->type == T_PYSSIZET" , "abaqusFILReader.c", 11812, __extension__ __PRETTY_FUNCTION__ ); })); |
11813 | assert(memb->flags == READONLY)((void) sizeof ((memb->flags == 1) ? 1 : 0), __extension__ ({ if (memb->flags == 1) ; else __assert_fail ("memb->flags == READONLY" , "abaqusFILReader.c", 11813, __extension__ __PRETTY_FUNCTION__ ); })); |
11814 | type->tp_dictoffset = memb->offset; |
11815 | changed = 1; |
11816 | } |
11817 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
11818 | else if (strcmp(memb->name, "__vectorcalloffset__") == 0) { |
11819 | assert(memb->type == T_PYSSIZET)((void) sizeof ((memb->type == 19) ? 1 : 0), __extension__ ({ if (memb->type == 19) ; else __assert_fail ("memb->type == T_PYSSIZET" , "abaqusFILReader.c", 11819, __extension__ __PRETTY_FUNCTION__ ); })); |
11820 | assert(memb->flags == READONLY)((void) sizeof ((memb->flags == 1) ? 1 : 0), __extension__ ({ if (memb->flags == 1) ; else __assert_fail ("memb->flags == READONLY" , "abaqusFILReader.c", 11820, __extension__ __PRETTY_FUNCTION__ ); })); |
11821 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 |
11822 | type->tp_vectorcall_offset = memb->offset; |
11823 | #else |
11824 | type->tp_print = (printfunc) memb->offset; |
11825 | #endif |
11826 | changed = 1; |
11827 | } |
11828 | #endif |
11829 | #else |
11830 | if ((0)); |
11831 | #endif |
11832 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON1 |
11833 | else if (strcmp(memb->name, "__module__") == 0) { |
11834 | PyObject *descr; |
11835 | assert(memb->type == T_OBJECT)((void) sizeof ((memb->type == 6) ? 1 : 0), __extension__ ( { if (memb->type == 6) ; else __assert_fail ("memb->type == T_OBJECT" , "abaqusFILReader.c", 11835, __extension__ __PRETTY_FUNCTION__ ); })); |
11836 | assert(memb->flags == 0 || memb->flags == READONLY)((void) sizeof ((memb->flags == 0 || memb->flags == 1) ? 1 : 0), __extension__ ({ if (memb->flags == 0 || memb-> flags == 1) ; else __assert_fail ("memb->flags == 0 || memb->flags == READONLY" , "abaqusFILReader.c", 11836, __extension__ __PRETTY_FUNCTION__ ); })); |
11837 | descr = PyDescr_NewMember(type, memb); |
11838 | if (unlikely(!descr)__builtin_expect(!!(!descr), 0)) |
11839 | return -1; |
11840 | if (unlikely(PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr) < 0)__builtin_expect(!!(PyDict_SetItem(type->tp_dict, (((PyDescrObject *)(descr))->d_name), descr) < 0), 0)) { |
11841 | Py_DECREF(descr)Py_DECREF(((PyObject*)((descr)))); |
11842 | return -1; |
11843 | } |
11844 | Py_DECREF(descr)Py_DECREF(((PyObject*)((descr)))); |
11845 | changed = 1; |
11846 | } |
11847 | #endif |
11848 | } |
11849 | memb++; |
11850 | } |
11851 | if (changed) |
11852 | PyType_Modified(type); |
11853 | } |
11854 | #endif |
11855 | return 0; |
11856 | } |
11857 | #endif |
11858 | |
11859 | /* ValidateBasesTuple */ |
11860 | #if CYTHON_COMPILING_IN_CPYTHON1 || CYTHON_COMPILING_IN_LIMITED_API0 || CYTHON_USE_TYPE_SPECS0 |
11861 | static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) { |
11862 | Py_ssize_t i, n; |
11863 | #if CYTHON_ASSUME_SAFE_MACROS1 |
11864 | n = PyTuple_GET_SIZE(bases)PyTuple_GET_SIZE(((PyObject*)((bases)))); |
11865 | #else |
11866 | n = PyTuple_Size(bases); |
11867 | if (n < 0) return -1; |
11868 | #endif |
11869 | for (i = 1; i < n; i++) |
11870 | { |
11871 | #if CYTHON_AVOID_BORROWED_REFS0 |
11872 | PyObject *b0 = PySequence_GetItem(bases, i); |
11873 | if (!b0) return -1; |
11874 | #elif CYTHON_ASSUME_SAFE_MACROS1 |
11875 | PyObject *b0 = PyTuple_GET_ITEM(bases, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((bases )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((bases)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(bases)", "abaqusFILReader.c", 11875, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((bases))))-> ob_item[i]); |
11876 | #else |
11877 | PyObject *b0 = PyTuple_GetItem(bases, i); |
11878 | if (!b0) return -1; |
11879 | #endif |
11880 | PyTypeObject *b; |
11881 | #if PY_MAJOR_VERSION3 < 3 |
11882 | if (PyClass_Check(b0)) |
11883 | { |
11884 | PyErr_Format(PyExc_TypeError, "base class '%.200s' is an old-style class", |
11885 | PyString_AS_STRING(((PyClassObject*)b0)->cl_name)); |
11886 | #if CYTHON_AVOID_BORROWED_REFS0 |
11887 | Py_DECREF(b0)Py_DECREF(((PyObject*)((b0)))); |
11888 | #endif |
11889 | return -1; |
11890 | } |
11891 | #endif |
11892 | b = (PyTypeObject*) b0; |
11893 | if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE)(((((PyTypeObject *)b)->tp_flags) & ((1UL << 9)) ) != 0)) |
11894 | { |
11895 | __Pyx_TypeName b_name = __Pyx_PyType_GetName(b)((b)->tp_name); |
11896 | PyErr_Format(PyExc_TypeError, |
11897 | "base class '" __Pyx_FMT_TYPENAME"%.200s" "' is not a heap type", b_name); |
11898 | __Pyx_DECREF_TypeName(b_name); |
11899 | #if CYTHON_AVOID_BORROWED_REFS0 |
11900 | Py_DECREF(b0)Py_DECREF(((PyObject*)((b0)))); |
11901 | #endif |
11902 | return -1; |
11903 | } |
11904 | #if !CYTHON_USE_TYPE_SLOTS1 |
11905 | if (dictoffset == 0) { |
11906 | PyErr_Format(PyExc_TypeError, |
11907 | "extension type '%s.200s': " |
11908 | "unable to validate whether bases have a __dict__ " |
11909 | "when CYTHON_USE_TYPE_SLOTS is off " |
11910 | "(likely because you are building in the limited API). " |
11911 | "Therefore, all extension types with multiple bases " |
11912 | "must add 'cdef dict __dict__' in this compilation mode", |
11913 | type_name); |
11914 | #if CYTHON_AVOID_BORROWED_REFS0 |
11915 | Py_DECREF(b0)Py_DECREF(((PyObject*)((b0)))); |
11916 | #endif |
11917 | return -1; |
11918 | } |
11919 | #else |
11920 | if (dictoffset == 0 && b->tp_dictoffset) |
11921 | { |
11922 | __Pyx_TypeName b_name = __Pyx_PyType_GetName(b)((b)->tp_name); |
11923 | PyErr_Format(PyExc_TypeError, |
11924 | "extension type '%.200s' has no __dict__ slot, " |
11925 | "but base type '" __Pyx_FMT_TYPENAME"%.200s" "' has: " |
11926 | "either add 'cdef dict __dict__' to the extension type " |
11927 | "or add '__slots__ = [...]' to the base type", |
11928 | type_name, b_name); |
11929 | __Pyx_DECREF_TypeName(b_name); |
11930 | #if CYTHON_AVOID_BORROWED_REFS0 |
11931 | Py_DECREF(b0)Py_DECREF(((PyObject*)((b0)))); |
11932 | #endif |
11933 | return -1; |
11934 | } |
11935 | #endif |
11936 | #if CYTHON_AVOID_BORROWED_REFS0 |
11937 | Py_DECREF(b0)Py_DECREF(((PyObject*)((b0)))); |
11938 | #endif |
11939 | } |
11940 | return 0; |
11941 | } |
11942 | #endif |
11943 | |
11944 | /* PyType_Ready */ |
11945 | static int __Pyx_PyType_Ready(PyTypeObject *t) { |
11946 | #if CYTHON_USE_TYPE_SPECS0 || !(CYTHON_COMPILING_IN_CPYTHON1 || CYTHON_COMPILING_IN_LIMITED_API0) || defined(PYSTON_MAJOR_VERSION) |
11947 | (void)__Pyx_PyObject_CallMethod0; |
11948 | #if CYTHON_USE_TYPE_SPECS0 |
11949 | (void)__Pyx_validate_bases_tuple; |
11950 | #endif |
11951 | return PyType_Ready(t); |
11952 | #else |
11953 | int r; |
11954 | PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*)((t)->tp_bases); |
11955 | if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1)__builtin_expect(!!(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1), 0)) |
11956 | return -1; |
11957 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION) |
11958 | { |
11959 | int gc_was_enabled; |
11960 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030A00b1 |
11961 | gc_was_enabled = PyGC_Disable(); |
11962 | (void)__Pyx_PyObject_CallMethod0; |
11963 | #else |
11964 | PyObject *ret, *py_status; |
11965 | PyObject *gc = NULL((void*)0); |
11966 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700a1 && (!CYTHON_COMPILING_IN_PYPY0 || PYPY_VERSION_NUM+0 >= 0x07030400) |
11967 | gc = PyImport_GetModule(__pyx_kp_u_gc__pyx_mstate_global->__pyx_kp_u_gc); |
11968 | #endif |
11969 | if (unlikely(!gc)__builtin_expect(!!(!gc), 0)) gc = PyImport_Import(__pyx_kp_u_gc__pyx_mstate_global->__pyx_kp_u_gc); |
11970 | if (unlikely(!gc)__builtin_expect(!!(!gc), 0)) return -1; |
11971 | py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_isenabled__pyx_mstate_global->__pyx_kp_u_isenabled); |
11972 | if (unlikely(!py_status)__builtin_expect(!!(!py_status), 0)) { |
11973 | Py_DECREF(gc)Py_DECREF(((PyObject*)((gc)))); |
11974 | return -1; |
11975 | } |
11976 | gc_was_enabled = __Pyx_PyObject_IsTrue(py_status); |
11977 | Py_DECREF(py_status)Py_DECREF(((PyObject*)((py_status)))); |
11978 | if (gc_was_enabled > 0) { |
11979 | ret = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_disable__pyx_mstate_global->__pyx_kp_u_disable); |
11980 | if (unlikely(!ret)__builtin_expect(!!(!ret), 0)) { |
11981 | Py_DECREF(gc)Py_DECREF(((PyObject*)((gc)))); |
11982 | return -1; |
11983 | } |
11984 | Py_DECREF(ret)Py_DECREF(((PyObject*)((ret)))); |
11985 | } else if (unlikely(gc_was_enabled == -1)__builtin_expect(!!(gc_was_enabled == -1), 0)) { |
11986 | Py_DECREF(gc)Py_DECREF(((PyObject*)((gc)))); |
11987 | return -1; |
11988 | } |
11989 | #endif |
11990 | t->tp_flags |= Py_TPFLAGS_HEAPTYPE(1UL << 9); |
11991 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030A0000 |
11992 | t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE(1UL << 8); |
11993 | #endif |
11994 | #else |
11995 | (void)__Pyx_PyObject_CallMethod0; |
11996 | #endif |
11997 | r = PyType_Ready(t); |
11998 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION) |
11999 | t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE(1UL << 9); |
12000 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030A00b1 |
12001 | if (gc_was_enabled) |
12002 | PyGC_Enable(); |
12003 | #else |
12004 | if (gc_was_enabled) { |
12005 | PyObject *tp, *v, *tb; |
12006 | PyErr_Fetch(&tp, &v, &tb); |
12007 | ret = __Pyx_PyObject_CallMethod0(gc, __pyx_kp_u_enable__pyx_mstate_global->__pyx_kp_u_enable); |
12008 | if (likely(ret || r == -1)__builtin_expect(!!(ret || r == -1), 1)) { |
12009 | Py_XDECREF(ret)Py_XDECREF(((PyObject*)((ret)))); |
12010 | PyErr_Restore(tp, v, tb); |
12011 | } else { |
12012 | Py_XDECREF(tp)Py_XDECREF(((PyObject*)((tp)))); |
12013 | Py_XDECREF(v)Py_XDECREF(((PyObject*)((v)))); |
12014 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
12015 | r = -1; |
12016 | } |
12017 | } |
12018 | Py_DECREF(gc)Py_DECREF(((PyObject*)((gc)))); |
12019 | #endif |
12020 | } |
12021 | #endif |
12022 | return r; |
12023 | #endif |
12024 | } |
12025 | |
12026 | /* PyObject_GenericGetAttrNoDict */ |
12027 | #if CYTHON_USE_TYPE_SLOTS1 && CYTHON_USE_PYTYPE_LOOKUP1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03070000 |
12028 | static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) { |
12029 | __Pyx_TypeName type_name = __Pyx_PyType_GetName(tp)((tp)->tp_name); |
12030 | PyErr_Format(PyExc_AttributeError, |
12031 | #if PY_MAJOR_VERSION3 >= 3 |
12032 | "'" __Pyx_FMT_TYPENAME"%.200s" "' object has no attribute '%U'", |
12033 | type_name, attr_name); |
12034 | #else |
12035 | "'" __Pyx_FMT_TYPENAME"%.200s" "' object has no attribute '%.400s'", |
12036 | type_name, PyString_AS_STRING(attr_name)); |
12037 | #endif |
12038 | __Pyx_DECREF_TypeName(type_name); |
12039 | return NULL((void*)0); |
12040 | } |
12041 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_GenericGetAttrNoDictPyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) { |
12042 | PyObject *descr; |
12043 | PyTypeObject *tp = Py_TYPE(obj)Py_TYPE(((PyObject*)((obj)))); |
12044 | if (unlikely(!PyString_Check(attr_name))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)(( attr_name)))), (1UL << 28))), 0)) { |
12045 | return PyObject_GenericGetAttr(obj, attr_name); |
12046 | } |
12047 | assert(!tp->tp_dictoffset)((void) sizeof ((!tp->tp_dictoffset) ? 1 : 0), __extension__ ({ if (!tp->tp_dictoffset) ; else __assert_fail ("!tp->tp_dictoffset" , "abaqusFILReader.c", 12047, __extension__ __PRETTY_FUNCTION__ ); })); |
12048 | descr = _PyType_Lookup(tp, attr_name); |
12049 | if (unlikely(!descr)__builtin_expect(!!(!descr), 0)) { |
12050 | return __Pyx_RaiseGenericGetAttributeError(tp, attr_name); |
12051 | } |
12052 | Py_INCREF(descr)Py_INCREF(((PyObject*)((descr)))); |
12053 | #if PY_MAJOR_VERSION3 < 3 |
12054 | if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((descr )))), Py_TPFLAGS_HAVE_CLASS)), 1)) |
12055 | #endif |
12056 | { |
12057 | descrgetfunc f = Py_TYPE(descr)Py_TYPE(((PyObject*)((descr))))->tp_descr_get; |
12058 | if (unlikely(f)__builtin_expect(!!(f), 0)) { |
12059 | PyObject *res = f(descr, obj, (PyObject *)tp); |
12060 | Py_DECREF(descr)Py_DECREF(((PyObject*)((descr)))); |
12061 | return res; |
12062 | } |
12063 | } |
12064 | return descr; |
12065 | } |
12066 | #endif |
12067 | |
12068 | /* Import */ |
12069 | static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { |
12070 | PyObject *module = 0; |
12071 | PyObject *empty_dict = 0; |
12072 | PyObject *empty_list = 0; |
12073 | #if PY_MAJOR_VERSION3 < 3 |
12074 | PyObject *py_import; |
12075 | py_import = __Pyx_PyObject_GetAttrStr(__pyx_b__pyx_mstate_global->__pyx_b, __pyx_n_s_import__pyx_mstate_global->__pyx_n_s_import); |
12076 | if (unlikely(!py_import)__builtin_expect(!!(!py_import), 0)) |
12077 | goto bad; |
12078 | if (!from_list) { |
12079 | empty_list = PyList_New(0); |
12080 | if (unlikely(!empty_list)__builtin_expect(!!(!empty_list), 0)) |
12081 | goto bad; |
12082 | from_list = empty_list; |
12083 | } |
12084 | #endif |
12085 | empty_dict = PyDict_New(); |
12086 | if (unlikely(!empty_dict)__builtin_expect(!!(!empty_dict), 0)) |
12087 | goto bad; |
12088 | { |
12089 | #if PY_MAJOR_VERSION3 >= 3 |
12090 | if (level == -1) { |
12091 | if (strchr(__Pyx_MODULE_NAME"abaqusFILReader", '.') != NULL((void*)0)) { |
12092 | module = PyImport_ImportModuleLevelObject( |
12093 | name, __pyx_d__pyx_mstate_global->__pyx_d, empty_dict, from_list, 1); |
12094 | if (unlikely(!module)__builtin_expect(!!(!module), 0)) { |
12095 | if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError))__builtin_expect(!!(!PyErr_ExceptionMatches(PyExc_ImportError )), 0)) |
12096 | goto bad; |
12097 | PyErr_Clear(); |
12098 | } |
12099 | } |
12100 | level = 0; |
12101 | } |
12102 | #endif |
12103 | if (!module) { |
12104 | #if PY_MAJOR_VERSION3 < 3 |
12105 | PyObject *py_level = PyInt_FromLongPyLong_FromLong(level); |
12106 | if (unlikely(!py_level)__builtin_expect(!!(!py_level), 0)) |
12107 | goto bad; |
12108 | module = PyObject_CallFunctionObjArgs(py_import, |
12109 | name, __pyx_d__pyx_mstate_global->__pyx_d, empty_dict, from_list, py_level, (PyObject *)NULL((void*)0)); |
12110 | Py_DECREF(py_level)Py_DECREF(((PyObject*)((py_level)))); |
12111 | #else |
12112 | module = PyImport_ImportModuleLevelObject( |
12113 | name, __pyx_d__pyx_mstate_global->__pyx_d, empty_dict, from_list, level); |
12114 | #endif |
12115 | } |
12116 | } |
12117 | bad: |
12118 | Py_XDECREF(empty_dict)Py_XDECREF(((PyObject*)((empty_dict)))); |
12119 | Py_XDECREF(empty_list)Py_XDECREF(((PyObject*)((empty_list)))); |
12120 | #if PY_MAJOR_VERSION3 < 3 |
12121 | Py_XDECREF(py_import)Py_XDECREF(((PyObject*)((py_import)))); |
12122 | #endif |
12123 | return module; |
12124 | } |
12125 | |
12126 | /* ImportDottedModule */ |
12127 | #if PY_MAJOR_VERSION3 >= 3 |
12128 | static PyObject *__Pyx__ImportDottedModule_Error(PyObject *name, PyObject *parts_tuple, Py_ssize_t count) { |
12129 | PyObject *partial_name = NULL((void*)0), *slice = NULL((void*)0), *sep = NULL((void*)0); |
12130 | if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) { |
12131 | PyErr_Clear(); |
12132 | } |
12133 | if (likely(PyTuple_GET_SIZE(parts_tuple) == count)__builtin_expect(!!(PyTuple_GET_SIZE(((PyObject*)((parts_tuple )))) == count), 1)) { |
12134 | partial_name = name; |
12135 | } else { |
12136 | slice = PySequence_GetSlice(parts_tuple, 0, count); |
12137 | if (unlikely(!slice)__builtin_expect(!!(!slice), 0)) |
12138 | goto bad; |
12139 | sep = PyUnicode_FromStringAndSize(".", 1); |
12140 | if (unlikely(!sep)__builtin_expect(!!(!sep), 0)) |
12141 | goto bad; |
12142 | partial_name = PyUnicode_Join(sep, slice); |
12143 | } |
12144 | PyErr_Format( |
12145 | #if PY_MAJOR_VERSION3 < 3 |
12146 | PyExc_ImportError, |
12147 | "No module named '%s'", PyString_AS_STRING(partial_name)); |
12148 | #else |
12149 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1 |
12150 | PyExc_ModuleNotFoundError, |
12151 | #else |
12152 | PyExc_ImportError, |
12153 | #endif |
12154 | "No module named '%U'", partial_name); |
12155 | #endif |
12156 | bad: |
12157 | Py_XDECREF(sep)Py_XDECREF(((PyObject*)((sep)))); |
12158 | Py_XDECREF(slice)Py_XDECREF(((PyObject*)((slice)))); |
12159 | Py_XDECREF(partial_name)Py_XDECREF(((PyObject*)((partial_name)))); |
12160 | return NULL((void*)0); |
12161 | } |
12162 | #endif |
12163 | #if PY_MAJOR_VERSION3 >= 3 |
12164 | static PyObject *__Pyx__ImportDottedModule_Lookup(PyObject *name) { |
12165 | PyObject *imported_module; |
12166 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY0 && PYPY_VERSION_NUM < 0x07030400) |
12167 | PyObject *modules = PyImport_GetModuleDict(); |
12168 | if (unlikely(!modules)__builtin_expect(!!(!modules), 0)) |
12169 | return NULL((void*)0); |
12170 | imported_module = __Pyx_PyDict_GetItemStr(modules, name); |
12171 | Py_XINCREF(imported_module)Py_XINCREF(((PyObject*)((imported_module)))); |
12172 | #else |
12173 | imported_module = PyImport_GetModule(name); |
12174 | #endif |
12175 | return imported_module; |
12176 | } |
12177 | #endif |
12178 | #if PY_MAJOR_VERSION3 >= 3 |
12179 | static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple) { |
12180 | Py_ssize_t i, nparts; |
12181 | nparts = PyTuple_GET_SIZE(parts_tuple)PyTuple_GET_SIZE(((PyObject*)((parts_tuple)))); |
12182 | for (i=1; i < nparts && module; i++) { |
12183 | PyObject *part, *submodule; |
12184 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
12185 | part = PyTuple_GET_ITEM(parts_tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((parts_tuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((parts_tuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(parts_tuple)", "abaqusFILReader.c" , 12185, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject *)((parts_tuple))))->ob_item[i]); |
12186 | #else |
12187 | part = PySequence_ITEM(parts_tuple, i)( Py_TYPE(((PyObject*)((parts_tuple))))->tp_as_sequence-> sq_item(parts_tuple, i) ); |
12188 | #endif |
12189 | submodule = __Pyx_PyObject_GetAttrStrNoError(module, part); |
12190 | #if !(CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0) |
12191 | Py_DECREF(part)Py_DECREF(((PyObject*)((part)))); |
12192 | #endif |
12193 | Py_DECREF(module)Py_DECREF(((PyObject*)((module)))); |
12194 | module = submodule; |
12195 | } |
12196 | if (unlikely(!module)__builtin_expect(!!(!module), 0)) { |
12197 | return __Pyx__ImportDottedModule_Error(name, parts_tuple, i); |
12198 | } |
12199 | return module; |
12200 | } |
12201 | #endif |
12202 | static PyObject *__Pyx__ImportDottedModule(PyObject *name, PyObject *parts_tuple) { |
12203 | #if PY_MAJOR_VERSION3 < 3 |
12204 | PyObject *module, *from_list, *star = __pyx_n_s__9__pyx_mstate_global->__pyx_n_s__9; |
12205 | CYTHON_UNUSED_VAR(parts_tuple)(void)(parts_tuple); |
12206 | from_list = PyList_New(1); |
12207 | if (unlikely(!from_list)__builtin_expect(!!(!from_list), 0)) |
12208 | return NULL((void*)0); |
12209 | Py_INCREF(star)Py_INCREF(((PyObject*)((star)))); |
12210 | PyList_SET_ITEM(from_list, 0, star)PyList_SET_ITEM(((PyObject*)((from_list))), 0, ((PyObject*)(( star)))); |
12211 | module = __Pyx_Import(name, from_list, 0); |
12212 | Py_DECREF(from_list)Py_DECREF(((PyObject*)((from_list)))); |
12213 | return module; |
12214 | #else |
12215 | PyObject *imported_module; |
12216 | PyObject *module = __Pyx_Import(name, NULL((void*)0), 0); |
12217 | if (!parts_tuple || unlikely(!module)__builtin_expect(!!(!module), 0)) |
12218 | return module; |
12219 | imported_module = __Pyx__ImportDottedModule_Lookup(name); |
12220 | if (likely(imported_module)__builtin_expect(!!(imported_module), 1)) { |
12221 | Py_DECREF(module)Py_DECREF(((PyObject*)((module)))); |
12222 | return imported_module; |
12223 | } |
12224 | PyErr_Clear(); |
12225 | return __Pyx_ImportDottedModule_WalkParts(module, name, parts_tuple); |
12226 | #endif |
12227 | } |
12228 | static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple) { |
12229 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400B1 |
12230 | PyObject *module = __Pyx__ImportDottedModule_Lookup(name); |
12231 | if (likely(module)__builtin_expect(!!(module), 1)) { |
12232 | PyObject *spec = __Pyx_PyObject_GetAttrStrNoError(module, __pyx_n_s_spec__pyx_mstate_global->__pyx_n_s_spec); |
12233 | if (likely(spec)__builtin_expect(!!(spec), 1)) { |
12234 | PyObject *unsafe = __Pyx_PyObject_GetAttrStrNoError(spec, __pyx_n_s_initializing__pyx_mstate_global->__pyx_n_s_initializing); |
12235 | if (likely(!unsafe || !__Pyx_PyObject_IsTrue(unsafe))__builtin_expect(!!(!unsafe || !__Pyx_PyObject_IsTrue(unsafe) ), 1)) { |
12236 | Py_DECREF(spec)Py_DECREF(((PyObject*)((spec)))); |
12237 | spec = NULL((void*)0); |
12238 | } |
12239 | Py_XDECREF(unsafe)Py_XDECREF(((PyObject*)((unsafe)))); |
12240 | } |
12241 | if (likely(!spec)__builtin_expect(!!(!spec), 1)) { |
12242 | PyErr_Clear(); |
12243 | return module; |
12244 | } |
12245 | Py_DECREF(spec)Py_DECREF(((PyObject*)((spec)))); |
12246 | Py_DECREF(module)Py_DECREF(((PyObject*)((module)))); |
12247 | } else if (PyErr_Occurred()) { |
12248 | PyErr_Clear(); |
12249 | } |
12250 | #endif |
12251 | return __Pyx__ImportDottedModule(name, parts_tuple); |
12252 | } |
12253 | |
12254 | /* FetchSharedCythonModule */ |
12255 | static PyObject *__Pyx_FetchSharedCythonABIModule(void) { |
12256 | return __Pyx_PyImport_AddModuleRef((char*) __PYX_ABI_MODULE_NAME"_cython_" "3_0_5" ""); |
12257 | } |
12258 | |
12259 | /* FetchCommonType */ |
12260 | static int __Pyx_VerifyCachedType(PyObject *cached_type, |
12261 | const char *name, |
12262 | Py_ssize_t basicsize, |
12263 | Py_ssize_t expected_basicsize) { |
12264 | if (!PyType_Check(cached_type)PyType_Check(((PyObject*)((cached_type))))) { |
12265 | PyErr_Format(PyExc_TypeError, |
12266 | "Shared Cython type %.200s is not a type object", name); |
12267 | return -1; |
12268 | } |
12269 | if (basicsize != expected_basicsize) { |
12270 | PyErr_Format(PyExc_TypeError, |
12271 | "Shared Cython type %.200s has the wrong size, try recompiling", |
12272 | name); |
12273 | return -1; |
12274 | } |
12275 | return 0; |
12276 | } |
12277 | #if !CYTHON_USE_TYPE_SPECS0 |
12278 | static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { |
12279 | PyObject* abi_module; |
12280 | const char* object_name; |
12281 | PyTypeObject *cached_type = NULL((void*)0); |
12282 | abi_module = __Pyx_FetchSharedCythonABIModule(); |
12283 | if (!abi_module) return NULL((void*)0); |
12284 | object_name = strrchr(type->tp_name, '.'); |
12285 | object_name = object_name ? object_name+1 : type->tp_name; |
12286 | cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, object_name); |
12287 | if (cached_type) { |
12288 | if (__Pyx_VerifyCachedType( |
12289 | (PyObject *)cached_type, |
12290 | object_name, |
12291 | cached_type->tp_basicsize, |
12292 | type->tp_basicsize) < 0) { |
12293 | goto bad; |
12294 | } |
12295 | goto done; |
12296 | } |
12297 | if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; |
12298 | PyErr_Clear(); |
12299 | if (PyType_Ready(type) < 0) goto bad; |
12300 | if (PyObject_SetAttrString(abi_module, object_name, (PyObject *)type) < 0) |
12301 | goto bad; |
12302 | Py_INCREF(type)Py_INCREF(((PyObject*)((type)))); |
12303 | cached_type = type; |
12304 | done: |
12305 | Py_DECREF(abi_module)Py_DECREF(((PyObject*)((abi_module)))); |
12306 | return cached_type; |
12307 | bad: |
12308 | Py_XDECREF(cached_type)Py_XDECREF(((PyObject*)((cached_type)))); |
12309 | cached_type = NULL((void*)0); |
12310 | goto done; |
12311 | } |
12312 | #else |
12313 | static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) { |
12314 | PyObject *abi_module, *cached_type = NULL((void*)0); |
12315 | const char* object_name = strrchr(spec->name, '.'); |
12316 | object_name = object_name ? object_name+1 : spec->name; |
12317 | abi_module = __Pyx_FetchSharedCythonABIModule(); |
12318 | if (!abi_module) return NULL((void*)0); |
12319 | cached_type = PyObject_GetAttrString(abi_module, object_name); |
12320 | if (cached_type) { |
12321 | Py_ssize_t basicsize; |
12322 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12323 | PyObject *py_basicsize; |
12324 | py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__"); |
12325 | if (unlikely(!py_basicsize)__builtin_expect(!!(!py_basicsize), 0)) goto bad; |
12326 | basicsize = PyLong_AsSsize_t(py_basicsize); |
12327 | Py_DECREF(py_basicsize)Py_DECREF(((PyObject*)((py_basicsize)))); |
12328 | py_basicsize = 0; |
12329 | if (unlikely(basicsize == (Py_ssize_t)-1)__builtin_expect(!!(basicsize == (Py_ssize_t)-1), 0) && PyErr_Occurred()) goto bad; |
12330 | #else |
12331 | basicsize = likely(PyType_Check(cached_type))__builtin_expect(!!(PyType_Check(((PyObject*)((cached_type))) )), 1) ? ((PyTypeObject*) cached_type)->tp_basicsize : -1; |
12332 | #endif |
12333 | if (__Pyx_VerifyCachedType( |
12334 | cached_type, |
12335 | object_name, |
12336 | basicsize, |
12337 | spec->basicsize) < 0) { |
12338 | goto bad; |
12339 | } |
12340 | goto done; |
12341 | } |
12342 | if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; |
12343 | PyErr_Clear(); |
12344 | CYTHON_UNUSED_VAR(module)(void)(module); |
12345 | cached_type = __Pyx_PyType_FromModuleAndSpec(abi_module, spec, bases)PyType_FromModuleAndSpec(abi_module, spec, bases); |
12346 | if (unlikely(!cached_type)__builtin_expect(!!(!cached_type), 0)) goto bad; |
12347 | if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)__builtin_expect(!!(__Pyx_fix_up_extension_type_from_spec(spec , (PyTypeObject *) cached_type) < 0), 0)) goto bad; |
12348 | if (PyObject_SetAttrString(abi_module, object_name, cached_type) < 0) goto bad; |
12349 | done: |
12350 | Py_DECREF(abi_module)Py_DECREF(((PyObject*)((abi_module)))); |
12351 | assert(cached_type == NULL || PyType_Check(cached_type))((void) sizeof ((cached_type == ((void*)0) || PyType_Check((( PyObject*)((cached_type))))) ? 1 : 0), __extension__ ({ if (cached_type == ((void*)0) || PyType_Check(((PyObject*)((cached_type))))) ; else __assert_fail ("cached_type == NULL || PyType_Check(cached_type)" , "abaqusFILReader.c", 12351, __extension__ __PRETTY_FUNCTION__ ); })); |
12352 | return (PyTypeObject *) cached_type; |
12353 | bad: |
12354 | Py_XDECREF(cached_type)Py_XDECREF(((PyObject*)((cached_type)))); |
12355 | cached_type = NULL((void*)0); |
12356 | goto done; |
12357 | } |
12358 | #endif |
12359 | |
12360 | /* PyVectorcallFastCallDict */ |
12361 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
12362 | static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfuncvectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw) |
12363 | { |
12364 | PyObject *res = NULL((void*)0); |
12365 | PyObject *kwnames; |
12366 | PyObject **newargs; |
12367 | PyObject **kwvalues; |
12368 | Py_ssize_t i, pos; |
12369 | size_t j; |
12370 | PyObject *key, *value; |
12371 | unsigned long keys_are_strings; |
12372 | Py_ssize_t nkw = PyDict_GET_SIZE(kw)(((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kw) ))), (1UL << 29))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((kw)))), (1UL << 29))) ; else __assert_fail ("PyDict_Check(kw)", "abaqusFILReader.c", 12372, __extension__ __PRETTY_FUNCTION__); })),((PyDictObject *)kw)->ma_used); |
12373 | newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0])); |
12374 | if (unlikely(newargs == NULL)__builtin_expect(!!(newargs == ((void*)0)), 0)) { |
12375 | PyErr_NoMemory(); |
12376 | return NULL((void*)0); |
12377 | } |
12378 | for (j = 0; j < nargs; j++) newargs[j] = args[j]; |
12379 | kwnames = PyTuple_New(nkw); |
12380 | if (unlikely(kwnames == NULL)__builtin_expect(!!(kwnames == ((void*)0)), 0)) { |
12381 | PyMem_Free(newargs); |
12382 | return NULL((void*)0); |
12383 | } |
12384 | kwvalues = newargs + nargs; |
12385 | pos = i = 0; |
12386 | keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS(1UL << 28); |
12387 | while (PyDict_Next(kw, &pos, &key, &value)) { |
12388 | keys_are_strings &= Py_TYPE(key)Py_TYPE(((PyObject*)((key))))->tp_flags; |
12389 | Py_INCREF(key)Py_INCREF(((PyObject*)((key)))); |
12390 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
12391 | PyTuple_SET_ITEM(kwnames, i, key)PyTuple_SET_ITEM(((PyObject*)((kwnames))), i, ((PyObject*)((key )))); |
12392 | kwvalues[i] = value; |
12393 | i++; |
12394 | } |
12395 | if (unlikely(!keys_are_strings)__builtin_expect(!!(!keys_are_strings), 0)) { |
12396 | PyErr_SetString(PyExc_TypeError, "keywords must be strings"); |
12397 | goto cleanup; |
12398 | } |
12399 | res = vc(func, newargs, nargs, kwnames); |
12400 | cleanup: |
12401 | Py_DECREF(kwnames)Py_DECREF(((PyObject*)((kwnames)))); |
12402 | for (i = 0; i < nkw; i++) |
12403 | Py_DECREF(kwvalues[i])Py_DECREF(((PyObject*)((kwvalues[i])))); |
12404 | PyMem_Free(newargs); |
12405 | return res; |
12406 | } |
12407 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfuncvectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw) |
12408 | { |
12409 | if (likely(kw == NULL)__builtin_expect(!!(kw == ((void*)0)), 1) || PyDict_GET_SIZE(kw)(((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((kw) ))), (1UL << 29))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((kw)))), (1UL << 29))) ; else __assert_fail ("PyDict_Check(kw)", "abaqusFILReader.c", 12409, __extension__ __PRETTY_FUNCTION__); })),((PyDictObject *)kw)->ma_used) == 0) { |
12410 | return vc(func, args, nargs, NULL((void*)0)); |
12411 | } |
12412 | return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw); |
12413 | } |
12414 | #endif |
12415 | |
12416 | /* CythonFunctionShared */ |
12417 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12418 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) { |
12419 | if (__Pyx_CyFunction_Check(func)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((func)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType)) { |
12420 | return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc; |
12421 | } else if (PyCFunction_Check(func)PyObject_TypeCheck(((PyObject*)((func))), &PyCFunction_Type )) { |
12422 | return PyCFunction_GetFunction(func) == (PyCFunction) cfunc; |
12423 | } |
12424 | return 0; |
12425 | } |
12426 | #else |
12427 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) { |
12428 | return __Pyx_CyOrPyCFunction_Check(func)__Pyx_IsAnySubtype2(Py_TYPE(((PyObject*)((func)))), (PyTypeObject *)__pyx_mstate_global->__pyx_CyFunctionType, (PyTypeObject *)&PyCFunction_Type) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func)(((PyCFunctionObject*)(func))->m_ml->ml_meth) == (PyCFunction) cfunc; |
12429 | } |
12430 | #endif |
12431 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) { |
12432 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0 |
12433 | __Pyx_Py_XDECREF_SET(do { PyObject *tmp = (PyObject *) ((PyObject*) ((PyCMethodObject *) (f))->mm_class); ((PyObject*) ((PyCMethodObject *) (f) )->mm_class) = ((classobj) ? (Py_INCREF(((PyObject*)((classobj )))), classobj) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)) )); } while (0) |
12434 | __Pyx_CyFunction_GetClassObj(f),do { PyObject *tmp = (PyObject *) ((PyObject*) ((PyCMethodObject *) (f))->mm_class); ((PyObject*) ((PyCMethodObject *) (f) )->mm_class) = ((classobj) ? (Py_INCREF(((PyObject*)((classobj )))), classobj) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)) )); } while (0) |
12435 | ((classobj) ? __Pyx_NewRef(classobj) : NULL))do { PyObject *tmp = (PyObject *) ((PyObject*) ((PyCMethodObject *) (f))->mm_class); ((PyObject*) ((PyCMethodObject *) (f) )->mm_class) = ((classobj) ? (Py_INCREF(((PyObject*)((classobj )))), classobj) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)) )); } while (0); |
12436 | #else |
12437 | __Pyx_Py_XDECREF_SET(do { PyObject *tmp = (PyObject *) ((PyCMethodObject *) (f))-> mm_class; ((PyCMethodObject *) (f))->mm_class = (PyTypeObject *)((classobj) ? (Py_INCREF(((PyObject*)((classobj)))), classobj ) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)))); } while (0 ) |
12438 | ((PyCMethodObject *) (f))->mm_class,do { PyObject *tmp = (PyObject *) ((PyCMethodObject *) (f))-> mm_class; ((PyCMethodObject *) (f))->mm_class = (PyTypeObject *)((classobj) ? (Py_INCREF(((PyObject*)((classobj)))), classobj ) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)))); } while (0 ) |
12439 | (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL))do { PyObject *tmp = (PyObject *) ((PyCMethodObject *) (f))-> mm_class; ((PyCMethodObject *) (f))->mm_class = (PyTypeObject *)((classobj) ? (Py_INCREF(((PyObject*)((classobj)))), classobj ) : ((void*)0)); Py_XDECREF(((PyObject*)((tmp)))); } while (0 ); |
12440 | #endif |
12441 | } |
12442 | static PyObject * |
12443 | __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) |
12444 | { |
12445 | CYTHON_UNUSED_VAR(closure)(void)(closure); |
12446 | if (unlikely(op->func_doc == NULL)__builtin_expect(!!(op->func_doc == ((void*)0)), 0)) { |
12447 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12448 | op->func_doc = PyObject_GetAttrString(op->func, "__doc__"); |
12449 | if (unlikely(!op->func_doc)__builtin_expect(!!(!op->func_doc), 0)) return NULL((void*)0); |
12450 | #else |
12451 | if (((PyCFunctionObject*)op)->m_ml->ml_doc) { |
12452 | #if PY_MAJOR_VERSION3 >= 3 |
12453 | op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc); |
12454 | #else |
12455 | op->func_doc = PyString_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc); |
12456 | #endif |
12457 | if (unlikely(op->func_doc == NULL)__builtin_expect(!!(op->func_doc == ((void*)0)), 0)) |
12458 | return NULL((void*)0); |
12459 | } else { |
12460 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
12461 | return Py_None(&_Py_NoneStruct); |
12462 | } |
12463 | #endif |
12464 | } |
12465 | Py_INCREF(op->func_doc)Py_INCREF(((PyObject*)((op->func_doc)))); |
12466 | return op->func_doc; |
12467 | } |
12468 | static int |
12469 | __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context) |
12470 | { |
12471 | CYTHON_UNUSED_VAR(context)(void)(context); |
12472 | if (value == NULL((void*)0)) { |
12473 | value = Py_None(&_Py_NoneStruct); |
12474 | } |
12475 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
12476 | __Pyx_Py_XDECREF_SET(op->func_doc, value)do { PyObject *tmp = (PyObject *) op->func_doc; op->func_doc = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
12477 | return 0; |
12478 | } |
12479 | static PyObject * |
12480 | __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context) |
12481 | { |
12482 | CYTHON_UNUSED_VAR(context)(void)(context); |
12483 | if (unlikely(op->func_name == NULL)__builtin_expect(!!(op->func_name == ((void*)0)), 0)) { |
12484 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12485 | op->func_name = PyObject_GetAttrString(op->func, "__name__"); |
12486 | #elif PY_MAJOR_VERSION3 >= 3 |
12487 | op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name); |
12488 | #else |
12489 | op->func_name = PyString_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name); |
12490 | #endif |
12491 | if (unlikely(op->func_name == NULL)__builtin_expect(!!(op->func_name == ((void*)0)), 0)) |
12492 | return NULL((void*)0); |
12493 | } |
12494 | Py_INCREF(op->func_name)Py_INCREF(((PyObject*)((op->func_name)))); |
12495 | return op->func_name; |
12496 | } |
12497 | static int |
12498 | __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context) |
12499 | { |
12500 | CYTHON_UNUSED_VAR(context)(void)(context); |
12501 | #if PY_MAJOR_VERSION3 >= 3 |
12502 | if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
12503 | #else |
12504 | if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
12505 | #endif |
12506 | { |
12507 | PyErr_SetString(PyExc_TypeError, |
12508 | "__name__ must be set to a string object"); |
12509 | return -1; |
12510 | } |
12511 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
12512 | __Pyx_Py_XDECREF_SET(op->func_name, value)do { PyObject *tmp = (PyObject *) op->func_name; op->func_name = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
12513 | return 0; |
12514 | } |
12515 | static PyObject * |
12516 | __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context) |
12517 | { |
12518 | CYTHON_UNUSED_VAR(context)(void)(context); |
12519 | Py_INCREF(op->func_qualname)Py_INCREF(((PyObject*)((op->func_qualname)))); |
12520 | return op->func_qualname; |
12521 | } |
12522 | static int |
12523 | __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context) |
12524 | { |
12525 | CYTHON_UNUSED_VAR(context)(void)(context); |
12526 | #if PY_MAJOR_VERSION3 >= 3 |
12527 | if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
12528 | #else |
12529 | if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
12530 | #endif |
12531 | { |
12532 | PyErr_SetString(PyExc_TypeError, |
12533 | "__qualname__ must be set to a string object"); |
12534 | return -1; |
12535 | } |
12536 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
12537 | __Pyx_Py_XDECREF_SET(op->func_qualname, value)do { PyObject *tmp = (PyObject *) op->func_qualname; op-> func_qualname = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
12538 | return 0; |
12539 | } |
12540 | static PyObject * |
12541 | __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context) |
12542 | { |
12543 | CYTHON_UNUSED_VAR(context)(void)(context); |
12544 | if (unlikely(op->func_dict == NULL)__builtin_expect(!!(op->func_dict == ((void*)0)), 0)) { |
12545 | op->func_dict = PyDict_New(); |
12546 | if (unlikely(op->func_dict == NULL)__builtin_expect(!!(op->func_dict == ((void*)0)), 0)) |
12547 | return NULL((void*)0); |
12548 | } |
12549 | Py_INCREF(op->func_dict)Py_INCREF(((PyObject*)((op->func_dict)))); |
12550 | return op->func_dict; |
12551 | } |
12552 | static int |
12553 | __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, void *context) |
12554 | { |
12555 | CYTHON_UNUSED_VAR(context)(void)(context); |
12556 | if (unlikely(value == NULL)__builtin_expect(!!(value == ((void*)0)), 0)) { |
12557 | PyErr_SetString(PyExc_TypeError, |
12558 | "function's dictionary may not be deleted"); |
12559 | return -1; |
12560 | } |
12561 | if (unlikely(!PyDict_Check(value))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)(( value)))), (1UL << 29))), 0)) { |
12562 | PyErr_SetString(PyExc_TypeError, |
12563 | "setting function's dictionary to a non-dict"); |
12564 | return -1; |
12565 | } |
12566 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
12567 | __Pyx_Py_XDECREF_SET(op->func_dict, value)do { PyObject *tmp = (PyObject *) op->func_dict; op->func_dict = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
12568 | return 0; |
12569 | } |
12570 | static PyObject * |
12571 | __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context) |
12572 | { |
12573 | CYTHON_UNUSED_VAR(context)(void)(context); |
12574 | Py_INCREF(op->func_globals)Py_INCREF(((PyObject*)((op->func_globals)))); |
12575 | return op->func_globals; |
12576 | } |
12577 | static PyObject * |
12578 | __Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context) |
12579 | { |
12580 | CYTHON_UNUSED_VAR(op)(void)(op); |
12581 | CYTHON_UNUSED_VAR(context)(void)(context); |
12582 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
12583 | return Py_None(&_Py_NoneStruct); |
12584 | } |
12585 | static PyObject * |
12586 | __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context) |
12587 | { |
12588 | PyObject* result = (op->func_code) ? op->func_code : Py_None(&_Py_NoneStruct); |
12589 | CYTHON_UNUSED_VAR(context)(void)(context); |
12590 | Py_INCREF(result)Py_INCREF(((PyObject*)((result)))); |
12591 | return result; |
12592 | } |
12593 | static int |
12594 | __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { |
12595 | int result = 0; |
12596 | PyObject *res = op->defaults_getter((PyObject *) op); |
12597 | if (unlikely(!res)__builtin_expect(!!(!res), 0)) |
12598 | return -1; |
12599 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
12600 | op->defaults_tuple = PyTuple_GET_ITEM(res, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((res )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((res)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(res)", "abaqusFILReader.c", 12600, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((res))))->ob_item [0]); |
12601 | Py_INCREF(op->defaults_tuple)Py_INCREF(((PyObject*)((op->defaults_tuple)))); |
12602 | op->defaults_kwdict = PyTuple_GET_ITEM(res, 1)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((res )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((res)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(res)", "abaqusFILReader.c", 12602, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((res))))->ob_item [1]); |
12603 | Py_INCREF(op->defaults_kwdict)Py_INCREF(((PyObject*)((op->defaults_kwdict)))); |
12604 | #else |
12605 | op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0)( Py_TYPE(((PyObject*)((res))))->tp_as_sequence->sq_item (res, 0) ); |
12606 | if (unlikely(!op->defaults_tuple)__builtin_expect(!!(!op->defaults_tuple), 0)) result = -1; |
12607 | else { |
12608 | op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1)( Py_TYPE(((PyObject*)((res))))->tp_as_sequence->sq_item (res, 1) ); |
12609 | if (unlikely(!op->defaults_kwdict)__builtin_expect(!!(!op->defaults_kwdict), 0)) result = -1; |
12610 | } |
12611 | #endif |
12612 | Py_DECREF(res)Py_DECREF(((PyObject*)((res)))); |
12613 | return result; |
12614 | } |
12615 | static int |
12616 | __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) { |
12617 | CYTHON_UNUSED_VAR(context)(void)(context); |
12618 | if (!value) { |
12619 | value = Py_None(&_Py_NoneStruct); |
12620 | } else if (unlikely(value != Py_None && !PyTuple_Check(value))__builtin_expect(!!(value != (&_Py_NoneStruct) && !PyType_HasFeature(Py_TYPE(((PyObject*)((value)))), (1UL << 26))), 0)) { |
12621 | PyErr_SetString(PyExc_TypeError, |
12622 | "__defaults__ must be set to a tuple object"); |
12623 | return -1; |
12624 | } |
12625 | PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not " |
12626 | "currently affect the values used in function calls", 1); |
12627 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
12628 | __Pyx_Py_XDECREF_SET(op->defaults_tuple, value)do { PyObject *tmp = (PyObject *) op->defaults_tuple; op-> defaults_tuple = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
12629 | return 0; |
12630 | } |
12631 | static PyObject * |
12632 | __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) { |
12633 | PyObject* result = op->defaults_tuple; |
12634 | CYTHON_UNUSED_VAR(context)(void)(context); |
12635 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
12636 | if (op->defaults_getter) { |
12637 | if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)__builtin_expect(!!(__Pyx_CyFunction_init_defaults(op) < 0 ), 0)) return NULL((void*)0); |
12638 | result = op->defaults_tuple; |
12639 | } else { |
12640 | result = Py_None(&_Py_NoneStruct); |
12641 | } |
12642 | } |
12643 | Py_INCREF(result)Py_INCREF(((PyObject*)((result)))); |
12644 | return result; |
12645 | } |
12646 | static int |
12647 | __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) { |
12648 | CYTHON_UNUSED_VAR(context)(void)(context); |
12649 | if (!value) { |
12650 | value = Py_None(&_Py_NoneStruct); |
12651 | } else if (unlikely(value != Py_None && !PyDict_Check(value))__builtin_expect(!!(value != (&_Py_NoneStruct) && !PyType_HasFeature(Py_TYPE(((PyObject*)((value)))), (1UL << 29))), 0)) { |
12652 | PyErr_SetString(PyExc_TypeError, |
12653 | "__kwdefaults__ must be set to a dict object"); |
12654 | return -1; |
12655 | } |
12656 | PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not " |
12657 | "currently affect the values used in function calls", 1); |
12658 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
12659 | __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value)do { PyObject *tmp = (PyObject *) op->defaults_kwdict; op-> defaults_kwdict = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
12660 | return 0; |
12661 | } |
12662 | static PyObject * |
12663 | __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) { |
12664 | PyObject* result = op->defaults_kwdict; |
12665 | CYTHON_UNUSED_VAR(context)(void)(context); |
12666 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
12667 | if (op->defaults_getter) { |
12668 | if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)__builtin_expect(!!(__Pyx_CyFunction_init_defaults(op) < 0 ), 0)) return NULL((void*)0); |
12669 | result = op->defaults_kwdict; |
12670 | } else { |
12671 | result = Py_None(&_Py_NoneStruct); |
12672 | } |
12673 | } |
12674 | Py_INCREF(result)Py_INCREF(((PyObject*)((result)))); |
12675 | return result; |
12676 | } |
12677 | static int |
12678 | __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) { |
12679 | CYTHON_UNUSED_VAR(context)(void)(context); |
12680 | if (!value || value == Py_None(&_Py_NoneStruct)) { |
12681 | value = NULL((void*)0); |
12682 | } else if (unlikely(!PyDict_Check(value))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)(( value)))), (1UL << 29))), 0)) { |
12683 | PyErr_SetString(PyExc_TypeError, |
12684 | "__annotations__ must be set to a dict object"); |
12685 | return -1; |
12686 | } |
12687 | Py_XINCREF(value)Py_XINCREF(((PyObject*)((value)))); |
12688 | __Pyx_Py_XDECREF_SET(op->func_annotations, value)do { PyObject *tmp = (PyObject *) op->func_annotations; op ->func_annotations = value; Py_XDECREF(((PyObject*)((tmp)) )); } while (0); |
12689 | return 0; |
12690 | } |
12691 | static PyObject * |
12692 | __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) { |
12693 | PyObject* result = op->func_annotations; |
12694 | CYTHON_UNUSED_VAR(context)(void)(context); |
12695 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
12696 | result = PyDict_New(); |
12697 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) return NULL((void*)0); |
12698 | op->func_annotations = result; |
12699 | } |
12700 | Py_INCREF(result)Py_INCREF(((PyObject*)((result)))); |
12701 | return result; |
12702 | } |
12703 | static PyObject * |
12704 | __Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) { |
12705 | int is_coroutine; |
12706 | CYTHON_UNUSED_VAR(context)(void)(context); |
12707 | if (op->func_is_coroutine) { |
12708 | return __Pyx_NewRef(op->func_is_coroutine)(Py_INCREF(((PyObject*)((op->func_is_coroutine)))), op-> func_is_coroutine); |
12709 | } |
12710 | is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE0x08; |
12711 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03050000 |
12712 | if (is_coroutine) { |
12713 | PyObject *module, *fromlist, *marker = __pyx_n_s_is_coroutine__pyx_mstate_global->__pyx_n_s_is_coroutine; |
12714 | fromlist = PyList_New(1); |
12715 | if (unlikely(!fromlist)__builtin_expect(!!(!fromlist), 0)) return NULL((void*)0); |
12716 | Py_INCREF(marker)Py_INCREF(((PyObject*)((marker)))); |
12717 | #if CYTHON_ASSUME_SAFE_MACROS1 |
12718 | PyList_SET_ITEM(fromlist, 0, marker)PyList_SET_ITEM(((PyObject*)((fromlist))), 0, ((PyObject*)((marker )))); |
12719 | #else |
12720 | if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)__builtin_expect(!!(PyList_SetItem(fromlist, 0, marker) < 0 ), 0)) { |
12721 | Py_DECREF(marker)Py_DECREF(((PyObject*)((marker)))); |
12722 | Py_DECREF(fromlist)Py_DECREF(((PyObject*)((fromlist)))); |
12723 | return NULL((void*)0); |
12724 | } |
12725 | #endif |
12726 | module = PyImport_ImportModuleLevelObject(__pyx_n_s_asyncio_coroutines__pyx_mstate_global->__pyx_n_s_asyncio_coroutines, NULL((void*)0), NULL((void*)0), fromlist, 0); |
12727 | Py_DECREF(fromlist)Py_DECREF(((PyObject*)((fromlist)))); |
12728 | if (unlikely(!module)__builtin_expect(!!(!module), 0)) goto ignore; |
12729 | op->func_is_coroutine = __Pyx_PyObject_GetAttrStr(module, marker); |
12730 | Py_DECREF(module)Py_DECREF(((PyObject*)((module)))); |
12731 | if (likely(op->func_is_coroutine)__builtin_expect(!!(op->func_is_coroutine), 1)) { |
12732 | return __Pyx_NewRef(op->func_is_coroutine)(Py_INCREF(((PyObject*)((op->func_is_coroutine)))), op-> func_is_coroutine); |
12733 | } |
12734 | ignore: |
12735 | PyErr_Clear(); |
12736 | } |
12737 | #endif |
12738 | op->func_is_coroutine = __Pyx_PyBool_FromLong(is_coroutine); |
12739 | return __Pyx_NewRef(op->func_is_coroutine)(Py_INCREF(((PyObject*)((op->func_is_coroutine)))), op-> func_is_coroutine); |
12740 | } |
12741 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12742 | static PyObject * |
12743 | __Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) { |
12744 | CYTHON_UNUSED_VAR(context)(void)(context); |
12745 | return PyObject_GetAttrString(op->func, "__module__"); |
12746 | } |
12747 | static int |
12748 | __Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) { |
12749 | CYTHON_UNUSED_VAR(context)(void)(context); |
12750 | return PyObject_SetAttrString(op->func, "__module__", value); |
12751 | } |
12752 | #endif |
12753 | static PyGetSetDef __pyx_CyFunction_getsets[] = { |
12754 | {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, |
12755 | {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, |
12756 | {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, |
12757 | {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, |
12758 | {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, |
12759 | {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, |
12760 | {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, |
12761 | {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, |
12762 | {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, |
12763 | {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, |
12764 | {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, |
12765 | {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, |
12766 | {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, |
12767 | {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, |
12768 | {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, |
12769 | {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, |
12770 | {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, |
12771 | {(char *) "_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0}, |
12772 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12773 | {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0}, |
12774 | #endif |
12775 | {0, 0, 0, 0, 0} |
12776 | }; |
12777 | static PyMemberDef __pyx_CyFunction_members[] = { |
12778 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
12779 | {(char *) "__module__", T_OBJECT6, offsetof(PyCFunctionObject, m_module)__builtin_offsetof(PyCFunctionObject, m_module), 0, 0}, |
12780 | #endif |
12781 | #if CYTHON_USE_TYPE_SPECS0 |
12782 | {(char *) "__dictoffset__", T_PYSSIZET19, offsetof(__pyx_CyFunctionObject, func_dict)__builtin_offsetof(__pyx_CyFunctionObject, func_dict), READONLY1, 0}, |
12783 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
12784 | #if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
12785 | {(char *) "__vectorcalloffset__", T_PYSSIZET19, offsetof(__pyx_CyFunctionObject, func_vectorcall)__builtin_offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY1, 0}, |
12786 | #else |
12787 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
12788 | {(char *) "__vectorcalloffset__", T_PYSSIZET19, offsetof(PyCFunctionObject, vectorcall)__builtin_offsetof(PyCFunctionObject, vectorcall), READONLY1, 0}, |
12789 | #endif |
12790 | #endif |
12791 | #endif |
12792 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API0 |
12793 | {(char *) "__weaklistoffset__", T_PYSSIZET19, offsetof(__pyx_CyFunctionObject, func_weakreflist)__builtin_offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY1, 0}, |
12794 | #else |
12795 | {(char *) "__weaklistoffset__", T_PYSSIZET19, offsetof(PyCFunctionObject, m_weakreflist)__builtin_offsetof(PyCFunctionObject, m_weakreflist), READONLY1, 0}, |
12796 | #endif |
12797 | #endif |
12798 | {0, 0, 0, 0, 0} |
12799 | }; |
12800 | static PyObject * |
12801 | __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args) |
12802 | { |
12803 | CYTHON_UNUSED_VAR(args)(void)(args); |
12804 | #if PY_MAJOR_VERSION3 >= 3 |
12805 | Py_INCREF(m->func_qualname)Py_INCREF(((PyObject*)((m->func_qualname)))); |
12806 | return m->func_qualname; |
12807 | #else |
12808 | return PyString_FromString(((PyCFunctionObject*)m)->m_ml->ml_name); |
12809 | #endif |
12810 | } |
12811 | static PyMethodDef __pyx_CyFunction_methods[] = { |
12812 | {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS0x0001, 0}, |
12813 | {0, 0, 0, 0} |
12814 | }; |
12815 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API0 |
12816 | #define __Pyx_CyFunction_weakreflist(cyfunc)(((PyCFunctionObject*)cyfunc)->m_weakreflist) ((cyfunc)->func_weakreflist) |
12817 | #else |
12818 | #define __Pyx_CyFunction_weakreflist(cyfunc)(((PyCFunctionObject*)cyfunc)->m_weakreflist) (((PyCFunctionObject*)cyfunc)->m_weakreflist) |
12819 | #endif |
12820 | static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname, |
12821 | PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { |
12822 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
12823 | PyCFunctionObject *cf = (PyCFunctionObject*) op; |
12824 | #endif |
12825 | if (unlikely(op == NULL)__builtin_expect(!!(op == ((void*)0)), 0)) |
12826 | return NULL((void*)0); |
12827 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12828 | op->func = PyCFunction_NewEx(ml, (PyObject*)op, module)PyCMethod_New((ml), ((PyObject*)op), (module), ((void*)0)); |
12829 | if (unlikely(!op->func)__builtin_expect(!!(!op->func), 0)) return NULL((void*)0); |
12830 | #endif |
12831 | op->flags = flags; |
12832 | __Pyx_CyFunction_weakreflist(op)(((PyCFunctionObject*)op)->m_weakreflist) = NULL((void*)0); |
12833 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
12834 | cf->m_ml = ml; |
12835 | cf->m_self = (PyObject *) op; |
12836 | #endif |
12837 | Py_XINCREF(closure)Py_XINCREF(((PyObject*)((closure)))); |
12838 | op->func_closure = closure; |
12839 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
12840 | Py_XINCREF(module)Py_XINCREF(((PyObject*)((module)))); |
12841 | cf->m_module = module; |
12842 | #endif |
12843 | op->func_dict = NULL((void*)0); |
12844 | op->func_name = NULL((void*)0); |
12845 | Py_INCREF(qualname)Py_INCREF(((PyObject*)((qualname)))); |
12846 | op->func_qualname = qualname; |
12847 | op->func_doc = NULL((void*)0); |
12848 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API0 |
12849 | op->func_classobj = NULL((void*)0); |
12850 | #else |
12851 | ((PyCMethodObject*)op)->mm_class = NULL((void*)0); |
12852 | #endif |
12853 | op->func_globals = globals; |
12854 | Py_INCREF(op->func_globals)Py_INCREF(((PyObject*)((op->func_globals)))); |
12855 | Py_XINCREF(code)Py_XINCREF(((PyObject*)((code)))); |
12856 | op->func_code = code; |
12857 | op->defaults_pyobjects = 0; |
12858 | op->defaults_size = 0; |
12859 | op->defaults = NULL((void*)0); |
12860 | op->defaults_tuple = NULL((void*)0); |
12861 | op->defaults_kwdict = NULL((void*)0); |
12862 | op->defaults_getter = NULL((void*)0); |
12863 | op->func_annotations = NULL((void*)0); |
12864 | op->func_is_coroutine = NULL((void*)0); |
12865 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
12866 | switch (ml->ml_flags & (METH_VARARGS0x0001 | METH_FASTCALL0x0080 | METH_NOARGS0x0004 | METH_O0x0008 | METH_KEYWORDS0x0002 | METH_METHOD0x0200)) { |
12867 | case METH_NOARGS0x0004: |
12868 | __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_NOARGS; |
12869 | break; |
12870 | case METH_O0x0008: |
12871 | __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_O; |
12872 | break; |
12873 | case METH_METHOD0x0200 | METH_FASTCALL0x0080 | METH_KEYWORDS0x0002: |
12874 | __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD; |
12875 | break; |
12876 | case METH_FASTCALL0x0080 | METH_KEYWORDS0x0002: |
12877 | __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS; |
12878 | break; |
12879 | case METH_VARARGS0x0001 | METH_KEYWORDS0x0002: |
12880 | __Pyx_CyFunction_func_vectorcall(op)(((PyCFunctionObject*)op)->vectorcall) = NULL((void*)0); |
12881 | break; |
12882 | default: |
12883 | PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); |
12884 | Py_DECREF(op)Py_DECREF(((PyObject*)((op)))); |
12885 | return NULL((void*)0); |
12886 | } |
12887 | #endif |
12888 | return (PyObject *) op; |
12889 | } |
12890 | static int |
12891 | __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) |
12892 | { |
12893 | Py_CLEAR(m->func_closure)do { PyObject *_py_tmp = ((PyObject*)((m->func_closure))); if (_py_tmp != ((void*)0)) { (m->func_closure) = ((void*) 0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
12894 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12895 | Py_CLEAR(m->func)do { PyObject *_py_tmp = ((PyObject*)((m->func))); if (_py_tmp != ((void*)0)) { (m->func) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
12896 | #else |
12897 | Py_CLEAR(((PyCFunctionObject*)m)->m_module)do { PyObject *_py_tmp = ((PyObject*)((((PyCFunctionObject*)m )->m_module))); if (_py_tmp != ((void*)0)) { (((PyCFunctionObject *)m)->m_module) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp )))); } } while (0); |
12898 | #endif |
12899 | Py_CLEAR(m->func_dict)do { PyObject *_py_tmp = ((PyObject*)((m->func_dict))); if (_py_tmp != ((void*)0)) { (m->func_dict) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
12900 | Py_CLEAR(m->func_name)do { PyObject *_py_tmp = ((PyObject*)((m->func_name))); if (_py_tmp != ((void*)0)) { (m->func_name) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
12901 | Py_CLEAR(m->func_qualname)do { PyObject *_py_tmp = ((PyObject*)((m->func_qualname))) ; if (_py_tmp != ((void*)0)) { (m->func_qualname) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
12902 | Py_CLEAR(m->func_doc)do { PyObject *_py_tmp = ((PyObject*)((m->func_doc))); if ( _py_tmp != ((void*)0)) { (m->func_doc) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
12903 | Py_CLEAR(m->func_globals)do { PyObject *_py_tmp = ((PyObject*)((m->func_globals))); if (_py_tmp != ((void*)0)) { (m->func_globals) = ((void*) 0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
12904 | Py_CLEAR(m->func_code)do { PyObject *_py_tmp = ((PyObject*)((m->func_code))); if (_py_tmp != ((void*)0)) { (m->func_code) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
12905 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
12906 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030900B1 |
12907 | Py_CLEAR(__Pyx_CyFunction_GetClassObj(m))do { PyObject *_py_tmp = ((PyObject*)((((PyObject*) ((PyCMethodObject *) (m))->mm_class)))); if (_py_tmp != ((void*)0)) { (((PyObject *) ((PyCMethodObject *) (m))->mm_class)) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
12908 | #else |
12909 | { |
12910 | PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class; |
12911 | ((PyCMethodObject *) (m))->mm_class = NULL((void*)0); |
12912 | Py_XDECREF(cls)Py_XDECREF(((PyObject*)((cls)))); |
12913 | } |
12914 | #endif |
12915 | #endif |
12916 | Py_CLEAR(m->defaults_tuple)do { PyObject *_py_tmp = ((PyObject*)((m->defaults_tuple)) ); if (_py_tmp != ((void*)0)) { (m->defaults_tuple) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
12917 | Py_CLEAR(m->defaults_kwdict)do { PyObject *_py_tmp = ((PyObject*)((m->defaults_kwdict) )); if (_py_tmp != ((void*)0)) { (m->defaults_kwdict) = (( void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
12918 | Py_CLEAR(m->func_annotations)do { PyObject *_py_tmp = ((PyObject*)((m->func_annotations ))); if (_py_tmp != ((void*)0)) { (m->func_annotations) = ( (void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
12919 | Py_CLEAR(m->func_is_coroutine)do { PyObject *_py_tmp = ((PyObject*)((m->func_is_coroutine ))); if (_py_tmp != ((void*)0)) { (m->func_is_coroutine) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while ( 0); |
12920 | if (m->defaults) { |
12921 | PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m)((PyObject * *)(((__pyx_CyFunctionObject *) (m))->defaults )); |
12922 | int i; |
12923 | for (i = 0; i < m->defaults_pyobjects; i++) |
12924 | Py_XDECREF(pydefaults[i])Py_XDECREF(((PyObject*)((pydefaults[i])))); |
12925 | PyObject_Free(m->defaults); |
12926 | m->defaults = NULL((void*)0); |
12927 | } |
12928 | return 0; |
12929 | } |
12930 | static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m) |
12931 | { |
12932 | if (__Pyx_CyFunction_weakreflist(m)(((PyCFunctionObject*)m)->m_weakreflist) != NULL((void*)0)) |
12933 | PyObject_ClearWeakRefs((PyObject *) m); |
12934 | __Pyx_CyFunction_clear(m); |
12935 | __Pyx_PyHeapTypeObject_GC_Del(m)PyObject_GC_Del(m); |
12936 | } |
12937 | static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) |
12938 | { |
12939 | PyObject_GC_UnTrack(m); |
12940 | __Pyx__CyFunction_dealloc(m); |
12941 | } |
12942 | static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) |
12943 | { |
12944 | Py_VISIT(m->func_closure)do { if (m->func_closure) { int vret = visit(((PyObject*)( (m->func_closure))), arg); if (vret) return vret; } } while (0); |
12945 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12946 | Py_VISIT(m->func)do { if (m->func) { int vret = visit(((PyObject*)((m->func ))), arg); if (vret) return vret; } } while (0); |
12947 | #else |
12948 | Py_VISIT(((PyCFunctionObject*)m)->m_module)do { if (((PyCFunctionObject*)m)->m_module) { int vret = visit (((PyObject*)((((PyCFunctionObject*)m)->m_module))), arg); if (vret) return vret; } } while (0); |
12949 | #endif |
12950 | Py_VISIT(m->func_dict)do { if (m->func_dict) { int vret = visit(((PyObject*)((m-> func_dict))), arg); if (vret) return vret; } } while (0); |
12951 | Py_VISIT(m->func_name)do { if (m->func_name) { int vret = visit(((PyObject*)((m-> func_name))), arg); if (vret) return vret; } } while (0); |
12952 | Py_VISIT(m->func_qualname)do { if (m->func_qualname) { int vret = visit(((PyObject*) ((m->func_qualname))), arg); if (vret) return vret; } } while (0); |
12953 | Py_VISIT(m->func_doc)do { if (m->func_doc) { int vret = visit(((PyObject*)((m-> func_doc))), arg); if (vret) return vret; } } while (0); |
12954 | Py_VISIT(m->func_globals)do { if (m->func_globals) { int vret = visit(((PyObject*)( (m->func_globals))), arg); if (vret) return vret; } } while (0); |
12955 | Py_VISIT(m->func_code)do { if (m->func_code) { int vret = visit(((PyObject*)((m-> func_code))), arg); if (vret) return vret; } } while (0); |
12956 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
12957 | Py_VISIT(__Pyx_CyFunction_GetClassObj(m))do { if (((PyObject*) ((PyCMethodObject *) (m))->mm_class) ) { int vret = visit(((PyObject*)((((PyObject*) ((PyCMethodObject *) (m))->mm_class)))), arg); if (vret) return vret; } } while (0); |
12958 | #endif |
12959 | Py_VISIT(m->defaults_tuple)do { if (m->defaults_tuple) { int vret = visit(((PyObject* )((m->defaults_tuple))), arg); if (vret) return vret; } } while (0); |
12960 | Py_VISIT(m->defaults_kwdict)do { if (m->defaults_kwdict) { int vret = visit(((PyObject *)((m->defaults_kwdict))), arg); if (vret) return vret; } } while (0); |
12961 | Py_VISIT(m->func_is_coroutine)do { if (m->func_is_coroutine) { int vret = visit(((PyObject *)((m->func_is_coroutine))), arg); if (vret) return vret; } } while (0); |
12962 | if (m->defaults) { |
12963 | PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m)((PyObject * *)(((__pyx_CyFunctionObject *) (m))->defaults )); |
12964 | int i; |
12965 | for (i = 0; i < m->defaults_pyobjects; i++) |
12966 | Py_VISIT(pydefaults[i])do { if (pydefaults[i]) { int vret = visit(((PyObject*)((pydefaults [i]))), arg); if (vret) return vret; } } while (0); |
12967 | } |
12968 | return 0; |
12969 | } |
12970 | static PyObject* |
12971 | __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) |
12972 | { |
12973 | #if PY_MAJOR_VERSION3 >= 3 |
12974 | return PyUnicode_FromFormat("<cyfunction %U at %p>", |
12975 | op->func_qualname, (void *)op); |
12976 | #else |
12977 | return PyString_FromFormat("<cyfunction %s at %p>", |
12978 | PyString_AsString(op->func_qualname), (void *)op); |
12979 | #endif |
12980 | } |
12981 | static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { |
12982 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
12983 | PyObject *f = ((__pyx_CyFunctionObject*)func)->func; |
12984 | PyObject *py_name = NULL((void*)0); |
12985 | PyCFunction meth; |
12986 | int flags; |
12987 | meth = PyCFunction_GetFunction(f); |
12988 | if (unlikely(!meth)__builtin_expect(!!(!meth), 0)) return NULL((void*)0); |
12989 | flags = PyCFunction_GetFlags(f); |
12990 | if (unlikely(flags < 0)__builtin_expect(!!(flags < 0), 0)) return NULL((void*)0); |
12991 | #else |
12992 | PyCFunctionObject* f = (PyCFunctionObject*)func; |
12993 | PyCFunction meth = f->m_ml->ml_meth; |
12994 | int flags = f->m_ml->ml_flags; |
12995 | #endif |
12996 | Py_ssize_t size; |
12997 | switch (flags & (METH_VARARGS0x0001 | METH_KEYWORDS0x0002 | METH_NOARGS0x0004 | METH_O0x0008)) { |
12998 | case METH_VARARGS0x0001: |
12999 | if (likely(kw == NULL || PyDict_Size(kw) == 0)__builtin_expect(!!(kw == ((void*)0) || PyDict_Size(kw) == 0) , 1)) |
13000 | return (*meth)(self, arg); |
13001 | break; |
13002 | case METH_VARARGS0x0001 | METH_KEYWORDS0x0002: |
13003 | return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw); |
13004 | case METH_NOARGS0x0004: |
13005 | if (likely(kw == NULL || PyDict_Size(kw) == 0)__builtin_expect(!!(kw == ((void*)0) || PyDict_Size(kw) == 0) , 1)) { |
13006 | #if CYTHON_ASSUME_SAFE_MACROS1 |
13007 | size = PyTuple_GET_SIZE(arg)PyTuple_GET_SIZE(((PyObject*)((arg)))); |
13008 | #else |
13009 | size = PyTuple_Size(arg); |
13010 | if (unlikely(size < 0)__builtin_expect(!!(size < 0), 0)) return NULL((void*)0); |
13011 | #endif |
13012 | if (likely(size == 0)__builtin_expect(!!(size == 0), 1)) |
13013 | return (*meth)(self, NULL((void*)0)); |
13014 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
13015 | py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL((void*)0)); |
13016 | if (!py_name) return NULL((void*)0); |
13017 | PyErr_Format(PyExc_TypeError, |
13018 | "%.200S() takes no arguments (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
13019 | py_name, size); |
13020 | Py_DECREF(py_name)Py_DECREF(((PyObject*)((py_name)))); |
13021 | #else |
13022 | PyErr_Format(PyExc_TypeError, |
13023 | "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
13024 | f->m_ml->ml_name, size); |
13025 | #endif |
13026 | return NULL((void*)0); |
13027 | } |
13028 | break; |
13029 | case METH_O0x0008: |
13030 | if (likely(kw == NULL || PyDict_Size(kw) == 0)__builtin_expect(!!(kw == ((void*)0) || PyDict_Size(kw) == 0) , 1)) { |
13031 | #if CYTHON_ASSUME_SAFE_MACROS1 |
13032 | size = PyTuple_GET_SIZE(arg)PyTuple_GET_SIZE(((PyObject*)((arg)))); |
13033 | #else |
13034 | size = PyTuple_Size(arg); |
13035 | if (unlikely(size < 0)__builtin_expect(!!(size < 0), 0)) return NULL((void*)0); |
13036 | #endif |
13037 | if (likely(size == 1)__builtin_expect(!!(size == 1), 1)) { |
13038 | PyObject *result, *arg0; |
13039 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
13040 | arg0 = PyTuple_GET_ITEM(arg, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((arg )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((arg)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(arg)", "abaqusFILReader.c", 13040, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((arg))))->ob_item [0]); |
13041 | #else |
13042 | arg0 = __Pyx_PySequence_ITEM(arg, 0)( Py_TYPE(((PyObject*)((arg))))->tp_as_sequence->sq_item (arg, 0) ); if (unlikely(!arg0)__builtin_expect(!!(!arg0), 0)) return NULL((void*)0); |
13043 | #endif |
13044 | result = (*meth)(self, arg0); |
13045 | #if !(CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0) |
13046 | Py_DECREF(arg0)Py_DECREF(((PyObject*)((arg0)))); |
13047 | #endif |
13048 | return result; |
13049 | } |
13050 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
13051 | py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL((void*)0)); |
13052 | if (!py_name) return NULL((void*)0); |
13053 | PyErr_Format(PyExc_TypeError, |
13054 | "%.200S() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
13055 | py_name, size); |
13056 | Py_DECREF(py_name)Py_DECREF(((PyObject*)((py_name)))); |
13057 | #else |
13058 | PyErr_Format(PyExc_TypeError, |
13059 | "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
13060 | f->m_ml->ml_name, size); |
13061 | #endif |
13062 | return NULL((void*)0); |
13063 | } |
13064 | break; |
13065 | default: |
13066 | PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); |
13067 | return NULL((void*)0); |
13068 | } |
13069 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
13070 | py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL((void*)0)); |
13071 | if (!py_name) return NULL((void*)0); |
13072 | PyErr_Format(PyExc_TypeError, "%.200S() takes no keyword arguments", |
13073 | py_name); |
13074 | Py_DECREF(py_name)Py_DECREF(((PyObject*)((py_name)))); |
13075 | #else |
13076 | PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", |
13077 | f->m_ml->ml_name); |
13078 | #endif |
13079 | return NULL((void*)0); |
13080 | } |
13081 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { |
13082 | PyObject *self, *result; |
13083 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
13084 | self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func); |
13085 | if (unlikely(!self)__builtin_expect(!!(!self), 0) && PyErr_Occurred()) return NULL((void*)0); |
13086 | #else |
13087 | self = ((PyCFunctionObject*)func)->m_self; |
13088 | #endif |
13089 | result = __Pyx_CyFunction_CallMethod(func, self, arg, kw); |
13090 | return result; |
13091 | } |
13092 | static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { |
13093 | PyObject *result; |
13094 | __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; |
13095 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
13096 | __pyx_vectorcallfuncvectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc)(((PyCFunctionObject*)cyfunc)->vectorcall); |
13097 | if (vc) { |
13098 | #if CYTHON_ASSUME_SAFE_MACROS1 |
13099 | return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((args )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((args)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(args)", "abaqusFILReader.c", 13099, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((args))))->ob_item [0]), (size_t)PyTuple_GET_SIZE(args)PyTuple_GET_SIZE(((PyObject*)((args)))), kw); |
13100 | #else |
13101 | (void) &__Pyx_PyVectorcall_FastCallDict; |
13102 | return PyVectorcall_Call(func, args, kw); |
13103 | #endif |
13104 | } |
13105 | #endif |
13106 | if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS0x04) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD0x01)) { |
13107 | Py_ssize_t argc; |
13108 | PyObject *new_args; |
13109 | PyObject *self; |
13110 | #if CYTHON_ASSUME_SAFE_MACROS1 |
13111 | argc = PyTuple_GET_SIZE(args)PyTuple_GET_SIZE(((PyObject*)((args)))); |
13112 | #else |
13113 | argc = PyTuple_Size(args); |
13114 | if (unlikely(!argc)__builtin_expect(!!(!argc), 0) < 0) return NULL((void*)0); |
13115 | #endif |
13116 | new_args = PyTuple_GetSlice(args, 1, argc); |
13117 | if (unlikely(!new_args)__builtin_expect(!!(!new_args), 0)) |
13118 | return NULL((void*)0); |
13119 | self = PyTuple_GetItem(args, 0); |
13120 | if (unlikely(!self)__builtin_expect(!!(!self), 0)) { |
13121 | Py_DECREF(new_args)Py_DECREF(((PyObject*)((new_args)))); |
13122 | #if PY_MAJOR_VERSION3 > 2 |
13123 | PyErr_Format(PyExc_TypeError, |
13124 | "unbound method %.200S() needs an argument", |
13125 | cyfunc->func_qualname); |
13126 | #else |
13127 | PyErr_SetString(PyExc_TypeError, |
13128 | "unbound method needs an argument"); |
13129 | #endif |
13130 | return NULL((void*)0); |
13131 | } |
13132 | result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); |
13133 | Py_DECREF(new_args)Py_DECREF(((PyObject*)((new_args)))); |
13134 | } else { |
13135 | result = __Pyx_CyFunction_Call(func, args, kw); |
13136 | } |
13137 | return result; |
13138 | } |
13139 | #if CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
13140 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames) |
13141 | { |
13142 | int ret = 0; |
13143 | if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS0x04) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD0x01)) { |
13144 | if (unlikely(nargs < 1)__builtin_expect(!!(nargs < 1), 0)) { |
13145 | PyErr_Format(PyExc_TypeError, "%.200s() needs an argument", |
13146 | ((PyCFunctionObject*)cyfunc)->m_ml->ml_name); |
13147 | return -1; |
13148 | } |
13149 | ret = 1; |
13150 | } |
13151 | if (unlikely(kwnames)__builtin_expect(!!(kwnames), 0) && unlikely(PyTuple_GET_SIZE(kwnames))__builtin_expect(!!(PyTuple_GET_SIZE(((PyObject*)((kwnames))) )), 0)) { |
13152 | PyErr_Format(PyExc_TypeError, |
13153 | "%.200s() takes no keyword arguments", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name); |
13154 | return -1; |
13155 | } |
13156 | return ret; |
13157 | } |
13158 | static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) |
13159 | { |
13160 | __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; |
13161 | PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; |
13162 | #if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
13163 | Py_ssize_t nargs = (Py_ssize_t)nargsf; |
13164 | #else |
13165 | Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); |
13166 | #endif |
13167 | PyObject *self; |
13168 | switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { |
13169 | case 1: |
13170 | self = args[0]; |
13171 | args += 1; |
Value stored to 'args' is never read | |
13172 | nargs -= 1; |
13173 | break; |
13174 | case 0: |
13175 | self = ((PyCFunctionObject*)cyfunc)->m_self; |
13176 | break; |
13177 | default: |
13178 | return NULL((void*)0); |
13179 | } |
13180 | if (unlikely(nargs != 0)__builtin_expect(!!(nargs != 0), 0)) { |
13181 | PyErr_Format(PyExc_TypeError, |
13182 | "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
13183 | def->ml_name, nargs); |
13184 | return NULL((void*)0); |
13185 | } |
13186 | return def->ml_meth(self, NULL((void*)0)); |
13187 | } |
13188 | static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) |
13189 | { |
13190 | __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; |
13191 | PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; |
13192 | #if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
13193 | Py_ssize_t nargs = (Py_ssize_t)nargsf; |
13194 | #else |
13195 | Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); |
13196 | #endif |
13197 | PyObject *self; |
13198 | switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { |
13199 | case 1: |
13200 | self = args[0]; |
13201 | args += 1; |
13202 | nargs -= 1; |
13203 | break; |
13204 | case 0: |
13205 | self = ((PyCFunctionObject*)cyfunc)->m_self; |
13206 | break; |
13207 | default: |
13208 | return NULL((void*)0); |
13209 | } |
13210 | if (unlikely(nargs != 1)__builtin_expect(!!(nargs != 1), 0)) { |
13211 | PyErr_Format(PyExc_TypeError, |
13212 | "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
13213 | def->ml_name, nargs); |
13214 | return NULL((void*)0); |
13215 | } |
13216 | return def->ml_meth(self, args[0]); |
13217 | } |
13218 | static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) |
13219 | { |
13220 | __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; |
13221 | PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; |
13222 | #if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
13223 | Py_ssize_t nargs = (Py_ssize_t)nargsf; |
13224 | #else |
13225 | Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); |
13226 | #endif |
13227 | PyObject *self; |
13228 | switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL((void*)0))) { |
13229 | case 1: |
13230 | self = args[0]; |
13231 | args += 1; |
13232 | nargs -= 1; |
13233 | break; |
13234 | case 0: |
13235 | self = ((PyCFunctionObject*)cyfunc)->m_self; |
13236 | break; |
13237 | default: |
13238 | return NULL((void*)0); |
13239 | } |
13240 | return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); |
13241 | } |
13242 | static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) |
13243 | { |
13244 | __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func; |
13245 | PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; |
13246 | PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc)((PyObject*) ((PyCMethodObject *) (cyfunc))->mm_class); |
13247 | #if CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
13248 | Py_ssize_t nargs = (Py_ssize_t)nargsf; |
13249 | #else |
13250 | Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); |
13251 | #endif |
13252 | PyObject *self; |
13253 | switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL((void*)0))) { |
13254 | case 1: |
13255 | self = args[0]; |
13256 | args += 1; |
13257 | nargs -= 1; |
13258 | break; |
13259 | case 0: |
13260 | self = ((PyCFunctionObject*)cyfunc)->m_self; |
13261 | break; |
13262 | default: |
13263 | return NULL((void*)0); |
13264 | } |
13265 | return ((__Pyx_PyCMethodPyCMethod)(void(*)(void))def->ml_meth)(self, cls, args, (size_t)nargs, kwnames); |
13266 | } |
13267 | #endif |
13268 | #if CYTHON_USE_TYPE_SPECS0 |
13269 | static PyType_Slot __pyx_CyFunctionType_slots[] = { |
13270 | {Py_tp_dealloc52, (void *)__Pyx_CyFunction_dealloc}, |
13271 | {Py_tp_repr66, (void *)__Pyx_CyFunction_repr}, |
13272 | {Py_tp_call50, (void *)__Pyx_CyFunction_CallAsMethod}, |
13273 | {Py_tp_traverse71, (void *)__Pyx_CyFunction_traverse}, |
13274 | {Py_tp_clear51, (void *)__Pyx_CyFunction_clear}, |
13275 | {Py_tp_methods64, (void *)__pyx_CyFunction_methods}, |
13276 | {Py_tp_members72, (void *)__pyx_CyFunction_members}, |
13277 | {Py_tp_getset73, (void *)__pyx_CyFunction_getsets}, |
13278 | {Py_tp_descr_get54, (void *)__Pyx_PyMethod_New}, |
13279 | {0, 0}, |
13280 | }; |
13281 | static PyType_Spec __pyx_CyFunctionType_spec = { |
13282 | __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." "cython_function_or_method", |
13283 | sizeof(__pyx_CyFunctionObject), |
13284 | 0, |
13285 | #ifdef Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17) |
13286 | Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17) | |
13287 | #endif |
13288 | #if (defined(_Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11)) && CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1)) |
13289 | _Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11) | |
13290 | #endif |
13291 | Py_TPFLAGS_DEFAULT( 0 | 0) | Py_TPFLAGS_HAVE_GC(1UL << 14) | Py_TPFLAGS_BASETYPE(1UL << 10), |
13292 | __pyx_CyFunctionType_slots |
13293 | }; |
13294 | #else |
13295 | static PyTypeObject __pyx_CyFunctionType_type = { |
13296 | PyVarObject_HEAD_INIT(0, 0){ { 1, 0 }, 0 }, |
13297 | __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." "cython_function_or_method", |
13298 | sizeof(__pyx_CyFunctionObject), |
13299 | 0, |
13300 | (destructor) __Pyx_CyFunction_dealloc, |
13301 | #if !CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
13302 | 0, |
13303 | #elif CYTHON_BACKPORT_VECTORCALL((((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) && ( (3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030800B1) |
13304 | (printfunc)offsetof(__pyx_CyFunctionObject, func_vectorcall)__builtin_offsetof(__pyx_CyFunctionObject, func_vectorcall), |
13305 | #else |
13306 | offsetof(PyCFunctionObject, vectorcall)__builtin_offsetof(PyCFunctionObject, vectorcall), |
13307 | #endif |
13308 | 0, |
13309 | 0, |
13310 | #if PY_MAJOR_VERSION3 < 3 |
13311 | 0, |
13312 | #else |
13313 | 0, |
13314 | #endif |
13315 | (reprfunc) __Pyx_CyFunction_repr, |
13316 | 0, |
13317 | 0, |
13318 | 0, |
13319 | 0, |
13320 | __Pyx_CyFunction_CallAsMethod, |
13321 | 0, |
13322 | 0, |
13323 | 0, |
13324 | 0, |
13325 | #ifdef Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17) |
13326 | Py_TPFLAGS_METHOD_DESCRIPTOR(1UL << 17) | |
13327 | #endif |
13328 | #if defined(_Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11)) && CYTHON_METH_FASTCALL(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030700A1) |
13329 | _Py_TPFLAGS_HAVE_VECTORCALL(1UL << 11) | |
13330 | #endif |
13331 | Py_TPFLAGS_DEFAULT( 0 | 0) | Py_TPFLAGS_HAVE_GC(1UL << 14) | Py_TPFLAGS_BASETYPE(1UL << 10), |
13332 | 0, |
13333 | (traverseproc) __Pyx_CyFunction_traverse, |
13334 | (inquiry) __Pyx_CyFunction_clear, |
13335 | 0, |
13336 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030500A0 |
13337 | offsetof(__pyx_CyFunctionObject, func_weakreflist)__builtin_offsetof(__pyx_CyFunctionObject, func_weakreflist), |
13338 | #else |
13339 | offsetof(PyCFunctionObject, m_weakreflist)__builtin_offsetof(PyCFunctionObject, m_weakreflist), |
13340 | #endif |
13341 | 0, |
13342 | 0, |
13343 | __pyx_CyFunction_methods, |
13344 | __pyx_CyFunction_members, |
13345 | __pyx_CyFunction_getsets, |
13346 | 0, |
13347 | 0, |
13348 | __Pyx_PyMethod_New, |
13349 | 0, |
13350 | offsetof(__pyx_CyFunctionObject, func_dict)__builtin_offsetof(__pyx_CyFunctionObject, func_dict), |
13351 | 0, |
13352 | 0, |
13353 | 0, |
13354 | 0, |
13355 | 0, |
13356 | 0, |
13357 | 0, |
13358 | 0, |
13359 | 0, |
13360 | 0, |
13361 | 0, |
13362 | 0, |
13363 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
13364 | 0, |
13365 | #endif |
13366 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY0 || PYPY_VERSION_NUM >= 0x07030800) |
13367 | 0, |
13368 | #endif |
13369 | #if __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000) |
13370 | 0, |
13371 | #endif |
13372 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C0000 |
13373 | 0, |
13374 | #endif |
13375 | #if CYTHON_COMPILING_IN_PYPY0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03090000 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030a0000 |
13376 | 0, |
13377 | #endif |
13378 | }; |
13379 | #endif |
13380 | static int __pyx_CyFunction_init(PyObject *module) { |
13381 | #if CYTHON_USE_TYPE_SPECS0 |
13382 | __pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_CyFunctionType_spec, NULL((void*)0)); |
13383 | #else |
13384 | CYTHON_UNUSED_VAR(module)(void)(module); |
13385 | __pyx_CyFunctionType__pyx_mstate_global->__pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); |
13386 | #endif |
13387 | if (unlikely(__pyx_CyFunctionType == NULL)__builtin_expect(!!(__pyx_mstate_global->__pyx_CyFunctionType == ((void*)0)), 0)) { |
13388 | return -1; |
13389 | } |
13390 | return 0; |
13391 | } |
13392 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { |
13393 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
13394 | m->defaults = PyObject_Malloc(size); |
13395 | if (unlikely(!m->defaults)__builtin_expect(!!(!m->defaults), 0)) |
13396 | return PyErr_NoMemory(); |
13397 | memset(m->defaults, 0, size); |
13398 | m->defaults_pyobjects = pyobjects; |
13399 | m->defaults_size = size; |
13400 | return m->defaults; |
13401 | } |
13402 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { |
13403 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
13404 | m->defaults_tuple = tuple; |
13405 | Py_INCREF(tuple)Py_INCREF(((PyObject*)((tuple)))); |
13406 | } |
13407 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { |
13408 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
13409 | m->defaults_kwdict = dict; |
13410 | Py_INCREF(dict)Py_INCREF(((PyObject*)((dict)))); |
13411 | } |
13412 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { |
13413 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
13414 | m->func_annotations = dict; |
13415 | Py_INCREF(dict)Py_INCREF(((PyObject*)((dict)))); |
13416 | } |
13417 | |
13418 | /* CythonFunction */ |
13419 | static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname, |
13420 | PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { |
13421 | PyObject *op = __Pyx_CyFunction_Init( |
13422 | PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType)((__pyx_CyFunctionObject*)(_PyObject_GC_New(__pyx_mstate_global ->__pyx_CyFunctionType))), |
13423 | ml, flags, qualname, closure, module, globals, code |
13424 | ); |
13425 | if (likely(op)__builtin_expect(!!(op), 1)) { |
13426 | PyObject_GC_Track(op); |
13427 | } |
13428 | return op; |
13429 | } |
13430 | |
13431 | /* CLineInTraceback */ |
13432 | #ifndef CYTHON_CLINE_IN_TRACEBACK |
13433 | static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) { |
13434 | PyObject *use_cline; |
13435 | PyObject *ptype, *pvalue, *ptraceback; |
13436 | #if CYTHON_COMPILING_IN_CPYTHON1 |
13437 | PyObject **cython_runtime_dict; |
13438 | #endif |
13439 | CYTHON_MAYBE_UNUSED_VAR(tstate)(void)(tstate); |
13440 | if (unlikely(!__pyx_cython_runtime)__builtin_expect(!!(!__pyx_mstate_global->__pyx_cython_runtime ), 0)) { |
13441 | return c_line; |
13442 | } |
13443 | __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); |
13444 | #if CYTHON_COMPILING_IN_CPYTHON1 |
13445 | cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime); |
13446 | if (likely(cython_runtime_dict)__builtin_expect(!!(cython_runtime_dict), 1)) { |
13447 | __PYX_PY_DICT_LOOKUP_IF_MODIFIED({ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value = ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(*cython_runtime_dict ))->ma_version_tag) == __pyx_dict_version), 1)) { (use_cline ) = __pyx_dict_cached_value; } else { (use_cline) = __pyx_dict_cached_value = (__Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_mstate_global ->__pyx_n_s_cline_in_traceback)); __pyx_dict_version = ((( PyDictObject*)(*cython_runtime_dict))->ma_version_tag); }} |
13448 | use_cline, *cython_runtime_dict,{ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value = ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(*cython_runtime_dict ))->ma_version_tag) == __pyx_dict_version), 1)) { (use_cline ) = __pyx_dict_cached_value; } else { (use_cline) = __pyx_dict_cached_value = (__Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_mstate_global ->__pyx_n_s_cline_in_traceback)); __pyx_dict_version = ((( PyDictObject*)(*cython_runtime_dict))->ma_version_tag); }} |
13449 | __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback)){ static uint64_t __pyx_dict_version = 0; static PyObject *__pyx_dict_cached_value = ((void*)0); if (__builtin_expect(!!((((PyDictObject*)(*cython_runtime_dict ))->ma_version_tag) == __pyx_dict_version), 1)) { (use_cline ) = __pyx_dict_cached_value; } else { (use_cline) = __pyx_dict_cached_value = (__Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_mstate_global ->__pyx_n_s_cline_in_traceback)); __pyx_dict_version = ((( PyDictObject*)(*cython_runtime_dict))->ma_version_tag); }} |
13450 | } else |
13451 | #endif |
13452 | { |
13453 | PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStrNoError(__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime, __pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback); |
13454 | if (use_cline_obj) { |
13455 | use_cline = PyObject_Not(use_cline_obj) ? Py_False((PyObject *) &_Py_FalseStruct) : Py_True((PyObject *) &_Py_TrueStruct); |
13456 | Py_DECREF(use_cline_obj)Py_DECREF(((PyObject*)((use_cline_obj)))); |
13457 | } else { |
13458 | PyErr_Clear(); |
13459 | use_cline = NULL((void*)0); |
13460 | } |
13461 | } |
13462 | if (!use_cline) { |
13463 | c_line = 0; |
13464 | (void) PyObject_SetAttr(__pyx_cython_runtime__pyx_mstate_global->__pyx_cython_runtime, __pyx_n_s_cline_in_traceback__pyx_mstate_global->__pyx_n_s_cline_in_traceback, Py_False((PyObject *) &_Py_FalseStruct)); |
13465 | } |
13466 | else if (use_cline == Py_False((PyObject *) &_Py_FalseStruct) || (use_cline != Py_True((PyObject *) &_Py_TrueStruct) && PyObject_Not(use_cline) != 0)) { |
13467 | c_line = 0; |
13468 | } |
13469 | __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); |
13470 | return c_line; |
13471 | } |
13472 | #endif |
13473 | |
13474 | /* CodeObjectCache */ |
13475 | #if !CYTHON_COMPILING_IN_LIMITED_API0 |
13476 | static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { |
13477 | int start = 0, mid = 0, end = count - 1; |
13478 | if (end >= 0 && code_line > entries[end].code_line) { |
13479 | return count; |
13480 | } |
13481 | while (start < end) { |
13482 | mid = start + (end - start) / 2; |
13483 | if (code_line < entries[mid].code_line) { |
13484 | end = mid; |
13485 | } else if (code_line > entries[mid].code_line) { |
13486 | start = mid + 1; |
13487 | } else { |
13488 | return mid; |
13489 | } |
13490 | } |
13491 | if (code_line <= entries[mid].code_line) { |
13492 | return mid; |
13493 | } else { |
13494 | return mid + 1; |
13495 | } |
13496 | } |
13497 | static PyCodeObject *__pyx_find_code_object(int code_line) { |
13498 | PyCodeObject* code_object; |
13499 | int pos; |
13500 | if (unlikely(!code_line)__builtin_expect(!!(!code_line), 0) || unlikely(!__pyx_code_cache.entries)__builtin_expect(!!(!__pyx_code_cache.entries), 0)) { |
13501 | return NULL((void*)0); |
13502 | } |
13503 | pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); |
13504 | if (unlikely(pos >= __pyx_code_cache.count)__builtin_expect(!!(pos >= __pyx_code_cache.count), 0) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)__builtin_expect(!!(__pyx_code_cache.entries[pos].code_line != code_line), 0)) { |
13505 | return NULL((void*)0); |
13506 | } |
13507 | code_object = __pyx_code_cache.entries[pos].code_object; |
13508 | Py_INCREF(code_object)Py_INCREF(((PyObject*)((code_object)))); |
13509 | return code_object; |
13510 | } |
13511 | static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { |
13512 | int pos, i; |
13513 | __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; |
13514 | if (unlikely(!code_line)__builtin_expect(!!(!code_line), 0)) { |
13515 | return; |
13516 | } |
13517 | if (unlikely(!entries)__builtin_expect(!!(!entries), 0)) { |
13518 | entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); |
13519 | if (likely(entries)__builtin_expect(!!(entries), 1)) { |
13520 | __pyx_code_cache.entries = entries; |
13521 | __pyx_code_cache.max_count = 64; |
13522 | __pyx_code_cache.count = 1; |
13523 | entries[0].code_line = code_line; |
13524 | entries[0].code_object = code_object; |
13525 | Py_INCREF(code_object)Py_INCREF(((PyObject*)((code_object)))); |
13526 | } |
13527 | return; |
13528 | } |
13529 | pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); |
13530 | if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)__builtin_expect(!!(__pyx_code_cache.entries[pos].code_line == code_line), 0)) { |
13531 | PyCodeObject* tmp = entries[pos].code_object; |
13532 | entries[pos].code_object = code_object; |
13533 | Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp)))); |
13534 | return; |
13535 | } |
13536 | if (__pyx_code_cache.count == __pyx_code_cache.max_count) { |
13537 | int new_max = __pyx_code_cache.max_count + 64; |
13538 | entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( |
13539 | __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry)); |
13540 | if (unlikely(!entries)__builtin_expect(!!(!entries), 0)) { |
13541 | return; |
13542 | } |
13543 | __pyx_code_cache.entries = entries; |
13544 | __pyx_code_cache.max_count = new_max; |
13545 | } |
13546 | for (i=__pyx_code_cache.count; i>pos; i--) { |
13547 | entries[i] = entries[i-1]; |
13548 | } |
13549 | entries[pos].code_line = code_line; |
13550 | entries[pos].code_object = code_object; |
13551 | __pyx_code_cache.count++; |
13552 | Py_INCREF(code_object)Py_INCREF(((PyObject*)((code_object)))); |
13553 | } |
13554 | #endif |
13555 | |
13556 | /* AddTraceback */ |
13557 | #include "compile.h" |
13558 | #include "frameobject.h" |
13559 | #include "traceback.h" |
13560 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API0 |
13561 | #ifndef Py_BUILD_CORE1 |
13562 | #define Py_BUILD_CORE1 1 |
13563 | #endif |
13564 | #include "internal/pycore_frame.h" |
13565 | #endif |
13566 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
13567 | static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict, |
13568 | PyObject *firstlineno, PyObject *name) { |
13569 | PyObject *replace = NULL((void*)0); |
13570 | if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "co_firstlineno" , firstlineno)), 0)) return NULL((void*)0); |
13571 | if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "co_name" , name)), 0)) return NULL((void*)0); |
13572 | replace = PyObject_GetAttrString(code, "replace"); |
13573 | if (likely(replace)__builtin_expect(!!(replace), 1)) { |
13574 | PyObject *result; |
13575 | result = PyObject_Call(replace, __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, scratch_dict); |
13576 | Py_DECREF(replace)Py_DECREF(((PyObject*)((replace)))); |
13577 | return result; |
13578 | } |
13579 | PyErr_Clear(); |
13580 | #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030780000 |
13581 | { |
13582 | PyObject *compiled = NULL((void*)0), *result = NULL((void*)0); |
13583 | if (unlikely(PyDict_SetItemString(scratch_dict, "code", code))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "code" , code)), 0)) return NULL((void*)0); |
13584 | if (unlikely(PyDict_SetItemString(scratch_dict, "type", (PyObject*)(&PyType_Type)))__builtin_expect(!!(PyDict_SetItemString(scratch_dict, "type" , (PyObject*)(&PyType_Type))), 0)) return NULL((void*)0); |
13585 | compiled = Py_CompileString(Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1) |
13586 | "out = type(code)(\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1) |
13587 | " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1) |
13588 | " code.co_flags, code.co_code, code.co_consts, code.co_names,\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1) |
13589 | " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n"Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1) |
13590 | " code.co_lnotab)\n", "<dummy>", Py_file_input)Py_CompileStringExFlags("out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "<dummy>", 257, ((void*)0), -1); |
13591 | if (!compiled) return NULL((void*)0); |
13592 | result = PyEval_EvalCode(compiled, scratch_dict, scratch_dict); |
13593 | Py_DECREF(compiled)Py_DECREF(((PyObject*)((compiled)))); |
13594 | if (!result) PyErr_Print(); |
13595 | Py_DECREF(result)Py_DECREF(((PyObject*)((result)))); |
13596 | result = PyDict_GetItemString(scratch_dict, "out"); |
13597 | if (result) Py_INCREF(result)Py_INCREF(((PyObject*)((result)))); |
13598 | return result; |
13599 | } |
13600 | #else |
13601 | return NULL((void*)0); |
13602 | #endif |
13603 | } |
13604 | static void __Pyx_AddTraceback(const char *funcname, int c_line, |
13605 | int py_line, const char *filename) { |
13606 | PyObject *code_object = NULL((void*)0), *py_py_line = NULL((void*)0), *py_funcname = NULL((void*)0), *dict = NULL((void*)0); |
13607 | PyObject *replace = NULL((void*)0), *getframe = NULL((void*)0), *frame = NULL((void*)0); |
13608 | PyObject *exc_type, *exc_value, *exc_traceback; |
13609 | int success = 0; |
13610 | if (c_line) { |
13611 | (void) __pyx_cfilenm; |
13612 | (void) __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(), c_line); |
13613 | } |
13614 | PyErr_Fetch(&exc_type, &exc_value, &exc_traceback); |
13615 | code_object = Py_CompileString("_getframe()", filename, Py_eval_input)Py_CompileStringExFlags("_getframe()", filename, 258, ((void* )0), -1); |
13616 | if (unlikely(!code_object)__builtin_expect(!!(!code_object), 0)) goto bad; |
13617 | py_py_line = PyLong_FromLong(py_line); |
13618 | if (unlikely(!py_py_line)__builtin_expect(!!(!py_py_line), 0)) goto bad; |
13619 | py_funcname = PyUnicode_FromString(funcname); |
13620 | if (unlikely(!py_funcname)__builtin_expect(!!(!py_funcname), 0)) goto bad; |
13621 | dict = PyDict_New(); |
13622 | if (unlikely(!dict)__builtin_expect(!!(!dict), 0)) goto bad; |
13623 | { |
13624 | PyObject *old_code_object = code_object; |
13625 | code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname); |
13626 | Py_DECREF(old_code_object)Py_DECREF(((PyObject*)((old_code_object)))); |
13627 | } |
13628 | if (unlikely(!code_object)__builtin_expect(!!(!code_object), 0)) goto bad; |
13629 | getframe = PySys_GetObject("_getframe"); |
13630 | if (unlikely(!getframe)__builtin_expect(!!(!getframe), 0)) goto bad; |
13631 | if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))__builtin_expect(!!(PyDict_SetItemString(dict, "_getframe", getframe )), 0)) goto bad; |
13632 | frame = PyEval_EvalCode(code_object, dict, dict); |
13633 | if (unlikely(!frame)__builtin_expect(!!(!frame), 0) || frame == Py_None(&_Py_NoneStruct)) goto bad; |
13634 | success = 1; |
13635 | bad: |
13636 | PyErr_Restore(exc_type, exc_value, exc_traceback); |
13637 | Py_XDECREF(code_object)Py_XDECREF(((PyObject*)((code_object)))); |
13638 | Py_XDECREF(py_py_line)Py_XDECREF(((PyObject*)((py_py_line)))); |
13639 | Py_XDECREF(py_funcname)Py_XDECREF(((PyObject*)((py_funcname)))); |
13640 | Py_XDECREF(dict)Py_XDECREF(((PyObject*)((dict)))); |
13641 | Py_XDECREF(replace)Py_XDECREF(((PyObject*)((replace)))); |
13642 | if (success) { |
13643 | PyTraceBack_Here( |
13644 | (struct _frame*)frame); |
13645 | } |
13646 | Py_XDECREF(frame)Py_XDECREF(((PyObject*)((frame)))); |
13647 | } |
13648 | #else |
13649 | static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( |
13650 | const char *funcname, int c_line, |
13651 | int py_line, const char *filename) { |
13652 | PyCodeObject *py_code = NULL((void*)0); |
13653 | PyObject *py_funcname = NULL((void*)0); |
13654 | #if PY_MAJOR_VERSION3 < 3 |
13655 | PyObject *py_srcfile = NULL((void*)0); |
13656 | py_srcfile = PyString_FromString(filename); |
13657 | if (!py_srcfile) goto bad; |
13658 | #endif |
13659 | if (c_line) { |
13660 | #if PY_MAJOR_VERSION3 < 3 |
13661 | py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); |
13662 | if (!py_funcname) goto bad; |
13663 | #else |
13664 | py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); |
13665 | if (!py_funcname) goto bad; |
13666 | funcname = PyUnicode_AsUTF8(py_funcname); |
13667 | if (!funcname) goto bad; |
13668 | #endif |
13669 | } |
13670 | else { |
13671 | #if PY_MAJOR_VERSION3 < 3 |
13672 | py_funcname = PyString_FromString(funcname); |
13673 | if (!py_funcname) goto bad; |
13674 | #endif |
13675 | } |
13676 | #if PY_MAJOR_VERSION3 < 3 |
13677 | py_code = __Pyx_PyCode_New( |
13678 | 0, |
13679 | 0, |
13680 | 0, |
13681 | 0, |
13682 | 0, |
13683 | 0, |
13684 | __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes, /*PyObject *code,*/ |
13685 | __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *consts,*/ |
13686 | __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *names,*/ |
13687 | __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *varnames,*/ |
13688 | __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *freevars,*/ |
13689 | __pyx_empty_tuple__pyx_mstate_global->__pyx_empty_tuple, /*PyObject *cellvars,*/ |
13690 | py_srcfile, /*PyObject *filename,*/ |
13691 | py_funcname, /*PyObject *name,*/ |
13692 | py_line, |
13693 | __pyx_empty_bytes__pyx_mstate_global->__pyx_empty_bytes /*PyObject *lnotab*/ |
13694 | ); |
13695 | Py_DECREF(py_srcfile)Py_DECREF(((PyObject*)((py_srcfile)))); |
13696 | #else |
13697 | py_code = PyCode_NewEmpty(filename, funcname, py_line); |
13698 | #endif |
13699 | Py_XDECREF(py_funcname)Py_XDECREF(((PyObject*)((py_funcname)))); // XDECREF since it's only set on Py3 if cline |
13700 | return py_code; |
13701 | bad: |
13702 | Py_XDECREF(py_funcname)Py_XDECREF(((PyObject*)((py_funcname)))); |
13703 | #if PY_MAJOR_VERSION3 < 3 |
13704 | Py_XDECREF(py_srcfile)Py_XDECREF(((PyObject*)((py_srcfile)))); |
13705 | #endif |
13706 | return NULL((void*)0); |
13707 | } |
13708 | static void __Pyx_AddTraceback(const char *funcname, int c_line, |
13709 | int py_line, const char *filename) { |
13710 | PyCodeObject *py_code = 0; |
13711 | PyFrameObject *py_frame = 0; |
13712 | PyThreadState *tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(); |
13713 | PyObject *ptype, *pvalue, *ptraceback; |
13714 | if (c_line) { |
13715 | c_line = __Pyx_CLineForTraceback(tstate, c_line); |
13716 | } |
13717 | py_code = __pyx_find_code_object(c_line ? -c_line : py_line); |
13718 | if (!py_code) { |
13719 | __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); |
13720 | py_code = __Pyx_CreateCodeObjectForTraceback( |
13721 | funcname, c_line, py_line, filename); |
13722 | if (!py_code) { |
13723 | /* If the code object creation fails, then we should clear the |
13724 | fetched exception references and propagate the new exception */ |
13725 | Py_XDECREF(ptype)Py_XDECREF(((PyObject*)((ptype)))); |
13726 | Py_XDECREF(pvalue)Py_XDECREF(((PyObject*)((pvalue)))); |
13727 | Py_XDECREF(ptraceback)Py_XDECREF(((PyObject*)((ptraceback)))); |
13728 | goto bad; |
13729 | } |
13730 | __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); |
13731 | __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); |
13732 | } |
13733 | py_frame = PyFrame_New( |
13734 | tstate, /*PyThreadState *tstate,*/ |
13735 | py_code, /*PyCodeObject *code,*/ |
13736 | __pyx_d__pyx_mstate_global->__pyx_d, /*PyObject *globals,*/ |
13737 | 0 /*PyObject *locals*/ |
13738 | ); |
13739 | if (!py_frame) goto bad; |
13740 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line)(py_frame)->f_lineno = (py_line); |
13741 | PyTraceBack_Here(py_frame); |
13742 | bad: |
13743 | Py_XDECREF(py_code)Py_XDECREF(((PyObject*)((py_code)))); |
13744 | Py_XDECREF(py_frame)Py_XDECREF(((PyObject*)((py_frame)))); |
13745 | } |
13746 | #endif |
13747 | |
13748 | /* CIntFromPyVerify */ |
13749 | #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value){ func_type value = func_value; if (sizeof(target_type) < sizeof (func_type)) { if (__builtin_expect(!!(value != (func_type) ( target_type) value), 0)) { func_type zero = 0; if (0 && __builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred ()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (target_type) value; }\ |
13750 | __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0){ func_type value = func_value; if (sizeof(target_type) < sizeof (func_type)) { if (__builtin_expect(!!(value != (func_type) ( target_type) value), 0)) { func_type zero = 0; if (0 && __builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred ()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (target_type) value; } |
13751 | #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value){ func_type value = func_value; if (sizeof(target_type) < sizeof (func_type)) { if (__builtin_expect(!!(value != (func_type) ( target_type) value), 0)) { func_type zero = 0; if (1 && __builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred ()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (target_type) value; }\ |
13752 | __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1){ func_type value = func_value; if (sizeof(target_type) < sizeof (func_type)) { if (__builtin_expect(!!(value != (func_type) ( target_type) value), 0)) { func_type zero = 0; if (1 && __builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred ()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (target_type) value; } |
13753 | #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc){ func_type value = func_value; if (sizeof(target_type) < sizeof (func_type)) { if (__builtin_expect(!!(value != (func_type) ( target_type) value), 0)) { func_type zero = 0; if (exc && __builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred ()), 0)) return (target_type) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (target_type) value; }\ |
13754 | {\ |
13755 | func_type value = func_value;\ |
13756 | if (sizeof(target_type) < sizeof(func_type)) {\ |
13757 | if (unlikely(value != (func_type) (target_type) value)__builtin_expect(!!(value != (func_type) (target_type) value) , 0)) {\ |
13758 | func_type zero = 0;\ |
13759 | if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred())__builtin_expect(!!(value == (func_type)-1 && PyErr_Occurred ()), 0))\ |
13760 | return (target_type) -1;\ |
13761 | if (is_unsigned && unlikely(value < zero)__builtin_expect(!!(value < zero), 0))\ |
13762 | goto raise_neg_overflow;\ |
13763 | else\ |
13764 | goto raise_overflow;\ |
13765 | }\ |
13766 | }\ |
13767 | return (target_type) value;\ |
13768 | } |
13769 | |
13770 | /* CIntFromPy */ |
13771 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyInt_As_int(PyObject *x) { |
13772 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
13773 | #pragma GCC diagnostic push |
13774 | #pragma GCC diagnostic ignored "-Wconversion" |
13775 | #endif |
13776 | const int neg_one = (int) -1, const_zero = (int) 0; |
13777 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
13778 | #pragma GCC diagnostic pop |
13779 | #endif |
13780 | const int is_unsigned = neg_one > const_zero; |
13781 | #if PY_MAJOR_VERSION3 < 3 |
13782 | if (likely(PyInt_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x )))), (1UL << 24))), 1)) { |
13783 | if ((sizeof(int) < sizeof(long))) { |
13784 | __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)){ long value = PyLong_AsLong(x); if (sizeof(int) < sizeof( long)) { if (__builtin_expect(!!(value != (long) (int) value) , 0)) { long zero = 0; if (0 && __builtin_expect(!!(value == (long)-1 && PyErr_Occurred()), 0)) return (int) - 1; if (is_unsigned && __builtin_expect(!!(value < zero ), 0)) goto raise_neg_overflow; else goto raise_overflow; } } return (int) value; } |
13785 | } else { |
13786 | long val = PyInt_AS_LONG(x)PyLong_AsLong(x); |
13787 | if (is_unsigned && unlikely(val < 0)__builtin_expect(!!(val < 0), 0)) { |
13788 | goto raise_neg_overflow; |
13789 | } |
13790 | return (int) val; |
13791 | } |
13792 | } else |
13793 | #endif |
13794 | if (likely(PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x )))), (1UL << 24))), 1)) { |
13795 | if (is_unsigned) { |
13796 | #if CYTHON_USE_PYLONG_INTERNALS1 |
13797 | if (unlikely(__Pyx_PyLong_IsNeg(x))__builtin_expect(!!((Py_SIZE(((PyObject*)((x)))) < 0)), 0)) { |
13798 | goto raise_neg_overflow; |
13799 | } else if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x) ))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)) { |
13800 | __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)){ __Pyx_compact_upylong value = ((Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : (((PyLongObject*)x)->ob_digit)[0]); if (sizeof (int) < sizeof(__Pyx_compact_upylong)) { if (__builtin_expect (!!(value != (__Pyx_compact_upylong) (int) value), 0)) { __Pyx_compact_upylong zero = 0; if (0 && __builtin_expect(!!(value == (__Pyx_compact_upylong )-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (int) value; } |
13801 | } else { |
13802 | const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit); |
13803 | assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1 : 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x))))) > 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1" , "abaqusFILReader.c", 13803, __extension__ __PRETTY_FUNCTION__ ); })); |
13804 | switch (__Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x)))))) { |
13805 | case 2: |
13806 | if ((8 * sizeof(int) > 1 * PyLong_SHIFT30)) { |
13807 | if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) { |
13808 | __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof(int) < sizeof (unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred ()), 0)) return (int) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13809 | } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT30)) { |
13810 | return (int) (((((int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])); |
13811 | } |
13812 | } |
13813 | break; |
13814 | case 3: |
13815 | if ((8 * sizeof(int) > 2 * PyLong_SHIFT30)) { |
13816 | if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) { |
13817 | __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) << 30) | (unsigned long)digits[1]) << 30) | (unsigned long )digits[0])); if (sizeof(int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0 )) { unsigned long zero = 0; if (0 && __builtin_expect (!!(value == (unsigned long)-1 && PyErr_Occurred()), 0 )) return (int) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13818 | } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT30)) { |
13819 | return (int) (((((((int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])); |
13820 | } |
13821 | } |
13822 | break; |
13823 | case 4: |
13824 | if ((8 * sizeof(int) > 3 * PyLong_SHIFT30)) { |
13825 | if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) { |
13826 | __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) << 30) | (unsigned long)digits[2]) << 30) | (unsigned long )digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof (int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0)) { unsigned long zero = 0 ; if (0 && __builtin_expect(!!(value == (unsigned long )-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (int) value; } |
13827 | } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT30)) { |
13828 | return (int) (((((((((int)digits[3]) << PyLong_SHIFT30) | (int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0])); |
13829 | } |
13830 | } |
13831 | break; |
13832 | } |
13833 | } |
13834 | #endif |
13835 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A7 |
13836 | if (unlikely(Py_SIZE(x) < 0)__builtin_expect(!!(Py_SIZE(((PyObject*)((x)))) < 0), 0)) { |
13837 | goto raise_neg_overflow; |
13838 | } |
13839 | #else |
13840 | { |
13841 | int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0); |
13842 | if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0)) |
13843 | return (int) -1; |
13844 | if (unlikely(result == 1)__builtin_expect(!!(result == 1), 0)) |
13845 | goto raise_neg_overflow; |
13846 | } |
13847 | #endif |
13848 | if ((sizeof(int) <= sizeof(unsigned long))) { |
13849 | __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)){ unsigned long value = PyLong_AsUnsignedLong(x); if (sizeof( int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0)) { unsigned long zero = 0 ; if (1 && __builtin_expect(!!(value == (unsigned long )-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (int) value; } |
13850 | #ifdef HAVE_LONG_LONG1 |
13851 | } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONGlong long))) { |
13852 | __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)){ unsigned long long value = PyLong_AsUnsignedLongLong(x); if (sizeof(int) < sizeof(unsigned long long)) { if (__builtin_expect (!!(value != (unsigned long long) (int) value), 0)) { unsigned long long zero = 0; if (1 && __builtin_expect(!!(value == (unsigned long long)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13853 | #endif |
13854 | } |
13855 | } else { |
13856 | #if CYTHON_USE_PYLONG_INTERNALS1 |
13857 | if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x) ))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)) { |
13858 | __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)){ __Pyx_compact_pylong value = ((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE(((PyObject*)((x)))) < 0) ? -( sdigit)(((PyLongObject*)x)->ob_digit)[0] : (sdigit)(((PyLongObject *)x)->ob_digit)[0])); if (sizeof(int) < sizeof(__Pyx_compact_pylong )) { if (__builtin_expect(!!(value != (__Pyx_compact_pylong) ( int) value), 0)) { __Pyx_compact_pylong zero = 0; if (0 && __builtin_expect(!!(value == (__Pyx_compact_pylong)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (int) value; } |
13859 | } else { |
13860 | const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit); |
13861 | assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1 : 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x))))) > 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1" , "abaqusFILReader.c", 13861, __extension__ __PRETTY_FUNCTION__ ); })); |
13862 | switch (__Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x))))) { |
13863 | case -2: |
13864 | if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT30)) { |
13865 | if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) { |
13866 | __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((unsigned long)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof(int) < sizeof (long)) { if (__builtin_expect(!!(value != (long) (int) value ), 0)) { long zero = 0; if (0 && __builtin_expect(!!( value == (long)-1 && PyErr_Occurred()), 0)) return (int ) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13867 | } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT30)) { |
13868 | return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]))); |
13869 | } |
13870 | } |
13871 | break; |
13872 | case 2: |
13873 | if ((8 * sizeof(int) > 1 * PyLong_SHIFT30)) { |
13874 | if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) { |
13875 | __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof(int) < sizeof (unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred ()), 0)) return (int) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13876 | } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT30)) { |
13877 | return (int) ((((((int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]))); |
13878 | } |
13879 | } |
13880 | break; |
13881 | case -3: |
13882 | if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT30)) { |
13883 | if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) { |
13884 | __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((unsigned long)digits[2]) << 30) | (unsigned long)digits[1]) << 30) | (unsigned long )digits[0])); if (sizeof(int) < sizeof(long)) { if (__builtin_expect (!!(value != (long) (int) value), 0)) { long zero = 0; if (0 && __builtin_expect(!!(value == (long)-1 && PyErr_Occurred ()), 0)) return (int) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13885 | } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT30)) { |
13886 | return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]))); |
13887 | } |
13888 | } |
13889 | break; |
13890 | case 3: |
13891 | if ((8 * sizeof(int) > 2 * PyLong_SHIFT30)) { |
13892 | if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) { |
13893 | __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) << 30) | (unsigned long)digits[1]) << 30) | (unsigned long )digits[0])); if (sizeof(int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0 )) { unsigned long zero = 0; if (0 && __builtin_expect (!!(value == (unsigned long)-1 && PyErr_Occurred()), 0 )) return (int) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13894 | } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT30)) { |
13895 | return (int) ((((((((int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]))); |
13896 | } |
13897 | } |
13898 | break; |
13899 | case -4: |
13900 | if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT30)) { |
13901 | if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) { |
13902 | __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((((unsigned long)digits[3]) << 30) | (unsigned long)digits[2]) << 30) | (unsigned long )digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof (int) < sizeof(long)) { if (__builtin_expect(!!(value != ( long) (int) value), 0)) { long zero = 0; if (0 && __builtin_expect (!!(value == (long)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13903 | } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT30)) { |
13904 | return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT30) | (int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]))); |
13905 | } |
13906 | } |
13907 | break; |
13908 | case 4: |
13909 | if ((8 * sizeof(int) > 3 * PyLong_SHIFT30)) { |
13910 | if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) { |
13911 | __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) << 30) | (unsigned long)digits[2]) << 30) | (unsigned long )digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof (int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0)) { unsigned long zero = 0 ; if (0 && __builtin_expect(!!(value == (unsigned long )-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (int) value; } |
13912 | } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT30)) { |
13913 | return (int) ((((((((((int)digits[3]) << PyLong_SHIFT30) | (int)digits[2]) << PyLong_SHIFT30) | (int)digits[1]) << PyLong_SHIFT30) | (int)digits[0]))); |
13914 | } |
13915 | } |
13916 | break; |
13917 | } |
13918 | } |
13919 | #endif |
13920 | if ((sizeof(int) <= sizeof(long))) { |
13921 | __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)){ long value = PyLong_AsLong(x); if (sizeof(int) < sizeof( long)) { if (__builtin_expect(!!(value != (long) (int) value) , 0)) { long zero = 0; if (1 && __builtin_expect(!!(value == (long)-1 && PyErr_Occurred()), 0)) return (int) - 1; if (is_unsigned && __builtin_expect(!!(value < zero ), 0)) goto raise_neg_overflow; else goto raise_overflow; } } return (int) value; } |
13922 | #ifdef HAVE_LONG_LONG1 |
13923 | } else if ((sizeof(int) <= sizeof(PY_LONG_LONGlong long))) { |
13924 | __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)){ long long value = PyLong_AsLongLong(x); if (sizeof(int) < sizeof(long long)) { if (__builtin_expect(!!(value != (long long ) (int) value), 0)) { long long zero = 0; if (1 && __builtin_expect (!!(value == (long long)-1 && PyErr_Occurred()), 0)) return (int) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (int) value; } |
13925 | #endif |
13926 | } |
13927 | } |
13928 | { |
13929 | int val; |
13930 | PyObject *v = __Pyx_PyNumber_IntOrLong(x); |
13931 | #if PY_MAJOR_VERSION3 < 3 |
13932 | if (likely(v)__builtin_expect(!!(v), 1) && !PyLong_Check(v)PyType_HasFeature(Py_TYPE(((PyObject*)((v)))), (1UL << 24 ))) { |
13933 | PyObject *tmp = v; |
13934 | v = PyNumber_Long(tmp); |
13935 | Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp)))); |
13936 | } |
13937 | #endif |
13938 | if (likely(v)__builtin_expect(!!(v), 1)) { |
13939 | int ret = -1; |
13940 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0) || defined(_PyLong_AsByteArray) |
13941 | int one = 1; int is_little = (int)*(unsigned char *)&one; |
13942 | unsigned char *bytes = (unsigned char *)&val; |
13943 | ret = _PyLong_AsByteArray((PyLongObject *)v, |
13944 | bytes, sizeof(val), |
13945 | is_little, !is_unsigned); |
13946 | #else |
13947 | PyObject *stepval = NULL((void*)0), *mask = NULL((void*)0), *shift = NULL((void*)0); |
13948 | int bits, remaining_bits, is_negative = 0; |
13949 | long idigit; |
13950 | int chunk_size = (sizeof(long) < 8) ? 30 : 62; |
13951 | if (unlikely(!PyLong_CheckExact(v))__builtin_expect(!!(!Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type )), 0)) { |
13952 | PyObject *tmp = v; |
13953 | v = PyNumber_Long(v); |
13954 | assert(PyLong_CheckExact(v))((void) sizeof ((Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type )) ? 1 : 0), __extension__ ({ if (Py_IS_TYPE(((PyObject*)((v) )), &PyLong_Type)) ; else __assert_fail ("PyLong_CheckExact(v)" , "abaqusFILReader.c", 13954, __extension__ __PRETTY_FUNCTION__ ); })); |
13955 | Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp)))); |
13956 | if (unlikely(!v)__builtin_expect(!!(!v), 0)) return (int) -1; |
13957 | } |
13958 | #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000 |
13959 | if (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0) |
13960 | return (int) 0; |
13961 | is_negative = Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0; |
13962 | #else |
13963 | { |
13964 | int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0); |
13965 | if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0)) |
13966 | return (int) -1; |
13967 | is_negative = result == 1; |
13968 | } |
13969 | #endif |
13970 | if (is_unsigned && unlikely(is_negative)__builtin_expect(!!(is_negative), 0)) { |
13971 | goto raise_neg_overflow; |
13972 | } else if (is_negative) { |
13973 | stepval = PyNumber_Invert(v); |
13974 | if (unlikely(!stepval)__builtin_expect(!!(!stepval), 0)) |
13975 | return (int) -1; |
13976 | } else { |
13977 | stepval = __Pyx_NewRef(v)(Py_INCREF(((PyObject*)((v)))), v); |
13978 | } |
13979 | val = (int) 0; |
13980 | mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)__builtin_expect(!!(!mask), 0)) goto done; |
13981 | shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)__builtin_expect(!!(!shift), 0)) goto done; |
13982 | for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) { |
13983 | PyObject *tmp, *digit; |
13984 | digit = PyNumber_And(stepval, mask); |
13985 | if (unlikely(!digit)__builtin_expect(!!(!digit), 0)) goto done; |
13986 | idigit = PyLong_AsLong(digit); |
13987 | Py_DECREF(digit)Py_DECREF(((PyObject*)((digit)))); |
13988 | if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done; |
13989 | tmp = PyNumber_Rshift(stepval, shift); |
13990 | if (unlikely(!tmp)__builtin_expect(!!(!tmp), 0)) goto done; |
13991 | Py_DECREF(stepval)Py_DECREF(((PyObject*)((stepval)))); stepval = tmp; |
13992 | val |= ((int) idigit) << bits; |
13993 | #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000 |
13994 | if (Py_SIZE(stepval)Py_SIZE(((PyObject*)((stepval)))) == 0) |
13995 | goto unpacking_done; |
13996 | #endif |
13997 | } |
13998 | idigit = PyLong_AsLong(stepval); |
13999 | if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done; |
14000 | remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1); |
14001 | if (unlikely(idigit >= (1L << remaining_bits))__builtin_expect(!!(idigit >= (1L << remaining_bits) ), 0)) |
14002 | goto raise_overflow; |
14003 | val |= ((int) idigit) << bits; |
14004 | #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000 |
14005 | unpacking_done: |
14006 | #endif |
14007 | if (!is_unsigned) { |
14008 | if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1)))__builtin_expect(!!(val & (((int) 1) << (sizeof(int ) * 8 - 1))), 0)) |
14009 | goto raise_overflow; |
14010 | if (is_negative) |
14011 | val = ~val; |
14012 | } |
14013 | ret = 0; |
14014 | done: |
14015 | Py_XDECREF(shift)Py_XDECREF(((PyObject*)((shift)))); |
14016 | Py_XDECREF(mask)Py_XDECREF(((PyObject*)((mask)))); |
14017 | Py_XDECREF(stepval)Py_XDECREF(((PyObject*)((stepval)))); |
14018 | #endif |
14019 | Py_DECREF(v)Py_DECREF(((PyObject*)((v)))); |
14020 | if (likely(!ret)__builtin_expect(!!(!ret), 1)) |
14021 | return val; |
14022 | } |
14023 | return (int) -1; |
14024 | } |
14025 | } else { |
14026 | int val; |
14027 | PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); |
14028 | if (!tmp) return (int) -1; |
14029 | val = __Pyx_PyInt_As_int(tmp); |
14030 | Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp)))); |
14031 | return val; |
14032 | } |
14033 | raise_overflow: |
14034 | PyErr_SetString(PyExc_OverflowError, |
14035 | "value too large to convert to int"); |
14036 | return (int) -1; |
14037 | raise_neg_overflow: |
14038 | PyErr_SetString(PyExc_OverflowError, |
14039 | "can't convert negative value to int"); |
14040 | return (int) -1; |
14041 | } |
14042 | |
14043 | /* CIntToPy */ |
14044 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_int(int value) { |
14045 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
14046 | #pragma GCC diagnostic push |
14047 | #pragma GCC diagnostic ignored "-Wconversion" |
14048 | #endif |
14049 | const int neg_one = (int) -1, const_zero = (int) 0; |
14050 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
14051 | #pragma GCC diagnostic pop |
14052 | #endif |
14053 | const int is_unsigned = neg_one > const_zero; |
14054 | if (is_unsigned) { |
14055 | if (sizeof(int) < sizeof(long)) { |
14056 | return PyInt_FromLongPyLong_FromLong((long) value); |
14057 | } else if (sizeof(int) <= sizeof(unsigned long)) { |
14058 | return PyLong_FromUnsignedLong((unsigned long) value); |
14059 | #ifdef HAVE_LONG_LONG1 |
14060 | } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONGlong long)) { |
14061 | return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONGlong long) value); |
14062 | #endif |
14063 | } |
14064 | } else { |
14065 | if (sizeof(int) <= sizeof(long)) { |
14066 | return PyInt_FromLongPyLong_FromLong((long) value); |
14067 | #ifdef HAVE_LONG_LONG1 |
14068 | } else if (sizeof(int) <= sizeof(PY_LONG_LONGlong long)) { |
14069 | return PyLong_FromLongLong((PY_LONG_LONGlong long) value); |
14070 | #endif |
14071 | } |
14072 | } |
14073 | { |
14074 | int one = 1; int little = (int)*(unsigned char *)&one; |
14075 | unsigned char *bytes = (unsigned char *)&value; |
14076 | #if !CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d0000 |
14077 | return _PyLong_FromByteArray(bytes, sizeof(int), |
14078 | little, !is_unsigned); |
14079 | #else |
14080 | PyObject *from_bytes, *result = NULL((void*)0); |
14081 | PyObject *py_bytes = NULL((void*)0), *arg_tuple = NULL((void*)0), *kwds = NULL((void*)0), *order_str = NULL((void*)0); |
14082 | from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); |
14083 | if (!from_bytes) return NULL((void*)0); |
14084 | py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int)); |
14085 | if (!py_bytes) goto limited_bad; |
14086 | order_str = PyUnicode_FromString(little ? "little" : "big"); |
14087 | if (!order_str) goto limited_bad; |
14088 | arg_tuple = PyTuple_Pack(2, py_bytes, order_str); |
14089 | if (!arg_tuple) goto limited_bad; |
14090 | if (!is_unsigned) { |
14091 | kwds = PyDict_New(); |
14092 | if (!kwds) goto limited_bad; |
14093 | if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_TrueStruct))) )), ((PyObject *) &_Py_TrueStruct)))) goto limited_bad; |
14094 | } |
14095 | result = PyObject_Call(from_bytes, arg_tuple, kwds); |
14096 | limited_bad: |
14097 | Py_XDECREF(kwds)Py_XDECREF(((PyObject*)((kwds)))); |
14098 | Py_XDECREF(arg_tuple)Py_XDECREF(((PyObject*)((arg_tuple)))); |
14099 | Py_XDECREF(order_str)Py_XDECREF(((PyObject*)((order_str)))); |
14100 | Py_XDECREF(py_bytes)Py_XDECREF(((PyObject*)((py_bytes)))); |
14101 | Py_XDECREF(from_bytes)Py_XDECREF(((PyObject*)((from_bytes)))); |
14102 | return result; |
14103 | #endif |
14104 | } |
14105 | } |
14106 | |
14107 | /* CIntToPy */ |
14108 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyInt_From_long(long value) { |
14109 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
14110 | #pragma GCC diagnostic push |
14111 | #pragma GCC diagnostic ignored "-Wconversion" |
14112 | #endif |
14113 | const long neg_one = (long) -1, const_zero = (long) 0; |
14114 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
14115 | #pragma GCC diagnostic pop |
14116 | #endif |
14117 | const int is_unsigned = neg_one > const_zero; |
14118 | if (is_unsigned) { |
14119 | if (sizeof(long) < sizeof(long)) { |
14120 | return PyInt_FromLongPyLong_FromLong((long) value); |
14121 | } else if (sizeof(long) <= sizeof(unsigned long)) { |
14122 | return PyLong_FromUnsignedLong((unsigned long) value); |
14123 | #ifdef HAVE_LONG_LONG1 |
14124 | } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONGlong long)) { |
14125 | return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONGlong long) value); |
14126 | #endif |
14127 | } |
14128 | } else { |
14129 | if (sizeof(long) <= sizeof(long)) { |
14130 | return PyInt_FromLongPyLong_FromLong((long) value); |
14131 | #ifdef HAVE_LONG_LONG1 |
14132 | } else if (sizeof(long) <= sizeof(PY_LONG_LONGlong long)) { |
14133 | return PyLong_FromLongLong((PY_LONG_LONGlong long) value); |
14134 | #endif |
14135 | } |
14136 | } |
14137 | { |
14138 | int one = 1; int little = (int)*(unsigned char *)&one; |
14139 | unsigned char *bytes = (unsigned char *)&value; |
14140 | #if !CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d0000 |
14141 | return _PyLong_FromByteArray(bytes, sizeof(long), |
14142 | little, !is_unsigned); |
14143 | #else |
14144 | PyObject *from_bytes, *result = NULL((void*)0); |
14145 | PyObject *py_bytes = NULL((void*)0), *arg_tuple = NULL((void*)0), *kwds = NULL((void*)0), *order_str = NULL((void*)0); |
14146 | from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes"); |
14147 | if (!from_bytes) return NULL((void*)0); |
14148 | py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long)); |
14149 | if (!py_bytes) goto limited_bad; |
14150 | order_str = PyUnicode_FromString(little ? "little" : "big"); |
14151 | if (!order_str) goto limited_bad; |
14152 | arg_tuple = PyTuple_Pack(2, py_bytes, order_str); |
14153 | if (!arg_tuple) goto limited_bad; |
14154 | if (!is_unsigned) { |
14155 | kwds = PyDict_New(); |
14156 | if (!kwds) goto limited_bad; |
14157 | if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_TrueStruct))) )), ((PyObject *) &_Py_TrueStruct)))) goto limited_bad; |
14158 | } |
14159 | result = PyObject_Call(from_bytes, arg_tuple, kwds); |
14160 | limited_bad: |
14161 | Py_XDECREF(kwds)Py_XDECREF(((PyObject*)((kwds)))); |
14162 | Py_XDECREF(arg_tuple)Py_XDECREF(((PyObject*)((arg_tuple)))); |
14163 | Py_XDECREF(order_str)Py_XDECREF(((PyObject*)((order_str)))); |
14164 | Py_XDECREF(py_bytes)Py_XDECREF(((PyObject*)((py_bytes)))); |
14165 | Py_XDECREF(from_bytes)Py_XDECREF(((PyObject*)((from_bytes)))); |
14166 | return result; |
14167 | #endif |
14168 | } |
14169 | } |
14170 | |
14171 | /* FormatTypeName */ |
14172 | #if CYTHON_COMPILING_IN_LIMITED_API0 |
14173 | static __Pyx_TypeName |
14174 | __Pyx_PyType_GetName(PyTypeObject* tp)((PyTypeObject* tp)->tp_name) |
14175 | { |
14176 | PyObject *name = __Pyx_PyObject_GetAttrStr((PyObject *)tp, |
14177 | __pyx_n_s_name__pyx_mstate_global->__pyx_n_s_name); |
14178 | if (unlikely(name == NULL)__builtin_expect(!!(name == ((void*)0)), 0) || unlikely(!PyUnicode_Check(name))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)(( name)))), (1UL << 28))), 0)) { |
14179 | PyErr_Clear(); |
14180 | Py_XDECREF(name)Py_XDECREF(((PyObject*)((name)))); |
14181 | name = __Pyx_NewRef(__pyx_n_s__24)(Py_INCREF(((PyObject*)((__pyx_mstate_global->__pyx_n_s__24 )))), __pyx_mstate_global->__pyx_n_s__24); |
14182 | } |
14183 | return name; |
14184 | } |
14185 | #endif |
14186 | |
14187 | /* CIntFromPy */ |
14188 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) long __Pyx_PyInt_As_long(PyObject *x) { |
14189 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
14190 | #pragma GCC diagnostic push |
14191 | #pragma GCC diagnostic ignored "-Wconversion" |
14192 | #endif |
14193 | const long neg_one = (long) -1, const_zero = (long) 0; |
14194 | #ifdef __Pyx_HAS_GCC_DIAGNOSTIC |
14195 | #pragma GCC diagnostic pop |
14196 | #endif |
14197 | const int is_unsigned = neg_one > const_zero; |
14198 | #if PY_MAJOR_VERSION3 < 3 |
14199 | if (likely(PyInt_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x )))), (1UL << 24))), 1)) { |
14200 | if ((sizeof(long) < sizeof(long))) { |
14201 | __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)){ long value = PyLong_AsLong(x); if (sizeof(long) < sizeof (long)) { if (__builtin_expect(!!(value != (long) (long) value ), 0)) { long zero = 0; if (0 && __builtin_expect(!!( value == (long)-1 && PyErr_Occurred()), 0)) return (long ) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14202 | } else { |
14203 | long val = PyInt_AS_LONG(x)PyLong_AsLong(x); |
14204 | if (is_unsigned && unlikely(val < 0)__builtin_expect(!!(val < 0), 0)) { |
14205 | goto raise_neg_overflow; |
14206 | } |
14207 | return (long) val; |
14208 | } |
14209 | } else |
14210 | #endif |
14211 | if (likely(PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x )))), (1UL << 24))), 1)) { |
14212 | if (is_unsigned) { |
14213 | #if CYTHON_USE_PYLONG_INTERNALS1 |
14214 | if (unlikely(__Pyx_PyLong_IsNeg(x))__builtin_expect(!!((Py_SIZE(((PyObject*)((x)))) < 0)), 0)) { |
14215 | goto raise_neg_overflow; |
14216 | } else if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x) ))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)) { |
14217 | __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x)){ __Pyx_compact_upylong value = ((Py_SIZE(((PyObject*)((x)))) == 0) ? 0 : (((PyLongObject*)x)->ob_digit)[0]); if (sizeof (long) < sizeof(__Pyx_compact_upylong)) { if (__builtin_expect (!!(value != (__Pyx_compact_upylong) (long) value), 0)) { __Pyx_compact_upylong zero = 0; if (0 && __builtin_expect(!!(value == (__Pyx_compact_upylong )-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (long) value; } |
14218 | } else { |
14219 | const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit); |
14220 | assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1 : 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x))))) > 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1" , "abaqusFILReader.c", 14220, __extension__ __PRETTY_FUNCTION__ ); })); |
14221 | switch (__Pyx_PyLong_DigitCount(x)labs(Py_SIZE(((PyObject*)((x)))))) { |
14222 | case 2: |
14223 | if ((8 * sizeof(long) > 1 * PyLong_SHIFT30)) { |
14224 | if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) { |
14225 | __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof(long) < sizeof (unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred ()), 0)) return (long) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14226 | } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT30)) { |
14227 | return (long) (((((long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])); |
14228 | } |
14229 | } |
14230 | break; |
14231 | case 3: |
14232 | if ((8 * sizeof(long) > 2 * PyLong_SHIFT30)) { |
14233 | if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) { |
14234 | __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) << 30) | (unsigned long)digits[1]) << 30) | (unsigned long )digits[0])); if (sizeof(long) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect (!!(value == (unsigned long)-1 && PyErr_Occurred()), 0 )) return (long) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14235 | } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT30)) { |
14236 | return (long) (((((((long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])); |
14237 | } |
14238 | } |
14239 | break; |
14240 | case 4: |
14241 | if ((8 * sizeof(long) > 3 * PyLong_SHIFT30)) { |
14242 | if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) { |
14243 | __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) << 30) | (unsigned long)digits[2]) << 30) | (unsigned long )digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof (long) < sizeof(unsigned long)) { if (__builtin_expect(!!( value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero) , 0)) goto raise_neg_overflow; else goto raise_overflow; } } return (long) value; } |
14244 | } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT30)) { |
14245 | return (long) (((((((((long)digits[3]) << PyLong_SHIFT30) | (long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0])); |
14246 | } |
14247 | } |
14248 | break; |
14249 | } |
14250 | } |
14251 | #endif |
14252 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030C00A7 |
14253 | if (unlikely(Py_SIZE(x) < 0)__builtin_expect(!!(Py_SIZE(((PyObject*)((x)))) < 0), 0)) { |
14254 | goto raise_neg_overflow; |
14255 | } |
14256 | #else |
14257 | { |
14258 | int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0); |
14259 | if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0)) |
14260 | return (long) -1; |
14261 | if (unlikely(result == 1)__builtin_expect(!!(result == 1), 0)) |
14262 | goto raise_neg_overflow; |
14263 | } |
14264 | #endif |
14265 | if ((sizeof(long) <= sizeof(unsigned long))) { |
14266 | __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)){ unsigned long value = PyLong_AsUnsignedLong(x); if (sizeof( long) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; if (1 && __builtin_expect(!!(value == (unsigned long )-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (long) value; } |
14267 | #ifdef HAVE_LONG_LONG1 |
14268 | } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONGlong long))) { |
14269 | __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)){ unsigned long long value = PyLong_AsUnsignedLongLong(x); if (sizeof(long) < sizeof(unsigned long long)) { if (__builtin_expect (!!(value != (unsigned long long) (long) value), 0)) { unsigned long long zero = 0; if (1 && __builtin_expect(!!(value == (unsigned long long)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14270 | #endif |
14271 | } |
14272 | } else { |
14273 | #if CYTHON_USE_PYLONG_INTERNALS1 |
14274 | if (__Pyx_PyLong_IsCompact(x)(Py_SIZE(((PyObject*)((x)))) == 0 || Py_SIZE(((PyObject*)((x) ))) == 1 || Py_SIZE(((PyObject*)((x)))) == -1)) { |
14275 | __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x)){ __Pyx_compact_pylong value = ((Py_SIZE(((PyObject*)((x)))) == 0) ? (sdigit) 0 : ((Py_SIZE(((PyObject*)((x)))) < 0) ? -( sdigit)(((PyLongObject*)x)->ob_digit)[0] : (sdigit)(((PyLongObject *)x)->ob_digit)[0])); if (sizeof(long) < sizeof(__Pyx_compact_pylong )) { if (__builtin_expect(!!(value != (__Pyx_compact_pylong) ( long) value), 0)) { __Pyx_compact_pylong zero = 0; if (0 && __builtin_expect(!!(value == (__Pyx_compact_pylong)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow ; else goto raise_overflow; } } return (long) value; } |
14276 | } else { |
14277 | const digit* digits = __Pyx_PyLong_Digits(x)(((PyLongObject*)x)->ob_digit); |
14278 | assert(__Pyx_PyLong_DigitCount(x) > 1)((void) sizeof ((labs(Py_SIZE(((PyObject*)((x))))) > 1) ? 1 : 0), __extension__ ({ if (labs(Py_SIZE(((PyObject*)((x))))) > 1) ; else __assert_fail ("__Pyx_PyLong_DigitCount(x) > 1" , "abaqusFILReader.c", 14278, __extension__ __PRETTY_FUNCTION__ ); })); |
14279 | switch (__Pyx_PyLong_SignedDigitCount(x)Py_SIZE(((PyObject*)((x))))) { |
14280 | case -2: |
14281 | if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT30)) { |
14282 | if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) { |
14283 | __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((unsigned long)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof(long) < sizeof (long)) { if (__builtin_expect(!!(value != (long) (long) value ), 0)) { long zero = 0; if (0 && __builtin_expect(!!( value == (long)-1 && PyErr_Occurred()), 0)) return (long ) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14284 | } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30)) { |
14285 | return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]))); |
14286 | } |
14287 | } |
14288 | break; |
14289 | case 2: |
14290 | if ((8 * sizeof(long) > 1 * PyLong_SHIFT30)) { |
14291 | if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT30)) { |
14292 | __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((unsigned long)digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof(long) < sizeof (unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred ()), 0)) return (long) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14293 | } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30)) { |
14294 | return (long) ((((((long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]))); |
14295 | } |
14296 | } |
14297 | break; |
14298 | case -3: |
14299 | if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT30)) { |
14300 | if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) { |
14301 | __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((unsigned long)digits[2]) << 30) | (unsigned long)digits[1]) << 30) | (unsigned long )digits[0])); if (sizeof(long) < sizeof(long)) { if (__builtin_expect (!!(value != (long) (long) value), 0)) { long zero = 0; if (0 && __builtin_expect(!!(value == (long)-1 && PyErr_Occurred ()), 0)) return (long) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14302 | } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30)) { |
14303 | return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]))); |
14304 | } |
14305 | } |
14306 | break; |
14307 | case 3: |
14308 | if ((8 * sizeof(long) > 2 * PyLong_SHIFT30)) { |
14309 | if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT30)) { |
14310 | __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((unsigned long)digits[2]) << 30) | (unsigned long)digits[1]) << 30) | (unsigned long )digits[0])); if (sizeof(long) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect (!!(value == (unsigned long)-1 && PyErr_Occurred()), 0 )) return (long) -1; if (is_unsigned && __builtin_expect (!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14311 | } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30)) { |
14312 | return (long) ((((((((long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]))); |
14313 | } |
14314 | } |
14315 | break; |
14316 | case -4: |
14317 | if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT30)) { |
14318 | if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) { |
14319 | __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ long value = -(long) (((((((((unsigned long)digits[3]) << 30) | (unsigned long)digits[2]) << 30) | (unsigned long )digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof (long) < sizeof(long)) { if (__builtin_expect(!!(value != ( long) (long) value), 0)) { long zero = 0; if (0 && __builtin_expect (!!(value == (long)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14320 | } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30)) { |
14321 | return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT30) | (long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]))); |
14322 | } |
14323 | } |
14324 | break; |
14325 | case 4: |
14326 | if ((8 * sizeof(long) > 3 * PyLong_SHIFT30)) { |
14327 | if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT30)) { |
14328 | __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))){ unsigned long value = (((((((((unsigned long)digits[3]) << 30) | (unsigned long)digits[2]) << 30) | (unsigned long )digits[1]) << 30) | (unsigned long)digits[0])); if (sizeof (long) < sizeof(unsigned long)) { if (__builtin_expect(!!( value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; if (0 && __builtin_expect(!!(value == (unsigned long)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero) , 0)) goto raise_neg_overflow; else goto raise_overflow; } } return (long) value; } |
14329 | } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT30)) { |
14330 | return (long) ((((((((((long)digits[3]) << PyLong_SHIFT30) | (long)digits[2]) << PyLong_SHIFT30) | (long)digits[1]) << PyLong_SHIFT30) | (long)digits[0]))); |
14331 | } |
14332 | } |
14333 | break; |
14334 | } |
14335 | } |
14336 | #endif |
14337 | if ((sizeof(long) <= sizeof(long))) { |
14338 | __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)){ long value = PyLong_AsLong(x); if (sizeof(long) < sizeof (long)) { if (__builtin_expect(!!(value != (long) (long) value ), 0)) { long zero = 0; if (1 && __builtin_expect(!!( value == (long)-1 && PyErr_Occurred()), 0)) return (long ) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14339 | #ifdef HAVE_LONG_LONG1 |
14340 | } else if ((sizeof(long) <= sizeof(PY_LONG_LONGlong long))) { |
14341 | __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)){ long long value = PyLong_AsLongLong(x); if (sizeof(long) < sizeof(long long)) { if (__builtin_expect(!!(value != (long long ) (long) value), 0)) { long long zero = 0; if (1 && __builtin_expect (!!(value == (long long)-1 && PyErr_Occurred()), 0)) return (long) -1; if (is_unsigned && __builtin_expect(!!(value < zero), 0)) goto raise_neg_overflow; else goto raise_overflow ; } } return (long) value; } |
14342 | #endif |
14343 | } |
14344 | } |
14345 | { |
14346 | long val; |
14347 | PyObject *v = __Pyx_PyNumber_IntOrLong(x); |
14348 | #if PY_MAJOR_VERSION3 < 3 |
14349 | if (likely(v)__builtin_expect(!!(v), 1) && !PyLong_Check(v)PyType_HasFeature(Py_TYPE(((PyObject*)((v)))), (1UL << 24 ))) { |
14350 | PyObject *tmp = v; |
14351 | v = PyNumber_Long(tmp); |
14352 | Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp)))); |
14353 | } |
14354 | #endif |
14355 | if (likely(v)__builtin_expect(!!(v), 1)) { |
14356 | int ret = -1; |
14357 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY0 || CYTHON_COMPILING_IN_LIMITED_API0) || defined(_PyLong_AsByteArray) |
14358 | int one = 1; int is_little = (int)*(unsigned char *)&one; |
14359 | unsigned char *bytes = (unsigned char *)&val; |
14360 | ret = _PyLong_AsByteArray((PyLongObject *)v, |
14361 | bytes, sizeof(val), |
14362 | is_little, !is_unsigned); |
14363 | #else |
14364 | PyObject *stepval = NULL((void*)0), *mask = NULL((void*)0), *shift = NULL((void*)0); |
14365 | int bits, remaining_bits, is_negative = 0; |
14366 | long idigit; |
14367 | int chunk_size = (sizeof(long) < 8) ? 30 : 62; |
14368 | if (unlikely(!PyLong_CheckExact(v))__builtin_expect(!!(!Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type )), 0)) { |
14369 | PyObject *tmp = v; |
14370 | v = PyNumber_Long(v); |
14371 | assert(PyLong_CheckExact(v))((void) sizeof ((Py_IS_TYPE(((PyObject*)((v))), &PyLong_Type )) ? 1 : 0), __extension__ ({ if (Py_IS_TYPE(((PyObject*)((v) )), &PyLong_Type)) ; else __assert_fail ("PyLong_CheckExact(v)" , "abaqusFILReader.c", 14371, __extension__ __PRETTY_FUNCTION__ ); })); |
14372 | Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp)))); |
14373 | if (unlikely(!v)__builtin_expect(!!(!v), 0)) return (long) -1; |
14374 | } |
14375 | #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000 |
14376 | if (Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) == 0) |
14377 | return (long) 0; |
14378 | is_negative = Py_SIZE(x)Py_SIZE(((PyObject*)((x)))) < 0; |
14379 | #else |
14380 | { |
14381 | int result = PyObject_RichCompareBool(x, Py_False((PyObject *) &_Py_FalseStruct), Py_LT0); |
14382 | if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0)) |
14383 | return (long) -1; |
14384 | is_negative = result == 1; |
14385 | } |
14386 | #endif |
14387 | if (is_unsigned && unlikely(is_negative)__builtin_expect(!!(is_negative), 0)) { |
14388 | goto raise_neg_overflow; |
14389 | } else if (is_negative) { |
14390 | stepval = PyNumber_Invert(v); |
14391 | if (unlikely(!stepval)__builtin_expect(!!(!stepval), 0)) |
14392 | return (long) -1; |
14393 | } else { |
14394 | stepval = __Pyx_NewRef(v)(Py_INCREF(((PyObject*)((v)))), v); |
14395 | } |
14396 | val = (long) 0; |
14397 | mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)__builtin_expect(!!(!mask), 0)) goto done; |
14398 | shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)__builtin_expect(!!(!shift), 0)) goto done; |
14399 | for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) { |
14400 | PyObject *tmp, *digit; |
14401 | digit = PyNumber_And(stepval, mask); |
14402 | if (unlikely(!digit)__builtin_expect(!!(!digit), 0)) goto done; |
14403 | idigit = PyLong_AsLong(digit); |
14404 | Py_DECREF(digit)Py_DECREF(((PyObject*)((digit)))); |
14405 | if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done; |
14406 | tmp = PyNumber_Rshift(stepval, shift); |
14407 | if (unlikely(!tmp)__builtin_expect(!!(!tmp), 0)) goto done; |
14408 | Py_DECREF(stepval)Py_DECREF(((PyObject*)((stepval)))); stepval = tmp; |
14409 | val |= ((long) idigit) << bits; |
14410 | #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000 |
14411 | if (Py_SIZE(stepval)Py_SIZE(((PyObject*)((stepval)))) == 0) |
14412 | goto unpacking_done; |
14413 | #endif |
14414 | } |
14415 | idigit = PyLong_AsLong(stepval); |
14416 | if (unlikely(idigit < 0)__builtin_expect(!!(idigit < 0), 0)) goto done; |
14417 | remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1); |
14418 | if (unlikely(idigit >= (1L << remaining_bits))__builtin_expect(!!(idigit >= (1L << remaining_bits) ), 0)) |
14419 | goto raise_overflow; |
14420 | val |= ((long) idigit) << bits; |
14421 | #if CYTHON_COMPILING_IN_LIMITED_API0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030B0000 |
14422 | unpacking_done: |
14423 | #endif |
14424 | if (!is_unsigned) { |
14425 | if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1)))__builtin_expect(!!(val & (((long) 1) << (sizeof(long ) * 8 - 1))), 0)) |
14426 | goto raise_overflow; |
14427 | if (is_negative) |
14428 | val = ~val; |
14429 | } |
14430 | ret = 0; |
14431 | done: |
14432 | Py_XDECREF(shift)Py_XDECREF(((PyObject*)((shift)))); |
14433 | Py_XDECREF(mask)Py_XDECREF(((PyObject*)((mask)))); |
14434 | Py_XDECREF(stepval)Py_XDECREF(((PyObject*)((stepval)))); |
14435 | #endif |
14436 | Py_DECREF(v)Py_DECREF(((PyObject*)((v)))); |
14437 | if (likely(!ret)__builtin_expect(!!(!ret), 1)) |
14438 | return val; |
14439 | } |
14440 | return (long) -1; |
14441 | } |
14442 | } else { |
14443 | long val; |
14444 | PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); |
14445 | if (!tmp) return (long) -1; |
14446 | val = __Pyx_PyInt_As_long(tmp); |
14447 | Py_DECREF(tmp)Py_DECREF(((PyObject*)((tmp)))); |
14448 | return val; |
14449 | } |
14450 | raise_overflow: |
14451 | PyErr_SetString(PyExc_OverflowError, |
14452 | "value too large to convert to long"); |
14453 | return (long) -1; |
14454 | raise_neg_overflow: |
14455 | PyErr_SetString(PyExc_OverflowError, |
14456 | "can't convert negative value to long"); |
14457 | return (long) -1; |
14458 | } |
14459 | |
14460 | /* FastTypeChecks */ |
14461 | #if CYTHON_COMPILING_IN_CPYTHON1 |
14462 | static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { |
14463 | while (a) { |
14464 | a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*)((a)->tp_base); |
14465 | if (a == b) |
14466 | return 1; |
14467 | } |
14468 | return b == &PyBaseObject_Type; |
14469 | } |
14470 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { |
14471 | PyObject *mro; |
14472 | if (a == b) return 1; |
14473 | mro = a->tp_mro; |
14474 | if (likely(mro)__builtin_expect(!!(mro), 1)) { |
14475 | Py_ssize_t i, n; |
14476 | n = PyTuple_GET_SIZE(mro)PyTuple_GET_SIZE(((PyObject*)((mro)))); |
14477 | for (i = 0; i < n; i++) { |
14478 | if (PyTuple_GET_ITEM(mro, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((mro )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((mro)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(mro)", "abaqusFILReader.c", 14478, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((mro))))->ob_item [i]) == (PyObject *)b) |
14479 | return 1; |
14480 | } |
14481 | return 0; |
14482 | } |
14483 | return __Pyx_InBases(a, b); |
14484 | } |
14485 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) { |
14486 | PyObject *mro; |
14487 | if (cls == a || cls == b) return 1; |
14488 | mro = cls->tp_mro; |
14489 | if (likely(mro)__builtin_expect(!!(mro), 1)) { |
14490 | Py_ssize_t i, n; |
14491 | n = PyTuple_GET_SIZE(mro)PyTuple_GET_SIZE(((PyObject*)((mro)))); |
14492 | for (i = 0; i < n; i++) { |
14493 | PyObject *base = PyTuple_GET_ITEM(mro, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((mro )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((mro)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(mro)", "abaqusFILReader.c", 14493, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((mro))))->ob_item [i]); |
14494 | if (base == (PyObject *)a || base == (PyObject *)b) |
14495 | return 1; |
14496 | } |
14497 | return 0; |
14498 | } |
14499 | return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b); |
14500 | } |
14501 | #if PY_MAJOR_VERSION3 == 2 |
14502 | static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { |
14503 | PyObject *exception, *value, *tb; |
14504 | int res; |
14505 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
14506 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
14507 | __Pyx_ErrFetch(&exception, &value, &tb)__Pyx_ErrFetchInState(__pyx_tstate, &exception, &value , &tb); |
14508 | res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; |
14509 | if (unlikely(res == -1)__builtin_expect(!!(res == -1), 0)) { |
14510 | PyErr_WriteUnraisable(err); |
14511 | res = 0; |
14512 | } |
14513 | if (!res) { |
14514 | res = PyObject_IsSubclass(err, exc_type2); |
14515 | if (unlikely(res == -1)__builtin_expect(!!(res == -1), 0)) { |
14516 | PyErr_WriteUnraisable(err); |
14517 | res = 0; |
14518 | } |
14519 | } |
14520 | __Pyx_ErrRestore(exception, value, tb)__Pyx_ErrRestoreInState(__pyx_tstate, exception, value, tb); |
14521 | return res; |
14522 | } |
14523 | #else |
14524 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { |
14525 | if (exc_type1) { |
14526 | return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2); |
14527 | } else { |
14528 | return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); |
14529 | } |
14530 | } |
14531 | #endif |
14532 | static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { |
14533 | Py_ssize_t i, n; |
14534 | assert(PyExceptionClass_Check(exc_type))((void) sizeof (((PyType_Check(((PyObject*)(((exc_type))))) && PyType_HasFeature((PyTypeObject*)(exc_type), (1UL << 30 )))) ? 1 : 0), __extension__ ({ if ((PyType_Check(((PyObject* )(((exc_type))))) && PyType_HasFeature((PyTypeObject* )(exc_type), (1UL << 30)))) ; else __assert_fail ("PyExceptionClass_Check(exc_type)" , "abaqusFILReader.c", 14534, __extension__ __PRETTY_FUNCTION__ ); })); |
14535 | n = PyTuple_GET_SIZE(tuple)PyTuple_GET_SIZE(((PyObject*)((tuple)))); |
14536 | #if PY_MAJOR_VERSION3 >= 3 |
14537 | for (i=0; i<n; i++) { |
14538 | if (exc_type == PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(tuple)", "abaqusFILReader.c", 14538, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))-> ob_item[i])) return 1; |
14539 | } |
14540 | #endif |
14541 | for (i=0; i<n; i++) { |
14542 | PyObject *t = PyTuple_GET_ITEM(tuple, i)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((tuple )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((tuple)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(tuple)", "abaqusFILReader.c", 14542, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((tuple))))-> ob_item[i]); |
14543 | #if PY_MAJOR_VERSION3 < 3 |
14544 | if (likely(exc_type == t)__builtin_expect(!!(exc_type == t), 1)) return 1; |
14545 | #endif |
14546 | if (likely(PyExceptionClass_Check(t))__builtin_expect(!!((PyType_Check(((PyObject*)(((t))))) && PyType_HasFeature((PyTypeObject*)(t), (1UL << 30)))), 1 )) { |
14547 | if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL((void*)0), t)) return 1; |
14548 | } else { |
14549 | } |
14550 | } |
14551 | return 0; |
14552 | } |
14553 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) { |
14554 | if (likely(err == exc_type)__builtin_expect(!!(err == exc_type), 1)) return 1; |
14555 | if (likely(PyExceptionClass_Check(err))__builtin_expect(!!((PyType_Check(((PyObject*)(((err))))) && PyType_HasFeature((PyTypeObject*)(err), (1UL << 30)))) , 1)) { |
14556 | if (likely(PyExceptionClass_Check(exc_type))__builtin_expect(!!((PyType_Check(((PyObject*)(((exc_type)))) ) && PyType_HasFeature((PyTypeObject*)(exc_type), (1UL << 30)))), 1)) { |
14557 | return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL((void*)0), exc_type); |
14558 | } else if (likely(PyTuple_Check(exc_type))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((exc_type )))), (1UL << 26))), 1)) { |
14559 | return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type); |
14560 | } else { |
14561 | } |
14562 | } |
14563 | return PyErr_GivenExceptionMatches(err, exc_type); |
14564 | } |
14565 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) { |
14566 | assert(PyExceptionClass_Check(exc_type1))((void) sizeof (((PyType_Check(((PyObject*)(((exc_type1))))) && PyType_HasFeature((PyTypeObject*)(exc_type1), (1UL << 30 )))) ? 1 : 0), __extension__ ({ if ((PyType_Check(((PyObject* )(((exc_type1))))) && PyType_HasFeature((PyTypeObject *)(exc_type1), (1UL << 30)))) ; else __assert_fail ("PyExceptionClass_Check(exc_type1)" , "abaqusFILReader.c", 14566, __extension__ __PRETTY_FUNCTION__ ); })); |
14567 | assert(PyExceptionClass_Check(exc_type2))((void) sizeof (((PyType_Check(((PyObject*)(((exc_type2))))) && PyType_HasFeature((PyTypeObject*)(exc_type2), (1UL << 30 )))) ? 1 : 0), __extension__ ({ if ((PyType_Check(((PyObject* )(((exc_type2))))) && PyType_HasFeature((PyTypeObject *)(exc_type2), (1UL << 30)))) ; else __assert_fail ("PyExceptionClass_Check(exc_type2)" , "abaqusFILReader.c", 14567, __extension__ __PRETTY_FUNCTION__ ); })); |
14568 | if (likely(err == exc_type1 || err == exc_type2)__builtin_expect(!!(err == exc_type1 || err == exc_type2), 1)) return 1; |
14569 | if (likely(PyExceptionClass_Check(err))__builtin_expect(!!((PyType_Check(((PyObject*)(((err))))) && PyType_HasFeature((PyTypeObject*)(err), (1UL << 30)))) , 1)) { |
14570 | return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2); |
14571 | } |
14572 | return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2)); |
14573 | } |
14574 | #endif |
14575 | |
14576 | /* RaiseException */ |
14577 | #if PY_MAJOR_VERSION3 < 3 |
14578 | static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { |
14579 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
14580 | CYTHON_UNUSED_VAR(cause)(void)(cause); |
14581 | Py_XINCREF(type)Py_XINCREF(((PyObject*)((type)))); |
14582 | if (!value || value == Py_None(&_Py_NoneStruct)) |
14583 | value = NULL((void*)0); |
14584 | else |
14585 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
14586 | if (!tb || tb == Py_None(&_Py_NoneStruct)) |
14587 | tb = NULL((void*)0); |
14588 | else { |
14589 | Py_INCREF(tb)Py_INCREF(((PyObject*)((tb)))); |
14590 | if (!PyTraceBack_Check(tb)Py_IS_TYPE(((PyObject*)((tb))), &PyTraceBack_Type)) { |
14591 | PyErr_SetString(PyExc_TypeError, |
14592 | "raise: arg 3 must be a traceback or None"); |
14593 | goto raise_error; |
14594 | } |
14595 | } |
14596 | if (PyType_Check(type)PyType_Check(((PyObject*)((type))))) { |
14597 | #if CYTHON_COMPILING_IN_PYPY0 |
14598 | if (!value) { |
14599 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
14600 | value = Py_None(&_Py_NoneStruct); |
14601 | } |
14602 | #endif |
14603 | PyErr_NormalizeException(&type, &value, &tb); |
14604 | } else { |
14605 | if (value) { |
14606 | PyErr_SetString(PyExc_TypeError, |
14607 | "instance exception may not have a separate value"); |
14608 | goto raise_error; |
14609 | } |
14610 | value = type; |
14611 | type = (PyObject*) Py_TYPE(type)Py_TYPE(((PyObject*)((type)))); |
14612 | Py_INCREF(type)Py_INCREF(((PyObject*)((type)))); |
14613 | if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { |
14614 | PyErr_SetString(PyExc_TypeError, |
14615 | "raise: exception class must be a subclass of BaseException"); |
14616 | goto raise_error; |
14617 | } |
14618 | } |
14619 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
14620 | __Pyx_ErrRestore(type, value, tb)__Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb); |
14621 | return; |
14622 | raise_error: |
14623 | Py_XDECREF(value)Py_XDECREF(((PyObject*)((value)))); |
14624 | Py_XDECREF(type)Py_XDECREF(((PyObject*)((type)))); |
14625 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
14626 | return; |
14627 | } |
14628 | #else |
14629 | static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { |
14630 | PyObject* owned_instance = NULL((void*)0); |
14631 | if (tb == Py_None(&_Py_NoneStruct)) { |
14632 | tb = 0; |
14633 | } else if (tb && !PyTraceBack_Check(tb)Py_IS_TYPE(((PyObject*)((tb))), &PyTraceBack_Type)) { |
14634 | PyErr_SetString(PyExc_TypeError, |
14635 | "raise: arg 3 must be a traceback or None"); |
14636 | goto bad; |
14637 | } |
14638 | if (value == Py_None(&_Py_NoneStruct)) |
14639 | value = 0; |
14640 | if (PyExceptionInstance_Check(type)PyType_HasFeature(Py_TYPE(((PyObject*)((type)))), (1UL << 30))) { |
14641 | if (value) { |
14642 | PyErr_SetString(PyExc_TypeError, |
14643 | "instance exception may not have a separate value"); |
14644 | goto bad; |
14645 | } |
14646 | value = type; |
14647 | type = (PyObject*) Py_TYPE(value)Py_TYPE(((PyObject*)((value)))); |
14648 | } else if (PyExceptionClass_Check(type)(PyType_Check(((PyObject*)(((type))))) && PyType_HasFeature ((PyTypeObject*)(type), (1UL << 30)))) { |
14649 | PyObject *instance_class = NULL((void*)0); |
14650 | if (value && PyExceptionInstance_Check(value)PyType_HasFeature(Py_TYPE(((PyObject*)((value)))), (1UL << 30))) { |
14651 | instance_class = (PyObject*) Py_TYPE(value)Py_TYPE(((PyObject*)((value)))); |
14652 | if (instance_class != type) { |
14653 | int is_subclass = PyObject_IsSubclass(instance_class, type); |
14654 | if (!is_subclass) { |
14655 | instance_class = NULL((void*)0); |
14656 | } else if (unlikely(is_subclass == -1)__builtin_expect(!!(is_subclass == -1), 0)) { |
14657 | goto bad; |
14658 | } else { |
14659 | type = instance_class; |
14660 | } |
14661 | } |
14662 | } |
14663 | if (!instance_class) { |
14664 | PyObject *args; |
14665 | if (!value) |
14666 | args = PyTuple_New(0); |
14667 | else if (PyTuple_Check(value)PyType_HasFeature(Py_TYPE(((PyObject*)((value)))), (1UL << 26))) { |
14668 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
14669 | args = value; |
14670 | } else |
14671 | args = PyTuple_Pack(1, value); |
14672 | if (!args) |
14673 | goto bad; |
14674 | owned_instance = PyObject_Call(type, args, NULL((void*)0)); |
14675 | Py_DECREF(args)Py_DECREF(((PyObject*)((args)))); |
14676 | if (!owned_instance) |
14677 | goto bad; |
14678 | value = owned_instance; |
14679 | if (!PyExceptionInstance_Check(value)PyType_HasFeature(Py_TYPE(((PyObject*)((value)))), (1UL << 30))) { |
14680 | PyErr_Format(PyExc_TypeError, |
14681 | "calling %R should have returned an instance of " |
14682 | "BaseException, not %R", |
14683 | type, Py_TYPE(value)Py_TYPE(((PyObject*)((value))))); |
14684 | goto bad; |
14685 | } |
14686 | } |
14687 | } else { |
14688 | PyErr_SetString(PyExc_TypeError, |
14689 | "raise: exception class must be a subclass of BaseException"); |
14690 | goto bad; |
14691 | } |
14692 | if (cause) { |
14693 | PyObject *fixed_cause; |
14694 | if (cause == Py_None(&_Py_NoneStruct)) { |
14695 | fixed_cause = NULL((void*)0); |
14696 | } else if (PyExceptionClass_Check(cause)(PyType_Check(((PyObject*)(((cause))))) && PyType_HasFeature ((PyTypeObject*)(cause), (1UL << 30)))) { |
14697 | fixed_cause = PyObject_CallObject(cause, NULL((void*)0)); |
14698 | if (fixed_cause == NULL((void*)0)) |
14699 | goto bad; |
14700 | } else if (PyExceptionInstance_Check(cause)PyType_HasFeature(Py_TYPE(((PyObject*)((cause)))), (1UL << 30))) { |
14701 | fixed_cause = cause; |
14702 | Py_INCREF(fixed_cause)Py_INCREF(((PyObject*)((fixed_cause)))); |
14703 | } else { |
14704 | PyErr_SetString(PyExc_TypeError, |
14705 | "exception causes must derive from " |
14706 | "BaseException"); |
14707 | goto bad; |
14708 | } |
14709 | PyException_SetCause(value, fixed_cause); |
14710 | } |
14711 | PyErr_SetObject(type, value); |
14712 | if (tb) { |
14713 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A6 |
14714 | PyException_SetTraceback(value, tb); |
14715 | #elif CYTHON_FAST_THREAD_STATE1 |
14716 | PyThreadState *tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(); |
14717 | PyObject* tmp_tb = tstate->curexc_traceback; |
14718 | if (tb != tmp_tb) { |
14719 | Py_INCREF(tb)Py_INCREF(((PyObject*)((tb)))); |
14720 | tstate->curexc_traceback = tb; |
14721 | Py_XDECREF(tmp_tb)Py_XDECREF(((PyObject*)((tmp_tb)))); |
14722 | } |
14723 | #else |
14724 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
14725 | PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); |
14726 | Py_INCREF(tb)Py_INCREF(((PyObject*)((tb)))); |
14727 | PyErr_Restore(tmp_type, tmp_value, tb); |
14728 | Py_XDECREF(tmp_tb)Py_XDECREF(((PyObject*)((tmp_tb)))); |
14729 | #endif |
14730 | } |
14731 | bad: |
14732 | Py_XDECREF(owned_instance)Py_XDECREF(((PyObject*)((owned_instance)))); |
14733 | return; |
14734 | } |
14735 | #endif |
14736 | |
14737 | /* SwapException */ |
14738 | #if CYTHON_FAST_THREAD_STATE1 |
14739 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { |
14740 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
14741 | #if CYTHON_USE_EXC_INFO_STACK1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
14742 | _PyErr_StackItem *exc_info = tstate->exc_info; |
14743 | tmp_value = exc_info->exc_value; |
14744 | exc_info->exc_value = *value; |
14745 | if (tmp_value == NULL((void*)0) || tmp_value == Py_None(&_Py_NoneStruct)) { |
14746 | Py_XDECREF(tmp_value)Py_XDECREF(((PyObject*)((tmp_value)))); |
14747 | tmp_value = NULL((void*)0); |
14748 | tmp_type = NULL((void*)0); |
14749 | tmp_tb = NULL((void*)0); |
14750 | } else { |
14751 | tmp_type = (PyObject*) Py_TYPE(tmp_value)Py_TYPE(((PyObject*)((tmp_value)))); |
14752 | Py_INCREF(tmp_type)Py_INCREF(((PyObject*)((tmp_type)))); |
14753 | #if CYTHON_COMPILING_IN_CPYTHON1 |
14754 | tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback; |
14755 | Py_XINCREF(tmp_tb)Py_XINCREF(((PyObject*)((tmp_tb)))); |
14756 | #else |
14757 | tmp_tb = PyException_GetTraceback(tmp_value); |
14758 | #endif |
14759 | } |
14760 | #elif CYTHON_USE_EXC_INFO_STACK1 |
14761 | _PyErr_StackItem *exc_info = tstate->exc_info; |
14762 | tmp_type = exc_info->exc_type; |
14763 | tmp_value = exc_info->exc_value; |
14764 | tmp_tb = exc_info->exc_traceback; |
14765 | exc_info->exc_type = *type; |
14766 | exc_info->exc_value = *value; |
14767 | exc_info->exc_traceback = *tb; |
14768 | #else |
14769 | tmp_type = tstate->exc_type; |
14770 | tmp_value = tstate->exc_value; |
14771 | tmp_tb = tstate->exc_traceback; |
14772 | tstate->exc_type = *type; |
14773 | tstate->exc_value = *value; |
14774 | tstate->exc_traceback = *tb; |
14775 | #endif |
14776 | *type = tmp_type; |
14777 | *value = tmp_value; |
14778 | *tb = tmp_tb; |
14779 | } |
14780 | #else |
14781 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb)__Pyx__ExceptionSwap(__pyx_tstate, PyObject **type, PyObject * *value, PyObject **tb) { |
14782 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
14783 | PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); |
14784 | PyErr_SetExcInfo(*type, *value, *tb); |
14785 | *type = tmp_type; |
14786 | *value = tmp_value; |
14787 | *tb = tmp_tb; |
14788 | } |
14789 | #endif |
14790 | |
14791 | /* PyObjectCall2Args */ |
14792 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) { |
14793 | PyObject *args[3] = {NULL((void*)0), arg1, arg2}; |
14794 | return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)__Pyx_PyObject_FastCallDict(function, args+1, (size_t)(2 | (( (size_t)(1)) << (8 * sizeof(size_t) - 1))), ((void*)0)); |
14795 | } |
14796 | |
14797 | /* PyObjectCallMethod1 */ |
14798 | #if !(CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) && __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A2) |
14799 | static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) { |
14800 | PyObject *result = __Pyx_PyObject_CallOneArg(method, arg); |
14801 | Py_DECREF(method)Py_DECREF(((PyObject*)((method)))); |
14802 | return result; |
14803 | } |
14804 | #endif |
14805 | static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { |
14806 | #if CYTHON_VECTORCALL((1 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B1) && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800B1) && __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C00A2 |
14807 | PyObject *args[2] = {obj, arg}; |
14808 | (void) __Pyx_PyObject_GetMethod; |
14809 | (void) __Pyx_PyObject_CallOneArg; |
14810 | (void) __Pyx_PyObject_Call2Args; |
14811 | return PyObject_VectorcallMethod(method_name, args, 2 | PY_VECTORCALL_ARGUMENTS_OFFSET(((size_t)(1)) << (8 * sizeof(size_t) - 1)), NULL((void*)0)); |
14812 | #else |
14813 | PyObject *method = NULL((void*)0), *result; |
14814 | int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); |
14815 | if (likely(is_method)__builtin_expect(!!(is_method), 1)) { |
14816 | result = __Pyx_PyObject_Call2Args(method, obj, arg); |
14817 | Py_DECREF(method)Py_DECREF(((PyObject*)((method)))); |
14818 | return result; |
14819 | } |
14820 | if (unlikely(!method)__builtin_expect(!!(!method), 0)) return NULL((void*)0); |
14821 | return __Pyx__PyObject_CallMethod1(method, arg); |
14822 | #endif |
14823 | } |
14824 | |
14825 | /* CoroutineBase */ |
14826 | #include <frameobject.h> |
14827 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030b00a6 |
14828 | #ifndef Py_BUILD_CORE1 |
14829 | #define Py_BUILD_CORE1 1 |
14830 | #endif |
14831 | #include "internal/pycore_frame.h" |
14832 | #endif |
14833 | #define __Pyx_Coroutine_Undelegate(gen)do { PyObject *_py_tmp = ((PyObject*)(((gen)->yieldfrom))) ; if (_py_tmp != ((void*)0)) { ((gen)->yieldfrom) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0) Py_CLEAR((gen)->yieldfrom)do { PyObject *_py_tmp = ((PyObject*)(((gen)->yieldfrom))) ; if (_py_tmp != ((void*)0)) { ((gen)->yieldfrom) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0) |
14834 | static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *__pyx_tstate, PyObject **pvalue) { |
14835 | PyObject *et, *ev, *tb; |
14836 | PyObject *value = NULL((void*)0); |
14837 | CYTHON_UNUSED_VAR(__pyx_tstate)(void)(__pyx_tstate); |
14838 | __Pyx_ErrFetch(&et, &ev, &tb)__Pyx_ErrFetchInState(__pyx_tstate, &et, &ev, &tb ); |
14839 | if (!et) { |
14840 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
14841 | Py_XDECREF(ev)Py_XDECREF(((PyObject*)((ev)))); |
14842 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
14843 | *pvalue = Py_None(&_Py_NoneStruct); |
14844 | return 0; |
14845 | } |
14846 | if (likely(et == PyExc_StopIteration)__builtin_expect(!!(et == PyExc_StopIteration), 1)) { |
14847 | if (!ev) { |
14848 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
14849 | value = Py_None(&_Py_NoneStruct); |
14850 | } |
14851 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030300A0 |
14852 | else if (likely(__Pyx_IS_TYPE(ev, (PyTypeObject*)PyExc_StopIteration))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((ev))), (PyTypeObject *)PyExc_StopIteration)), 1)) { |
14853 | value = ((PyStopIterationObject *)ev)->value; |
14854 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
14855 | Py_DECREF(ev)Py_DECREF(((PyObject*)((ev)))); |
14856 | } |
14857 | #endif |
14858 | else if (unlikely(PyTuple_Check(ev))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((ev )))), (1UL << 26))), 0)) { |
14859 | if (PyTuple_GET_SIZE(ev)PyTuple_GET_SIZE(((PyObject*)((ev)))) >= 1) { |
14860 | #if CYTHON_ASSUME_SAFE_MACROS1 && !CYTHON_AVOID_BORROWED_REFS0 |
14861 | value = PyTuple_GET_ITEM(ev, 0)((((void) sizeof ((PyType_HasFeature(Py_TYPE(((PyObject*)((ev )))), (1UL << 26))) ? 1 : 0), __extension__ ({ if (PyType_HasFeature (Py_TYPE(((PyObject*)((ev)))), (1UL << 26))) ; else __assert_fail ("PyTuple_Check(ev)", "abaqusFILReader.c", 14861, __extension__ __PRETTY_FUNCTION__); })), ((PyTupleObject*)((ev))))->ob_item [0]); |
14862 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
14863 | #else |
14864 | value = PySequence_ITEM(ev, 0)( Py_TYPE(((PyObject*)((ev))))->tp_as_sequence->sq_item (ev, 0) ); |
14865 | #endif |
14866 | } else { |
14867 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
14868 | value = Py_None(&_Py_NoneStruct); |
14869 | } |
14870 | Py_DECREF(ev)Py_DECREF(((PyObject*)((ev)))); |
14871 | } |
14872 | else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)__Pyx_IsSubtype(Py_TYPE(((PyObject*)((ev)))), (PyTypeObject * )(PyTypeObject*)PyExc_StopIteration)) { |
14873 | value = ev; |
14874 | } |
14875 | if (likely(value)__builtin_expect(!!(value), 1)) { |
14876 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
14877 | Py_DECREF(et)Py_DECREF(((PyObject*)((et)))); |
14878 | *pvalue = value; |
14879 | return 0; |
14880 | } |
14881 | } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) { |
14882 | __Pyx_ErrRestore(et, ev, tb)__Pyx_ErrRestoreInState(__pyx_tstate, et, ev, tb); |
14883 | return -1; |
14884 | } |
14885 | PyErr_NormalizeException(&et, &ev, &tb); |
14886 | if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))__builtin_expect(!!(!PyObject_TypeCheck(((PyObject*)((ev))), ( PyTypeObject*)PyExc_StopIteration)), 0)) { |
14887 | __Pyx_ErrRestore(et, ev, tb)__Pyx_ErrRestoreInState(__pyx_tstate, et, ev, tb); |
14888 | return -1; |
14889 | } |
14890 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
14891 | Py_DECREF(et)Py_DECREF(((PyObject*)((et)))); |
14892 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030300A0 |
14893 | value = ((PyStopIterationObject *)ev)->value; |
14894 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
14895 | Py_DECREF(ev)Py_DECREF(((PyObject*)((ev)))); |
14896 | #else |
14897 | { |
14898 | PyObject* args = __Pyx_PyObject_GetAttrStr(ev, __pyx_n_s_args__pyx_mstate_global->__pyx_n_s_args); |
14899 | Py_DECREF(ev)Py_DECREF(((PyObject*)((ev)))); |
14900 | if (likely(args)__builtin_expect(!!(args), 1)) { |
14901 | value = PySequence_GetItem(args, 0); |
14902 | Py_DECREF(args)Py_DECREF(((PyObject*)((args)))); |
14903 | } |
14904 | if (unlikely(!value)__builtin_expect(!!(!value), 0)) { |
14905 | __Pyx_ErrRestore(NULL, NULL, NULL)__Pyx_ErrRestoreInState(__pyx_tstate, ((void*)0), ((void*)0), ((void*)0)); |
14906 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
14907 | value = Py_None(&_Py_NoneStruct); |
14908 | } |
14909 | } |
14910 | #endif |
14911 | *pvalue = value; |
14912 | return 0; |
14913 | } |
14914 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) |
14915 | void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct_PyErr_StackItem *exc_state) { |
14916 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
14917 | Py_CLEAR(exc_state->exc_value)do { PyObject *_py_tmp = ((PyObject*)((exc_state->exc_value ))); if (_py_tmp != ((void*)0)) { (exc_state->exc_value) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while ( 0); |
14918 | #else |
14919 | PyObject *t, *v, *tb; |
14920 | t = exc_state->exc_type; |
14921 | v = exc_state->exc_value; |
14922 | tb = exc_state->exc_traceback; |
14923 | exc_state->exc_type = NULL((void*)0); |
14924 | exc_state->exc_value = NULL((void*)0); |
14925 | exc_state->exc_traceback = NULL((void*)0); |
14926 | Py_XDECREF(t)Py_XDECREF(((PyObject*)((t)))); |
14927 | Py_XDECREF(v)Py_XDECREF(((PyObject*)((v)))); |
14928 | Py_XDECREF(tb)Py_XDECREF(((PyObject*)((tb)))); |
14929 | #endif |
14930 | } |
14931 | #define __Pyx_Coroutine_AlreadyRunningError(gen)(__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)((void *)0)) (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL((void*)0)) |
14932 | static void __Pyx__Coroutine_AlreadyRunningError(__pyx_CoroutineObject *gen) { |
14933 | const char *msg; |
14934 | CYTHON_MAYBE_UNUSED_VAR(gen)(void)(gen); |
14935 | if ((0)) { |
14936 | #ifdef __Pyx_Coroutine_USED |
14937 | } else if (__Pyx_Coroutine_Check((PyObject*)gen)) { |
14938 | msg = "coroutine already executing"; |
14939 | #endif |
14940 | #ifdef __Pyx_AsyncGen_USED |
14941 | } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) { |
14942 | msg = "async generator already executing"; |
14943 | #endif |
14944 | } else { |
14945 | msg = "generator already executing"; |
14946 | } |
14947 | PyErr_SetString(PyExc_ValueError, msg); |
14948 | } |
14949 | #define __Pyx_Coroutine_NotStartedError(gen)(__Pyx__Coroutine_NotStartedError(gen), (PyObject*)((void*)0) ) (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL((void*)0)) |
14950 | static void __Pyx__Coroutine_NotStartedError(PyObject *gen) { |
14951 | const char *msg; |
14952 | CYTHON_MAYBE_UNUSED_VAR(gen)(void)(gen); |
14953 | if ((0)) { |
14954 | #ifdef __Pyx_Coroutine_USED |
14955 | } else if (__Pyx_Coroutine_Check(gen)) { |
14956 | msg = "can't send non-None value to a just-started coroutine"; |
14957 | #endif |
14958 | #ifdef __Pyx_AsyncGen_USED |
14959 | } else if (__Pyx_AsyncGen_CheckExact(gen)) { |
14960 | msg = "can't send non-None value to a just-started async generator"; |
14961 | #endif |
14962 | } else { |
14963 | msg = "can't send non-None value to a just-started generator"; |
14964 | } |
14965 | PyErr_SetString(PyExc_TypeError, msg); |
14966 | } |
14967 | #define __Pyx_Coroutine_AlreadyTerminatedError(gen, value, closing)(__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing) , (PyObject*)((void*)0)) (__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing), (PyObject*)NULL((void*)0)) |
14968 | static void __Pyx__Coroutine_AlreadyTerminatedError(PyObject *gen, PyObject *value, int closing) { |
14969 | CYTHON_MAYBE_UNUSED_VAR(gen)(void)(gen); |
14970 | CYTHON_MAYBE_UNUSED_VAR(closing)(void)(closing); |
14971 | #ifdef __Pyx_Coroutine_USED |
14972 | if (!closing && __Pyx_Coroutine_Check(gen)) { |
14973 | PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine"); |
14974 | } else |
14975 | #endif |
14976 | if (value) { |
14977 | #ifdef __Pyx_AsyncGen_USED |
14978 | if (__Pyx_AsyncGen_CheckExact(gen)) |
14979 | PyErr_SetNone(__Pyx_PyExc_StopAsyncIteration); |
14980 | else |
14981 | #endif |
14982 | PyErr_SetNone(PyExc_StopIteration); |
14983 | } |
14984 | } |
14985 | static |
14986 | PyObject *__Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, int closing) { |
14987 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
14988 | PyThreadState *tstate; |
14989 | __Pyx_ExcInfoStruct_PyErr_StackItem *exc_state; |
14990 | PyObject *retval; |
14991 | assert(!self->is_running)((void) sizeof ((!self->is_running) ? 1 : 0), __extension__ ({ if (!self->is_running) ; else __assert_fail ("!self->is_running" , "abaqusFILReader.c", 14991, __extension__ __PRETTY_FUNCTION__ ); })); |
14992 | if (unlikely(self->resume_label == 0)__builtin_expect(!!(self->resume_label == 0), 0)) { |
14993 | if (unlikely(value && value != Py_None)__builtin_expect(!!(value && value != (&_Py_NoneStruct )), 0)) { |
14994 | return __Pyx_Coroutine_NotStartedError((PyObject*)self)(__Pyx__Coroutine_NotStartedError((PyObject*)self), (PyObject *)((void*)0)); |
14995 | } |
14996 | } |
14997 | if (unlikely(self->resume_label == -1)__builtin_expect(!!(self->resume_label == -1), 0)) { |
14998 | return __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing)(__Pyx__Coroutine_AlreadyTerminatedError((PyObject*)self, value , closing), (PyObject*)((void*)0)); |
14999 | } |
15000 | #if CYTHON_FAST_THREAD_STATE1 |
15001 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
15002 | tstate = __pyx_tstate; |
15003 | #else |
15004 | tstate = __Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(); |
15005 | #endif |
15006 | exc_state = &self->gi_exc_state; |
15007 | if (exc_state->exc_value) { |
15008 | #if CYTHON_COMPILING_IN_PYPY0 |
15009 | #else |
15010 | PyObject *exc_tb; |
15011 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON1 |
15012 | exc_tb = PyException_GetTraceback(exc_state->exc_value); |
15013 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
15014 | exc_tb = ((PyBaseExceptionObject*) exc_state->exc_value)->traceback; |
15015 | #else |
15016 | exc_tb = exc_state->exc_traceback; |
15017 | #endif |
15018 | if (exc_tb) { |
15019 | PyTracebackObject *tb = (PyTracebackObject *) exc_tb; |
15020 | PyFrameObject *f = tb->tb_frame; |
15021 | assert(f->f_back == NULL)((void) sizeof ((f->f_back == ((void*)0)) ? 1 : 0), __extension__ ({ if (f->f_back == ((void*)0)) ; else __assert_fail ("f->f_back == NULL" , "abaqusFILReader.c", 15021, __extension__ __PRETTY_FUNCTION__ ); })); |
15022 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00A1 |
15023 | f->f_back = PyThreadState_GetFrame(tstate); |
15024 | #else |
15025 | Py_XINCREF(tstate->frame)Py_XINCREF(((PyObject*)((tstate->frame)))); |
15026 | f->f_back = tstate->frame; |
15027 | #endif |
15028 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON1 |
15029 | Py_DECREF(exc_tb)Py_DECREF(((PyObject*)((exc_tb)))); |
15030 | #endif |
15031 | } |
15032 | #endif |
15033 | } |
15034 | #if CYTHON_USE_EXC_INFO_STACK1 |
15035 | exc_state->previous_item = tstate->exc_info; |
15036 | tstate->exc_info = exc_state; |
15037 | #else |
15038 | if (exc_state->exc_type) { |
15039 | __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback)__Pyx__ExceptionSwap(__pyx_tstate, &exc_state->exc_type , &exc_state->exc_value, &exc_state->exc_traceback ); |
15040 | } else { |
15041 | __Pyx_Coroutine_ExceptionClear(exc_state); |
15042 | __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback)__Pyx__ExceptionSave(__pyx_tstate, &exc_state->exc_type , &exc_state->exc_value, &exc_state->exc_traceback ); |
15043 | } |
15044 | #endif |
15045 | self->is_running = 1; |
15046 | retval = self->body(self, tstate, value); |
15047 | self->is_running = 0; |
15048 | #if CYTHON_USE_EXC_INFO_STACK1 |
15049 | exc_state = &self->gi_exc_state; |
15050 | tstate->exc_info = exc_state->previous_item; |
15051 | exc_state->previous_item = NULL((void*)0); |
15052 | __Pyx_Coroutine_ResetFrameBackpointer(exc_state); |
15053 | #endif |
15054 | return retval; |
15055 | } |
15056 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct_PyErr_StackItem *exc_state) { |
15057 | #if CYTHON_COMPILING_IN_PYPY0 |
15058 | CYTHON_UNUSED_VAR(exc_state)(void)(exc_state); |
15059 | #else |
15060 | PyObject *exc_tb; |
15061 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
15062 | if (!exc_state->exc_value) return; |
15063 | exc_tb = PyException_GetTraceback(exc_state->exc_value); |
15064 | #else |
15065 | exc_tb = exc_state->exc_traceback; |
15066 | #endif |
15067 | if (likely(exc_tb)__builtin_expect(!!(exc_tb), 1)) { |
15068 | PyTracebackObject *tb = (PyTracebackObject *) exc_tb; |
15069 | PyFrameObject *f = tb->tb_frame; |
15070 | Py_CLEAR(f->f_back)do { PyObject *_py_tmp = ((PyObject*)((f->f_back))); if (_py_tmp != ((void*)0)) { (f->f_back) = ((void*)0); Py_DECREF(((PyObject *)((_py_tmp)))); } } while (0); |
15071 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
15072 | Py_DECREF(exc_tb)Py_DECREF(((PyObject*)((exc_tb)))); |
15073 | #endif |
15074 | } |
15075 | #endif |
15076 | } |
15077 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) |
15078 | PyObject *__Pyx_Coroutine_MethodReturn(PyObject* gen, PyObject *retval) { |
15079 | CYTHON_MAYBE_UNUSED_VAR(gen)(void)(gen); |
15080 | if (unlikely(!retval)__builtin_expect(!!(!retval), 0)) { |
15081 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
15082 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
15083 | if (!__Pyx_PyErr_Occurred()(__pyx_tstate->curexc_type != ((void*)0))) { |
15084 | PyObject *exc = PyExc_StopIteration; |
15085 | #ifdef __Pyx_AsyncGen_USED |
15086 | if (__Pyx_AsyncGen_CheckExact(gen)) |
15087 | exc = __Pyx_PyExc_StopAsyncIteration; |
15088 | #endif |
15089 | __Pyx_PyErr_SetNone(exc)(Py_INCREF(((PyObject*)((exc)))), __Pyx_ErrRestoreInState(__pyx_tstate , (exc), ((void*)0), ((void*)0))); |
15090 | } |
15091 | } |
15092 | return retval; |
15093 | } |
15094 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03030000 && (defined(__linux__1) || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B3) |
15095 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) |
15096 | PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) { |
15097 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x030A00A1 |
15098 | return _PyGen_Send(gen, arg); |
15099 | #else |
15100 | PyObject *result; |
15101 | if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None(&_Py_NoneStruct), &result) == PYGEN_RETURN) { |
15102 | if (PyAsyncGen_CheckExact(gen)Py_IS_TYPE(((PyObject*)((gen))), &PyAsyncGen_Type)) { |
15103 | assert(result == Py_None)((void) sizeof ((result == (&_Py_NoneStruct)) ? 1 : 0), __extension__ ({ if (result == (&_Py_NoneStruct)) ; else __assert_fail ("result == Py_None", "abaqusFILReader.c", 15103, __extension__ __PRETTY_FUNCTION__); })); |
15104 | PyErr_SetNone(PyExc_StopAsyncIteration); |
15105 | } |
15106 | else if (result == Py_None(&_Py_NoneStruct)) { |
15107 | PyErr_SetNone(PyExc_StopIteration); |
15108 | } |
15109 | else { |
15110 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030d00A1 |
15111 | _PyGen_SetStopIterationValue(result); |
15112 | #else |
15113 | if (!PyTuple_Check(result)PyType_HasFeature(Py_TYPE(((PyObject*)((result)))), (1UL << 26)) && !PyExceptionInstance_Check(result)PyType_HasFeature(Py_TYPE(((PyObject*)((result)))), (1UL << 30))) { |
15114 | PyErr_SetObject(PyExc_StopIteration, result); |
15115 | } else { |
15116 | PyObject *exc = __Pyx_PyObject_CallOneArg(PyExc_StopIteration, result); |
15117 | if (likely(exc != NULL)__builtin_expect(!!(exc != ((void*)0)), 1)) { |
15118 | PyErr_SetObject(PyExc_StopIteration, exc); |
15119 | Py_DECREF(exc)Py_DECREF(((PyObject*)((exc)))); |
15120 | } |
15121 | } |
15122 | #endif |
15123 | } |
15124 | Py_DECREF(result)Py_DECREF(((PyObject*)((result)))); |
15125 | result = NULL((void*)0); |
15126 | } |
15127 | return result; |
15128 | #endif |
15129 | } |
15130 | #endif |
15131 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) |
15132 | PyObject *__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen) { |
15133 | PyObject *ret; |
15134 | PyObject *val = NULL((void*)0); |
15135 | __Pyx_Coroutine_Undelegate(gen)do { PyObject *_py_tmp = ((PyObject*)(((gen)->yieldfrom))) ; if (_py_tmp != ((void*)0)) { ((gen)->yieldfrom) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
15136 | __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current_PyThreadState_UncheckedGet(), &val); |
15137 | ret = __Pyx_Coroutine_SendEx(gen, val, 0); |
15138 | Py_XDECREF(val)Py_XDECREF(((PyObject*)((val)))); |
15139 | return ret; |
15140 | } |
15141 | static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) { |
15142 | PyObject *retval; |
15143 | __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; |
15144 | PyObject *yf = gen->yieldfrom; |
15145 | if (unlikely(gen->is_running)__builtin_expect(!!(gen->is_running), 0)) |
15146 | return __Pyx_Coroutine_AlreadyRunningError(gen)(__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)((void *)0)); |
15147 | if (yf) { |
15148 | PyObject *ret; |
15149 | gen->is_running = 1; |
15150 | #ifdef __Pyx_Generator_USED |
15151 | if (__Pyx_Generator_CheckExact(yf)Py_IS_TYPE(((PyObject*)((yf))), __pyx_mstate_global->__pyx_GeneratorType )) { |
15152 | ret = __Pyx_Coroutine_Send(yf, value); |
15153 | } else |
15154 | #endif |
15155 | #ifdef __Pyx_Coroutine_USED |
15156 | if (__Pyx_Coroutine_Check(yf)) { |
15157 | ret = __Pyx_Coroutine_Send(yf, value); |
15158 | } else |
15159 | #endif |
15160 | #ifdef __Pyx_AsyncGen_USED |
15161 | if (__pyx_PyAsyncGenASend_CheckExact(yf)) { |
15162 | ret = __Pyx_async_gen_asend_send(yf, value); |
15163 | } else |
15164 | #endif |
15165 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03030000 && (defined(__linux__1) || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B3) |
15166 | if (PyGen_CheckExact(yf)Py_IS_TYPE(((PyObject*)((yf))), &PyGen_Type)) { |
15167 | ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None(&_Py_NoneStruct) ? NULL((void*)0) : value); |
15168 | } else |
15169 | #endif |
15170 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__1) || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B3) |
15171 | if (PyCoro_CheckExact(yf)Py_IS_TYPE(((PyObject*)((yf))), &PyCoro_Type)) { |
15172 | ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None(&_Py_NoneStruct) ? NULL((void*)0) : value); |
15173 | } else |
15174 | #endif |
15175 | { |
15176 | if (value == Py_None(&_Py_NoneStruct)) |
15177 | ret = __Pyx_PyObject_GetIterNextFunc(yf)(Py_TYPE(((PyObject*)((yf))))->tp_iternext)(yf); |
15178 | else |
15179 | ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send__pyx_mstate_global->__pyx_n_s_send, value); |
15180 | } |
15181 | gen->is_running = 0; |
15182 | if (likely(ret)__builtin_expect(!!(ret), 1)) { |
15183 | return ret; |
15184 | } |
15185 | retval = __Pyx_Coroutine_FinishDelegation(gen); |
15186 | } else { |
15187 | retval = __Pyx_Coroutine_SendEx(gen, value, 0); |
15188 | } |
15189 | return __Pyx_Coroutine_MethodReturn(self, retval); |
15190 | } |
15191 | static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) { |
15192 | PyObject *retval = NULL((void*)0); |
15193 | int err = 0; |
15194 | #ifdef __Pyx_Generator_USED |
15195 | if (__Pyx_Generator_CheckExact(yf)Py_IS_TYPE(((PyObject*)((yf))), __pyx_mstate_global->__pyx_GeneratorType )) { |
15196 | retval = __Pyx_Coroutine_Close(yf); |
15197 | if (!retval) |
15198 | return -1; |
15199 | } else |
15200 | #endif |
15201 | #ifdef __Pyx_Coroutine_USED |
15202 | if (__Pyx_Coroutine_Check(yf)) { |
15203 | retval = __Pyx_Coroutine_Close(yf); |
15204 | if (!retval) |
15205 | return -1; |
15206 | } else |
15207 | if (__Pyx_CoroutineAwait_CheckExact(yf)) { |
15208 | retval = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf, NULL((void*)0)); |
15209 | if (!retval) |
15210 | return -1; |
15211 | } else |
15212 | #endif |
15213 | #ifdef __Pyx_AsyncGen_USED |
15214 | if (__pyx_PyAsyncGenASend_CheckExact(yf)) { |
15215 | retval = __Pyx_async_gen_asend_close(yf, NULL((void*)0)); |
15216 | } else |
15217 | if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) { |
15218 | retval = __Pyx_async_gen_athrow_close(yf, NULL((void*)0)); |
15219 | } else |
15220 | #endif |
15221 | { |
15222 | PyObject *meth; |
15223 | gen->is_running = 1; |
15224 | meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_n_s_close__pyx_mstate_global->__pyx_n_s_close); |
15225 | if (unlikely(!meth)__builtin_expect(!!(!meth), 0)) { |
15226 | if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) { |
15227 | PyErr_WriteUnraisable(yf); |
15228 | } |
15229 | } else { |
15230 | retval = __Pyx_PyObject_CallNoArg(meth); |
15231 | Py_DECREF(meth)Py_DECREF(((PyObject*)((meth)))); |
15232 | if (unlikely(!retval)__builtin_expect(!!(!retval), 0)) |
15233 | err = -1; |
15234 | } |
15235 | gen->is_running = 0; |
15236 | } |
15237 | Py_XDECREF(retval)Py_XDECREF(((PyObject*)((retval)))); |
15238 | return err; |
15239 | } |
15240 | static PyObject *__Pyx_Generator_Next(PyObject *self) { |
15241 | __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; |
15242 | PyObject *yf = gen->yieldfrom; |
15243 | if (unlikely(gen->is_running)__builtin_expect(!!(gen->is_running), 0)) |
15244 | return __Pyx_Coroutine_AlreadyRunningError(gen)(__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)((void *)0)); |
15245 | if (yf) { |
15246 | PyObject *ret; |
15247 | gen->is_running = 1; |
15248 | #ifdef __Pyx_Generator_USED |
15249 | if (__Pyx_Generator_CheckExact(yf)Py_IS_TYPE(((PyObject*)((yf))), __pyx_mstate_global->__pyx_GeneratorType )) { |
15250 | ret = __Pyx_Generator_Next(yf); |
15251 | } else |
15252 | #endif |
15253 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03030000 && (defined(__linux__1) || PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030600B3) |
15254 | if (PyGen_CheckExact(yf)Py_IS_TYPE(((PyObject*)((yf))), &PyGen_Type)) { |
15255 | ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL((void*)0)); |
15256 | } else |
15257 | #endif |
15258 | #ifdef __Pyx_Coroutine_USED |
15259 | if (__Pyx_Coroutine_Check(yf)) { |
15260 | ret = __Pyx_Coroutine_Send(yf, Py_None(&_Py_NoneStruct)); |
15261 | } else |
15262 | #endif |
15263 | ret = __Pyx_PyObject_GetIterNextFunc(yf)(Py_TYPE(((PyObject*)((yf))))->tp_iternext)(yf); |
15264 | gen->is_running = 0; |
15265 | if (likely(ret)__builtin_expect(!!(ret), 1)) { |
15266 | return ret; |
15267 | } |
15268 | return __Pyx_Coroutine_FinishDelegation(gen); |
15269 | } |
15270 | return __Pyx_Coroutine_SendEx(gen, Py_None(&_Py_NoneStruct), 0); |
15271 | } |
15272 | static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, PyObject *arg) { |
15273 | CYTHON_UNUSED_VAR(arg)(void)(arg); |
15274 | return __Pyx_Coroutine_Close(self); |
15275 | } |
15276 | static PyObject *__Pyx_Coroutine_Close(PyObject *self) { |
15277 | __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; |
15278 | PyObject *retval, *raised_exception; |
15279 | PyObject *yf = gen->yieldfrom; |
15280 | int err = 0; |
15281 | if (unlikely(gen->is_running)__builtin_expect(!!(gen->is_running), 0)) |
15282 | return __Pyx_Coroutine_AlreadyRunningError(gen)(__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)((void *)0)); |
15283 | if (yf) { |
15284 | Py_INCREF(yf)Py_INCREF(((PyObject*)((yf)))); |
15285 | err = __Pyx_Coroutine_CloseIter(gen, yf); |
15286 | __Pyx_Coroutine_Undelegate(gen)do { PyObject *_py_tmp = ((PyObject*)(((gen)->yieldfrom))) ; if (_py_tmp != ((void*)0)) { ((gen)->yieldfrom) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
15287 | Py_DECREF(yf)Py_DECREF(((PyObject*)((yf)))); |
15288 | } |
15289 | if (err == 0) |
15290 | PyErr_SetNone(PyExc_GeneratorExit); |
15291 | retval = __Pyx_Coroutine_SendEx(gen, NULL((void*)0), 1); |
15292 | if (unlikely(retval)__builtin_expect(!!(retval), 0)) { |
15293 | const char *msg; |
15294 | Py_DECREF(retval)Py_DECREF(((PyObject*)((retval)))); |
15295 | if ((0)) { |
15296 | #ifdef __Pyx_Coroutine_USED |
15297 | } else if (__Pyx_Coroutine_Check(self)) { |
15298 | msg = "coroutine ignored GeneratorExit"; |
15299 | #endif |
15300 | #ifdef __Pyx_AsyncGen_USED |
15301 | } else if (__Pyx_AsyncGen_CheckExact(self)) { |
15302 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03060000 |
15303 | msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)"; |
15304 | #else |
15305 | msg = "async generator ignored GeneratorExit"; |
15306 | #endif |
15307 | #endif |
15308 | } else { |
15309 | msg = "generator ignored GeneratorExit"; |
15310 | } |
15311 | PyErr_SetString(PyExc_RuntimeError, msg); |
15312 | return NULL((void*)0); |
15313 | } |
15314 | raised_exception = PyErr_Occurred(); |
15315 | if (likely(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2(raised_exception, PyExc_GeneratorExit, PyExc_StopIteration))__builtin_expect(!!(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2 (raised_exception, PyExc_GeneratorExit, PyExc_StopIteration)) , 1)) { |
15316 | if (raised_exception) PyErr_Clear(); |
15317 | Py_INCREF(Py_None)Py_INCREF(((PyObject*)(((&_Py_NoneStruct))))); |
15318 | return Py_None(&_Py_NoneStruct); |
15319 | } |
15320 | return NULL((void*)0); |
15321 | } |
15322 | static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb, |
15323 | PyObject *args, int close_on_genexit) { |
15324 | __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; |
15325 | PyObject *yf = gen->yieldfrom; |
15326 | if (unlikely(gen->is_running)__builtin_expect(!!(gen->is_running), 0)) |
15327 | return __Pyx_Coroutine_AlreadyRunningError(gen)(__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)((void *)0)); |
15328 | if (yf) { |
15329 | PyObject *ret; |
15330 | Py_INCREF(yf)Py_INCREF(((PyObject*)((yf)))); |
15331 | if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) { |
15332 | int err = __Pyx_Coroutine_CloseIter(gen, yf); |
15333 | Py_DECREF(yf)Py_DECREF(((PyObject*)((yf)))); |
15334 | __Pyx_Coroutine_Undelegate(gen)do { PyObject *_py_tmp = ((PyObject*)(((gen)->yieldfrom))) ; if (_py_tmp != ((void*)0)) { ((gen)->yieldfrom) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
15335 | if (err < 0) |
15336 | return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL((void*)0), 0)); |
15337 | goto throw_here; |
15338 | } |
15339 | gen->is_running = 1; |
15340 | if (0 |
15341 | #ifdef __Pyx_Generator_USED |
15342 | || __Pyx_Generator_CheckExact(yf)Py_IS_TYPE(((PyObject*)((yf))), __pyx_mstate_global->__pyx_GeneratorType ) |
15343 | #endif |
15344 | #ifdef __Pyx_Coroutine_USED |
15345 | || __Pyx_Coroutine_Check(yf) |
15346 | #endif |
15347 | ) { |
15348 | ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit); |
15349 | #ifdef __Pyx_Coroutine_USED |
15350 | } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { |
15351 | ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit); |
15352 | #endif |
15353 | } else { |
15354 | PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_n_s_throw__pyx_mstate_global->__pyx_n_s_throw); |
15355 | if (unlikely(!meth)__builtin_expect(!!(!meth), 0)) { |
15356 | Py_DECREF(yf)Py_DECREF(((PyObject*)((yf)))); |
15357 | if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) { |
15358 | gen->is_running = 0; |
15359 | return NULL((void*)0); |
15360 | } |
15361 | __Pyx_Coroutine_Undelegate(gen)do { PyObject *_py_tmp = ((PyObject*)(((gen)->yieldfrom))) ; if (_py_tmp != ((void*)0)) { ((gen)->yieldfrom) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
15362 | gen->is_running = 0; |
15363 | goto throw_here; |
15364 | } |
15365 | if (likely(args)__builtin_expect(!!(args), 1)) { |
15366 | ret = __Pyx_PyObject_Call(meth, args, NULL((void*)0)); |
15367 | } else { |
15368 | PyObject *cargs[4] = {NULL((void*)0), typ, val, tb}; |
15369 | ret = __Pyx_PyObject_FastCall(meth, cargs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)__Pyx_PyObject_FastCallDict(meth, cargs+1, (size_t)(3 | (((size_t )(1)) << (8 * sizeof(size_t) - 1))), ((void*)0)); |
15370 | } |
15371 | Py_DECREF(meth)Py_DECREF(((PyObject*)((meth)))); |
15372 | } |
15373 | gen->is_running = 0; |
15374 | Py_DECREF(yf)Py_DECREF(((PyObject*)((yf)))); |
15375 | if (!ret) { |
15376 | ret = __Pyx_Coroutine_FinishDelegation(gen); |
15377 | } |
15378 | return __Pyx_Coroutine_MethodReturn(self, ret); |
15379 | } |
15380 | throw_here: |
15381 | __Pyx_Raise(typ, val, tb, NULL((void*)0)); |
15382 | return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL((void*)0), 0)); |
15383 | } |
15384 | static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) { |
15385 | PyObject *typ; |
15386 | PyObject *val = NULL((void*)0); |
15387 | PyObject *tb = NULL((void*)0); |
15388 | if (unlikely(!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb))__builtin_expect(!!(!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb)), 0)) |
15389 | return NULL((void*)0); |
15390 | return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1); |
15391 | } |
15392 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct_PyErr_StackItem *exc_state, visitproc visit, void *arg) { |
15393 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
15394 | Py_VISIT(exc_state->exc_value)do { if (exc_state->exc_value) { int vret = visit(((PyObject *)((exc_state->exc_value))), arg); if (vret) return vret; } } while (0); |
15395 | #else |
15396 | Py_VISIT(exc_state->exc_type)do { if (exc_state->exc_type) { int vret = visit(((PyObject *)((exc_state->exc_type))), arg); if (vret) return vret; } } while (0); |
15397 | Py_VISIT(exc_state->exc_value)do { if (exc_state->exc_value) { int vret = visit(((PyObject *)((exc_state->exc_value))), arg); if (vret) return vret; } } while (0); |
15398 | Py_VISIT(exc_state->exc_traceback)do { if (exc_state->exc_traceback) { int vret = visit(((PyObject *)((exc_state->exc_traceback))), arg); if (vret) return vret ; } } while (0); |
15399 | #endif |
15400 | return 0; |
15401 | } |
15402 | static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) { |
15403 | Py_VISIT(gen->closure)do { if (gen->closure) { int vret = visit(((PyObject*)((gen ->closure))), arg); if (vret) return vret; } } while (0); |
15404 | Py_VISIT(gen->classobj)do { if (gen->classobj) { int vret = visit(((PyObject*)((gen ->classobj))), arg); if (vret) return vret; } } while (0); |
15405 | Py_VISIT(gen->yieldfrom)do { if (gen->yieldfrom) { int vret = visit(((PyObject*)(( gen->yieldfrom))), arg); if (vret) return vret; } } while ( 0); |
15406 | return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg); |
15407 | } |
15408 | static int __Pyx_Coroutine_clear(PyObject *self) { |
15409 | __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; |
15410 | Py_CLEAR(gen->closure)do { PyObject *_py_tmp = ((PyObject*)((gen->closure))); if (_py_tmp != ((void*)0)) { (gen->closure) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
15411 | Py_CLEAR(gen->classobj)do { PyObject *_py_tmp = ((PyObject*)((gen->classobj))); if (_py_tmp != ((void*)0)) { (gen->classobj) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
15412 | Py_CLEAR(gen->yieldfrom)do { PyObject *_py_tmp = ((PyObject*)((gen->yieldfrom))); if (_py_tmp != ((void*)0)) { (gen->yieldfrom) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
15413 | __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state); |
15414 | #ifdef __Pyx_AsyncGen_USED |
15415 | if (__Pyx_AsyncGen_CheckExact(self)) { |
15416 | Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer)do { PyObject *_py_tmp = ((PyObject*)((((__pyx_PyAsyncGenObject *)gen)->ag_finalizer))); if (_py_tmp != ((void*)0)) { (((__pyx_PyAsyncGenObject *)gen)->ag_finalizer) = ((void*)0); Py_DECREF(((PyObject*) ((_py_tmp)))); } } while (0); |
15417 | } |
15418 | #endif |
15419 | Py_CLEAR(gen->gi_code)do { PyObject *_py_tmp = ((PyObject*)((gen->gi_code))); if (_py_tmp != ((void*)0)) { (gen->gi_code) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
15420 | Py_CLEAR(gen->gi_frame)do { PyObject *_py_tmp = ((PyObject*)((gen->gi_frame))); if (_py_tmp != ((void*)0)) { (gen->gi_frame) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
15421 | Py_CLEAR(gen->gi_name)do { PyObject *_py_tmp = ((PyObject*)((gen->gi_name))); if (_py_tmp != ((void*)0)) { (gen->gi_name) = ((void*)0); Py_DECREF (((PyObject*)((_py_tmp)))); } } while (0); |
15422 | Py_CLEAR(gen->gi_qualname)do { PyObject *_py_tmp = ((PyObject*)((gen->gi_qualname))) ; if (_py_tmp != ((void*)0)) { (gen->gi_qualname) = ((void *)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
15423 | Py_CLEAR(gen->gi_modulename)do { PyObject *_py_tmp = ((PyObject*)((gen->gi_modulename) )); if (_py_tmp != ((void*)0)) { (gen->gi_modulename) = (( void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
15424 | return 0; |
15425 | } |
15426 | static void __Pyx_Coroutine_dealloc(PyObject *self) { |
15427 | __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; |
15428 | PyObject_GC_UnTrack(gen); |
15429 | if (gen->gi_weakreflist != NULL((void*)0)) |
15430 | PyObject_ClearWeakRefs(self); |
15431 | if (gen->resume_label >= 0) { |
15432 | PyObject_GC_Track(self); |
15433 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 && CYTHON_USE_TP_FINALIZE1 |
15434 | if (unlikely(PyObject_CallFinalizerFromDealloc(self))__builtin_expect(!!(PyObject_CallFinalizerFromDealloc(self)), 0)) |
15435 | #else |
15436 | Py_TYPE(gen)Py_TYPE(((PyObject*)((gen))))->tp_del(self); |
15437 | if (unlikely(Py_REFCNT(self) > 0)__builtin_expect(!!(Py_REFCNT(((PyObject*)((self)))) > 0), 0)) |
15438 | #endif |
15439 | { |
15440 | return; |
15441 | } |
15442 | PyObject_GC_UnTrack(self); |
15443 | } |
15444 | #ifdef __Pyx_AsyncGen_USED |
15445 | if (__Pyx_AsyncGen_CheckExact(self)) { |
15446 | /* We have to handle this case for asynchronous generators |
15447 | right here, because this code has to be between UNTRACK |
15448 | and GC_Del. */ |
15449 | Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer)do { PyObject *_py_tmp = ((PyObject*)((((__pyx_PyAsyncGenObject *)self)->ag_finalizer))); if (_py_tmp != ((void*)0)) { ((( __pyx_PyAsyncGenObject*)self)->ag_finalizer) = ((void*)0); Py_DECREF(((PyObject*)((_py_tmp)))); } } while (0); |
15450 | } |
15451 | #endif |
15452 | __Pyx_Coroutine_clear(self); |
15453 | __Pyx_PyHeapTypeObject_GC_Del(gen)PyObject_GC_Del(gen); |
15454 | } |
15455 | static void __Pyx_Coroutine_del(PyObject *self) { |
15456 | PyObject *error_type, *error_value, *error_traceback; |
15457 | __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; |
15458 | __Pyx_PyThreadState_declarePyThreadState *__pyx_tstate; |
15459 | if (gen->resume_label < 0) { |
15460 | return; |
15461 | } |
15462 | #if !CYTHON_USE_TP_FINALIZE1 |
15463 | assert(self->ob_refcnt == 0)((void) sizeof ((self->ob_refcnt == 0) ? 1 : 0), __extension__ ({ if (self->ob_refcnt == 0) ; else __assert_fail ("self->ob_refcnt == 0" , "abaqusFILReader.c", 15463, __extension__ __PRETTY_FUNCTION__ ); })); |
15464 | __Pyx_SET_REFCNT(self, 1)Py_SET_REFCNT(((PyObject*)((self))), 1); |
15465 | #endif |
15466 | __Pyx_PyThreadState_assign__pyx_tstate = _PyThreadState_UncheckedGet(); |
15467 | __Pyx_ErrFetch(&error_type, &error_value, &error_traceback)__Pyx_ErrFetchInState(__pyx_tstate, &error_type, &error_value , &error_traceback); |
15468 | #ifdef __Pyx_AsyncGen_USED |
15469 | if (__Pyx_AsyncGen_CheckExact(self)) { |
15470 | __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self; |
15471 | PyObject *finalizer = agen->ag_finalizer; |
15472 | if (finalizer && !agen->ag_closed) { |
15473 | PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self); |
15474 | if (unlikely(!res)__builtin_expect(!!(!res), 0)) { |
15475 | PyErr_WriteUnraisable(self); |
15476 | } else { |
15477 | Py_DECREF(res)Py_DECREF(((PyObject*)((res)))); |
15478 | } |
15479 | __Pyx_ErrRestore(error_type, error_value, error_traceback)__Pyx_ErrRestoreInState(__pyx_tstate, error_type, error_value , error_traceback); |
15480 | return; |
15481 | } |
15482 | } |
15483 | #endif |
15484 | if (unlikely(gen->resume_label == 0 && !error_value)__builtin_expect(!!(gen->resume_label == 0 && !error_value ), 0)) { |
15485 | #ifdef __Pyx_Coroutine_USED |
15486 | #ifdef __Pyx_Generator_USED |
15487 | if (!__Pyx_Generator_CheckExact(self)Py_IS_TYPE(((PyObject*)((self))), __pyx_mstate_global->__pyx_GeneratorType )) |
15488 | #endif |
15489 | { |
15490 | PyObject_GC_UnTrack(self); |
15491 | #if PY_MAJOR_VERSION3 >= 3 || defined(PyErr_WarnFormat) |
15492 | if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0)__builtin_expect(!!(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0), 0)) |
15493 | PyErr_WriteUnraisable(self); |
15494 | #else |
15495 | {PyObject *msg; |
15496 | char *cmsg; |
15497 | #if CYTHON_COMPILING_IN_PYPY0 |
15498 | msg = NULL((void*)0); |
15499 | cmsg = (char*) "coroutine was never awaited"; |
15500 | #else |
15501 | char *cname; |
15502 | PyObject *qualname; |
15503 | qualname = gen->gi_qualname; |
15504 | cname = PyString_AS_STRING(qualname); |
15505 | msg = PyString_FromFormat("coroutine '%.50s' was never awaited", cname); |
15506 | if (unlikely(!msg)__builtin_expect(!!(!msg), 0)) { |
15507 | PyErr_Clear(); |
15508 | cmsg = (char*) "coroutine was never awaited"; |
15509 | } else { |
15510 | cmsg = PyString_AS_STRING(msg); |
15511 | } |
15512 | #endif |
15513 | if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1) < 0)__builtin_expect(!!(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1 ) < 0), 0)) |
15514 | PyErr_WriteUnraisable(self); |
15515 | Py_XDECREF(msg)Py_XDECREF(((PyObject*)((msg))));} |
15516 | #endif |
15517 | PyObject_GC_Track(self); |
15518 | } |
15519 | #endif |
15520 | } else { |
15521 | PyObject *res = __Pyx_Coroutine_Close(self); |
15522 | if (unlikely(!res)__builtin_expect(!!(!res), 0)) { |
15523 | if (PyErr_Occurred()) |
15524 | PyErr_WriteUnraisable(self); |
15525 | } else { |
15526 | Py_DECREF(res)Py_DECREF(((PyObject*)((res)))); |
15527 | } |
15528 | } |
15529 | __Pyx_ErrRestore(error_type, error_value, error_traceback)__Pyx_ErrRestoreInState(__pyx_tstate, error_type, error_value , error_traceback); |
15530 | #if !CYTHON_USE_TP_FINALIZE1 |
15531 | assert(Py_REFCNT(self) > 0)((void) sizeof ((Py_REFCNT(((PyObject*)((self)))) > 0) ? 1 : 0), __extension__ ({ if (Py_REFCNT(((PyObject*)((self)))) > 0) ; else __assert_fail ("Py_REFCNT(self) > 0", "abaqusFILReader.c" , 15531, __extension__ __PRETTY_FUNCTION__); })); |
15532 | if (likely(--self->ob_refcnt == 0)__builtin_expect(!!(--self->ob_refcnt == 0), 1)) { |
15533 | return; |
15534 | } |
15535 | { |
15536 | Py_ssize_t refcnt = Py_REFCNT(self)Py_REFCNT(((PyObject*)((self)))); |
15537 | _Py_NewReference(self); |
15538 | __Pyx_SET_REFCNT(self, refcnt)Py_SET_REFCNT(((PyObject*)((self))), refcnt); |
15539 | } |
15540 | #if CYTHON_COMPILING_IN_CPYTHON1 |
15541 | assert(PyType_IS_GC(Py_TYPE(self)) &&((void) sizeof ((PyType_HasFeature((Py_TYPE(((PyObject*)((self ))))), (1UL << 14)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED) ? 1 : 0), __extension__ ({ if (PyType_HasFeature ((Py_TYPE(((PyObject*)((self))))), (1UL << 14)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED) ; else __assert_fail ("PyType_IS_GC(Py_TYPE(self)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED" , "abaqusFILReader.c", 15542, __extension__ __PRETTY_FUNCTION__ ); })) |
15542 | _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED)((void) sizeof ((PyType_HasFeature((Py_TYPE(((PyObject*)((self ))))), (1UL << 14)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED) ? 1 : 0), __extension__ ({ if (PyType_HasFeature ((Py_TYPE(((PyObject*)((self))))), (1UL << 14)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED) ; else __assert_fail ("PyType_IS_GC(Py_TYPE(self)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED" , "abaqusFILReader.c", 15542, __extension__ __PRETTY_FUNCTION__ ); })); |
15543 | _Py_DEC_REFTOTAL; |
15544 | #endif |
15545 | #ifdef COUNT_ALLOCS |
15546 | --Py_TYPE(self)Py_TYPE(((PyObject*)((self))))->tp_frees; |
15547 | --Py_TYPE(self)Py_TYPE(((PyObject*)((self))))->tp_allocs; |
15548 | #endif |
15549 | #endif |
15550 | } |
15551 | static PyObject * |
15552 | __Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, void *context) |
15553 | { |
15554 | PyObject *name = self->gi_name; |
15555 | CYTHON_UNUSED_VAR(context)(void)(context); |
15556 | if (unlikely(!name)__builtin_expect(!!(!name), 0)) name = Py_None(&_Py_NoneStruct); |
15557 | Py_INCREF(name)Py_INCREF(((PyObject*)((name)))); |
15558 | return name; |
15559 | } |
15560 | static int |
15561 | __Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, void *context) |
15562 | { |
15563 | CYTHON_UNUSED_VAR(context)(void)(context); |
15564 | #if PY_MAJOR_VERSION3 >= 3 |
15565 | if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
15566 | #else |
15567 | if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
15568 | #endif |
15569 | { |
15570 | PyErr_SetString(PyExc_TypeError, |
15571 | "__name__ must be set to a string object"); |
15572 | return -1; |
15573 | } |
15574 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
15575 | __Pyx_Py_XDECREF_SET(self->gi_name, value)do { PyObject *tmp = (PyObject *) self->gi_name; self-> gi_name = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0 ); |
15576 | return 0; |
15577 | } |
15578 | static PyObject * |
15579 | __Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, void *context) |
15580 | { |
15581 | PyObject *name = self->gi_qualname; |
15582 | CYTHON_UNUSED_VAR(context)(void)(context); |
15583 | if (unlikely(!name)__builtin_expect(!!(!name), 0)) name = Py_None(&_Py_NoneStruct); |
15584 | Py_INCREF(name)Py_INCREF(((PyObject*)((name)))); |
15585 | return name; |
15586 | } |
15587 | static int |
15588 | __Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, void *context) |
15589 | { |
15590 | CYTHON_UNUSED_VAR(context)(void)(context); |
15591 | #if PY_MAJOR_VERSION3 >= 3 |
15592 | if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
15593 | #else |
15594 | if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !PyType_HasFeature (Py_TYPE(((PyObject*)((value)))), (1UL << 28))), 0)) |
15595 | #endif |
15596 | { |
15597 | PyErr_SetString(PyExc_TypeError, |
15598 | "__qualname__ must be set to a string object"); |
15599 | return -1; |
15600 | } |
15601 | Py_INCREF(value)Py_INCREF(((PyObject*)((value)))); |
15602 | __Pyx_Py_XDECREF_SET(self->gi_qualname, value)do { PyObject *tmp = (PyObject *) self->gi_qualname; self-> gi_qualname = value; Py_XDECREF(((PyObject*)((tmp)))); } while (0); |
15603 | return 0; |
15604 | } |
15605 | static PyObject * |
15606 | __Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, void *context) |
15607 | { |
15608 | PyObject *frame = self->gi_frame; |
15609 | CYTHON_UNUSED_VAR(context)(void)(context); |
15610 | if (!frame) { |
15611 | if (unlikely(!self->gi_code)__builtin_expect(!!(!self->gi_code), 0)) { |
15612 | Py_RETURN_NONEreturn _Py_NewRef(((PyObject*)(((&_Py_NoneStruct))))); |
15613 | } |
15614 | frame = (PyObject *) PyFrame_New( |
15615 | PyThreadState_Get(), /*PyThreadState *tstate,*/ |
15616 | (PyCodeObject*) self->gi_code, /*PyCodeObject *code,*/ |
15617 | __pyx_d__pyx_mstate_global->__pyx_d, /*PyObject *globals,*/ |
15618 | 0 /*PyObject *locals*/ |
15619 | ); |
15620 | if (unlikely(!frame)__builtin_expect(!!(!frame), 0)) |
15621 | return NULL((void*)0); |
15622 | self->gi_frame = frame; |
15623 | } |
15624 | Py_INCREF(frame)Py_INCREF(((PyObject*)((frame)))); |
15625 | return frame; |
15626 | } |
15627 | static __pyx_CoroutineObject *__Pyx__Coroutine_New( |
15628 | PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, |
15629 | PyObject *name, PyObject *qualname, PyObject *module_name) { |
15630 | __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type)((__pyx_CoroutineObject*)(_PyObject_GC_New(type))); |
15631 | if (unlikely(!gen)__builtin_expect(!!(!gen), 0)) |
15632 | return NULL((void*)0); |
15633 | return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name); |
15634 | } |
15635 | static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( |
15636 | __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, |
15637 | PyObject *name, PyObject *qualname, PyObject *module_name) { |
15638 | gen->body = body; |
15639 | gen->closure = closure; |
15640 | Py_XINCREF(closure)Py_XINCREF(((PyObject*)((closure)))); |
15641 | gen->is_running = 0; |
15642 | gen->resume_label = 0; |
15643 | gen->classobj = NULL((void*)0); |
15644 | gen->yieldfrom = NULL((void*)0); |
15645 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00a4 |
15646 | gen->gi_exc_state.exc_value = NULL((void*)0); |
15647 | #else |
15648 | gen->gi_exc_state.exc_type = NULL((void*)0); |
15649 | gen->gi_exc_state.exc_value = NULL((void*)0); |
15650 | gen->gi_exc_state.exc_traceback = NULL((void*)0); |
15651 | #endif |
15652 | #if CYTHON_USE_EXC_INFO_STACK1 |
15653 | gen->gi_exc_state.previous_item = NULL((void*)0); |
15654 | #endif |
15655 | gen->gi_weakreflist = NULL((void*)0); |
15656 | Py_XINCREF(qualname)Py_XINCREF(((PyObject*)((qualname)))); |
15657 | gen->gi_qualname = qualname; |
15658 | Py_XINCREF(name)Py_XINCREF(((PyObject*)((name)))); |
15659 | gen->gi_name = name; |
15660 | Py_XINCREF(module_name)Py_XINCREF(((PyObject*)((module_name)))); |
15661 | gen->gi_modulename = module_name; |
15662 | Py_XINCREF(code)Py_XINCREF(((PyObject*)((code)))); |
15663 | gen->gi_code = code; |
15664 | gen->gi_frame = NULL((void*)0); |
15665 | PyObject_GC_Track(gen); |
15666 | return gen; |
15667 | } |
15668 | |
15669 | /* PatchModuleWithCoroutine */ |
15670 | static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code) { |
15671 | #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) |
15672 | int result; |
15673 | PyObject *globals, *result_obj; |
15674 | globals = PyDict_New(); if (unlikely(!globals)__builtin_expect(!!(!globals), 0)) goto ignore; |
15675 | result = PyDict_SetItemString(globals, "_cython_coroutine_type", |
15676 | #ifdef __Pyx_Coroutine_USED |
15677 | (PyObject*)__pyx_CoroutineType); |
15678 | #else |
15679 | Py_None(&_Py_NoneStruct)); |
15680 | #endif |
15681 | if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0)) goto ignore; |
15682 | result = PyDict_SetItemString(globals, "_cython_generator_type", |
15683 | #ifdef __Pyx_Generator_USED |
15684 | (PyObject*)__pyx_GeneratorType__pyx_mstate_global->__pyx_GeneratorType); |
15685 | #else |
15686 | Py_None(&_Py_NoneStruct)); |
15687 | #endif |
15688 | if (unlikely(result < 0)__builtin_expect(!!(result < 0), 0)) goto ignore; |
15689 | if (unlikely(PyDict_SetItemString(globals, "_module", module) < 0)__builtin_expect(!!(PyDict_SetItemString(globals, "_module", module ) < 0), 0)) goto ignore; |
15690 | if (unlikely(PyDict_SetItemString(globals, "__builtins__", __pyx_b) < 0)__builtin_expect(!!(PyDict_SetItemString(globals, "__builtins__" , __pyx_mstate_global->__pyx_b) < 0), 0)) goto ignore; |
15691 | result_obj = PyRun_String(py_code, Py_file_input, globals, globals)PyRun_StringFlags(py_code, 257, globals, globals, ((void*)0)); |
15692 | if (unlikely(!result_obj)__builtin_expect(!!(!result_obj), 0)) goto ignore; |
15693 | Py_DECREF(result_obj)Py_DECREF(((PyObject*)((result_obj)))); |
15694 | Py_DECREF(globals)Py_DECREF(((PyObject*)((globals)))); |
15695 | return module; |
15696 | ignore: |
15697 | Py_XDECREF(globals)Py_XDECREF(((PyObject*)((globals)))); |
15698 | PyErr_WriteUnraisable(module); |
15699 | if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type", 1) < 0)__builtin_expect(!!(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type" , 1) < 0), 0)) { |
15700 | Py_DECREF(module)Py_DECREF(((PyObject*)((module)))); |
15701 | module = NULL((void*)0); |
15702 | } |
15703 | #else |
15704 | py_code++; |
15705 | #endif |
15706 | return module; |
15707 | } |
15708 | |
15709 | /* PatchGeneratorABC */ |
15710 | #ifndef CYTHON_REGISTER_ABCS1 |
15711 | #define CYTHON_REGISTER_ABCS1 1 |
15712 | #endif |
15713 | #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) |
15714 | static PyObject* __Pyx_patch_abc_module(PyObject *module); |
15715 | static PyObject* __Pyx_patch_abc_module(PyObject *module) { |
15716 | module = __Pyx_Coroutine_patch_module( |
15717 | module, "" |
15718 | "if _cython_generator_type is not None:\n" |
15719 | " try: Generator = _module.Generator\n" |
15720 | " except AttributeError: pass\n" |
15721 | " else: Generator.register(_cython_generator_type)\n" |
15722 | "if _cython_coroutine_type is not None:\n" |
15723 | " try: Coroutine = _module.Coroutine\n" |
15724 | " except AttributeError: pass\n" |
15725 | " else: Coroutine.register(_cython_coroutine_type)\n" |
15726 | ); |
15727 | return module; |
15728 | } |
15729 | #endif |
15730 | static int __Pyx_patch_abc(void) { |
15731 | #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) |
15732 | static int abc_patched = 0; |
15733 | if (CYTHON_REGISTER_ABCS1 && !abc_patched) { |
15734 | PyObject *module; |
15735 | module = PyImport_ImportModule((PY_MAJOR_VERSION3 >= 3) ? "collections.abc" : "collections"); |
15736 | if (unlikely(!module)__builtin_expect(!!(!module), 0)) { |
15737 | PyErr_WriteUnraisable(NULL((void*)0)); |
15738 | if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning,__builtin_expect(!!(PyErr_WarnEx(PyExc_RuntimeWarning, ((3 >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module" ), 1) < 0), 0) |
15739 | ((PY_MAJOR_VERSION >= 3) ?__builtin_expect(!!(PyErr_WarnEx(PyExc_RuntimeWarning, ((3 >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module" ), 1) < 0), 0) |
15740 | "Cython module failed to register with collections.abc module" :__builtin_expect(!!(PyErr_WarnEx(PyExc_RuntimeWarning, ((3 >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module" ), 1) < 0), 0) |
15741 | "Cython module failed to register with collections module"), 1) < 0)__builtin_expect(!!(PyErr_WarnEx(PyExc_RuntimeWarning, ((3 >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module" ), 1) < 0), 0)) { |
15742 | return -1; |
15743 | } |
15744 | } else { |
15745 | module = __Pyx_patch_abc_module(module); |
15746 | abc_patched = 1; |
15747 | if (unlikely(!module)__builtin_expect(!!(!module), 0)) |
15748 | return -1; |
15749 | Py_DECREF(module)Py_DECREF(((PyObject*)((module)))); |
15750 | } |
15751 | module = PyImport_ImportModule("backports_abc"); |
15752 | if (module) { |
15753 | module = __Pyx_patch_abc_module(module); |
15754 | Py_XDECREF(module)Py_XDECREF(((PyObject*)((module)))); |
15755 | } |
15756 | if (!module) { |
15757 | PyErr_Clear(); |
15758 | } |
15759 | } |
15760 | #else |
15761 | if ((0)) __Pyx_Coroutine_patch_module(NULL((void*)0), NULL((void*)0)); |
15762 | #endif |
15763 | return 0; |
15764 | } |
15765 | |
15766 | /* Generator */ |
15767 | static PyMethodDef __pyx_Generator_methods[] = { |
15768 | {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O0x0008, |
15769 | (char*) PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")"send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration."}, |
15770 | {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS0x0001, |
15771 | (char*) PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")"throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration."}, |
15772 | {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS0x0004, |
15773 | (char*) PyDoc_STR("close() -> raise GeneratorExit inside generator.")"close() -> raise GeneratorExit inside generator."}, |
15774 | {0, 0, 0, 0} |
15775 | }; |
15776 | static PyMemberDef __pyx_Generator_memberlist[] = { |
15777 | {(char *) "gi_running", T_BOOL14, offsetof(__pyx_CoroutineObject, is_running)__builtin_offsetof(__pyx_CoroutineObject, is_running), READONLY1, NULL((void*)0)}, |
15778 | {(char*) "gi_yieldfrom", T_OBJECT6, offsetof(__pyx_CoroutineObject, yieldfrom)__builtin_offsetof(__pyx_CoroutineObject, yieldfrom), READONLY1, |
15779 | (char*) PyDoc_STR("object being iterated by 'yield from', or None")"object being iterated by 'yield from', or None"}, |
15780 | {(char*) "gi_code", T_OBJECT6, offsetof(__pyx_CoroutineObject, gi_code)__builtin_offsetof(__pyx_CoroutineObject, gi_code), READONLY1, NULL((void*)0)}, |
15781 | {(char *) "__module__", T_OBJECT6, offsetof(__pyx_CoroutineObject, gi_modulename)__builtin_offsetof(__pyx_CoroutineObject, gi_modulename), 0, 0}, |
15782 | #if CYTHON_USE_TYPE_SPECS0 |
15783 | {(char *) "__weaklistoffset__", T_PYSSIZET19, offsetof(__pyx_CoroutineObject, gi_weakreflist)__builtin_offsetof(__pyx_CoroutineObject, gi_weakreflist), READONLY1, 0}, |
15784 | #endif |
15785 | {0, 0, 0, 0, 0} |
15786 | }; |
15787 | static PyGetSetDef __pyx_Generator_getsets[] = { |
15788 | {(char *) "__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name, |
15789 | (char*) PyDoc_STR("name of the generator")"name of the generator", 0}, |
15790 | {(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname, |
15791 | (char*) PyDoc_STR("qualified name of the generator")"qualified name of the generator", 0}, |
15792 | {(char *) "gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL((void*)0), |
15793 | (char*) PyDoc_STR("Frame of the generator")"Frame of the generator", 0}, |
15794 | {0, 0, 0, 0, 0} |
15795 | }; |
15796 | #if CYTHON_USE_TYPE_SPECS0 |
15797 | static PyType_Slot __pyx_GeneratorType_slots[] = { |
15798 | {Py_tp_dealloc52, (void *)__Pyx_Coroutine_dealloc}, |
15799 | {Py_tp_traverse71, (void *)__Pyx_Coroutine_traverse}, |
15800 | {Py_tp_iter62, (void *)PyObject_SelfIter}, |
15801 | {Py_tp_iternext63, (void *)__Pyx_Generator_Next}, |
15802 | {Py_tp_methods64, (void *)__pyx_Generator_methods}, |
15803 | {Py_tp_members72, (void *)__pyx_Generator_memberlist}, |
15804 | {Py_tp_getset73, (void *)__pyx_Generator_getsets}, |
15805 | {Py_tp_getattro58, (void *) __Pyx_PyObject_GenericGetAttrNoDictPyObject_GenericGetAttr}, |
15806 | #if CYTHON_USE_TP_FINALIZE1 |
15807 | {Py_tp_finalize80, (void *)__Pyx_Coroutine_del}, |
15808 | #endif |
15809 | {0, 0}, |
15810 | }; |
15811 | static PyType_Spec __pyx_GeneratorType_spec = { |
15812 | __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." "generator", |
15813 | sizeof(__pyx_CoroutineObject), |
15814 | 0, |
15815 | Py_TPFLAGS_DEFAULT( 0 | 0) | Py_TPFLAGS_HAVE_GC(1UL << 14) | Py_TPFLAGS_HAVE_FINALIZE(1UL << 0), |
15816 | __pyx_GeneratorType_slots |
15817 | }; |
15818 | #else |
15819 | static PyTypeObject __pyx_GeneratorType_type = { |
15820 | PyVarObject_HEAD_INIT(0, 0){ { 1, 0 }, 0 }, |
15821 | __PYX_TYPE_MODULE_PREFIX"_cython_" "3_0_5" "" "." "generator", |
15822 | sizeof(__pyx_CoroutineObject), |
15823 | 0, |
15824 | (destructor) __Pyx_Coroutine_dealloc, |
15825 | 0, |
15826 | 0, |
15827 | 0, |
15828 | 0, |
15829 | 0, |
15830 | 0, |
15831 | 0, |
15832 | 0, |
15833 | 0, |
15834 | 0, |
15835 | 0, |
15836 | 0, |
15837 | 0, |
15838 | 0, |
15839 | Py_TPFLAGS_DEFAULT( 0 | 0) | Py_TPFLAGS_HAVE_GC(1UL << 14) | Py_TPFLAGS_HAVE_FINALIZE(1UL << 0), |
15840 | 0, |
15841 | (traverseproc) __Pyx_Coroutine_traverse, |
15842 | 0, |
15843 | 0, |
15844 | offsetof(__pyx_CoroutineObject, gi_weakreflist)__builtin_offsetof(__pyx_CoroutineObject, gi_weakreflist), |
15845 | 0, |
15846 | (iternextfunc) __Pyx_Generator_Next, |
15847 | __pyx_Generator_methods, |
15848 | __pyx_Generator_memberlist, |
15849 | __pyx_Generator_getsets, |
15850 | 0, |
15851 | 0, |
15852 | 0, |
15853 | 0, |
15854 | 0, |
15855 | 0, |
15856 | 0, |
15857 | 0, |
15858 | 0, |
15859 | 0, |
15860 | 0, |
15861 | 0, |
15862 | 0, |
15863 | 0, |
15864 | 0, |
15865 | #if CYTHON_USE_TP_FINALIZE1 |
15866 | 0, |
15867 | #else |
15868 | __Pyx_Coroutine_del, |
15869 | #endif |
15870 | 0, |
15871 | #if CYTHON_USE_TP_FINALIZE1 |
15872 | __Pyx_Coroutine_del, |
15873 | #elif PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
15874 | 0, |
15875 | #endif |
15876 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY0 || PYPY_VERSION_NUM >= 0x07030800) |
15877 | 0, |
15878 | #endif |
15879 | #if __PYX_NEED_TP_PRINT_SLOT(((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030800b4 && ((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03090000) |
15880 | 0, |
15881 | #endif |
15882 | #if PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030C0000 |
15883 | 0, |
15884 | #endif |
15885 | #if CYTHON_COMPILING_IN_PYPY0 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03090000 && PY_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030a0000 |
15886 | 0, |
15887 | #endif |
15888 | }; |
15889 | #endif |
15890 | static int __pyx_Generator_init(PyObject *module) { |
15891 | #if CYTHON_USE_TYPE_SPECS0 |
15892 | __pyx_GeneratorType__pyx_mstate_global->__pyx_GeneratorType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_GeneratorType_spec, NULL((void*)0)); |
15893 | #else |
15894 | CYTHON_UNUSED_VAR(module)(void)(module); |
15895 | __pyx_GeneratorType_type.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDictPyObject_GenericGetAttr; |
15896 | __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter; |
15897 | __pyx_GeneratorType__pyx_mstate_global->__pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type); |
15898 | #endif |
15899 | if (unlikely(!__pyx_GeneratorType)__builtin_expect(!!(!__pyx_mstate_global->__pyx_GeneratorType ), 0)) { |
15900 | return -1; |
15901 | } |
15902 | return 0; |
15903 | } |
15904 | |
15905 | /* CheckBinaryVersion */ |
15906 | static unsigned long __Pyx_get_runtime_version(void) { |
15907 | #if __PYX_LIMITED_VERSION_HEX((3 << 24) | (11 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030B00A4 |
15908 | return Py_Version & ~0xFFUL; |
15909 | #else |
15910 | const char* rt_version = Py_GetVersion(); |
15911 | unsigned long version = 0; |
15912 | unsigned long factor = 0x01000000UL; |
15913 | unsigned int digit = 0; |
15914 | int i = 0; |
15915 | while (factor) { |
15916 | while ('0' <= rt_version[i] && rt_version[i] <= '9') { |
15917 | digit = digit * 10 + (unsigned int) (rt_version[i] - '0'); |
15918 | ++i; |
15919 | } |
15920 | version += factor * digit; |
15921 | if (rt_version[i] != '.') |
15922 | break; |
15923 | digit = 0; |
15924 | factor >>= 8; |
15925 | ++i; |
15926 | } |
15927 | return version; |
15928 | #endif |
15929 | } |
15930 | static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) { |
15931 | const unsigned long MAJOR_MINOR = 0xFFFF0000UL; |
15932 | if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR)) |
15933 | return 0; |
15934 | if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR))__builtin_expect(!!(allow_newer && (rt_version & MAJOR_MINOR ) > (ct_version & MAJOR_MINOR)), 1)) |
15935 | return 1; |
15936 | { |
15937 | char message[200]; |
15938 | PyOS_snprintf(message, sizeof(message), |
15939 | "compile time Python version %d.%d " |
15940 | "of module '%.100s' " |
15941 | "%s " |
15942 | "runtime version %d.%d", |
15943 | (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF), |
15944 | __Pyx_MODULE_NAME"abaqusFILReader", |
15945 | (allow_newer) ? "was newer than" : "does not match", |
15946 | (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF) |
15947 | ); |
15948 | return PyErr_WarnEx(NULL((void*)0), message, 1); |
15949 | } |
15950 | } |
15951 | |
15952 | /* InitStrings */ |
15953 | #if PY_MAJOR_VERSION3 >= 3 |
15954 | static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str) { |
15955 | if (t.is_unicode | t.is_str) { |
15956 | if (t.intern) { |
15957 | *str = PyUnicode_InternFromString(t.s); |
15958 | } else if (t.encoding) { |
15959 | *str = PyUnicode_Decode(t.s, t.n - 1, t.encoding, NULL((void*)0)); |
15960 | } else { |
15961 | *str = PyUnicode_FromStringAndSize(t.s, t.n - 1); |
15962 | } |
15963 | } else { |
15964 | *str = PyBytes_FromStringAndSize(t.s, t.n - 1); |
15965 | } |
15966 | if (!*str) |
15967 | return -1; |
15968 | if (PyObject_Hash(*str) == -1) |
15969 | return -1; |
15970 | return 0; |
15971 | } |
15972 | #endif |
15973 | static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { |
15974 | while (t->p) { |
15975 | #if PY_MAJOR_VERSION3 >= 3 |
15976 | __Pyx_InitString(*t, t->p); |
15977 | #else |
15978 | if (t->is_unicode) { |
15979 | *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL((void*)0)); |
15980 | } else if (t->intern) { |
15981 | *t->p = PyString_InternFromString(t->s); |
15982 | } else { |
15983 | *t->p = PyString_FromStringAndSize(t->s, t->n - 1); |
15984 | } |
15985 | if (!*t->p) |
15986 | return -1; |
15987 | if (PyObject_Hash(*t->p) == -1) |
15988 | return -1; |
15989 | #endif |
15990 | ++t; |
15991 | } |
15992 | return 0; |
15993 | } |
15994 | |
15995 | #include <string.h> |
15996 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_ssize_strlen(const char *s) { |
15997 | size_t len = strlen(s); |
15998 | if (unlikely(len > (size_t) PY_SSIZE_T_MAX)__builtin_expect(!!(len > (size_t) 9223372036854775807L), 0 )) { |
15999 | PyErr_SetString(PyExc_OverflowError, "byte string is too long"); |
16000 | return -1; |
16001 | } |
16002 | return (Py_ssize_t) len; |
16003 | } |
16004 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { |
16005 | Py_ssize_t len = __Pyx_ssize_strlen(c_str); |
16006 | if (unlikely(len < 0)__builtin_expect(!!(len < 0), 0)) return NULL((void*)0); |
16007 | return __Pyx_PyUnicode_FromStringAndSize(c_str, len)PyUnicode_Decode(c_str, len, "", ((void*)0)); |
16008 | } |
16009 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyByteArray_FromString(const char* c_str) { |
16010 | Py_ssize_t len = __Pyx_ssize_strlen(c_str); |
16011 | if (unlikely(len < 0)__builtin_expect(!!(len < 0), 0)) return NULL((void*)0); |
16012 | return PyByteArray_FromStringAndSize(c_str, len); |
16013 | } |
16014 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsString(PyObject* o) { |
16015 | Py_ssize_t ignore; |
16016 | return __Pyx_PyObject_AsStringAndSize(o, &ignore); |
16017 | } |
16018 | #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0) |
16019 | #if !CYTHON_PEP393_ENABLED1 |
16020 | static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { |
16021 | char* defenc_c; |
16022 | PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL((void*)0)); |
16023 | if (!defenc) return NULL((void*)0); |
16024 | defenc_c = PyBytes_AS_STRING(defenc)PyBytes_AS_STRING(((PyObject*)((defenc)))); |
16025 | #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
16026 | { |
16027 | char* end = defenc_c + PyBytes_GET_SIZE(defenc)PyBytes_GET_SIZE(((PyObject*)((defenc)))); |
16028 | char* c; |
16029 | for (c = defenc_c; c < end; c++) { |
16030 | if ((unsigned char) (*c) >= 128) { |
16031 | PyUnicode_AsASCIIString(o); |
16032 | return NULL((void*)0); |
16033 | } |
16034 | } |
16035 | } |
16036 | #endif |
16037 | *length = PyBytes_GET_SIZE(defenc)PyBytes_GET_SIZE(((PyObject*)((defenc)))); |
16038 | return defenc_c; |
16039 | } |
16040 | #else |
16041 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { |
16042 | if (unlikely(__Pyx_PyUnicode_READY(o) == -1)__builtin_expect(!!((__builtin_expect(!!(PyUnicode_IS_READY(( (PyObject*)((o))))), 1) ? 0 : _PyUnicode_Ready((PyObject *)(o ))) == -1), 0)) return NULL((void*)0); |
16043 | #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
16044 | if (likely(PyUnicode_IS_ASCII(o))__builtin_expect(!!(PyUnicode_IS_ASCII(((PyObject*)((o))))), 1 )) { |
16045 | *length = PyUnicode_GET_LENGTH(o)PyUnicode_GET_LENGTH(((PyObject*)((o)))); |
16046 | return PyUnicode_AsUTF8(o); |
16047 | } else { |
16048 | PyUnicode_AsASCIIString(o); |
16049 | return NULL((void*)0); |
16050 | } |
16051 | #else |
16052 | return PyUnicode_AsUTF8AndSize(o, length); |
16053 | #endif |
16054 | } |
16055 | #endif |
16056 | #endif |
16057 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { |
16058 | #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT(3 >= 3 && 0) |
16059 | if ( |
16060 | #if PY_MAJOR_VERSION3 < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
16061 | __Pyx_sys_getdefaultencoding_not_ascii && |
16062 | #endif |
16063 | PyUnicode_Check(o)PyType_HasFeature(Py_TYPE(((PyObject*)((o)))), (1UL << 28 ))) { |
16064 | return __Pyx_PyUnicode_AsStringAndSize(o, length); |
16065 | } else |
16066 | #endif |
16067 | #if (!CYTHON_COMPILING_IN_PYPY0 && !CYTHON_COMPILING_IN_LIMITED_API0) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) |
16068 | if (PyByteArray_Check(o)PyObject_TypeCheck(((PyObject*)((o))), &PyByteArray_Type)) { |
16069 | *length = PyByteArray_GET_SIZE(o)PyByteArray_GET_SIZE(((PyObject*)((o)))); |
16070 | return PyByteArray_AS_STRING(o)PyByteArray_AS_STRING(((PyObject*)((o)))); |
16071 | } else |
16072 | #endif |
16073 | { |
16074 | char* result; |
16075 | int r = PyBytes_AsStringAndSize(o, &result, length); |
16076 | if (unlikely(r < 0)__builtin_expect(!!(r < 0), 0)) { |
16077 | return NULL((void*)0); |
16078 | } else { |
16079 | return result; |
16080 | } |
16081 | } |
16082 | } |
16083 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrue(PyObject* x) { |
16084 | int is_true = x == Py_True((PyObject *) &_Py_TrueStruct); |
16085 | if (is_true | (x == Py_False((PyObject *) &_Py_FalseStruct)) | (x == Py_None(&_Py_NoneStruct))) return is_true; |
16086 | else return PyObject_IsTrue(x); |
16087 | } |
16088 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) { |
16089 | int retval; |
16090 | if (unlikely(!x)__builtin_expect(!!(!x), 0)) return -1; |
16091 | retval = __Pyx_PyObject_IsTrue(x); |
16092 | Py_DECREF(x)Py_DECREF(((PyObject*)((x)))); |
16093 | return retval; |
16094 | } |
16095 | static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { |
16096 | __Pyx_TypeName result_type_name = __Pyx_PyType_GetName(Py_TYPE(result))((Py_TYPE(((PyObject*)((result)))))->tp_name); |
16097 | #if PY_MAJOR_VERSION3 >= 3 |
16098 | if (PyLong_Check(result)PyType_HasFeature(Py_TYPE(((PyObject*)((result)))), (1UL << 24))) { |
16099 | if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, |
16100 | "__int__ returned non-int (type " __Pyx_FMT_TYPENAME"%.200s" "). " |
16101 | "The ability to return an instance of a strict subclass of int is deprecated, " |
16102 | "and may be removed in a future version of Python.", |
16103 | result_type_name)) { |
16104 | __Pyx_DECREF_TypeName(result_type_name); |
16105 | Py_DECREF(result)Py_DECREF(((PyObject*)((result)))); |
16106 | return NULL((void*)0); |
16107 | } |
16108 | __Pyx_DECREF_TypeName(result_type_name); |
16109 | return result; |
16110 | } |
16111 | #endif |
16112 | PyErr_Format(PyExc_TypeError, |
16113 | "__%.4s__ returned non-%.4s (type " __Pyx_FMT_TYPENAME"%.200s" ")", |
16114 | type_name, type_name, result_type_name); |
16115 | __Pyx_DECREF_TypeName(result_type_name); |
16116 | Py_DECREF(result)Py_DECREF(((PyObject*)((result)))); |
16117 | return NULL((void*)0); |
16118 | } |
16119 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { |
16120 | #if CYTHON_USE_TYPE_SLOTS1 |
16121 | PyNumberMethods *m; |
16122 | #endif |
16123 | const char *name = NULL((void*)0); |
16124 | PyObject *res = NULL((void*)0); |
16125 | #if PY_MAJOR_VERSION3 < 3 |
16126 | if (likely(PyInt_Check(x) || PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x )))), (1UL << 24)) || PyType_HasFeature(Py_TYPE(((PyObject *)((x)))), (1UL << 24))), 1)) |
16127 | #else |
16128 | if (likely(PyLong_Check(x))__builtin_expect(!!(PyType_HasFeature(Py_TYPE(((PyObject*)((x )))), (1UL << 24))), 1)) |
16129 | #endif |
16130 | return __Pyx_NewRef(x)(Py_INCREF(((PyObject*)((x)))), x); |
16131 | #if CYTHON_USE_TYPE_SLOTS1 |
16132 | m = Py_TYPE(x)Py_TYPE(((PyObject*)((x))))->tp_as_number; |
16133 | #if PY_MAJOR_VERSION3 < 3 |
16134 | if (m && m->nb_int) { |
16135 | name = "int"; |
16136 | res = m->nb_int(x); |
16137 | } |
16138 | else if (m && m->nb_long) { |
16139 | name = "long"; |
16140 | res = m->nb_long(x); |
16141 | } |
16142 | #else |
16143 | if (likely(m && m->nb_int)__builtin_expect(!!(m && m->nb_int), 1)) { |
16144 | name = "int"; |
16145 | res = m->nb_int(x); |
16146 | } |
16147 | #endif |
16148 | #else |
16149 | if (!PyBytes_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyBytes_Type) && !PyUnicode_CheckExact(x)Py_IS_TYPE(((PyObject*)((x))), &PyUnicode_Type)) { |
16150 | res = PyNumber_IntPyNumber_Long(x); |
16151 | } |
16152 | #endif |
16153 | if (likely(res)__builtin_expect(!!(res), 1)) { |
16154 | #if PY_MAJOR_VERSION3 < 3 |
16155 | if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))__builtin_expect(!!(!PyType_HasFeature(Py_TYPE(((PyObject*)(( res)))), (1UL << 24)) && !PyType_HasFeature(Py_TYPE (((PyObject*)((res)))), (1UL << 24))), 0)) { |
16156 | #else |
16157 | if (unlikely(!PyLong_CheckExact(res))__builtin_expect(!!(!Py_IS_TYPE(((PyObject*)((res))), &PyLong_Type )), 0)) { |
16158 | #endif |
16159 | return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); |
16160 | } |
16161 | } |
16162 | else if (!PyErr_Occurred()) { |
16163 | PyErr_SetString(PyExc_TypeError, |
16164 | "an integer is required"); |
16165 | } |
16166 | return res; |
16167 | } |
16168 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { |
16169 | Py_ssize_t ival; |
16170 | PyObject *x; |
16171 | #if PY_MAJOR_VERSION3 < 3 |
16172 | if (likely(PyInt_CheckExact(b))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((b))), &PyLong_Type )), 1)) { |
16173 | if (sizeof(Py_ssize_t) >= sizeof(long)) |
16174 | return PyInt_AS_LONG(b)PyLong_AsLong(b); |
16175 | else |
16176 | return PyInt_AsSsize_tPyLong_AsSsize_t(b); |
16177 | } |
16178 | #endif |
16179 | if (likely(PyLong_CheckExact(b))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((b))), &PyLong_Type )), 1)) { |
16180 | #if CYTHON_USE_PYLONG_INTERNALS1 |
16181 | if (likely(__Pyx_PyLong_IsCompact(b))__builtin_expect(!!((Py_SIZE(((PyObject*)((b)))) == 0 || Py_SIZE (((PyObject*)((b)))) == 1 || Py_SIZE(((PyObject*)((b)))) == - 1)), 1)) { |
16182 | return __Pyx_PyLong_CompactValue(b)((Py_SIZE(((PyObject*)((b)))) == 0) ? (sdigit) 0 : ((Py_SIZE( ((PyObject*)((b)))) < 0) ? -(sdigit)(((PyLongObject*)b)-> ob_digit)[0] : (sdigit)(((PyLongObject*)b)->ob_digit)[0])); |
16183 | } else { |
16184 | const digit* digits = __Pyx_PyLong_Digits(b)(((PyLongObject*)b)->ob_digit); |
16185 | const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b)Py_SIZE(((PyObject*)((b)))); |
16186 | switch (size) { |
16187 | case 2: |
16188 | if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT30) { |
16189 | return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0])); |
16190 | } |
16191 | break; |
16192 | case -2: |
16193 | if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT30) { |
16194 | return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0])); |
16195 | } |
16196 | break; |
16197 | case 3: |
16198 | if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT30) { |
16199 | return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0])); |
16200 | } |
16201 | break; |
16202 | case -3: |
16203 | if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT30) { |
16204 | return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0])); |
16205 | } |
16206 | break; |
16207 | case 4: |
16208 | if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT30) { |
16209 | return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT30) | (size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0])); |
16210 | } |
16211 | break; |
16212 | case -4: |
16213 | if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT30) { |
16214 | return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT30) | (size_t)digits[2]) << PyLong_SHIFT30) | (size_t)digits[1]) << PyLong_SHIFT30) | (size_t)digits[0])); |
16215 | } |
16216 | break; |
16217 | } |
16218 | } |
16219 | #endif |
16220 | return PyLong_AsSsize_t(b); |
16221 | } |
16222 | x = PyNumber_Index(b); |
16223 | if (!x) return -1; |
16224 | ival = PyInt_AsSsize_tPyLong_AsSsize_t(x); |
16225 | Py_DECREF(x)Py_DECREF(((PyObject*)((x)))); |
16226 | return ival; |
16227 | } |
16228 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) { |
16229 | if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) { |
16230 | return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o); |
16231 | #if PY_MAJOR_VERSION3 < 3 |
16232 | } else if (likely(PyInt_CheckExact(o))__builtin_expect(!!(Py_IS_TYPE(((PyObject*)((o))), &PyLong_Type )), 1)) { |
16233 | return PyInt_AS_LONG(o)PyLong_AsLong(o); |
16234 | #endif |
16235 | } else { |
16236 | Py_ssize_t ival; |
16237 | PyObject *x; |
16238 | x = PyNumber_Index(o); |
16239 | if (!x) return -1; |
16240 | ival = PyInt_AsLongPyLong_AsLong(x); |
16241 | Py_DECREF(x)Py_DECREF(((PyObject*)((x)))); |
16242 | return ival; |
16243 | } |
16244 | } |
16245 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyBool_FromLong(long b) { |
16246 | return b ? __Pyx_NewRef(Py_True)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_TrueStruct))) )), ((PyObject *) &_Py_TrueStruct)) : __Pyx_NewRef(Py_False)(Py_INCREF(((PyObject*)((((PyObject *) &_Py_FalseStruct)) ))), ((PyObject *) &_Py_FalseStruct)); |
16247 | } |
16248 | static CYTHON_INLINE__inline__ __attribute__ ((__unused__)) PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { |
16249 | return PyInt_FromSize_tPyLong_FromSize_t(ival); |
16250 | } |
16251 | |
16252 | |
16253 | /* #### Code section: utility_code_pragmas_end ### */ |
16254 | #ifdef _MSC_VER |
16255 | #pragma warning( pop ) |
16256 | #endif |
16257 | |
16258 | |
16259 | |
16260 | /* #### Code section: end ### */ |
16261 | #endif /* Py_PYTHON_H */ |