Changeset 1617
- Timestamp:
- 02/11/10 11:42:01 (6 months ago)
- Files:
-
- 1 modified
-
trunk/yt/amr_utils.c (modified) (489 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/yt/amr_utils.c
r1607 r1617 1 /* Generated by Cython 0.12.1 on Wed Feb 3 23:14:232010 */1 /* Generated by Cython 0.12.1 on Thu Feb 11 11:41:46 2010 */ 2 2 3 3 #define PY_SSIZE_T_CLEAN … … 378 378 typedef npy_cdouble __pyx_t_5numpy_complex_t; 379 379 380 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":7 4380 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":76 381 381 * cdef class VectorPlane 382 382 * … … 394 394 int ns; 395 395 __pyx_t_5numpy_float64_t dbin; 396 __pyx_t_5numpy_float64_t idbin; 396 397 __pyx_t_5numpy_float64_t light_color[3]; 397 398 __pyx_t_5numpy_float64_t light_dir[3]; … … 431 432 }; 432 433 433 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 41434 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":456 434 435 * return 1 435 436 * … … 463 464 }; 464 465 465 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 09466 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":424 466 467 * tf.eval_transfer(dt, dv, rgba, grad) 467 468 * … … 480 481 }; 481 482 482 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":7 2483 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":74 483 484 * np.float64_t *data, np.float64_t *grad) 484 485 * … … 509 510 }; 510 511 511 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":21 0512 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":212 512 513 * tv[(((k*self.nv)+j)*self.nv+i)] = fv[k] 513 514 * … … 527 528 __pyx_t_5numpy_float64_t right_edge[3]; 528 529 __pyx_t_5numpy_float64_t dds[3]; 530 __pyx_t_5numpy_float64_t idds[3]; 529 531 __pyx_t_5numpy_float64_t min_dds; 530 532 int dims[3]; … … 532 534 533 535 534 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 41536 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":456 535 537 * return 1 536 538 * … … 546 548 547 549 548 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":1 50549 * # dst.a = dst.a + (1 - dst.a) * src.a550 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":149 551 * rgba[i] += ta*trgba[i] 550 552 * 551 553 * cdef class VectorPlane: # <<<<<<<<<<<<<< … … 562 564 563 565 564 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":21 0566 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":212 565 567 * tv[(((k*self.nv)+j)*self.nv+i)] = fv[k] 566 568 * … … 578 580 579 581 580 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 09582 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":424 581 583 * tf.eval_transfer(dt, dv, rgba, grad) 582 584 * … … 592 594 593 595 594 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":7 4596 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":76 595 597 * cdef class VectorPlane 596 598 * … … 601 603 602 604 struct __pyx_vtabstruct_2yt_9amr_utils_TransferFunctionProxy { 605 void (*interpolate)(struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *, __pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t *); 603 606 void (*eval_transfer)(struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *, __pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t *, __pyx_t_5numpy_float64_t *); 604 607 }; … … 771 774 static void __Pyx_RaiseBufferFallbackError(void); /*proto*/ 772 775 #define __Pyx_BufPtrStrided3d(type, buf, i0, s0, i1, s1, i2, s2) (type)((char*)buf + i0 * s0 + i1 * s1 + i2 * s2) 773 774 static CYTHON_INLINE long __Pyx_mod_long(long, long); /* proto */775 776 static void __Pyx_RaiseBufferIndexError(int axis); /*proto*/ 776 777 … … 974 975 975 976 static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *); 976 977 static void __Pyx_WriteUnraisable(const char *name); /*proto*/978 977 979 978 static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/ … … 1110 1109 static char __pyx_k__dims[] = "dims"; 1111 1110 static char __pyx_k__grid[] = "grid"; 1111 static char __pyx_k__idds[] = "idds"; 1112 1112 static char __pyx_k__imax[] = "imax"; 1113 1113 static char __pyx_k__imin[] = "imin"; … … 1136 1136 static char __pyx_k__green[] = "green"; 1137 1137 static char __pyx_k__grids[] = "grids"; 1138 static char __pyx_k__idbin[] = "idbin"; 1138 1139 static char __pyx_k__image[] = "image"; 1139 1140 static char __pyx_k__int32[] = "int32"; … … 1216 1217 static char __pyx_k__right_edge[] = "right_edge"; 1217 1218 static char __pyx_k__suboffsets[] = "suboffsets"; 1219 static char __pyx_k__interpolate[] = "interpolate"; 1218 1220 static char __pyx_k__light_color[] = "light_color"; 1219 1221 static char __pyx_k__refined_pos[] = "refined_pos"; … … 1304 1306 static PyObject *__pyx_n_s__i_i; 1305 1307 static PyObject *__pyx_n_s__i_s; 1308 static PyObject *__pyx_n_s__idbin; 1309 static PyObject *__pyx_n_s__idds; 1306 1310 static PyObject *__pyx_n_s__image; 1307 1311 static PyObject *__pyx_n_s__imax; … … 1312 1316 static PyObject *__pyx_n_s__int8; 1313 1317 static PyObject *__pyx_n_s__integrate_ray; 1318 static PyObject *__pyx_n_s__interpolate; 1314 1319 static PyObject *__pyx_n_s__istride; 1315 1320 static PyObject *__pyx_n_s__itemsize; … … 2485 2490 __pyx_t_29 = 0; 2486 2491 if (__pyx_t_29 < 0) __pyx_t_29 += __pyx_bshape_0_child_leftedges; 2487 __pyx_t_7 = (__pyx_v_cx - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_29, __pyx_bstride_0_child_leftedges))); 2488 if (unlikely(__pyx_v_child_dx == 0)) { 2489 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 2490 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 2491 } 2492 __pyx_v_child_i = ((int)(__pyx_t_7 / __pyx_v_child_dx)); 2492 __pyx_v_child_i = ((int)((__pyx_v_cx - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_29, __pyx_bstride_0_child_leftedges))) / __pyx_v_child_dx)); 2493 2493 2494 2494 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":103 … … 2501 2501 __pyx_t_35 = 1; 2502 2502 if (__pyx_t_35 < 0) __pyx_t_35 += __pyx_bshape_0_child_leftedges; 2503 __pyx_t_7 = (__pyx_v_cy - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_35, __pyx_bstride_0_child_leftedges))); 2504 if (unlikely(__pyx_v_child_dx == 0)) { 2505 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 2506 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 2507 } 2508 __pyx_v_child_j = ((int)(__pyx_t_7 / __pyx_v_child_dx)); 2503 __pyx_v_child_j = ((int)((__pyx_v_cy - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_35, __pyx_bstride_0_child_leftedges))) / __pyx_v_child_dx)); 2509 2504 2510 2505 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":104 … … 2517 2512 __pyx_t_36 = 2; 2518 2513 if (__pyx_t_36 < 0) __pyx_t_36 += __pyx_bshape_0_child_leftedges; 2519 __pyx_t_7 = (__pyx_v_cz - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_36, __pyx_bstride_0_child_leftedges))); 2520 if (unlikely(__pyx_v_child_dx == 0)) { 2521 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 2522 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 2523 } 2524 __pyx_v_child_k = ((int)(__pyx_t_7 / __pyx_v_child_dx)); 2514 __pyx_v_child_k = ((int)((__pyx_v_cz - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_36, __pyx_bstride_0_child_leftedges))) / __pyx_v_child_dx)); 2525 2515 2526 2516 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":105 … … 3417 3407 __pyx_t_39 = 0; 3418 3408 if (__pyx_t_39 < 0) __pyx_t_39 += __pyx_bshape_0_child_leftedges; 3419 __pyx_t_7 = (__pyx_v_cx - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_39, __pyx_bstride_0_child_leftedges))); 3420 if (unlikely(__pyx_v_child_dx == 0)) { 3421 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 3422 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3423 } 3424 __pyx_v_child_i = ((int)(__pyx_t_7 / __pyx_v_child_dx)); 3409 __pyx_v_child_i = ((int)((__pyx_v_cx - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_39, __pyx_bstride_0_child_leftedges))) / __pyx_v_child_dx)); 3425 3410 3426 3411 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":156 … … 3433 3418 __pyx_t_45 = 1; 3434 3419 if (__pyx_t_45 < 0) __pyx_t_45 += __pyx_bshape_0_child_leftedges; 3435 __pyx_t_7 = (__pyx_v_cy - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_45, __pyx_bstride_0_child_leftedges))); 3436 if (unlikely(__pyx_v_child_dx == 0)) { 3437 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 3438 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3439 } 3440 __pyx_v_child_j = ((int)(__pyx_t_7 / __pyx_v_child_dx)); 3420 __pyx_v_child_j = ((int)((__pyx_v_cy - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_45, __pyx_bstride_0_child_leftedges))) / __pyx_v_child_dx)); 3441 3421 3442 3422 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":157 … … 3449 3429 __pyx_t_46 = 2; 3450 3430 if (__pyx_t_46 < 0) __pyx_t_46 += __pyx_bshape_0_child_leftedges; 3451 __pyx_t_7 = (__pyx_v_cz - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_46, __pyx_bstride_0_child_leftedges))); 3452 if (unlikely(__pyx_v_child_dx == 0)) { 3453 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 3454 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3455 } 3456 __pyx_v_child_k = ((int)(__pyx_t_7 / __pyx_v_child_dx)); 3431 __pyx_v_child_k = ((int)((__pyx_v_cz - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_child_leftedges.buf, __pyx_t_46, __pyx_bstride_0_child_leftedges))) / __pyx_v_child_dx)); 3457 3432 3458 3433 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":159 … … 3707 3682 long __pyx_t_5; 3708 3683 int __pyx_t_6; 3709 __pyx_t_5numpy_float64_t __pyx_t_7; 3710 PyObject *__pyx_t_8 = NULL; 3711 int __pyx_t_9; 3712 PyObject *__pyx_t_10 = NULL; 3713 double __pyx_t_11; 3714 long __pyx_t_12; 3715 int __pyx_t_13; 3716 long __pyx_t_14; 3717 int __pyx_t_15; 3684 PyObject *__pyx_t_7 = NULL; 3685 int __pyx_t_8; 3686 PyObject *__pyx_t_9 = NULL; 3687 double __pyx_t_10; 3688 long __pyx_t_11; 3689 int __pyx_t_12; 3690 long __pyx_t_13; 3691 int __pyx_t_14; 3718 3692 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__table,&__pyx_n_s__x_vals,&__pyx_n_s__x_bins,&__pyx_n_s__x_is,&__pyx_n_s__output,0}; 3719 3693 __Pyx_RefNannySetupContext("UnilinearlyInterpolate"); … … 3876 3850 __pyx_t_6 = __pyx_v_x_i; 3877 3851 if (__pyx_t_6 < 0) __pyx_t_6 += __pyx_bshape_0_x_bins; 3878 __pyx_t_7 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_5, __pyx_bstride_0_x_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_6, __pyx_bstride_0_x_bins))); 3879 if (unlikely(__pyx_t_7 == 0)) { 3880 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 3881 {__pyx_filename = __pyx_f[3]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3882 } 3883 __pyx_t_8 = PyFloat_FromDouble((1.0 / __pyx_t_7)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3884 __Pyx_GOTREF(__pyx_t_8); 3852 __pyx_t_7 = PyFloat_FromDouble((1.0 / ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_5, __pyx_bstride_0_x_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_6, __pyx_bstride_0_x_bins))))); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3853 __Pyx_GOTREF(__pyx_t_7); 3885 3854 __Pyx_DECREF(__pyx_v_dx_inv); 3886 __pyx_v_dx_inv = __pyx_t_ 8;3887 __pyx_t_ 8= 0;3855 __pyx_v_dx_inv = __pyx_t_7; 3856 __pyx_t_7 = 0; 3888 3857 3889 3858 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":42 … … 3894 3863 * output[i] = table[x_i ] * (xm) \ 3895 3864 */ 3896 __pyx_t_ 9= __pyx_v_x_i;3897 if (__pyx_t_ 9 < 0) __pyx_t_9+= __pyx_bshape_0_x_bins;3898 __pyx_t_ 8 = PyFloat_FromDouble((__pyx_v_x - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_9, __pyx_bstride_0_x_bins)))); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3899 __Pyx_GOTREF(__pyx_t_ 8);3900 __pyx_t_ 10 = PyNumber_Multiply(__pyx_t_8, __pyx_v_dx_inv); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3901 __Pyx_GOTREF(__pyx_t_ 10);3902 __Pyx_DECREF(__pyx_t_ 8); __pyx_t_8= 0;3903 __pyx_t_1 1 = __pyx_PyFloat_AsDouble(__pyx_t_10); if (unlikely((__pyx_t_11== (double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3904 __Pyx_DECREF(__pyx_t_ 10); __pyx_t_10= 0;3905 __pyx_v_xp = __pyx_t_1 1;3865 __pyx_t_8 = __pyx_v_x_i; 3866 if (__pyx_t_8 < 0) __pyx_t_8 += __pyx_bshape_0_x_bins; 3867 __pyx_t_7 = PyFloat_FromDouble((__pyx_v_x - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_8, __pyx_bstride_0_x_bins)))); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3868 __Pyx_GOTREF(__pyx_t_7); 3869 __pyx_t_9 = PyNumber_Multiply(__pyx_t_7, __pyx_v_dx_inv); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3870 __Pyx_GOTREF(__pyx_t_9); 3871 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 3872 __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_9); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3873 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 3874 __pyx_v_xp = __pyx_t_10; 3906 3875 3907 3876 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":43 … … 3912 3881 * + table[x_i+1] * (xp) 3913 3882 */ 3914 __pyx_t_1 2= (__pyx_v_x_i + 1);3915 if (__pyx_t_1 2 < 0) __pyx_t_12+= __pyx_bshape_0_x_bins;3916 __pyx_t_ 10 = PyFloat_FromDouble(((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_12, __pyx_bstride_0_x_bins)) - __pyx_v_x)); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3917 __Pyx_GOTREF(__pyx_t_ 10);3918 __pyx_t_ 8 = PyNumber_Multiply(__pyx_t_10, __pyx_v_dx_inv); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3919 __Pyx_GOTREF(__pyx_t_ 8);3920 __Pyx_DECREF(__pyx_t_ 10); __pyx_t_10= 0;3921 __pyx_t_1 1 = __pyx_PyFloat_AsDouble(__pyx_t_8); if (unlikely((__pyx_t_11== (double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}3922 __Pyx_DECREF(__pyx_t_ 8); __pyx_t_8= 0;3923 __pyx_v_xm = __pyx_t_1 1;3883 __pyx_t_11 = (__pyx_v_x_i + 1); 3884 if (__pyx_t_11 < 0) __pyx_t_11 += __pyx_bshape_0_x_bins; 3885 __pyx_t_9 = PyFloat_FromDouble(((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_11, __pyx_bstride_0_x_bins)) - __pyx_v_x)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3886 __Pyx_GOTREF(__pyx_t_9); 3887 __pyx_t_7 = PyNumber_Multiply(__pyx_t_9, __pyx_v_dx_inv); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3888 __Pyx_GOTREF(__pyx_t_7); 3889 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 3890 __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_7); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 3891 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 3892 __pyx_v_xm = __pyx_t_10; 3924 3893 3925 3894 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":44 … … 3930 3899 * 3931 3900 */ 3932 __pyx_t_1 3= __pyx_v_x_i;3933 if (__pyx_t_1 3 < 0) __pyx_t_13+= __pyx_bshape_0_table;3901 __pyx_t_12 = __pyx_v_x_i; 3902 if (__pyx_t_12 < 0) __pyx_t_12 += __pyx_bshape_0_table; 3934 3903 3935 3904 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":45 … … 3940 3909 * @cython.boundscheck(False) 3941 3910 */ 3942 __pyx_t_1 4= (__pyx_v_x_i + 1);3943 if (__pyx_t_1 4 < 0) __pyx_t_14+= __pyx_bshape_0_table;3911 __pyx_t_13 = (__pyx_v_x_i + 1); 3912 if (__pyx_t_13 < 0) __pyx_t_13 += __pyx_bshape_0_table; 3944 3913 3945 3914 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":44 … … 3950 3919 * 3951 3920 */ 3952 __pyx_t_1 5= __pyx_v_i;3953 if (__pyx_t_1 5 < 0) __pyx_t_15+= __pyx_bshape_0_output;3954 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_1 5, __pyx_bstride_0_output) = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_13, __pyx_bstride_0_table)) * __pyx_v_xm) + ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_14, __pyx_bstride_0_table)) * __pyx_v_xp));3921 __pyx_t_14 = __pyx_v_i; 3922 if (__pyx_t_14 < 0) __pyx_t_14 += __pyx_bshape_0_output; 3923 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_14, __pyx_bstride_0_output) = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_12, __pyx_bstride_0_table)) * __pyx_v_xm) + ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_13, __pyx_bstride_0_table)) * __pyx_v_xp)); 3955 3924 } 3956 3925 … … 3958 3927 goto __pyx_L0; 3959 3928 __pyx_L1_error:; 3960 __Pyx_XDECREF(__pyx_t_ 8);3961 __Pyx_XDECREF(__pyx_t_ 10);3929 __Pyx_XDECREF(__pyx_t_7); 3930 __Pyx_XDECREF(__pyx_t_9); 3962 3931 { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; 3963 3932 __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); … … 4053 4022 long __pyx_t_7; 4054 4023 int __pyx_t_8; 4055 __pyx_t_5numpy_float64_t__pyx_t_9;4056 long__pyx_t_10;4024 long __pyx_t_9; 4025 int __pyx_t_10; 4057 4026 int __pyx_t_11; 4058 4027 int __pyx_t_12; 4059 int__pyx_t_13;4028 long __pyx_t_13; 4060 4029 long __pyx_t_14; 4061 long__pyx_t_15;4030 int __pyx_t_15; 4062 4031 int __pyx_t_16; 4063 int__pyx_t_17;4064 long__pyx_t_18;4032 long __pyx_t_17; 4033 int __pyx_t_18; 4065 4034 int __pyx_t_19; 4066 int__pyx_t_20;4035 long __pyx_t_20; 4067 4036 long __pyx_t_21; 4068 4037 long __pyx_t_22; 4069 long __pyx_t_23; 4070 int __pyx_t_24; 4038 int __pyx_t_23; 4071 4039 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__table,&__pyx_n_s__x_vals,&__pyx_n_s__y_vals,&__pyx_n_s__x_bins,&__pyx_n_s__y_bins,&__pyx_n_s__x_is,&__pyx_n_s__y_is,&__pyx_n_s__output,0}; 4072 4040 __Pyx_RefNannySetupContext("BilinearlyInterpolate"); … … 4304 4272 __pyx_t_8 = __pyx_v_x_i; 4305 4273 if (__pyx_t_8 < 0) __pyx_t_8 += __pyx_bshape_0_x_bins; 4306 __pyx_t_9 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_7, __pyx_bstride_0_x_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_8, __pyx_bstride_0_x_bins))); 4307 if (unlikely(__pyx_t_9 == 0)) { 4308 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 4309 {__pyx_filename = __pyx_f[3]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 4310 } 4311 __pyx_v_dx_inv = (1.0 / __pyx_t_9); 4274 __pyx_v_dx_inv = (1.0 / ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_7, __pyx_bstride_0_x_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_8, __pyx_bstride_0_x_bins)))); 4312 4275 4313 4276 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":66 … … 4318 4281 * yp = (y - y_bins[y_i]) * dy_inv 4319 4282 */ 4320 __pyx_t_10 = (__pyx_v_y_i + 1); 4283 __pyx_t_9 = (__pyx_v_y_i + 1); 4284 if (__pyx_t_9 < 0) __pyx_t_9 += __pyx_bshape_0_y_bins; 4285 __pyx_t_10 = __pyx_v_y_i; 4321 4286 if (__pyx_t_10 < 0) __pyx_t_10 += __pyx_bshape_0_y_bins; 4322 __pyx_t_11 = __pyx_v_y_i; 4323 if (__pyx_t_11 < 0) __pyx_t_11 += __pyx_bshape_0_y_bins; 4324 __pyx_t_9 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_10, __pyx_bstride_0_y_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_11, __pyx_bstride_0_y_bins))); 4325 if (unlikely(__pyx_t_9 == 0)) { 4326 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 4327 {__pyx_filename = __pyx_f[3]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 4328 } 4329 __pyx_v_dy_inv = (1.0 / __pyx_t_9); 4287 __pyx_v_dy_inv = (1.0 / ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_9, __pyx_bstride_0_y_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_10, __pyx_bstride_0_y_bins)))); 4330 4288 4331 4289 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":67 … … 4336 4294 * xm = (x_bins[x_i+1] - x) * dx_inv 4337 4295 */ 4338 __pyx_t_1 2= __pyx_v_x_i;4339 if (__pyx_t_1 2 < 0) __pyx_t_12+= __pyx_bshape_0_x_bins;4340 __pyx_v_xp = ((__pyx_v_x - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_1 2, __pyx_bstride_0_x_bins))) * __pyx_v_dx_inv);4296 __pyx_t_11 = __pyx_v_x_i; 4297 if (__pyx_t_11 < 0) __pyx_t_11 += __pyx_bshape_0_x_bins; 4298 __pyx_v_xp = ((__pyx_v_x - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_11, __pyx_bstride_0_x_bins))) * __pyx_v_dx_inv); 4341 4299 4342 4300 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":68 … … 4347 4305 * ym = (y_bins[y_i+1] - y) * dy_inv 4348 4306 */ 4349 __pyx_t_1 3= __pyx_v_y_i;4350 if (__pyx_t_1 3 < 0) __pyx_t_13+= __pyx_bshape_0_y_bins;4351 __pyx_v_yp = ((__pyx_v_y - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_1 3, __pyx_bstride_0_y_bins))) * __pyx_v_dy_inv);4307 __pyx_t_12 = __pyx_v_y_i; 4308 if (__pyx_t_12 < 0) __pyx_t_12 += __pyx_bshape_0_y_bins; 4309 __pyx_v_yp = ((__pyx_v_y - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_12, __pyx_bstride_0_y_bins))) * __pyx_v_dy_inv); 4352 4310 4353 4311 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":69 … … 4358 4316 * output[i] = table[x_i , y_i ] * (xm*ym) \ 4359 4317 */ 4360 __pyx_t_1 4= (__pyx_v_x_i + 1);4361 if (__pyx_t_1 4 < 0) __pyx_t_14+= __pyx_bshape_0_x_bins;4362 __pyx_v_xm = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_1 4, __pyx_bstride_0_x_bins)) - __pyx_v_x) * __pyx_v_dx_inv);4318 __pyx_t_13 = (__pyx_v_x_i + 1); 4319 if (__pyx_t_13 < 0) __pyx_t_13 += __pyx_bshape_0_x_bins; 4320 __pyx_v_xm = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_13, __pyx_bstride_0_x_bins)) - __pyx_v_x) * __pyx_v_dx_inv); 4363 4321 4364 4322 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":70 … … 4369 4327 * + table[x_i+1, y_i ] * (xp*ym) \ 4370 4328 */ 4371 __pyx_t_1 5= (__pyx_v_y_i + 1);4372 if (__pyx_t_1 5 < 0) __pyx_t_15+= __pyx_bshape_0_y_bins;4373 __pyx_v_ym = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_1 5, __pyx_bstride_0_y_bins)) - __pyx_v_y) * __pyx_v_dy_inv);4329 __pyx_t_14 = (__pyx_v_y_i + 1); 4330 if (__pyx_t_14 < 0) __pyx_t_14 += __pyx_bshape_0_y_bins; 4331 __pyx_v_ym = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_14, __pyx_bstride_0_y_bins)) - __pyx_v_y) * __pyx_v_dy_inv); 4374 4332 4375 4333 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":71 … … 4380 4338 * + table[x_i , y_i+1] * (xm*yp) \ 4381 4339 */ 4382 __pyx_t_1 6= __pyx_v_x_i;4383 __pyx_t_1 7= __pyx_v_y_i;4384 if (__pyx_t_1 6 < 0) __pyx_t_16+= __pyx_bshape_0_table;4385 if (__pyx_t_1 7 < 0) __pyx_t_17+= __pyx_bshape_1_table;4340 __pyx_t_15 = __pyx_v_x_i; 4341 __pyx_t_16 = __pyx_v_y_i; 4342 if (__pyx_t_15 < 0) __pyx_t_15 += __pyx_bshape_0_table; 4343 if (__pyx_t_16 < 0) __pyx_t_16 += __pyx_bshape_1_table; 4386 4344 4387 4345 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":72 … … 4392 4350 * + table[x_i+1, y_i+1] * (xp*yp) 4393 4351 */ 4394 __pyx_t_1 8= (__pyx_v_x_i + 1);4395 __pyx_t_1 9= __pyx_v_y_i;4396 if (__pyx_t_1 8 < 0) __pyx_t_18+= __pyx_bshape_0_table;4397 if (__pyx_t_1 9 < 0) __pyx_t_19+= __pyx_bshape_1_table;4352 __pyx_t_17 = (__pyx_v_x_i + 1); 4353 __pyx_t_18 = __pyx_v_y_i; 4354 if (__pyx_t_17 < 0) __pyx_t_17 += __pyx_bshape_0_table; 4355 if (__pyx_t_18 < 0) __pyx_t_18 += __pyx_bshape_1_table; 4398 4356 4399 4357 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":73 … … 4404 4362 * 4405 4363 */ 4406 __pyx_t_ 20= __pyx_v_x_i;4407 __pyx_t_2 1= (__pyx_v_y_i + 1);4408 if (__pyx_t_ 20 < 0) __pyx_t_20+= __pyx_bshape_0_table;4409 if (__pyx_t_2 1 < 0) __pyx_t_21+= __pyx_bshape_1_table;4364 __pyx_t_19 = __pyx_v_x_i; 4365 __pyx_t_20 = (__pyx_v_y_i + 1); 4366 if (__pyx_t_19 < 0) __pyx_t_19 += __pyx_bshape_0_table; 4367 if (__pyx_t_20 < 0) __pyx_t_20 += __pyx_bshape_1_table; 4410 4368 4411 4369 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":74 … … 4416 4374 * @cython.boundscheck(False) 4417 4375 */ 4418 __pyx_t_2 2= (__pyx_v_x_i + 1);4419 __pyx_t_2 3= (__pyx_v_y_i + 1);4420 if (__pyx_t_2 2 < 0) __pyx_t_22+= __pyx_bshape_0_table;4421 if (__pyx_t_2 3 < 0) __pyx_t_23+= __pyx_bshape_1_table;4376 __pyx_t_21 = (__pyx_v_x_i + 1); 4377 __pyx_t_22 = (__pyx_v_y_i + 1); 4378 if (__pyx_t_21 < 0) __pyx_t_21 += __pyx_bshape_0_table; 4379 if (__pyx_t_22 < 0) __pyx_t_22 += __pyx_bshape_1_table; 4422 4380 4423 4381 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":71 … … 4428 4386 * + table[x_i , y_i+1] * (xm*yp) \ 4429 4387 */ 4430 __pyx_t_2 4= __pyx_v_i;4431 if (__pyx_t_2 4 < 0) __pyx_t_24+= __pyx_bshape_0_output;4432 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_2 4, __pyx_bstride_0_output) = (((((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_16, __pyx_bstride_0_table, __pyx_t_17, __pyx_bstride_1_table)) * (__pyx_v_xm * __pyx_v_ym)) + ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_18, __pyx_bstride_0_table, __pyx_t_19, __pyx_bstride_1_table)) * (__pyx_v_xp * __pyx_v_ym))) + ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_20, __pyx_bstride_0_table, __pyx_t_21, __pyx_bstride_1_table)) * (__pyx_v_xm * __pyx_v_yp))) + ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_22, __pyx_bstride_0_table, __pyx_t_23, __pyx_bstride_1_table)) * (__pyx_v_xp * __pyx_v_yp)));4388 __pyx_t_23 = __pyx_v_i; 4389 if (__pyx_t_23 < 0) __pyx_t_23 += __pyx_bshape_0_output; 4390 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_23, __pyx_bstride_0_output) = (((((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_15, __pyx_bstride_0_table, __pyx_t_16, __pyx_bstride_1_table)) * (__pyx_v_xm * __pyx_v_ym)) + ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_17, __pyx_bstride_0_table, __pyx_t_18, __pyx_bstride_1_table)) * (__pyx_v_xp * __pyx_v_ym))) + ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_19, __pyx_bstride_0_table, __pyx_t_20, __pyx_bstride_1_table)) * (__pyx_v_xm * __pyx_v_yp))) + ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_21, __pyx_bstride_0_table, __pyx_t_22, __pyx_bstride_1_table)) * (__pyx_v_xp * __pyx_v_yp))); 4433 4391 } 4434 4392 … … 4558 4516 long __pyx_t_9; 4559 4517 int __pyx_t_10; 4560 __pyx_t_5numpy_float64_t__pyx_t_11;4561 long__pyx_t_12;4562 int__pyx_t_13;4563 long__pyx_t_14;4518 long __pyx_t_11; 4519 int __pyx_t_12; 4520 long __pyx_t_13; 4521 int __pyx_t_14; 4564 4522 int __pyx_t_15; 4565 4523 int __pyx_t_16; 4566 4524 int __pyx_t_17; 4567 int__pyx_t_18;4525 long __pyx_t_18; 4568 4526 long __pyx_t_19; 4569 4527 long __pyx_t_20; 4570 long__pyx_t_21;4528 int __pyx_t_21; 4571 4529 int __pyx_t_22; 4572 4530 int __pyx_t_23; 4573 int__pyx_t_24;4574 long__pyx_t_25;4531 long __pyx_t_24; 4532 int __pyx_t_25; 4575 4533 int __pyx_t_26; 4576 4534 int __pyx_t_27; 4577 int__pyx_t_28;4578 long__pyx_t_29;4535 long __pyx_t_28; 4536 int __pyx_t_29; 4579 4537 int __pyx_t_30; 4580 4538 int __pyx_t_31; 4581 int__pyx_t_32;4539 long __pyx_t_32; 4582 4540 long __pyx_t_33; 4583 long__pyx_t_34;4584 int__pyx_t_35;4585 long__pyx_t_36;4586 int__pyx_t_37;4541 int __pyx_t_34; 4542 long __pyx_t_35; 4543 int __pyx_t_36; 4544 long __pyx_t_37; 4587 4545 long __pyx_t_38; 4588 4546 long __pyx_t_39; 4589 4547 long __pyx_t_40; 4590 long__pyx_t_41;4591 int__pyx_t_42;4548 int __pyx_t_41; 4549 long __pyx_t_42; 4592 4550 long __pyx_t_43; 4593 4551 long __pyx_t_44; 4594 long __pyx_t_45; 4595 int __pyx_t_46; 4552 int __pyx_t_45; 4596 4553 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__table,&__pyx_n_s__x_vals,&__pyx_n_s__y_vals,&__pyx_n_s__z_vals,&__pyx_n_s__x_bins,&__pyx_n_s__y_bins,&__pyx_n_s__z_bins,&__pyx_n_s__x_is,&__pyx_n_s__y_is,&__pyx_n_s__z_is,&__pyx_n_s__output,0}; 4597 4554 __Pyx_RefNannySetupContext("TrilinearlyInterpolate"); … … 4905 4862 __pyx_t_10 = __pyx_v_x_i; 4906 4863 if (__pyx_t_10 < 0) __pyx_t_10 += __pyx_bshape_0_x_bins; 4907 __pyx_t_11 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_9, __pyx_bstride_0_x_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_10, __pyx_bstride_0_x_bins))); 4908 if (unlikely(__pyx_t_11 == 0)) { 4909 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 4910 {__pyx_filename = __pyx_f[3]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 4911 } 4912 __pyx_v_dx_inv = (1.0 / __pyx_t_11); 4864 __pyx_v_dx_inv = (1.0 / ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_9, __pyx_bstride_0_x_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_10, __pyx_bstride_0_x_bins)))); 4913 4865 4914 4866 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":101 … … 4919 4871 * xp = (x - x_bins[x_i]) * dx_inv 4920 4872 */ 4921 __pyx_t_12 = (__pyx_v_y_i + 1); 4873 __pyx_t_11 = (__pyx_v_y_i + 1); 4874 if (__pyx_t_11 < 0) __pyx_t_11 += __pyx_bshape_0_y_bins; 4875 __pyx_t_12 = __pyx_v_y_i; 4922 4876 if (__pyx_t_12 < 0) __pyx_t_12 += __pyx_bshape_0_y_bins; 4923 __pyx_t_13 = __pyx_v_y_i; 4924 if (__pyx_t_13 < 0) __pyx_t_13 += __pyx_bshape_0_y_bins; 4925 __pyx_t_11 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_12, __pyx_bstride_0_y_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_13, __pyx_bstride_0_y_bins))); 4926 if (unlikely(__pyx_t_11 == 0)) { 4927 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 4928 {__pyx_filename = __pyx_f[3]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 4929 } 4930 __pyx_v_dy_inv = (1.0 / __pyx_t_11); 4877 __pyx_v_dy_inv = (1.0 / ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_11, __pyx_bstride_0_y_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_12, __pyx_bstride_0_y_bins)))); 4931 4878 4932 4879 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":102 … … 4937 4884 * yp = (y - y_bins[y_i]) * dy_inv 4938 4885 */ 4939 __pyx_t_14 = (__pyx_v_z_i + 1); 4886 __pyx_t_13 = (__pyx_v_z_i + 1); 4887 if (__pyx_t_13 < 0) __pyx_t_13 += __pyx_bshape_0_z_bins; 4888 __pyx_t_14 = __pyx_v_z_i; 4940 4889 if (__pyx_t_14 < 0) __pyx_t_14 += __pyx_bshape_0_z_bins; 4941 __pyx_t_15 = __pyx_v_z_i; 4942 if (__pyx_t_15 < 0) __pyx_t_15 += __pyx_bshape_0_z_bins; 4943 __pyx_t_11 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_14, __pyx_bstride_0_z_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_15, __pyx_bstride_0_z_bins))); 4944 if (unlikely(__pyx_t_11 == 0)) { 4945 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 4946 {__pyx_filename = __pyx_f[3]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 4947 } 4948 __pyx_v_dz_inv = (1.0 / __pyx_t_11); 4890 __pyx_v_dz_inv = (1.0 / ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_13, __pyx_bstride_0_z_bins)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_14, __pyx_bstride_0_z_bins)))); 4949 4891 4950 4892 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":103 … … 4955 4897 * zp = (z - z_bins[z_i]) * dz_inv 4956 4898 */ 4957 __pyx_t_1 6= __pyx_v_x_i;4958 if (__pyx_t_1 6 < 0) __pyx_t_16+= __pyx_bshape_0_x_bins;4959 __pyx_v_xp = ((__pyx_v_x - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_1 6, __pyx_bstride_0_x_bins))) * __pyx_v_dx_inv);4899 __pyx_t_15 = __pyx_v_x_i; 4900 if (__pyx_t_15 < 0) __pyx_t_15 += __pyx_bshape_0_x_bins; 4901 __pyx_v_xp = ((__pyx_v_x - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_15, __pyx_bstride_0_x_bins))) * __pyx_v_dx_inv); 4960 4902 4961 4903 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":104 … … 4966 4908 * xm = (x_bins[x_i+1] - x) * dx_inv 4967 4909 */ 4968 __pyx_t_1 7= __pyx_v_y_i;4969 if (__pyx_t_1 7 < 0) __pyx_t_17+= __pyx_bshape_0_y_bins;4970 __pyx_v_yp = ((__pyx_v_y - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_1 7, __pyx_bstride_0_y_bins))) * __pyx_v_dy_inv);4910 __pyx_t_16 = __pyx_v_y_i; 4911 if (__pyx_t_16 < 0) __pyx_t_16 += __pyx_bshape_0_y_bins; 4912 __pyx_v_yp = ((__pyx_v_y - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_16, __pyx_bstride_0_y_bins))) * __pyx_v_dy_inv); 4971 4913 4972 4914 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":105 … … 4977 4919 * ym = (y_bins[y_i+1] - y) * dy_inv 4978 4920 */ 4979 __pyx_t_1 8= __pyx_v_z_i;4980 if (__pyx_t_1 8 < 0) __pyx_t_18+= __pyx_bshape_0_z_bins;4981 __pyx_v_zp = ((__pyx_v_z - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_1 8, __pyx_bstride_0_z_bins))) * __pyx_v_dz_inv);4921 __pyx_t_17 = __pyx_v_z_i; 4922 if (__pyx_t_17 < 0) __pyx_t_17 += __pyx_bshape_0_z_bins; 4923 __pyx_v_zp = ((__pyx_v_z - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_17, __pyx_bstride_0_z_bins))) * __pyx_v_dz_inv); 4982 4924 4983 4925 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":106 … … 4988 4930 * zm = (z_bins[z_i+1] - z) * dz_inv 4989 4931 */ 4990 __pyx_t_1 9= (__pyx_v_x_i + 1);4991 if (__pyx_t_1 9 < 0) __pyx_t_19+= __pyx_bshape_0_x_bins;4992 __pyx_v_xm = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_1 9, __pyx_bstride_0_x_bins)) - __pyx_v_x) * __pyx_v_dx_inv);4932 __pyx_t_18 = (__pyx_v_x_i + 1); 4933 if (__pyx_t_18 < 0) __pyx_t_18 += __pyx_bshape_0_x_bins; 4934 __pyx_v_xm = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_x_bins.buf, __pyx_t_18, __pyx_bstride_0_x_bins)) - __pyx_v_x) * __pyx_v_dx_inv); 4993 4935 4994 4936 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":107 … … 4999 4941 * output[i] = table[x_i ,y_i ,z_i ] * (xm*ym*zm) \ 5000 4942 */ 5001 __pyx_t_ 20= (__pyx_v_y_i + 1);5002 if (__pyx_t_ 20 < 0) __pyx_t_20+= __pyx_bshape_0_y_bins;5003 __pyx_v_ym = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_ 20, __pyx_bstride_0_y_bins)) - __pyx_v_y) * __pyx_v_dy_inv);4943 __pyx_t_19 = (__pyx_v_y_i + 1); 4944 if (__pyx_t_19 < 0) __pyx_t_19 += __pyx_bshape_0_y_bins; 4945 __pyx_v_ym = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_y_bins.buf, __pyx_t_19, __pyx_bstride_0_y_bins)) - __pyx_v_y) * __pyx_v_dy_inv); 5004 4946 5005 4947 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":108 … … 5010 4952 * + table[x_i+1,y_i ,z_i ] * (xp*ym*zm) \ 5011 4953 */ 5012 __pyx_t_2 1= (__pyx_v_z_i + 1);5013 if (__pyx_t_2 1 < 0) __pyx_t_21+= __pyx_bshape_0_z_bins;5014 __pyx_v_zm = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_2 1, __pyx_bstride_0_z_bins)) - __pyx_v_z) * __pyx_v_dz_inv);4954 __pyx_t_20 = (__pyx_v_z_i + 1); 4955 if (__pyx_t_20 < 0) __pyx_t_20 += __pyx_bshape_0_z_bins; 4956 __pyx_v_zm = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_z_bins.buf, __pyx_t_20, __pyx_bstride_0_z_bins)) - __pyx_v_z) * __pyx_v_dz_inv); 5015 4957 5016 4958 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":109 … … 5021 4963 * + table[x_i ,y_i+1,z_i ] * (xm*yp*zm) \ 5022 4964 */ 5023 __pyx_t_2 2= __pyx_v_x_i;5024 __pyx_t_2 3= __pyx_v_y_i;5025 __pyx_t_2 4= __pyx_v_z_i;5026 if (__pyx_t_2 2 < 0) __pyx_t_22+= __pyx_bshape_0_table;5027 if (__pyx_t_2 3 < 0) __pyx_t_23+= __pyx_bshape_1_table;5028 if (__pyx_t_2 4 < 0) __pyx_t_24+= __pyx_bshape_2_table;4965 __pyx_t_21 = __pyx_v_x_i; 4966 __pyx_t_22 = __pyx_v_y_i; 4967 __pyx_t_23 = __pyx_v_z_i; 4968 if (__pyx_t_21 < 0) __pyx_t_21 += __pyx_bshape_0_table; 4969 if (__pyx_t_22 < 0) __pyx_t_22 += __pyx_bshape_1_table; 4970 if (__pyx_t_23 < 0) __pyx_t_23 += __pyx_bshape_2_table; 5029 4971 5030 4972 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":110 … … 5035 4977 * + table[x_i ,y_i ,z_i+1] * (xm*ym*zp) \ 5036 4978 */ 5037 __pyx_t_2 5= (__pyx_v_x_i + 1);5038 __pyx_t_2 6= __pyx_v_y_i;5039 __pyx_t_2 7= __pyx_v_z_i;5040 if (__pyx_t_2 5 < 0) __pyx_t_25+= __pyx_bshape_0_table;5041 if (__pyx_t_2 6 < 0) __pyx_t_26+= __pyx_bshape_1_table;5042 if (__pyx_t_2 7 < 0) __pyx_t_27+= __pyx_bshape_2_table;4979 __pyx_t_24 = (__pyx_v_x_i + 1); 4980 __pyx_t_25 = __pyx_v_y_i; 4981 __pyx_t_26 = __pyx_v_z_i; 4982 if (__pyx_t_24 < 0) __pyx_t_24 += __pyx_bshape_0_table; 4983 if (__pyx_t_25 < 0) __pyx_t_25 += __pyx_bshape_1_table; 4984 if (__pyx_t_26 < 0) __pyx_t_26 += __pyx_bshape_2_table; 5043 4985 5044 4986 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":111 … … 5049 4991 * + table[x_i+1,y_i ,z_i+1] * (xp*ym*zp) \ 5050 4992 */ 5051 __pyx_t_2 8= __pyx_v_x_i;5052 __pyx_t_2 9= (__pyx_v_y_i + 1);5053 __pyx_t_ 30= __pyx_v_z_i;5054 if (__pyx_t_2 8 < 0) __pyx_t_28+= __pyx_bshape_0_table;5055 if (__pyx_t_2 9 < 0) __pyx_t_29+= __pyx_bshape_1_table;5056 if (__pyx_t_ 30 < 0) __pyx_t_30+= __pyx_bshape_2_table;4993 __pyx_t_27 = __pyx_v_x_i; 4994 __pyx_t_28 = (__pyx_v_y_i + 1); 4995 __pyx_t_29 = __pyx_v_z_i; 4996 if (__pyx_t_27 < 0) __pyx_t_27 += __pyx_bshape_0_table; 4997 if (__pyx_t_28 < 0) __pyx_t_28 += __pyx_bshape_1_table; 4998 if (__pyx_t_29 < 0) __pyx_t_29 += __pyx_bshape_2_table; 5057 4999 5058 5000 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":112 … … 5063 5005 * + table[x_i ,y_i+1,z_i+1] * (xm*yp*zp) \ 5064 5006 */ 5065 __pyx_t_3 1= __pyx_v_x_i;5066 __pyx_t_3 2= __pyx_v_y_i;5067 __pyx_t_3 3= (__pyx_v_z_i + 1);5068 if (__pyx_t_3 1 < 0) __pyx_t_31+= __pyx_bshape_0_table;5069 if (__pyx_t_3 2 < 0) __pyx_t_32+= __pyx_bshape_1_table;5070 if (__pyx_t_3 3 < 0) __pyx_t_33+= __pyx_bshape_2_table;5007 __pyx_t_30 = __pyx_v_x_i; 5008 __pyx_t_31 = __pyx_v_y_i; 5009 __pyx_t_32 = (__pyx_v_z_i + 1); 5010 if (__pyx_t_30 < 0) __pyx_t_30 += __pyx_bshape_0_table; 5011 if (__pyx_t_31 < 0) __pyx_t_31 += __pyx_bshape_1_table; 5012 if (__pyx_t_32 < 0) __pyx_t_32 += __pyx_bshape_2_table; 5071 5013 5072 5014 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":113 … … 5077 5019 * + table[x_i+1,y_i+1,z_i ] * (xp*yp*zm) \ 5078 5020 */ 5079 __pyx_t_3 4= (__pyx_v_x_i + 1);5080 __pyx_t_3 5= __pyx_v_y_i;5081 __pyx_t_3 6= (__pyx_v_z_i + 1);5082 if (__pyx_t_3 4 < 0) __pyx_t_34+= __pyx_bshape_0_table;5083 if (__pyx_t_3 5 < 0) __pyx_t_35+= __pyx_bshape_1_table;5084 if (__pyx_t_3 6 < 0) __pyx_t_36+= __pyx_bshape_2_table;5021 __pyx_t_33 = (__pyx_v_x_i + 1); 5022 __pyx_t_34 = __pyx_v_y_i; 5023 __pyx_t_35 = (__pyx_v_z_i + 1); 5024 if (__pyx_t_33 < 0) __pyx_t_33 += __pyx_bshape_0_table; 5025 if (__pyx_t_34 < 0) __pyx_t_34 += __pyx_bshape_1_table; 5026 if (__pyx_t_35 < 0) __pyx_t_35 += __pyx_bshape_2_table; 5085 5027 5086 5028 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":114 … … 5091 5033 * + table[x_i+1,y_i+1,z_i+1] * (xp*yp*zp) 5092 5034 */ 5093 __pyx_t_3 7= __pyx_v_x_i;5094 __pyx_t_3 8= (__pyx_v_y_i + 1);5095 __pyx_t_3 9= (__pyx_v_z_i + 1);5096 if (__pyx_t_3 7 < 0) __pyx_t_37+= __pyx_bshape_0_table;5097 if (__pyx_t_3 8 < 0) __pyx_t_38+= __pyx_bshape_1_table;5098 if (__pyx_t_3 9 < 0) __pyx_t_39+= __pyx_bshape_2_table;5035 __pyx_t_36 = __pyx_v_x_i; 5036 __pyx_t_37 = (__pyx_v_y_i + 1); 5037 __pyx_t_38 = (__pyx_v_z_i + 1); 5038 if (__pyx_t_36 < 0) __pyx_t_36 += __pyx_bshape_0_table; 5039 if (__pyx_t_37 < 0) __pyx_t_37 += __pyx_bshape_1_table; 5040 if (__pyx_t_38 < 0) __pyx_t_38 += __pyx_bshape_2_table; 5099 5041 5100 5042 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":115 … … 5104 5046 * + table[x_i+1,y_i+1,z_i+1] * (xp*yp*zp) 5105 5047 */ 5106 __pyx_t_ 40= (__pyx_v_x_i + 1);5107 __pyx_t_4 1= (__pyx_v_y_i + 1);5108 __pyx_t_4 2= __pyx_v_z_i;5109 if (__pyx_t_ 40 < 0) __pyx_t_40+= __pyx_bshape_0_table;5110 if (__pyx_t_4 1 < 0) __pyx_t_41+= __pyx_bshape_1_table;5111 if (__pyx_t_4 2 < 0) __pyx_t_42+= __pyx_bshape_2_table;5048 __pyx_t_39 = (__pyx_v_x_i + 1); 5049 __pyx_t_40 = (__pyx_v_y_i + 1); 5050 __pyx_t_41 = __pyx_v_z_i; 5051 if (__pyx_t_39 < 0) __pyx_t_39 += __pyx_bshape_0_table; 5052 if (__pyx_t_40 < 0) __pyx_t_40 += __pyx_bshape_1_table; 5053 if (__pyx_t_41 < 0) __pyx_t_41 += __pyx_bshape_2_table; 5112 5054 5113 5055 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":116 … … 5116 5058 * + table[x_i+1,y_i+1,z_i+1] * (xp*yp*zp) # <<<<<<<<<<<<<< 5117 5059 */ 5118 __pyx_t_4 3= (__pyx_v_x_i + 1);5119 __pyx_t_4 4= (__pyx_v_y_i + 1);5120 __pyx_t_4 5= (__pyx_v_z_i + 1);5121 if (__pyx_t_4 3 < 0) __pyx_t_43+= __pyx_bshape_0_table;5122 if (__pyx_t_4 4 < 0) __pyx_t_44+= __pyx_bshape_1_table;5123 if (__pyx_t_4 5 < 0) __pyx_t_45+= __pyx_bshape_2_table;5060 __pyx_t_42 = (__pyx_v_x_i + 1); 5061 __pyx_t_43 = (__pyx_v_y_i + 1); 5062 __pyx_t_44 = (__pyx_v_z_i + 1); 5063 if (__pyx_t_42 < 0) __pyx_t_42 += __pyx_bshape_0_table; 5064 if (__pyx_t_43 < 0) __pyx_t_43 += __pyx_bshape_1_table; 5065 if (__pyx_t_44 < 0) __pyx_t_44 += __pyx_bshape_2_table; 5124 5066 5125 5067 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":109 … … 5130 5072 * + table[x_i ,y_i+1,z_i ] * (xm*yp*zm) \ 5131 5073 */ 5132 __pyx_t_4 6= __pyx_v_i;5133 if (__pyx_t_4 6 < 0) __pyx_t_46+= __pyx_bshape_0_output;5134 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_4 6, __pyx_bstride_0_output) = (((((((((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_22, __pyx_bstride_0_table, __pyx_t_23, __pyx_bstride_1_table, __pyx_t_24, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_ym) * __pyx_v_zm)) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_25, __pyx_bstride_0_table, __pyx_t_26, __pyx_bstride_1_table, __pyx_t_27, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_ym) * __pyx_v_zm))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_28, __pyx_bstride_0_table, __pyx_t_29, __pyx_bstride_1_table, __pyx_t_30, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_yp) * __pyx_v_zm))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_31, __pyx_bstride_0_table, __pyx_t_32, __pyx_bstride_1_table, __pyx_t_33, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_ym) * __pyx_v_zp))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_34, __pyx_bstride_0_table, __pyx_t_35, __pyx_bstride_1_table, __pyx_t_36, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_ym) * __pyx_v_zp))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_37, __pyx_bstride_0_table, __pyx_t_38, __pyx_bstride_1_table, __pyx_t_39, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_yp) * __pyx_v_zp))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_40, __pyx_bstride_0_table, __pyx_t_41, __pyx_bstride_1_table, __pyx_t_42, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_yp) * __pyx_v_zm))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_43, __pyx_bstride_0_table, __pyx_t_44, __pyx_bstride_1_table, __pyx_t_45, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_yp) * __pyx_v_zp)));5074 __pyx_t_45 = __pyx_v_i; 5075 if (__pyx_t_45 < 0) __pyx_t_45 += __pyx_bshape_0_output; 5076 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_45, __pyx_bstride_0_output) = (((((((((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_21, __pyx_bstride_0_table, __pyx_t_22, __pyx_bstride_1_table, __pyx_t_23, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_ym) * __pyx_v_zm)) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_24, __pyx_bstride_0_table, __pyx_t_25, __pyx_bstride_1_table, __pyx_t_26, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_ym) * __pyx_v_zm))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_27, __pyx_bstride_0_table, __pyx_t_28, __pyx_bstride_1_table, __pyx_t_29, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_yp) * __pyx_v_zm))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_30, __pyx_bstride_0_table, __pyx_t_31, __pyx_bstride_1_table, __pyx_t_32, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_ym) * __pyx_v_zp))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_33, __pyx_bstride_0_table, __pyx_t_34, __pyx_bstride_1_table, __pyx_t_35, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_ym) * __pyx_v_zp))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_36, __pyx_bstride_0_table, __pyx_t_37, __pyx_bstride_1_table, __pyx_t_38, __pyx_bstride_2_table)) * ((__pyx_v_xm * __pyx_v_yp) * __pyx_v_zp))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_39, __pyx_bstride_0_table, __pyx_t_40, __pyx_bstride_1_table, __pyx_t_41, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_yp) * __pyx_v_zm))) + ((*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_table.buf, __pyx_t_42, __pyx_bstride_0_table, __pyx_t_43, __pyx_bstride_1_table, __pyx_t_44, __pyx_bstride_2_table)) * ((__pyx_v_xp * __pyx_v_yp) * __pyx_v_zp))); 5135 5077 } 5136 5078 … … 5449 5391 * if pmask[i] == 0: 5450 5392 */ 5451 if (unlikely(__pyx_v_dx == 0)) {5452 PyErr_Format(PyExc_ZeroDivisionError, "float division");5453 {__pyx_filename = __pyx_f[1]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}5454 }5455 5393 __pyx_v_dx_inv = (1.0 / __pyx_v_dx); 5456 5394 … … 7123 7061 int __pyx_t_16; 7124 7062 int __pyx_t_17; 7125 __pyx_t_5numpy_float64_t __pyx_t_18;7063 int __pyx_t_18; 7126 7064 int __pyx_t_19; 7127 __pyx_t_5numpy_float64_t __pyx_t_20;7065 int __pyx_t_20; 7128 7066 int __pyx_t_21; 7129 7067 int __pyx_t_22; 7130 7068 int __pyx_t_23; 7131 7069 int __pyx_t_24; 7132 int __pyx_t_25;7070 __pyx_t_5numpy_float64_t __pyx_t_25; 7133 7071 int __pyx_t_26; 7134 7072 int __pyx_t_27; … … 7147 7085 int __pyx_t_40; 7148 7086 int __pyx_t_41; 7149 int__pyx_t_42;7087 long __pyx_t_42; 7150 7088 long __pyx_t_43; 7151 7089 long __pyx_t_44; … … 7156 7094 long __pyx_t_49; 7157 7095 long __pyx_t_50; 7158 long __pyx_t_51;7096 PyObject *__pyx_t_51 = NULL; 7159 7097 PyObject *__pyx_t_52 = NULL; 7160 7098 PyObject *__pyx_t_53 = NULL; 7161 PyObject *__pyx_t_54 = NULL;7099 int __pyx_t_54; 7162 7100 int __pyx_t_55; 7163 7101 int __pyx_t_56; 7164 7102 int __pyx_t_57; 7165 int __pyx_t_58;7166 __pyx_t_5numpy_int64_t __pyx_t_59;7103 __pyx_t_5numpy_int64_t __pyx_t_58; 7104 int __pyx_t_59; 7167 7105 int __pyx_t_60; 7168 7106 int __pyx_t_61; … … 7194 7132 int __pyx_t_87; 7195 7133 int __pyx_t_88; 7196 int__pyx_t_89;7134 long __pyx_t_89; 7197 7135 long __pyx_t_90; 7198 7136 long __pyx_t_91; … … 7200 7138 long __pyx_t_93; 7201 7139 long __pyx_t_94; 7202 long__pyx_t_95;7140 __pyx_t_5numpy_int64_t __pyx_t_95; 7203 7141 __pyx_t_5numpy_int64_t __pyx_t_96; 7204 __pyx_t_5numpy_int64_t__pyx_t_97;7142 long __pyx_t_97; 7205 7143 long __pyx_t_98; 7206 7144 long __pyx_t_99; … … 7208 7146 long __pyx_t_101; 7209 7147 long __pyx_t_102; 7210 long__pyx_t_103;7148 __pyx_t_5numpy_int64_t __pyx_t_103; 7211 7149 __pyx_t_5numpy_int64_t __pyx_t_104; 7212 7150 __pyx_t_5numpy_int64_t __pyx_t_105; 7213 __pyx_t_5numpy_int64_t__pyx_t_106;7151 long __pyx_t_106; 7214 7152 long __pyx_t_107; 7215 7153 long __pyx_t_108; … … 7218 7156 long __pyx_t_111; 7219 7157 long __pyx_t_112; 7220 long__pyx_t_113;7158 __pyx_t_5numpy_int64_t __pyx_t_113; 7221 7159 __pyx_t_5numpy_int64_t __pyx_t_114; 7222 7160 __pyx_t_5numpy_int64_t __pyx_t_115; 7223 __pyx_t_5numpy_int64_t__pyx_t_116;7161 long __pyx_t_116; 7224 7162 long __pyx_t_117; 7225 7163 long __pyx_t_118; 7226 7164 long __pyx_t_119; 7227 long__pyx_t_120;7165 __pyx_t_5numpy_int64_t __pyx_t_120; 7228 7166 __pyx_t_5numpy_int64_t __pyx_t_121; 7229 7167 __pyx_t_5numpy_int64_t __pyx_t_122; 7230 __pyx_t_5numpy_int64_t__pyx_t_123;7168 long __pyx_t_123; 7231 7169 long __pyx_t_124; 7232 7170 long __pyx_t_125; … … 7236 7174 long __pyx_t_129; 7237 7175 long __pyx_t_130; 7238 long__pyx_t_131;7176 __pyx_t_5numpy_int64_t __pyx_t_131; 7239 7177 __pyx_t_5numpy_int64_t __pyx_t_132; 7240 7178 __pyx_t_5numpy_int64_t __pyx_t_133; 7241 __pyx_t_5numpy_int64_t__pyx_t_134;7179 long __pyx_t_134; 7242 7180 long __pyx_t_135; 7243 7181 long __pyx_t_136; 7244 7182 long __pyx_t_137; 7245 long__pyx_t_138;7183 __pyx_t_5numpy_int64_t __pyx_t_138; 7246 7184 __pyx_t_5numpy_int64_t __pyx_t_139; 7247 7185 __pyx_t_5numpy_int64_t __pyx_t_140; 7248 __pyx_t_5numpy_int64_t__pyx_t_141;7186 long __pyx_t_141; 7249 7187 long __pyx_t_142; 7250 7188 long __pyx_t_143; … … 7256 7194 long __pyx_t_149; 7257 7195 long __pyx_t_150; 7258 long__pyx_t_151;7196 __pyx_t_5numpy_int64_t __pyx_t_151; 7259 7197 __pyx_t_5numpy_int64_t __pyx_t_152; 7260 7198 __pyx_t_5numpy_int64_t __pyx_t_153; 7261 __pyx_t_5numpy_int64_t__pyx_t_154;7199 long __pyx_t_154; 7262 7200 long __pyx_t_155; 7263 7201 long __pyx_t_156; 7264 7202 long __pyx_t_157; 7265 long__pyx_t_158;7203 __pyx_t_5numpy_int64_t __pyx_t_158; 7266 7204 __pyx_t_5numpy_int64_t __pyx_t_159; 7267 7205 __pyx_t_5numpy_int64_t __pyx_t_160; 7268 __pyx_t_5numpy_int64_t__pyx_t_161;7206 long __pyx_t_161; 7269 7207 long __pyx_t_162; 7270 7208 long __pyx_t_163; … … 7274 7212 long __pyx_t_167; 7275 7213 long __pyx_t_168; 7276 long__pyx_t_169;7214 __pyx_t_5numpy_int64_t __pyx_t_169; 7277 7215 __pyx_t_5numpy_int64_t __pyx_t_170; 7278 7216 __pyx_t_5numpy_int64_t __pyx_t_171; 7279 __pyx_t_5numpy_int64_t__pyx_t_172;7217 long __pyx_t_172; 7280 7218 long __pyx_t_173; 7281 7219 long __pyx_t_174; 7282 7220 long __pyx_t_175; 7283 long__pyx_t_176;7221 __pyx_t_5numpy_int64_t __pyx_t_176; 7284 7222 __pyx_t_5numpy_int64_t __pyx_t_177; 7285 7223 __pyx_t_5numpy_int64_t __pyx_t_178; 7286 __pyx_t_5numpy_int64_t__pyx_t_179;7224 long __pyx_t_179; 7287 7225 long __pyx_t_180; 7288 7226 long __pyx_t_181; 7289 7227 long __pyx_t_182; 7290 7228 long __pyx_t_183; 7291 long __pyx_t_184;7292 7229 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__grid_mask,&__pyx_n_s__grid_t,&__pyx_n_s__grid_dt,&__pyx_n_s__left_edge,&__pyx_n_s__right_edge,&__pyx_n_s__dx,&__pyx_n_s__u,&__pyx_n_s__v,0}; 7293 7230 __Pyx_RefNannySetupContext("VoxelTraversal"); … … 7782 7719 * tl = (left_edge[i] - u[i])/v[i] 7783 7720 */ 7784 __pyx_v_x = __Pyx_mod_long((__pyx_v_i + 1),3);7721 __pyx_v_x = ((__pyx_v_i + 1) % 3); 7785 7722 7786 7723 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":155 … … 7791 7728 * tr = (right_edge[i] - u[i])/v[i] 7792 7729 */ 7793 __pyx_v_y = __Pyx_mod_long((__pyx_v_i + 2),3);7730 __pyx_v_y = ((__pyx_v_i + 2) % 3); 7794 7731 7795 7732 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":156 … … 7802 7739 __pyx_t_16 = __pyx_v_i; 7803 7740 __pyx_t_17 = __pyx_v_i; 7804 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_16, __pyx_bstride_0_left_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_17, __pyx_bstride_0_u))); 7805 __pyx_t_19 = __pyx_v_i; 7806 __pyx_t_20 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_19, __pyx_bstride_0_v)); 7807 if (unlikely(__pyx_t_20 == 0)) { 7808 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 7809 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 7810 } 7811 __pyx_v_tl = (__pyx_t_18 / __pyx_t_20); 7741 __pyx_t_18 = __pyx_v_i; 7742 __pyx_v_tl = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_16, __pyx_bstride_0_left_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_17, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_18, __pyx_bstride_0_v))); 7812 7743 7813 7744 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":157 … … 7818 7749 * (left_edge[y] <= (u[y] + tl*v[y]) <= right_edge[y]) and \ 7819 7750 */ 7751 __pyx_t_19 = __pyx_v_i; 7752 __pyx_t_20 = __pyx_v_i; 7820 7753 __pyx_t_21 = __pyx_v_i; 7821 __pyx_t_22 = __pyx_v_i; 7822 __pyx_t_20 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_21, __pyx_bstride_0_right_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_22, __pyx_bstride_0_u))); 7823 __pyx_t_23 = __pyx_v_i; 7824 __pyx_t_18 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_23, __pyx_bstride_0_v)); 7825 if (unlikely(__pyx_t_18 == 0)) { 7826 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 7827 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 7828 } 7829 __pyx_v_tr = (__pyx_t_20 / __pyx_t_18); 7754 __pyx_v_tr = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_19, __pyx_bstride_0_right_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_20, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_21, __pyx_bstride_0_v))); 7830 7755 7831 7756 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":158 … … 7836 7761 * (0.0 <= tl < intersect_t): 7837 7762 */ 7763 __pyx_t_22 = __pyx_v_x; 7764 __pyx_t_23 = __pyx_v_x; 7838 7765 __pyx_t_24 = __pyx_v_x; 7839 __pyx_t_25 = __pyx_v_x; 7840 __pyx_t_26 = __pyx_v_x; 7841 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_25, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_26, __pyx_bstride_0_v)))); 7842 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_24, __pyx_bstride_0_left_edge)) <= __pyx_t_18); 7766 __pyx_t_25 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_23, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_24, __pyx_bstride_0_v)))); 7767 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_22, __pyx_bstride_0_left_edge)) <= __pyx_t_25); 7843 7768 if (__pyx_t_13) { 7844 __pyx_t_2 7= __pyx_v_x;7845 __pyx_t_13 = (__pyx_t_ 18 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_27, __pyx_bstride_0_right_edge)));7769 __pyx_t_26 = __pyx_v_x; 7770 __pyx_t_13 = (__pyx_t_25 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_26, __pyx_bstride_0_right_edge))); 7846 7771 } 7847 7772 if (__pyx_t_13) { … … 7854 7779 * intersect_t = tl 7855 7780 */ 7781 __pyx_t_27 = __pyx_v_y; 7856 7782 __pyx_t_28 = __pyx_v_y; 7857 7783 __pyx_t_29 = __pyx_v_y; 7858 __pyx_t_30 = __pyx_v_y; 7859 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_29, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_30, __pyx_bstride_0_v)))); 7860 __pyx_t_31 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_28, __pyx_bstride_0_left_edge)) <= __pyx_t_18); 7861 if (__pyx_t_31) { 7862 __pyx_t_32 = __pyx_v_y; 7863 __pyx_t_31 = (__pyx_t_18 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_32, __pyx_bstride_0_right_edge))); 7784 __pyx_t_25 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_28, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_29, __pyx_bstride_0_v)))); 7785 __pyx_t_30 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_27, __pyx_bstride_0_left_edge)) <= __pyx_t_25); 7786 if (__pyx_t_30) { 7787 __pyx_t_31 = __pyx_v_y; 7788 __pyx_t_30 = (__pyx_t_25 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_31, __pyx_bstride_0_right_edge))); 7864 7789 } 7865 if (__pyx_t_3 1) {7790 if (__pyx_t_30) { 7866 7791 7867 7792 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":160 … … 7872 7797 * if (left_edge[x] <= (u[x] + tr*v[x]) <= right_edge[x]) and \ 7873 7798 */ 7874 __pyx_t_3 3= (0.0 <= __pyx_v_tl);7875 if (__pyx_t_3 3) {7876 __pyx_t_3 3= (__pyx_v_tl < __pyx_v_intersect_t);7799 __pyx_t_32 = (0.0 <= __pyx_v_tl); 7800 if (__pyx_t_32) { 7801 __pyx_t_32 = (__pyx_v_tl < __pyx_v_intersect_t); 7877 7802 } 7878 __pyx_t_3 4 = __pyx_t_33;7803 __pyx_t_33 = __pyx_t_32; 7879 7804 } else { 7880 __pyx_t_3 4 = __pyx_t_31;7805 __pyx_t_33 = __pyx_t_30; 7881 7806 } 7882 __pyx_t_3 1 = __pyx_t_34;7807 __pyx_t_30 = __pyx_t_33; 7883 7808 } else { 7884 __pyx_t_3 1= __pyx_t_13;7885 } 7886 if (__pyx_t_3 1) {7809 __pyx_t_30 = __pyx_t_13; 7810 } 7811 if (__pyx_t_30) { 7887 7812 7888 7813 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":161 … … 7905 7830 * (0.0 <= tr < intersect_t): 7906 7831 */ 7832 __pyx_t_34 = __pyx_v_x; 7907 7833 __pyx_t_35 = __pyx_v_x; 7908 7834 __pyx_t_36 = __pyx_v_x; 7909 __pyx_t_37 = __pyx_v_x; 7910 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_36, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_37, __pyx_bstride_0_v)))); 7911 __pyx_t_31 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_35, __pyx_bstride_0_left_edge)) <= __pyx_t_18); 7912 if (__pyx_t_31) { 7913 __pyx_t_38 = __pyx_v_x; 7914 __pyx_t_31 = (__pyx_t_18 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_38, __pyx_bstride_0_right_edge))); 7915 } 7916 if (__pyx_t_31) { 7835 __pyx_t_25 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_35, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_36, __pyx_bstride_0_v)))); 7836 __pyx_t_30 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_34, __pyx_bstride_0_left_edge)) <= __pyx_t_25); 7837 if (__pyx_t_30) { 7838 __pyx_t_37 = __pyx_v_x; 7839 __pyx_t_30 = (__pyx_t_25 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_37, __pyx_bstride_0_right_edge))); 7840 } 7841 if (__pyx_t_30) { 7917 7842 7918 7843 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":163 … … 7923 7848 * intersect_t = tr 7924 7849 */ 7850 __pyx_t_38 = __pyx_v_y; 7925 7851 __pyx_t_39 = __pyx_v_y; 7926 7852 __pyx_t_40 = __pyx_v_y; 7927 __pyx_t_41 = __pyx_v_y; 7928 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_40, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_41, __pyx_bstride_0_v)))); 7929 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_39, __pyx_bstride_0_left_edge)) <= __pyx_t_18); 7853 __pyx_t_25 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_39, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_40, __pyx_bstride_0_v)))); 7854 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_38, __pyx_bstride_0_left_edge)) <= __pyx_t_25); 7930 7855 if (__pyx_t_13) { 7931 __pyx_t_4 2= __pyx_v_y;7932 __pyx_t_13 = (__pyx_t_ 18 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_42, __pyx_bstride_0_right_edge)));7856 __pyx_t_41 = __pyx_v_y; 7857 __pyx_t_13 = (__pyx_t_25 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_41, __pyx_bstride_0_right_edge))); 7933 7858 } 7934 7859 if (__pyx_t_13) { … … 7941 7866 * # if fully enclosed 7942 7867 */ 7943 __pyx_t_3 4= (0.0 <= __pyx_v_tr);7944 if (__pyx_t_3 4) {7945 __pyx_t_3 4= (__pyx_v_tr < __pyx_v_intersect_t);7868 __pyx_t_33 = (0.0 <= __pyx_v_tr); 7869 if (__pyx_t_33) { 7870 __pyx_t_33 = (__pyx_v_tr < __pyx_v_intersect_t); 7946 7871 } 7947 __pyx_t_3 3 = __pyx_t_34;7872 __pyx_t_32 = __pyx_t_33; 7948 7873 } else { 7949 __pyx_t_3 3= __pyx_t_13;7874 __pyx_t_32 = __pyx_t_13; 7950 7875 } 7951 __pyx_t_13 = __pyx_t_3 3;7876 __pyx_t_13 = __pyx_t_32; 7952 7877 } else { 7953 __pyx_t_13 = __pyx_t_3 1;7878 __pyx_t_13 = __pyx_t_30; 7954 7879 } 7955 7880 if (__pyx_t_13) { … … 7975 7900 * (left_edge[2] <= u[2] <= right_edge[2]): 7976 7901 */ 7902 __pyx_t_42 = 0; 7977 7903 __pyx_t_43 = 0; 7978 __pyx_t_44 = 0; 7979 __pyx_t_18 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_44, __pyx_bstride_0_u)); 7980 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_43, __pyx_bstride_0_left_edge)) <= __pyx_t_18); 7904 __pyx_t_25 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_43, __pyx_bstride_0_u)); 7905 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_42, __pyx_bstride_0_left_edge)) <= __pyx_t_25); 7981 7906 if (__pyx_t_13) { 7982 __pyx_t_4 5= 0;7983 __pyx_t_13 = (__pyx_t_ 18 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_45, __pyx_bstride_0_right_edge)));7907 __pyx_t_44 = 0; 7908 __pyx_t_13 = (__pyx_t_25 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_44, __pyx_bstride_0_right_edge))); 7984 7909 } 7985 7910 if (__pyx_t_13) { … … 7992 7917 * intersect_t = 0.0 7993 7918 */ 7919 __pyx_t_45 = 1; 7994 7920 __pyx_t_46 = 1; 7995 __pyx_t_47 = 1; 7996 __pyx_t_18 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_47, __pyx_bstride_0_u)); 7997 __pyx_t_31 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_46, __pyx_bstride_0_left_edge)) <= __pyx_t_18); 7998 if (__pyx_t_31) { 7999 __pyx_t_48 = 1; 8000 __pyx_t_31 = (__pyx_t_18 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_48, __pyx_bstride_0_right_edge))); 8001 } 8002 if (__pyx_t_31) { 7921 __pyx_t_25 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_46, __pyx_bstride_0_u)); 7922 __pyx_t_30 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_45, __pyx_bstride_0_left_edge)) <= __pyx_t_25); 7923 if (__pyx_t_30) { 7924 __pyx_t_47 = 1; 7925 __pyx_t_30 = (__pyx_t_25 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_47, __pyx_bstride_0_right_edge))); 7926 } 7927 if (__pyx_t_30) { 8003 7928 8004 7929 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":169 … … 8009 7934 * if not (0 <= intersect_t <= 1): return 8010 7935 */ 7936 __pyx_t_48 = 2; 8011 7937 __pyx_t_49 = 2; 8012 __pyx_t_50 = 2; 8013 __pyx_t_18 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_50, __pyx_bstride_0_u)); 8014 __pyx_t_33 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_49, __pyx_bstride_0_left_edge)) <= __pyx_t_18); 8015 if (__pyx_t_33) { 8016 __pyx_t_51 = 2; 8017 __pyx_t_33 = (__pyx_t_18 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_51, __pyx_bstride_0_right_edge))); 7938 __pyx_t_25 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_49, __pyx_bstride_0_u)); 7939 __pyx_t_32 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_48, __pyx_bstride_0_left_edge)) <= __pyx_t_25); 7940 if (__pyx_t_32) { 7941 __pyx_t_50 = 2; 7942 __pyx_t_32 = (__pyx_t_25 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_50, __pyx_bstride_0_right_edge))); 8018 7943 } 8019 __pyx_t_3 4 = __pyx_t_33;7944 __pyx_t_33 = __pyx_t_32; 8020 7945 } else { 8021 __pyx_t_3 4 = __pyx_t_31;8022 } 8023 __pyx_t_3 1 = __pyx_t_34;7946 __pyx_t_33 = __pyx_t_30; 7947 } 7948 __pyx_t_30 = __pyx_t_33; 8024 7949 } else { 8025 __pyx_t_3 1= __pyx_t_13;8026 } 8027 if (__pyx_t_3 1) {7950 __pyx_t_30 = __pyx_t_13; 7951 } 7952 if (__pyx_t_30) { 8028 7953 8029 7954 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":170 … … 8046 7971 * intersect = u + intersect_t * v 8047 7972 */ 8048 __pyx_t_3 1= (0 <= __pyx_v_intersect_t);8049 if (__pyx_t_3 1) {8050 __pyx_t_3 1= (__pyx_v_intersect_t <= 1);8051 } 8052 __pyx_t_13 = (!__pyx_t_3 1);7973 __pyx_t_30 = (0 <= __pyx_v_intersect_t); 7974 if (__pyx_t_30) { 7975 __pyx_t_30 = (__pyx_v_intersect_t <= 1); 7976 } 7977 __pyx_t_13 = (!__pyx_t_30); 8053 7978 if (__pyx_t_13) { 8054 7979 __Pyx_XDECREF(__pyx_r); … … 8081 8006 __pyx_t_11 = __Pyx_GetBufferAndValidate(&__pyx_bstruct_intersect, (PyObject*)__pyx_t_10, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack); 8082 8007 if (unlikely(__pyx_t_11 < 0)) { 8083 PyErr_Fetch(&__pyx_t_5 2, &__pyx_t_53, &__pyx_t_54);8008 PyErr_Fetch(&__pyx_t_51, &__pyx_t_52, &__pyx_t_53); 8084 8009 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_intersect, (PyObject*)__pyx_v_intersect, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) { 8085 Py_XDECREF(__pyx_t_5 2); Py_XDECREF(__pyx_t_53); Py_XDECREF(__pyx_t_54);8010 Py_XDECREF(__pyx_t_51); Py_XDECREF(__pyx_t_52); Py_XDECREF(__pyx_t_53); 8086 8011 __Pyx_RaiseBufferFallbackError(); 8087 8012 } else { 8088 PyErr_Restore(__pyx_t_5 2, __pyx_t_53, __pyx_t_54);8013 PyErr_Restore(__pyx_t_51, __pyx_t_52, __pyx_t_53); 8089 8014 } 8090 8015 } … … 8120 8045 __Pyx_GOTREF(__pyx_t_1); 8121 8046 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; 8047 __pyx_t_54 = __pyx_v_i; 8122 8048 __pyx_t_55 = __pyx_v_i; 8123 8049 __pyx_t_56 = __pyx_v_i; 8124 8050 __pyx_t_57 = __pyx_v_i; 8125 __pyx_t_18 = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_intersect.buf, __pyx_t_55, __pyx_bstride_0_intersect)) + (1e-08 * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_56, __pyx_bstride_0_dx)))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_57, __pyx_bstride_0_left_edge))); 8126 __pyx_t_58 = __pyx_v_i; 8127 __pyx_t_20 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_58, __pyx_bstride_0_dx)); 8128 if (unlikely(__pyx_t_20 == 0)) { 8129 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 8130 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8131 } 8132 __pyx_t_5 = PyFloat_FromDouble((__pyx_t_18 / __pyx_t_20)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8051 __pyx_t_5 = PyFloat_FromDouble(((((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_intersect.buf, __pyx_t_54, __pyx_bstride_0_intersect)) + (1e-08 * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_55, __pyx_bstride_0_dx)))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_56, __pyx_bstride_0_left_edge))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_57, __pyx_bstride_0_dx)))); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8133 8052 __Pyx_GOTREF(__pyx_t_5); 8134 8053 __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;} … … 8141 8060 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 8142 8061 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 8143 __pyx_t_5 9 = __Pyx_PyInt_from_py_npy_int64(__pyx_t_5); if (unlikely((__pyx_t_59== (npy_int64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}8062 __pyx_t_58 = __Pyx_PyInt_from_py_npy_int64(__pyx_t_5); if (unlikely((__pyx_t_58 == (npy_int64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8144 8063 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; 8145 __pyx_t_ 60= __pyx_v_i;8146 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_ 60, __pyx_bstride_0_cur_ind) = __pyx_t_59;8064 __pyx_t_59 = __pyx_v_i; 8065 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_59, __pyx_bstride_0_cur_ind) = __pyx_t_58; 8147 8066 8148 8067 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":176 … … 8153 8072 * cur_ind[i] = grid_mask.shape[i] - 1 8154 8073 */ 8074 __pyx_t_60 = __pyx_v_i; 8155 8075 __pyx_t_61 = __pyx_v_i; 8156 8076 __pyx_t_62 = __pyx_v_i; … … 8158 8078 __pyx_t_64 = __pyx_v_i; 8159 8079 __pyx_t_65 = __pyx_v_i; 8160 __pyx_t_20 = (((((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_61, __pyx_bstride_0_cur_ind)) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_62, __pyx_bstride_0_step))) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_63, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_64, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_65, __pyx_bstride_0_u)));8161 8080 __pyx_t_66 = __pyx_v_i; 8162 __pyx_t_18 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_66, __pyx_bstride_0_v)); 8163 if (unlikely(__pyx_t_18 == 0)) { 8164 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 8165 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8166 } 8167 __pyx_t_67 = __pyx_v_i; 8168 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_67, __pyx_bstride_0_tmax) = (__pyx_t_20 / __pyx_t_18); 8081 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_66, __pyx_bstride_0_tmax) = ((((((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_60, __pyx_bstride_0_cur_ind)) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_61, __pyx_bstride_0_step))) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_62, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_63, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_64, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_65, __pyx_bstride_0_v))); 8169 8082 8170 8083 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":177 … … 8175 8088 * if step[i] > 0: tmax[i] = (((cur_ind[i]+1)*dx[i])+left_edge[i]-u[i])/v[i] 8176 8089 */ 8177 __pyx_t_6 8= __pyx_v_i;8178 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_6 8, __pyx_bstride_0_cur_ind)) == (__pyx_v_grid_mask->dimensions[__pyx_v_i]));8090 __pyx_t_67 = __pyx_v_i; 8091 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_67, __pyx_bstride_0_cur_ind)) == (__pyx_v_grid_mask->dimensions[__pyx_v_i])); 8179 8092 if (__pyx_t_13) { 8180 __pyx_t_6 9= __pyx_v_i;8181 __pyx_t_3 1 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_69, __pyx_bstride_0_step)) < 0);8182 __pyx_t_3 4 = __pyx_t_31;8093 __pyx_t_68 = __pyx_v_i; 8094 __pyx_t_30 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_68, __pyx_bstride_0_step)) < 0); 8095 __pyx_t_33 = __pyx_t_30; 8183 8096 } else { 8184 __pyx_t_3 4= __pyx_t_13;8185 } 8186 if (__pyx_t_3 4) {8097 __pyx_t_33 = __pyx_t_13; 8098 } 8099 if (__pyx_t_33) { 8187 8100 8188 8101 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":178 … … 8193 8106 * if step[i] < 0: tmax[i] = (((cur_ind[i]+0)*dx[i])+left_edge[i]-u[i])/v[i] 8194 8107 */ 8195 __pyx_t_ 70= __pyx_v_i;8196 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_ 70, __pyx_bstride_0_cur_ind) = ((__pyx_v_grid_mask->dimensions[__pyx_v_i]) - 1);8108 __pyx_t_69 = __pyx_v_i; 8109 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_69, __pyx_bstride_0_cur_ind) = ((__pyx_v_grid_mask->dimensions[__pyx_v_i]) - 1); 8197 8110 goto __pyx_L15; 8198 8111 } … … 8206 8119 * tdelta[i] = (dx[i]/v[i]) 8207 8120 */ 8208 __pyx_t_71 = __pyx_v_i; 8209 __pyx_t_34 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_71, __pyx_bstride_0_step)) > 0); 8210 if (__pyx_t_34) { 8121 __pyx_t_70 = __pyx_v_i; 8122 __pyx_t_33 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_70, __pyx_bstride_0_step)) > 0); 8123 if (__pyx_t_33) { 8124 __pyx_t_71 = __pyx_v_i; 8211 8125 __pyx_t_72 = __pyx_v_i; 8212 8126 __pyx_t_73 = __pyx_v_i; 8213 8127 __pyx_t_74 = __pyx_v_i; 8214 8128 __pyx_t_75 = __pyx_v_i; 8215 __pyx_t_18 = (((((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_72, __pyx_bstride_0_cur_ind)) + 1) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_73, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_74, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_75, __pyx_bstride_0_u)));8216 8129 __pyx_t_76 = __pyx_v_i; 8217 __pyx_t_20 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_76, __pyx_bstride_0_v)); 8218 if (unlikely(__pyx_t_20 == 0)) { 8219 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 8220 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8221 } 8222 __pyx_t_77 = __pyx_v_i; 8223 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_77, __pyx_bstride_0_tmax) = (__pyx_t_18 / __pyx_t_20); 8130 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_76, __pyx_bstride_0_tmax) = ((((((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_71, __pyx_bstride_0_cur_ind)) + 1) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_72, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_73, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_74, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_75, __pyx_bstride_0_v))); 8224 8131 goto __pyx_L16; 8225 8132 } … … 8233 8140 * if tdelta[i] < 0: tdelta[i] *= -1 8234 8141 */ 8235 __pyx_t_78 = __pyx_v_i; 8236 __pyx_t_34 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_78, __pyx_bstride_0_step)) < 0); 8237 if (__pyx_t_34) { 8142 __pyx_t_77 = __pyx_v_i; 8143 __pyx_t_33 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_77, __pyx_bstride_0_step)) < 0); 8144 if (__pyx_t_33) { 8145 __pyx_t_78 = __pyx_v_i; 8238 8146 __pyx_t_79 = __pyx_v_i; 8239 8147 __pyx_t_80 = __pyx_v_i; 8240 8148 __pyx_t_81 = __pyx_v_i; 8241 8149 __pyx_t_82 = __pyx_v_i; 8242 __pyx_t_20 = (((((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_79, __pyx_bstride_0_cur_ind)) + 0) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_80, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_81, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_82, __pyx_bstride_0_u)));8243 8150 __pyx_t_83 = __pyx_v_i; 8244 __pyx_t_18 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_83, __pyx_bstride_0_v)); 8245 if (unlikely(__pyx_t_18 == 0)) { 8246 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 8247 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8248 } 8249 __pyx_t_84 = __pyx_v_i; 8250 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_84, __pyx_bstride_0_tmax) = (__pyx_t_20 / __pyx_t_18); 8151 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_83, __pyx_bstride_0_tmax) = ((((((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_78, __pyx_bstride_0_cur_ind)) + 0) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_79, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_80, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_81, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_82, __pyx_bstride_0_v))); 8251 8152 goto __pyx_L17; 8252 8153 } … … 8260 8161 * # The variable intersect contains the point we first pierce the grid 8261 8162 */ 8163 __pyx_t_84 = __pyx_v_i; 8262 8164 __pyx_t_85 = __pyx_v_i; 8263 __pyx_t_18 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_85, __pyx_bstride_0_dx));8264 8165 __pyx_t_86 = __pyx_v_i; 8265 __pyx_t_20 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_86, __pyx_bstride_0_v)); 8266 if (unlikely(__pyx_t_20 == 0)) { 8267 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 8268 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 8269 } 8270 __pyx_t_87 = __pyx_v_i; 8271 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_87, __pyx_bstride_0_tdelta) = (__pyx_t_18 / __pyx_t_20); 8166 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_86, __pyx_bstride_0_tdelta) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_84, __pyx_bstride_0_dx)) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_85, __pyx_bstride_0_v))); 8272 8167 8273 8168 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":182 … … 8278 8173 * enter_t = intersect_t 8279 8174 */ 8280 __pyx_t_8 8= __pyx_v_i;8281 __pyx_t_3 4 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_88, __pyx_bstride_0_tdelta)) < 0);8282 if (__pyx_t_3 4) {8283 __pyx_t_8 9= __pyx_v_i;8284 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_8 9, __pyx_bstride_0_tdelta) *= -1;8175 __pyx_t_87 = __pyx_v_i; 8176 __pyx_t_33 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_87, __pyx_bstride_0_tdelta)) < 0); 8177 if (__pyx_t_33) { 8178 __pyx_t_88 = __pyx_v_i; 8179 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_88, __pyx_bstride_0_tdelta) *= -1; 8285 8180 goto __pyx_L18; 8286 8181 } … … 8305 8200 */ 8306 8201 while (1) { 8307 __pyx_t_3 4= 1;8308 if (!__pyx_t_3 4) break;8202 __pyx_t_33 = 1; 8203 if (!__pyx_t_33) break; 8309 8204 8310 8205 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":186 … … 8315 8210 * (not (0 <= cur_ind[2] < grid_mask.shape[2])): 8316 8211 */ 8317 __pyx_t_ 90= 0;8318 __pyx_t_5 9 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_90, __pyx_bstride_0_cur_ind));8319 __pyx_t_3 4 = (0 <= __pyx_t_59);8320 if (__pyx_t_3 4) {8321 __pyx_t_3 4 = (__pyx_t_59< (__pyx_v_grid_mask->dimensions[0]));8322 } 8323 __pyx_t_13 = (!__pyx_t_3 4);8212 __pyx_t_89 = 0; 8213 __pyx_t_58 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_89, __pyx_bstride_0_cur_ind)); 8214 __pyx_t_33 = (0 <= __pyx_t_58); 8215 if (__pyx_t_33) { 8216 __pyx_t_33 = (__pyx_t_58 < (__pyx_v_grid_mask->dimensions[0])); 8217 } 8218 __pyx_t_13 = (!__pyx_t_33); 8324 8219 if (!__pyx_t_13) { 8325 8220 … … 8331 8226 * break 8332 8227 */ 8333 __pyx_t_9 1= 1;8334 __pyx_t_5 9 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_91, __pyx_bstride_0_cur_ind));8335 __pyx_t_3 4 = (0 <= __pyx_t_59);8336 if (__pyx_t_3 4) {8337 __pyx_t_3 4 = (__pyx_t_59< (__pyx_v_grid_mask->dimensions[1]));8228 __pyx_t_90 = 1; 8229 __pyx_t_58 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_90, __pyx_bstride_0_cur_ind)); 8230 __pyx_t_33 = (0 <= __pyx_t_58); 8231 if (__pyx_t_33) { 8232 __pyx_t_33 = (__pyx_t_58 < (__pyx_v_grid_mask->dimensions[1])); 8338 8233 } 8339 __pyx_t_3 1 = (!__pyx_t_34);8340 if (!__pyx_t_3 1) {8234 __pyx_t_30 = (!__pyx_t_33); 8235 if (!__pyx_t_30) { 8341 8236 8342 8237 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":188 … … 8347 8242 * # Note that we are calculating t on the fly, but we get *negative* t 8348 8243 */ 8349 __pyx_t_9 2= 2;8350 __pyx_t_5 9 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_92, __pyx_bstride_0_cur_ind));8351 __pyx_t_3 4 = (0 <= __pyx_t_59);8352 if (__pyx_t_3 4) {8353 __pyx_t_3 4 = (__pyx_t_59< (__pyx_v_grid_mask->dimensions[2]));8244 __pyx_t_91 = 2; 8245 __pyx_t_58 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_91, __pyx_bstride_0_cur_ind)); 8246 __pyx_t_33 = (0 <= __pyx_t_58); 8247 if (__pyx_t_33) { 8248 __pyx_t_33 = (__pyx_t_58 < (__pyx_v_grid_mask->dimensions[2])); 8354 8249 } 8355 __pyx_t_3 3 = (!__pyx_t_34);8356 __pyx_t_3 4 = __pyx_t_33;8250 __pyx_t_32 = (!__pyx_t_33); 8251 __pyx_t_33 = __pyx_t_32; 8357 8252 } else { 8358 __pyx_t_3 4 = __pyx_t_31;8253 __pyx_t_33 = __pyx_t_30; 8359 8254 } 8360 __pyx_t_3 1 = __pyx_t_34;8255 __pyx_t_30 = __pyx_t_33; 8361 8256 } else { 8362 __pyx_t_3 1= __pyx_t_13;8363 } 8364 if (__pyx_t_3 1) {8257 __pyx_t_30 = __pyx_t_13; 8258 } 8259 if (__pyx_t_30) { 8365 8260 8366 8261 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":189 … … 8383 8278 * grid_dt[cur_ind[0], cur_ind[1], cur_ind[2]] = 1.0 - enter_t 8384 8279 */ 8385 __pyx_t_93 = 0; 8386 __pyx_t_94 = 1; 8387 __pyx_t_95 = 2; 8388 __pyx_t_59 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_93, __pyx_bstride_0_cur_ind)); 8280 __pyx_t_92 = 0; 8281 __pyx_t_93 = 1; 8282 __pyx_t_94 = 2; 8283 __pyx_t_58 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_92, __pyx_bstride_0_cur_ind)); 8284 __pyx_t_95 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_93, __pyx_bstride_0_cur_ind)); 8389 8285 __pyx_t_96 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_94, __pyx_bstride_0_cur_ind)); 8390 __pyx_t_97 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_95, __pyx_bstride_0_cur_ind)); 8391 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_int_t *, __pyx_bstruct_grid_mask.buf, __pyx_t_59, __pyx_bstride_0_grid_mask, __pyx_t_96, __pyx_bstride_1_grid_mask, __pyx_t_97, __pyx_bstride_2_grid_mask) = 1; 8286 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_int_t *, __pyx_bstruct_grid_mask.buf, __pyx_t_58, __pyx_bstride_0_grid_mask, __pyx_t_95, __pyx_bstride_1_grid_mask, __pyx_t_96, __pyx_bstride_2_grid_mask) = 1; 8392 8287 8393 8288 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":194 … … 8398 8293 * break 8399 8294 */ 8400 __pyx_t_9 8= 0;8401 __pyx_t_3 1 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_98, __pyx_bstride_0_tmax)) > 1.0);8402 if (__pyx_t_3 1) {8403 __pyx_t_9 9= 1;8404 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_9 9, __pyx_bstride_0_tmax)) > 1.0);8295 __pyx_t_97 = 0; 8296 __pyx_t_30 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_97, __pyx_bstride_0_tmax)) > 1.0); 8297 if (__pyx_t_30) { 8298 __pyx_t_98 = 1; 8299 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_98, __pyx_bstride_0_tmax)) > 1.0); 8405 8300 if (__pyx_t_13) { 8406 __pyx_t_ 100= 2;8407 __pyx_t_3 4 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_100, __pyx_bstride_0_tmax)) > 1.0);8408 __pyx_t_3 3 = __pyx_t_34;8301 __pyx_t_99 = 2; 8302 __pyx_t_33 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_99, __pyx_bstride_0_tmax)) > 1.0); 8303 __pyx_t_32 = __pyx_t_33; 8409 8304 } else { 8410 __pyx_t_3 3= __pyx_t_13;8305 __pyx_t_32 = __pyx_t_13; 8411 8306 } 8412 __pyx_t_13 = __pyx_t_3 3;8307 __pyx_t_13 = __pyx_t_32; 8413 8308 } else { 8414 __pyx_t_13 = __pyx_t_3 1;8309 __pyx_t_13 = __pyx_t_30; 8415 8310 } 8416 8311 if (__pyx_t_13) { … … 8423 8318 * if tmax[0] < tmax[1]: 8424 8319 */ 8425 __pyx_t_101 = 0; 8426 __pyx_t_102 = 1; 8427 __pyx_t_103 = 2; 8320 __pyx_t_100 = 0; 8321 __pyx_t_101 = 1; 8322 __pyx_t_102 = 2; 8323 __pyx_t_103 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_100, __pyx_bstride_0_cur_ind)); 8428 8324 __pyx_t_104 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_101, __pyx_bstride_0_cur_ind)); 8429 8325 __pyx_t_105 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_102, __pyx_bstride_0_cur_ind)); 8430 __pyx_t_106 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_103, __pyx_bstride_0_cur_ind)); 8431 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_104, __pyx_bstride_0_grid_dt, __pyx_t_105, __pyx_bstride_1_grid_dt, __pyx_t_106, __pyx_bstride_2_grid_dt) = (1.0 - __pyx_v_enter_t); 8326 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_103, __pyx_bstride_0_grid_dt, __pyx_t_104, __pyx_bstride_1_grid_dt, __pyx_t_105, __pyx_bstride_2_grid_dt) = (1.0 - __pyx_v_enter_t); 8432 8327 8433 8328 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":196 … … 8450 8345 * grid_t[cur_ind[0], cur_ind[1], cur_ind[2]] = enter_t 8451 8346 */ 8452 __pyx_t_10 7= 0;8453 __pyx_t_10 8= 1;8454 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_10 7, __pyx_bstride_0_tmax)) < (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_108, __pyx_bstride_0_tmax)));8347 __pyx_t_106 = 0; 8348 __pyx_t_107 = 1; 8349 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_106, __pyx_bstride_0_tmax)) < (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_107, __pyx_bstride_0_tmax))); 8455 8350 if (__pyx_t_13) { 8456 8351 … … 8462 8357 * grid_dt[cur_ind[0], cur_ind[1], cur_ind[2]] = tmax[0] - enter_t 8463 8358 */ 8464 __pyx_t_10 9= 0;8465 __pyx_t_1 10= 2;8466 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_10 9, __pyx_bstride_0_tmax)) < (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_110, __pyx_bstride_0_tmax)));8359 __pyx_t_108 = 0; 8360 __pyx_t_109 = 2; 8361 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_108, __pyx_bstride_0_tmax)) < (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_109, __pyx_bstride_0_tmax))); 8467 8362 if (__pyx_t_13) { 8468 8363 … … 8474 8369 * enter_t = tmax[0] 8475 8370 */ 8476 __pyx_t_111 = 0; 8477 __pyx_t_112 = 1; 8478 __pyx_t_113 = 2; 8371 __pyx_t_110 = 0; 8372 __pyx_t_111 = 1; 8373 __pyx_t_112 = 2; 8374 __pyx_t_113 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_110, __pyx_bstride_0_cur_ind)); 8479 8375 __pyx_t_114 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_111, __pyx_bstride_0_cur_ind)); 8480 8376 __pyx_t_115 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_112, __pyx_bstride_0_cur_ind)); 8481 __pyx_t_116 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_113, __pyx_bstride_0_cur_ind)); 8482 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_114, __pyx_bstride_0_grid_t, __pyx_t_115, __pyx_bstride_1_grid_t, __pyx_t_116, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8377 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_113, __pyx_bstride_0_grid_t, __pyx_t_114, __pyx_bstride_1_grid_t, __pyx_t_115, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8483 8378 8484 8379 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":200 … … 8489 8384 * tmax[0] += tdelta[0] 8490 8385 */ 8386 __pyx_t_116 = 0; 8491 8387 __pyx_t_117 = 0; 8492 __pyx_t_118 = 0;8493 __pyx_t_119 = 1;8494 __pyx_t_120 = 2;8388 __pyx_t_118 = 1; 8389 __pyx_t_119 = 2; 8390 __pyx_t_120 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_117, __pyx_bstride_0_cur_ind)); 8495 8391 __pyx_t_121 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_118, __pyx_bstride_0_cur_ind)); 8496 8392 __pyx_t_122 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_119, __pyx_bstride_0_cur_ind)); 8497 __pyx_t_123 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_120, __pyx_bstride_0_cur_ind)); 8498 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_121, __pyx_bstride_0_grid_dt, __pyx_t_122, __pyx_bstride_1_grid_dt, __pyx_t_123, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_117, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8393 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_120, __pyx_bstride_0_grid_dt, __pyx_t_121, __pyx_bstride_1_grid_dt, __pyx_t_122, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_116, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8499 8394 8500 8395 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":201 … … 8505 8400 * cur_ind[0] += step[0] 8506 8401 */ 8507 __pyx_t_12 4= 0;8508 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_12 4, __pyx_bstride_0_tmax));8402 __pyx_t_123 = 0; 8403 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_123, __pyx_bstride_0_tmax)); 8509 8404 8510 8405 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":202 … … 8515 8410 * else: 8516 8411 */ 8412 __pyx_t_124 = 0; 8517 8413 __pyx_t_125 = 0; 8518 __pyx_t_126 = 0; 8519 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_126, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_125, __pyx_bstride_0_tdelta)); 8414 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_125, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_124, __pyx_bstride_0_tdelta)); 8520 8415 8521 8416 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":203 … … 8526 8421 * grid_t[cur_ind[0], cur_ind[1], cur_ind[2]] = enter_t 8527 8422 */ 8423 __pyx_t_126 = 0; 8528 8424 __pyx_t_127 = 0; 8529 __pyx_t_128 = 0; 8530 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_128, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_127, __pyx_bstride_0_step)); 8425 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_127, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_126, __pyx_bstride_0_step)); 8531 8426 goto __pyx_L24; 8532 8427 } … … 8540 8435 * enter_t = tmax[2] 8541 8436 */ 8542 __pyx_t_129 = 0; 8543 __pyx_t_130 = 1; 8544 __pyx_t_131 = 2; 8437 __pyx_t_128 = 0; 8438 __pyx_t_129 = 1; 8439 __pyx_t_130 = 2; 8440 __pyx_t_131 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_128, __pyx_bstride_0_cur_ind)); 8545 8441 __pyx_t_132 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_129, __pyx_bstride_0_cur_ind)); 8546 8442 __pyx_t_133 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_130, __pyx_bstride_0_cur_ind)); 8547 __pyx_t_134 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_131, __pyx_bstride_0_cur_ind)); 8548 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_132, __pyx_bstride_0_grid_t, __pyx_t_133, __pyx_bstride_1_grid_t, __pyx_t_134, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8443 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_131, __pyx_bstride_0_grid_t, __pyx_t_132, __pyx_bstride_1_grid_t, __pyx_t_133, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8549 8444 8550 8445 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":206 … … 8555 8450 * tmax[2] += tdelta[2] 8556 8451 */ 8557 __pyx_t_135 = 2; 8558 __pyx_t_136 = 0; 8559 __pyx_t_137 = 1; 8560 __pyx_t_138 = 2; 8452 __pyx_t_134 = 2; 8453 __pyx_t_135 = 0; 8454 __pyx_t_136 = 1; 8455 __pyx_t_137 = 2; 8456 __pyx_t_138 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_135, __pyx_bstride_0_cur_ind)); 8561 8457 __pyx_t_139 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_136, __pyx_bstride_0_cur_ind)); 8562 8458 __pyx_t_140 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_137, __pyx_bstride_0_cur_ind)); 8563 __pyx_t_141 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_138, __pyx_bstride_0_cur_ind)); 8564 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_139, __pyx_bstride_0_grid_dt, __pyx_t_140, __pyx_bstride_1_grid_dt, __pyx_t_141, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_135, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8459 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_138, __pyx_bstride_0_grid_dt, __pyx_t_139, __pyx_bstride_1_grid_dt, __pyx_t_140, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_134, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8565 8460 8566 8461 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":207 … … 8571 8466 * cur_ind[2] += step[2] 8572 8467 */ 8573 __pyx_t_14 2= 2;8574 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_14 2, __pyx_bstride_0_tmax));8468 __pyx_t_141 = 2; 8469 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_141, __pyx_bstride_0_tmax)); 8575 8470 8576 8471 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":208 … … 8581 8476 * else: 8582 8477 */ 8478 __pyx_t_142 = 2; 8583 8479 __pyx_t_143 = 2; 8584 __pyx_t_144 = 2; 8585 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_144, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_143, __pyx_bstride_0_tdelta)); 8480 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_143, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_142, __pyx_bstride_0_tdelta)); 8586 8481 8587 8482 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":209 … … 8592 8487 * if tmax[1] < tmax[2]: 8593 8488 */ 8489 __pyx_t_144 = 2; 8594 8490 __pyx_t_145 = 2; 8595 __pyx_t_146 = 2; 8596 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_146, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_145, __pyx_bstride_0_step)); 8491 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_145, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_144, __pyx_bstride_0_step)); 8597 8492 } 8598 8493 __pyx_L24:; … … 8608 8503 * grid_dt[cur_ind[0], cur_ind[1], cur_ind[2]] = tmax[1] - enter_t 8609 8504 */ 8610 __pyx_t_14 7= 1;8611 __pyx_t_14 8= 2;8612 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_14 7, __pyx_bstride_0_tmax)) < (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_148, __pyx_bstride_0_tmax)));8505 __pyx_t_146 = 1; 8506 __pyx_t_147 = 2; 8507 __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_146, __pyx_bstride_0_tmax)) < (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_147, __pyx_bstride_0_tmax))); 8613 8508 if (__pyx_t_13) { 8614 8509 … … 8620 8515 * enter_t = tmax[1] 8621 8516 */ 8622 __pyx_t_149 = 0; 8623 __pyx_t_150 = 1; 8624 __pyx_t_151 = 2; 8517 __pyx_t_148 = 0; 8518 __pyx_t_149 = 1; 8519 __pyx_t_150 = 2; 8520 __pyx_t_151 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_148, __pyx_bstride_0_cur_ind)); 8625 8521 __pyx_t_152 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_149, __pyx_bstride_0_cur_ind)); 8626 8522 __pyx_t_153 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_150, __pyx_bstride_0_cur_ind)); 8627 __pyx_t_154 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_151, __pyx_bstride_0_cur_ind)); 8628 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_152, __pyx_bstride_0_grid_t, __pyx_t_153, __pyx_bstride_1_grid_t, __pyx_t_154, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8523 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_151, __pyx_bstride_0_grid_t, __pyx_t_152, __pyx_bstride_1_grid_t, __pyx_t_153, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8629 8524 8630 8525 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":213 … … 8635 8530 * tmax[1] += tdelta[1] 8636 8531 */ 8637 __pyx_t_155 = 1; 8638 __pyx_t_156 = 0; 8639 __pyx_t_157 = 1; 8640 __pyx_t_158 = 2; 8532 __pyx_t_154 = 1; 8533 __pyx_t_155 = 0; 8534 __pyx_t_156 = 1; 8535 __pyx_t_157 = 2; 8536 __pyx_t_158 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_155, __pyx_bstride_0_cur_ind)); 8641 8537 __pyx_t_159 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_156, __pyx_bstride_0_cur_ind)); 8642 8538 __pyx_t_160 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_157, __pyx_bstride_0_cur_ind)); 8643 __pyx_t_161 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_158, __pyx_bstride_0_cur_ind)); 8644 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_159, __pyx_bstride_0_grid_dt, __pyx_t_160, __pyx_bstride_1_grid_dt, __pyx_t_161, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_155, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8539 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_158, __pyx_bstride_0_grid_dt, __pyx_t_159, __pyx_bstride_1_grid_dt, __pyx_t_160, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_154, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8645 8540 8646 8541 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":214 … … 8651 8546 * cur_ind[1] += step[1] 8652 8547 */ 8653 __pyx_t_16 2= 1;8654 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_16 2, __pyx_bstride_0_tmax));8548 __pyx_t_161 = 1; 8549 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_161, __pyx_bstride_0_tmax)); 8655 8550 8656 8551 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":215 … … 8661 8556 * else: 8662 8557 */ 8558 __pyx_t_162 = 1; 8663 8559 __pyx_t_163 = 1; 8664 __pyx_t_164 = 1; 8665 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_164, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_163, __pyx_bstride_0_tdelta)); 8560 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_163, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_162, __pyx_bstride_0_tdelta)); 8666 8561 8667 8562 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":216 … … 8672 8567 * grid_t[cur_ind[0], cur_ind[1], cur_ind[2]] = enter_t 8673 8568 */ 8569 __pyx_t_164 = 1; 8674 8570 __pyx_t_165 = 1; 8675 __pyx_t_166 = 1; 8676 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_166, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_165, __pyx_bstride_0_step)); 8571 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_165, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_164, __pyx_bstride_0_step)); 8677 8572 goto __pyx_L25; 8678 8573 } … … 8686 8581 * enter_t = tmax[2] 8687 8582 */ 8688 __pyx_t_167 = 0; 8689 __pyx_t_168 = 1; 8690 __pyx_t_169 = 2; 8583 __pyx_t_166 = 0; 8584 __pyx_t_167 = 1; 8585 __pyx_t_168 = 2; 8586 __pyx_t_169 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_166, __pyx_bstride_0_cur_ind)); 8691 8587 __pyx_t_170 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_167, __pyx_bstride_0_cur_ind)); 8692 8588 __pyx_t_171 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_168, __pyx_bstride_0_cur_ind)); 8693 __pyx_t_172 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_169, __pyx_bstride_0_cur_ind)); 8694 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_170, __pyx_bstride_0_grid_t, __pyx_t_171, __pyx_bstride_1_grid_t, __pyx_t_172, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8589 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_t.buf, __pyx_t_169, __pyx_bstride_0_grid_t, __pyx_t_170, __pyx_bstride_1_grid_t, __pyx_t_171, __pyx_bstride_2_grid_t) = __pyx_v_enter_t; 8695 8590 8696 8591 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":219 … … 8701 8596 * tmax[2] += tdelta[2] 8702 8597 */ 8703 __pyx_t_173 = 2; 8704 __pyx_t_174 = 0; 8705 __pyx_t_175 = 1; 8706 __pyx_t_176 = 2; 8598 __pyx_t_172 = 2; 8599 __pyx_t_173 = 0; 8600 __pyx_t_174 = 1; 8601 __pyx_t_175 = 2; 8602 __pyx_t_176 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_173, __pyx_bstride_0_cur_ind)); 8707 8603 __pyx_t_177 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_174, __pyx_bstride_0_cur_ind)); 8708 8604 __pyx_t_178 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_175, __pyx_bstride_0_cur_ind)); 8709 __pyx_t_179 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_176, __pyx_bstride_0_cur_ind)); 8710 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_177, __pyx_bstride_0_grid_dt, __pyx_t_178, __pyx_bstride_1_grid_dt, __pyx_t_179, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_173, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8605 *__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dt.buf, __pyx_t_176, __pyx_bstride_0_grid_dt, __pyx_t_177, __pyx_bstride_1_grid_dt, __pyx_t_178, __pyx_bstride_2_grid_dt) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_172, __pyx_bstride_0_tmax)) - __pyx_v_enter_t); 8711 8606 8712 8607 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":220 … … 8717 8612 * cur_ind[2] += step[2] 8718 8613 */ 8719 __pyx_t_1 80= 2;8720 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_1 80, __pyx_bstride_0_tmax));8614 __pyx_t_179 = 2; 8615 __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_179, __pyx_bstride_0_tmax)); 8721 8616 8722 8617 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":221 … … 8727 8622 * return 8728 8623 */ 8624 __pyx_t_180 = 2; 8729 8625 __pyx_t_181 = 2; 8730 __pyx_t_182 = 2; 8731 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_182, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_181, __pyx_bstride_0_tdelta)); 8626 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_181, __pyx_bstride_0_tmax) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_180, __pyx_bstride_0_tdelta)); 8732 8627 8733 8628 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":222 … … 8738 8633 * 8739 8634 */ 8635 __pyx_t_182 = 2; 8740 8636 __pyx_t_183 = 2; 8741 __pyx_t_184 = 2; 8742 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_184, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_183, __pyx_bstride_0_step)); 8637 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_183, __pyx_bstride_0_cur_ind) += (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_182, __pyx_bstride_0_step)); 8743 8638 } 8744 8639 __pyx_L25:; … … 9376 9271 int __pyx_t_4; 9377 9272 int __pyx_t_5; 9378 __pyx_t_5numpy_float64_t __pyx_t_6;9273 int __pyx_t_6; 9379 9274 int __pyx_t_7; 9380 __pyx_t_5numpy_float64_t __pyx_t_8;9275 int __pyx_t_8; 9381 9276 int __pyx_t_9; 9382 9277 int __pyx_t_10; … … 9402 9297 int __pyx_t_30; 9403 9298 int __pyx_t_31; 9404 int__pyx_t_32;9405 int__pyx_t_33;9406 long__pyx_t_34;9299 long __pyx_t_32; 9300 long __pyx_t_33; 9301 __pyx_t_5numpy_float64_t __pyx_t_34; 9407 9302 long __pyx_t_35; 9408 9303 long __pyx_t_36; … … 9412 9307 long __pyx_t_40; 9413 9308 long __pyx_t_41; 9414 long__pyx_t_42;9309 int __pyx_t_42; 9415 9310 int __pyx_t_43; 9416 int __pyx_t_44;9311 PyObject *__pyx_t_44 = NULL; 9417 9312 PyObject *__pyx_t_45 = NULL; 9418 PyObject *__pyx_t_46 = NULL;9313 int __pyx_t_46; 9419 9314 int __pyx_t_47; 9420 9315 int __pyx_t_48; 9421 int __pyx_t_49;9422 PyObject *__pyx_t_50 = NULL;9423 __pyx_t_5numpy_int64_t __pyx_t_51;9316 PyObject *__pyx_t_49 = NULL; 9317 __pyx_t_5numpy_int64_t __pyx_t_50; 9318 int __pyx_t_51; 9424 9319 int __pyx_t_52; 9425 9320 int __pyx_t_53; … … 9435 9330 int __pyx_t_63; 9436 9331 int __pyx_t_64; 9437 int __pyx_t_65;9332 __pyx_t_5numpy_int64_t __pyx_t_65; 9438 9333 __pyx_t_5numpy_int64_t __pyx_t_66; 9439 __pyx_t_5numpy_int64_t__pyx_t_67;9440 long__pyx_t_68;9441 __pyx_t_5numpy_int64_t __pyx_t_69;9334 long __pyx_t_67; 9335 __pyx_t_5numpy_int64_t __pyx_t_68; 9336 int __pyx_t_69; 9442 9337 int __pyx_t_70; 9443 9338 int __pyx_t_71; 9444 int__pyx_t_72;9445 long__pyx_t_73;9446 int__pyx_t_74;9447 long__pyx_t_75;9448 int__pyx_t_76;9449 long__pyx_t_77;9450 int__pyx_t_78;9451 long__pyx_t_79;9452 int__pyx_t_80;9453 long__pyx_t_81;9454 int__pyx_t_82;9455 long__pyx_t_83;9456 int__pyx_t_84;9457 long__pyx_t_85;9458 int__pyx_t_86;9459 long__pyx_t_87;9460 int__pyx_t_88;9461 long__pyx_t_89;9462 int__pyx_t_90;9463 long__pyx_t_91;9464 int__pyx_t_92;9465 long__pyx_t_93;9466 int__pyx_t_94;9467 long__pyx_t_95;9339 long __pyx_t_72; 9340 int __pyx_t_73; 9341 long __pyx_t_74; 9342 int __pyx_t_75; 9343 long __pyx_t_76; 9344 int __pyx_t_77; 9345 long __pyx_t_78; 9346 int __pyx_t_79; 9347 long __pyx_t_80; 9348 int __pyx_t_81; 9349 long __pyx_t_82; 9350 int __pyx_t_83; 9351 long __pyx_t_84; 9352 int __pyx_t_85; 9353 long __pyx_t_86; 9354 int __pyx_t_87; 9355 long __pyx_t_88; 9356 int __pyx_t_89; 9357 long __pyx_t_90; 9358 int __pyx_t_91; 9359 long __pyx_t_92; 9360 int __pyx_t_93; 9361 long __pyx_t_94; 9362 __pyx_t_5numpy_int64_t __pyx_t_95; 9468 9363 __pyx_t_5numpy_int64_t __pyx_t_96; 9469 __pyx_t_5numpy_int64_t __pyx_t_97;9470 9364 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__u,&__pyx_n_s__v,&__pyx_n_s__left_edge,&__pyx_n_s__right_edge,&__pyx_n_s__dx,&__pyx_n_s__nshells,&__pyx_n_s__ind,&__pyx_n_s__data,&__pyx_n_s__shells,&__pyx_n_s__image,0}; 9471 9365 __Pyx_RefNannySetupContext("integrate_ray"); … … 9734 9628 * tl = (left_edge[i] - u[i])/v[i] 9735 9629 */ 9736 __pyx_v_x = __Pyx_mod_long((__pyx_v_i + 1),3);9630 __pyx_v_x = ((__pyx_v_i + 1) % 3); 9737 9631 9738 9632 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":280 … … 9743 9637 * tr = (right_edge[i] - u[i])/v[i] 9744 9638 */ 9745 __pyx_v_y = __Pyx_mod_long((__pyx_v_i + 2),3);9639 __pyx_v_y = ((__pyx_v_i + 2) % 3); 9746 9640 9747 9641 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":281 … … 9754 9648 __pyx_t_4 = __pyx_v_i; 9755 9649 __pyx_t_5 = __pyx_v_i; 9756 __pyx_t_6 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_4, __pyx_bstride_0_left_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_5, __pyx_bstride_0_u))); 9757 __pyx_t_7 = __pyx_v_i; 9758 __pyx_t_8 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_7, __pyx_bstride_0_v)); 9759 if (unlikely(__pyx_t_8 == 0)) { 9760 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 9761 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 9762 } 9763 __pyx_v_tl = (__pyx_t_6 / __pyx_t_8); 9650 __pyx_t_6 = __pyx_v_i; 9651 __pyx_v_tl = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_4, __pyx_bstride_0_left_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_5, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_6, __pyx_bstride_0_v))); 9764 9652 9765 9653 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":282 … … 9770 9658 * temp_y = (u[y] + tl*v[y]) 9771 9659 */ 9660 __pyx_t_7 = __pyx_v_i; 9661 __pyx_t_8 = __pyx_v_i; 9772 9662 __pyx_t_9 = __pyx_v_i; 9773 __pyx_t_10 = __pyx_v_i; 9774 __pyx_t_8 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_9, __pyx_bstride_0_right_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_10, __pyx_bstride_0_u))); 9775 __pyx_t_11 = __pyx_v_i; 9776 __pyx_t_6 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_11, __pyx_bstride_0_v)); 9777 if (unlikely(__pyx_t_6 == 0)) { 9778 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 9779 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 9780 } 9781 __pyx_v_tr = (__pyx_t_8 / __pyx_t_6); 9663 __pyx_v_tr = (((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_7, __pyx_bstride_0_right_edge)) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_8, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_9, __pyx_bstride_0_v))); 9782 9664 9783 9665 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":283 … … 9788 9670 * if (left_edge[x] <= temp_x) and (temp_x <= right_edge[x]) and \ 9789 9671 */ 9790 __pyx_t_1 2= __pyx_v_x;9791 __pyx_t_1 3= __pyx_v_x;9792 __pyx_v_temp_x = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_1 2, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_13, __pyx_bstride_0_v))));9672 __pyx_t_10 = __pyx_v_x; 9673 __pyx_t_11 = __pyx_v_x; 9674 __pyx_v_temp_x = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_10, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_11, __pyx_bstride_0_v)))); 9793 9675 9794 9676 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":284 … … 9799 9681 * (left_edge[y] <= temp_y) and (temp_y <= right_edge[y]) and \ 9800 9682 */ 9801 __pyx_t_1 4= __pyx_v_y;9802 __pyx_t_1 5= __pyx_v_y;9803 __pyx_v_temp_y = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_1 4, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_15, __pyx_bstride_0_v))));9683 __pyx_t_12 = __pyx_v_y; 9684 __pyx_t_13 = __pyx_v_y; 9685 __pyx_v_temp_y = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_12, __pyx_bstride_0_u)) + (__pyx_v_tl * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_13, __pyx_bstride_0_v)))); 9804 9686 9805 9687 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":285 … … 9810 9692 * (0.0 <= tl) and (tl < intersect_t): 9811 9693 */ 9812 __pyx_t_1 6= __pyx_v_x;9813 __pyx_t_3 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_1 6, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_x);9694 __pyx_t_14 = __pyx_v_x; 9695 __pyx_t_3 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_14, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_x); 9814 9696 if (__pyx_t_3) { 9815 __pyx_t_1 7= __pyx_v_x;9816 __pyx_t_1 8 = (__pyx_v_temp_x <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_17, __pyx_bstride_0_right_edge)));9817 if (__pyx_t_1 8) {9697 __pyx_t_15 = __pyx_v_x; 9698 __pyx_t_16 = (__pyx_v_temp_x <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_15, __pyx_bstride_0_right_edge))); 9699 if (__pyx_t_16) { 9818 9700 9819 9701 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":286 … … 9824 9706 * intersect_t = tl 9825 9707 */ 9826 __pyx_t_1 9= __pyx_v_y;9827 __pyx_t_ 20 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_19, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_y);9828 if (__pyx_t_ 20) {9829 __pyx_t_ 21= __pyx_v_y;9830 __pyx_t_2 2 = (__pyx_v_temp_y <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_21, __pyx_bstride_0_right_edge)));9831 if (__pyx_t_2 2) {9708 __pyx_t_17 = __pyx_v_y; 9709 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_17, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_y); 9710 if (__pyx_t_18) { 9711 __pyx_t_19 = __pyx_v_y; 9712 __pyx_t_20 = (__pyx_v_temp_y <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_19, __pyx_bstride_0_right_edge))); 9713 if (__pyx_t_20) { 9832 9714 9833 9715 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":287 … … 9838 9720 * temp_x = (u[x] + tr*v[x]) 9839 9721 */ 9840 __pyx_t_2 3= (0.0 <= __pyx_v_tl);9841 if (__pyx_t_2 3) {9842 __pyx_t_2 4= (__pyx_v_tl < __pyx_v_intersect_t);9843 __pyx_t_2 5 = __pyx_t_24;9722 __pyx_t_21 = (0.0 <= __pyx_v_tl); 9723 if (__pyx_t_21) { 9724 __pyx_t_22 = (__pyx_v_tl < __pyx_v_intersect_t); 9725 __pyx_t_23 = __pyx_t_22; 9844 9726 } else { 9845 __pyx_t_2 5 = __pyx_t_23;9727 __pyx_t_23 = __pyx_t_21; 9846 9728 } 9847 __pyx_t_2 3 = __pyx_t_25;9729 __pyx_t_21 = __pyx_t_23; 9848 9730 } else { 9849 __pyx_t_2 3 = __pyx_t_22;9731 __pyx_t_21 = __pyx_t_20; 9850 9732 } 9851 __pyx_t_2 2 = __pyx_t_23;9733 __pyx_t_20 = __pyx_t_21; 9852 9734 } else { 9853 __pyx_t_2 2 = __pyx_t_20;9735 __pyx_t_20 = __pyx_t_18; 9854 9736 } 9855 __pyx_t_ 20 = __pyx_t_22;9737 __pyx_t_18 = __pyx_t_20; 9856 9738 } else { 9857 __pyx_t_ 20 = __pyx_t_18;9739 __pyx_t_18 = __pyx_t_16; 9858 9740 } 9859 __pyx_t_1 8 = __pyx_t_20;9741 __pyx_t_16 = __pyx_t_18; 9860 9742 } else { 9861 __pyx_t_1 8= __pyx_t_3;9862 } 9863 if (__pyx_t_1 8) {9743 __pyx_t_16 = __pyx_t_3; 9744 } 9745 if (__pyx_t_16) { 9864 9746 9865 9747 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":288 … … 9882 9764 * if (left_edge[x] <= temp_x) and (temp_x <= right_edge[x]) and \ 9883 9765 */ 9884 __pyx_t_2 6= __pyx_v_x;9885 __pyx_t_2 7= __pyx_v_x;9886 __pyx_v_temp_x = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_2 6, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_27, __pyx_bstride_0_v))));9766 __pyx_t_24 = __pyx_v_x; 9767 __pyx_t_25 = __pyx_v_x; 9768 __pyx_v_temp_x = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_24, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_25, __pyx_bstride_0_v)))); 9887 9769 9888 9770 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":290 … … 9893 9775 * (left_edge[y] <= temp_y) and (temp_y <= right_edge[y]) and \ 9894 9776 */ 9895 __pyx_t_2 8= __pyx_v_y;9896 __pyx_t_2 9= __pyx_v_y;9897 __pyx_v_temp_y = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_2 8, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_29, __pyx_bstride_0_v))));9777 __pyx_t_26 = __pyx_v_y; 9778 __pyx_t_27 = __pyx_v_y; 9779 __pyx_v_temp_y = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_26, __pyx_bstride_0_u)) + (__pyx_v_tr * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_27, __pyx_bstride_0_v)))); 9898 9780 9899 9781 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":291 … … 9904 9786 * (0.0 <= tr) and (tr < intersect_t): 9905 9787 */ 9906 __pyx_t_ 30= __pyx_v_x;9907 __pyx_t_1 8 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_30, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_x);9908 if (__pyx_t_1 8) {9909 __pyx_t_ 31= __pyx_v_x;9910 __pyx_t_3 = (__pyx_v_temp_x <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_ 31, __pyx_bstride_0_right_edge)));9788 __pyx_t_28 = __pyx_v_x; 9789 __pyx_t_16 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_28, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_x); 9790 if (__pyx_t_16) { 9791 __pyx_t_29 = __pyx_v_x; 9792 __pyx_t_3 = (__pyx_v_temp_x <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_29, __pyx_bstride_0_right_edge))); 9911 9793 if (__pyx_t_3) { 9912 9794 … … 9918 9800 * intersect_t = tr 9919 9801 */ 9920 __pyx_t_3 2= __pyx_v_y;9921 __pyx_t_ 20 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_32, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_y);9922 if (__pyx_t_ 20) {9923 __pyx_t_3 3= __pyx_v_y;9924 __pyx_t_2 2 = (__pyx_v_temp_y <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_33, __pyx_bstride_0_right_edge)));9925 if (__pyx_t_2 2) {9802 __pyx_t_30 = __pyx_v_y; 9803 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_30, __pyx_bstride_0_left_edge)) <= __pyx_v_temp_y); 9804 if (__pyx_t_18) { 9805 __pyx_t_31 = __pyx_v_y; 9806 __pyx_t_20 = (__pyx_v_temp_y <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_31, __pyx_bstride_0_right_edge))); 9807 if (__pyx_t_20) { 9926 9808 9927 9809 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":293 … … 9932 9814 * # if fully enclosed 9933 9815 */ 9934 __pyx_t_2 3= (0.0 <= __pyx_v_tr);9935 if (__pyx_t_2 3) {9936 __pyx_t_2 5= (__pyx_v_tr < __pyx_v_intersect_t);9937 __pyx_t_2 4 = __pyx_t_25;9816 __pyx_t_21 = (0.0 <= __pyx_v_tr); 9817 if (__pyx_t_21) { 9818 __pyx_t_23 = (__pyx_v_tr < __pyx_v_intersect_t); 9819 __pyx_t_22 = __pyx_t_23; 9938 9820 } else { 9939 __pyx_t_2 4 = __pyx_t_23;9821 __pyx_t_22 = __pyx_t_21; 9940 9822 } 9941 __pyx_t_2 3 = __pyx_t_24;9823 __pyx_t_21 = __pyx_t_22; 9942 9824 } else { 9943 __pyx_t_2 3 = __pyx_t_22;9825 __pyx_t_21 = __pyx_t_20; 9944 9826 } 9945 __pyx_t_2 2 = __pyx_t_23;9827 __pyx_t_20 = __pyx_t_21; 9946 9828 } else { 9947 __pyx_t_2 2 = __pyx_t_20;9829 __pyx_t_20 = __pyx_t_18; 9948 9830 } 9949 __pyx_t_ 20 = __pyx_t_22;9831 __pyx_t_18 = __pyx_t_20; 9950 9832 } else { 9951 __pyx_t_ 20= __pyx_t_3;9833 __pyx_t_18 = __pyx_t_3; 9952 9834 } 9953 __pyx_t_3 = __pyx_t_ 20;9835 __pyx_t_3 = __pyx_t_18; 9954 9836 } else { 9955 __pyx_t_3 = __pyx_t_1 8;9837 __pyx_t_3 = __pyx_t_16; 9956 9838 } 9957 9839 if (__pyx_t_3) { … … 9977 9859 * (left_edge[2] <= u[2] <= right_edge[2]): 9978 9860 */ 9979 __pyx_t_3 4= 0;9980 __pyx_t_3 5= 0;9981 __pyx_t_ 6 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_35, __pyx_bstride_0_u));9982 __pyx_t_3 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_3 4, __pyx_bstride_0_left_edge)) <= __pyx_t_6);9861 __pyx_t_32 = 0; 9862 __pyx_t_33 = 0; 9863 __pyx_t_34 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_33, __pyx_bstride_0_u)); 9864 __pyx_t_3 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_32, __pyx_bstride_0_left_edge)) <= __pyx_t_34); 9983 9865 if (__pyx_t_3) { 9984 __pyx_t_3 6= 0;9985 __pyx_t_3 = (__pyx_t_ 6 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_36, __pyx_bstride_0_right_edge)));9866 __pyx_t_35 = 0; 9867 __pyx_t_3 = (__pyx_t_34 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_35, __pyx_bstride_0_right_edge))); 9986 9868 } 9987 9869 if (__pyx_t_3) { … … 9994 9876 * intersect_t = 0.0 9995 9877 */ 9878 __pyx_t_36 = 1; 9996 9879 __pyx_t_37 = 1; 9997 __pyx_t_38 = 1; 9998 __pyx_t_6 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_38, __pyx_bstride_0_u)); 9999 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_37, __pyx_bstride_0_left_edge)) <= __pyx_t_6); 10000 if (__pyx_t_18) { 10001 __pyx_t_39 = 1; 10002 __pyx_t_18 = (__pyx_t_6 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_39, __pyx_bstride_0_right_edge))); 10003 } 10004 if (__pyx_t_18) { 9880 __pyx_t_34 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_37, __pyx_bstride_0_u)); 9881 __pyx_t_16 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_36, __pyx_bstride_0_left_edge)) <= __pyx_t_34); 9882 if (__pyx_t_16) { 9883 __pyx_t_38 = 1; 9884 __pyx_t_16 = (__pyx_t_34 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_38, __pyx_bstride_0_right_edge))); 9885 } 9886 if (__pyx_t_16) { 10005 9887 10006 9888 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":298 … … 10011 9893 * if not (0 <= intersect_t <= 1): 10012 9894 */ 9895 __pyx_t_39 = 2; 10013 9896 __pyx_t_40 = 2; 10014 __pyx_t_41 = 2; 10015 __pyx_t_6 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_41, __pyx_bstride_0_u)); 10016 __pyx_t_20 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_40, __pyx_bstride_0_left_edge)) <= __pyx_t_6); 10017 if (__pyx_t_20) { 10018 __pyx_t_42 = 2; 10019 __pyx_t_20 = (__pyx_t_6 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_42, __pyx_bstride_0_right_edge))); 9897 __pyx_t_34 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_40, __pyx_bstride_0_u)); 9898 __pyx_t_18 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_39, __pyx_bstride_0_left_edge)) <= __pyx_t_34); 9899 if (__pyx_t_18) { 9900 __pyx_t_41 = 2; 9901 __pyx_t_18 = (__pyx_t_34 <= (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_41, __pyx_bstride_0_right_edge))); 10020 9902 } 10021 __pyx_t_2 2 = __pyx_t_20;9903 __pyx_t_20 = __pyx_t_18; 10022 9904 } else { 10023 __pyx_t_2 2 = __pyx_t_18;10024 } 10025 __pyx_t_1 8 = __pyx_t_22;9905 __pyx_t_20 = __pyx_t_16; 9906 } 9907 __pyx_t_16 = __pyx_t_20; 10026 9908 } else { 10027 __pyx_t_1 8= __pyx_t_3;10028 } 10029 if (__pyx_t_1 8) {9909 __pyx_t_16 = __pyx_t_3; 9910 } 9911 if (__pyx_t_16) { 10030 9912 10031 9913 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":299 … … 10048 9930 * return 10049 9931 */ 10050 __pyx_t_1 8= (0 <= __pyx_v_intersect_t);10051 if (__pyx_t_1 8) {10052 __pyx_t_1 8= (__pyx_v_intersect_t <= 1);10053 } 10054 __pyx_t_3 = (!__pyx_t_1 8);9932 __pyx_t_16 = (0 <= __pyx_v_intersect_t); 9933 if (__pyx_t_16) { 9934 __pyx_t_16 = (__pyx_v_intersect_t <= 1); 9935 } 9936 __pyx_t_3 = (!__pyx_t_16); 10055 9937 if (__pyx_t_3) { 10056 9938 … … 10078 9960 for (__pyx_t_1 = 0; __pyx_t_1 < 3; __pyx_t_1+=1) { 10079 9961 __pyx_v_i = __pyx_t_1; 9962 __pyx_t_42 = __pyx_v_i; 10080 9963 __pyx_t_43 = __pyx_v_i; 10081 __pyx_t_44 = __pyx_v_i; 10082 (__pyx_v_intersect[__pyx_v_i]) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_43, __pyx_bstride_0_u)) + (__pyx_v_intersect_t * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_44, __pyx_bstride_0_v)))); 9964 (__pyx_v_intersect[__pyx_v_i]) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_42, __pyx_bstride_0_u)) + (__pyx_v_intersect_t * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_43, __pyx_bstride_0_v)))); 10083 9965 } 10084 9966 … … 10109 9991 * if cur_ind[i] == dims[i] and step[i] < 0: 10110 9992 */ 10111 __pyx_t_45 = __Pyx_GetName(__pyx_m, __pyx_n_s__np); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 9993 __pyx_t_44 = __Pyx_GetName(__pyx_m, __pyx_n_s__np); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 9994 __Pyx_GOTREF(__pyx_t_44); 9995 __pyx_t_45 = PyObject_GetAttr(__pyx_t_44, __pyx_n_s__floor); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10112 9996 __Pyx_GOTREF(__pyx_t_45); 10113 __pyx_t_46 = PyObject_GetAttr(__pyx_t_45, __pyx_n_s__floor); if (unlikely(!__pyx_t_46)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10114 __Pyx_GOTREF(__pyx_t_46); 10115 __Pyx_DECREF(__pyx_t_45); __pyx_t_45 = 0; 9997 __Pyx_DECREF(__pyx_t_44); __pyx_t_44 = 0; 9998 __pyx_t_46 = __pyx_v_i; 10116 9999 __pyx_t_47 = __pyx_v_i; 10117 10000 __pyx_t_48 = __pyx_v_i; 10118 __pyx_t_6 = (((__pyx_v_intersect[__pyx_v_i]) + (1e-08 * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_47, __pyx_bstride_0_dx)))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_48, __pyx_bstride_0_left_edge))); 10119 __pyx_t_49 = __pyx_v_i; 10120 __pyx_t_8 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_49, __pyx_bstride_0_dx)); 10121 if (unlikely(__pyx_t_8 == 0)) { 10122 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 10123 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10124 } 10125 __pyx_t_45 = PyFloat_FromDouble((__pyx_t_6 / __pyx_t_8)); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10126 __Pyx_GOTREF(__pyx_t_45); 10127 __pyx_t_50 = PyTuple_New(1); if (unlikely(!__pyx_t_50)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10128 __Pyx_GOTREF(__pyx_t_50); 10129 PyTuple_SET_ITEM(__pyx_t_50, 0, __pyx_t_45); 10130 __Pyx_GIVEREF(__pyx_t_45); 10131 __pyx_t_45 = 0; 10132 __pyx_t_45 = PyObject_Call(__pyx_t_46, __pyx_t_50, NULL); if (unlikely(!__pyx_t_45)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10133 __Pyx_GOTREF(__pyx_t_45); 10134 __Pyx_DECREF(__pyx_t_46); __pyx_t_46 = 0; 10135 __Pyx_DECREF(__pyx_t_50); __pyx_t_50 = 0; 10136 __pyx_t_51 = __Pyx_PyInt_from_py_npy_int64(__pyx_t_45); if (unlikely((__pyx_t_51 == (npy_int64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10001 __pyx_t_44 = PyFloat_FromDouble(((((__pyx_v_intersect[__pyx_v_i]) + (1e-08 * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_46, __pyx_bstride_0_dx)))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_47, __pyx_bstride_0_left_edge))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_48, __pyx_bstride_0_dx)))); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10002 __Pyx_GOTREF(__pyx_t_44); 10003 __pyx_t_49 = PyTuple_New(1); if (unlikely(!__pyx_t_49)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10004 __Pyx_GOTREF(__pyx_t_49); 10005 PyTuple_SET_ITEM(__pyx_t_49, 0, __pyx_t_44); 10006 __Pyx_GIVEREF(__pyx_t_44); 10007 __pyx_t_44 = 0; 10008 __pyx_t_44 = PyObject_Call(__pyx_t_45, __pyx_t_49, NULL); if (unlikely(!__pyx_t_44)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10009 __Pyx_GOTREF(__pyx_t_44); 10137 10010 __Pyx_DECREF(__pyx_t_45); __pyx_t_45 = 0; 10138 (__pyx_v_cur_ind[__pyx_v_i]) = __pyx_t_51; 10011 __Pyx_DECREF(__pyx_t_49); __pyx_t_49 = 0; 10012 __pyx_t_50 = __Pyx_PyInt_from_py_npy_int64(__pyx_t_44); if (unlikely((__pyx_t_50 == (npy_int64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10013 __Pyx_DECREF(__pyx_t_44); __pyx_t_44 = 0; 10014 (__pyx_v_cur_ind[__pyx_v_i]) = __pyx_t_50; 10139 10015 10140 10016 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":308 … … 10145 10021 * cur_ind[i] = dims[i] - 1 10146 10022 */ 10023 __pyx_t_51 = __pyx_v_i; 10147 10024 __pyx_t_52 = __pyx_v_i; 10148 10025 __pyx_t_53 = __pyx_v_i; 10149 10026 __pyx_t_54 = __pyx_v_i; 10150 __pyx_t_8 = (((((__pyx_v_cur_ind[__pyx_v_i]) + (__pyx_v_step[__pyx_v_i])) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_52, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_53, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_54, __pyx_bstride_0_u))); 10151 __pyx_t_55 = __pyx_v_i; 10152 __pyx_t_6 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_55, __pyx_bstride_0_v)); 10153 if (unlikely(__pyx_t_6 == 0)) { 10154 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 10155 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10156 } 10157 (__pyx_v_tmax[__pyx_v_i]) = (__pyx_t_8 / __pyx_t_6); 10027 (__pyx_v_tmax[__pyx_v_i]) = ((((((__pyx_v_cur_ind[__pyx_v_i]) + (__pyx_v_step[__pyx_v_i])) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_51, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_52, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_53, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_54, __pyx_bstride_0_v))); 10158 10028 10159 10029 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":309 … … 10166 10036 __pyx_t_3 = ((__pyx_v_cur_ind[__pyx_v_i]) == (__pyx_v_dims[__pyx_v_i])); 10167 10037 if (__pyx_t_3) { 10168 __pyx_t_1 8= ((__pyx_v_step[__pyx_v_i]) < 0);10169 __pyx_t_2 2 = __pyx_t_18;10038 __pyx_t_16 = ((__pyx_v_step[__pyx_v_i]) < 0); 10039 __pyx_t_20 = __pyx_t_16; 10170 10040 } else { 10171 __pyx_t_2 2= __pyx_t_3;10172 } 10173 if (__pyx_t_2 2) {10041 __pyx_t_20 = __pyx_t_3; 10042 } 10043 if (__pyx_t_20) { 10174 10044 10175 10045 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":310 … … 10192 10062 * tdelta[i] = (dx[i]/v[i]) 10193 10063 */ 10194 __pyx_t_22 = ((__pyx_v_step[__pyx_v_i]) > 0); 10195 if (__pyx_t_22) { 10064 __pyx_t_20 = ((__pyx_v_step[__pyx_v_i]) > 0); 10065 if (__pyx_t_20) { 10066 __pyx_t_55 = __pyx_v_i; 10196 10067 __pyx_t_56 = __pyx_v_i; 10197 10068 __pyx_t_57 = __pyx_v_i; 10198 10069 __pyx_t_58 = __pyx_v_i; 10199 __pyx_t_6 = (((((__pyx_v_cur_ind[__pyx_v_i]) + 1) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_56, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_57, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_58, __pyx_bstride_0_u))); 10200 __pyx_t_59 = __pyx_v_i; 10201 __pyx_t_8 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_59, __pyx_bstride_0_v)); 10202 if (unlikely(__pyx_t_8 == 0)) { 10203 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 10204 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10205 } 10206 (__pyx_v_tmax[__pyx_v_i]) = (__pyx_t_6 / __pyx_t_8); 10070 (__pyx_v_tmax[__pyx_v_i]) = ((((((__pyx_v_cur_ind[__pyx_v_i]) + 1) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_55, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_56, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_57, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_58, __pyx_bstride_0_v))); 10207 10071 goto __pyx_L18; 10208 10072 } … … 10216 10080 * if tdelta[i] < 0: tdelta[i] *= -1 10217 10081 */ 10218 __pyx_t_22 = ((__pyx_v_step[__pyx_v_i]) < 0); 10219 if (__pyx_t_22) { 10082 __pyx_t_20 = ((__pyx_v_step[__pyx_v_i]) < 0); 10083 if (__pyx_t_20) { 10084 __pyx_t_59 = __pyx_v_i; 10220 10085 __pyx_t_60 = __pyx_v_i; 10221 10086 __pyx_t_61 = __pyx_v_i; 10222 10087 __pyx_t_62 = __pyx_v_i; 10223 __pyx_t_8 = (((((__pyx_v_cur_ind[__pyx_v_i]) + 0) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_60, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_61, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_62, __pyx_bstride_0_u))); 10224 __pyx_t_63 = __pyx_v_i; 10225 __pyx_t_6 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_63, __pyx_bstride_0_v)); 10226 if (unlikely(__pyx_t_6 == 0)) { 10227 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 10228 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10229 } 10230 (__pyx_v_tmax[__pyx_v_i]) = (__pyx_t_8 / __pyx_t_6); 10088 (__pyx_v_tmax[__pyx_v_i]) = ((((((__pyx_v_cur_ind[__pyx_v_i]) + 0) * (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_59, __pyx_bstride_0_dx))) + (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_60, __pyx_bstride_0_left_edge))) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_61, __pyx_bstride_0_u))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_62, __pyx_bstride_0_v))); 10231 10089 goto __pyx_L19; 10232 10090 } … … 10240 10098 * # The variable intersect contains the point we first pierce the grid 10241 10099 */ 10100 __pyx_t_63 = __pyx_v_i; 10242 10101 __pyx_t_64 = __pyx_v_i; 10243 __pyx_t_6 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_64, __pyx_bstride_0_dx)); 10244 __pyx_t_65 = __pyx_v_i; 10245 __pyx_t_8 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_65, __pyx_bstride_0_v)); 10246 if (unlikely(__pyx_t_8 == 0)) { 10247 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 10248 {__pyx_filename = __pyx_f[4]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 10249 } 10250 (__pyx_v_tdelta[__pyx_v_i]) = (__pyx_t_6 / __pyx_t_8); 10102 (__pyx_v_tdelta[__pyx_v_i]) = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_dx.buf, __pyx_t_63, __pyx_bstride_0_dx)) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_v.buf, __pyx_t_64, __pyx_bstride_0_v))); 10251 10103 10252 10104 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":314 … … 10257 10109 * enter_t = intersect_t 10258 10110 */ 10259 __pyx_t_2 2= ((__pyx_v_tdelta[__pyx_v_i]) < 0);10260 if (__pyx_t_2 2) {10111 __pyx_t_20 = ((__pyx_v_tdelta[__pyx_v_i]) < 0); 10112 if (__pyx_t_20) { 10261 10113 (__pyx_v_tdelta[__pyx_v_i]) *= -1; 10262 10114 goto __pyx_L20; … … 10281 10133 * (not (0 <= cur_ind[2] < dims[2])): 10282 10134 */ 10283 __pyx_t_5 1= (__pyx_v_cur_ind[0]);10284 __pyx_t_2 2 = (0 <= __pyx_t_51);10285 if (__pyx_t_2 2) {10286 __pyx_t_2 2 = (__pyx_t_51< (__pyx_v_dims[0]));10287 } 10288 __pyx_t_3 = (!__pyx_t_2 2);10135 __pyx_t_50 = (__pyx_v_cur_ind[0]); 10136 __pyx_t_20 = (0 <= __pyx_t_50); 10137 if (__pyx_t_20) { 10138 __pyx_t_20 = (__pyx_t_50 < (__pyx_v_dims[0])); 10139 } 10140 __pyx_t_3 = (!__pyx_t_20); 10289 10141 if (!__pyx_t_3) { 10290 10142 … … 10296 10148 * #print "Returning: cur_ind", cur_ind[0], cur_ind[1], cur_ind[2] 10297 10149 */ 10298 __pyx_t_5 1= (__pyx_v_cur_ind[1]);10299 __pyx_t_2 2 = (0 <= __pyx_t_51);10300 if (__pyx_t_2 2) {10301 __pyx_t_2 2 = (__pyx_t_51< (__pyx_v_dims[1]));10302 } 10303 __pyx_t_1 8 = (!__pyx_t_22);10304 if (!__pyx_t_1 8) {10150 __pyx_t_50 = (__pyx_v_cur_ind[1]); 10151 __pyx_t_20 = (0 <= __pyx_t_50); 10152 if (__pyx_t_20) { 10153 __pyx_t_20 = (__pyx_t_50 < (__pyx_v_dims[1])); 10154 } 10155 __pyx_t_16 = (!__pyx_t_20); 10156 if (!__pyx_t_16) { 10305 10157 10306 10158 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":319 … … 10311 10163 * #print " dims: ", dims[0], dims[1], dims[2] 10312 10164 */ 10313 __pyx_t_5 1= (__pyx_v_cur_ind[2]);10314 __pyx_t_2 2 = (0 <= __pyx_t_51);10315 if (__pyx_t_2 2) {10316 __pyx_t_2 2 = (__pyx_t_51< (__pyx_v_dims[2]));10165 __pyx_t_50 = (__pyx_v_cur_ind[2]); 10166 __pyx_t_20 = (0 <= __pyx_t_50); 10167 if (__pyx_t_20) { 10168 __pyx_t_20 = (__pyx_t_50 < (__pyx_v_dims[2])); 10317 10169 } 10318 __pyx_t_ 20 = (!__pyx_t_22);10319 __pyx_t_2 2 = __pyx_t_20;10170 __pyx_t_18 = (!__pyx_t_20); 10171 __pyx_t_20 = __pyx_t_18; 10320 10172 } else { 10321 __pyx_t_2 2 = __pyx_t_18;10322 } 10323 __pyx_t_1 8 = __pyx_t_22;10173 __pyx_t_20 = __pyx_t_16; 10174 } 10175 __pyx_t_16 = __pyx_t_20; 10324 10176 } else { 10325 __pyx_t_1 8= __pyx_t_3;10326 } 10327 if (__pyx_t_1 8) {10177 __pyx_t_16 = __pyx_t_3; 10178 } 10179 if (__pyx_t_16) { 10328 10180 10329 10181 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":326 … … 10348 10200 * while 1: 10349 10201 */ 10350 __pyx_t_5 1= (__pyx_v_cur_ind[0]);10351 __pyx_t_6 6= (__pyx_v_cur_ind[1]);10352 __pyx_t_6 7= (__pyx_v_cur_ind[2]);10353 __pyx_v_dv = (*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_data.buf, __pyx_t_5 1, __pyx_bstride_0_data, __pyx_t_66, __pyx_bstride_1_data, __pyx_t_67, __pyx_bstride_2_data));10202 __pyx_t_50 = (__pyx_v_cur_ind[0]); 10203 __pyx_t_65 = (__pyx_v_cur_ind[1]); 10204 __pyx_t_66 = (__pyx_v_cur_ind[2]); 10205 __pyx_v_dv = (*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_data.buf, __pyx_t_50, __pyx_bstride_0_data, __pyx_t_65, __pyx_bstride_1_data, __pyx_t_66, __pyx_bstride_2_data)); 10354 10206 10355 10207 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":330 … … 10361 10213 */ 10362 10214 while (1) { 10363 __pyx_t_1 8= 1;10364 if (!__pyx_t_1 8) break;10215 __pyx_t_16 = 1; 10216 if (!__pyx_t_16) break; 10365 10217 10366 10218 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":331 … … 10372 10224 */ 10373 10225 __pyx_t_1 = __pyx_v_ind; 10374 __pyx_t_6 8= 3;10375 __pyx_t_1 8 = ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_1, __pyx_bstride_0_image, __pyx_t_68, __pyx_bstride_1_image)) >= 1.0);10376 if (__pyx_t_1 8) {10226 __pyx_t_67 = 3; 10227 __pyx_t_16 = ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_1, __pyx_bstride_0_image, __pyx_t_67, __pyx_bstride_1_image)) >= 1.0); 10228 if (__pyx_t_16) { 10377 10229 goto __pyx_L23_break; 10378 10230 goto __pyx_L24; … … 10387 10239 * (not (0 <= cur_ind[2] < dims[2])): 10388 10240 */ 10389 __pyx_t_6 9= (__pyx_v_cur_ind[0]);10390 __pyx_t_1 8 = (0 <= __pyx_t_69);10391 if (__pyx_t_1 8) {10392 __pyx_t_1 8 = (__pyx_t_69< (__pyx_v_dims[0]));10393 } 10394 __pyx_t_3 = (!__pyx_t_1 8);10241 __pyx_t_68 = (__pyx_v_cur_ind[0]); 10242 __pyx_t_16 = (0 <= __pyx_t_68); 10243 if (__pyx_t_16) { 10244 __pyx_t_16 = (__pyx_t_68 < (__pyx_v_dims[0])); 10245 } 10246 __pyx_t_3 = (!__pyx_t_16); 10395 10247 if (!__pyx_t_3) { 10396 10248 … … 10402 10254 * break 10403 10255 */ 10404 __pyx_t_6 9= (__pyx_v_cur_ind[1]);10405 __pyx_t_1 8 = (0 <= __pyx_t_69);10406 if (__pyx_t_1 8) {10407 __pyx_t_1 8 = (__pyx_t_69< (__pyx_v_dims[1]));10256 __pyx_t_68 = (__pyx_v_cur_ind[1]); 10257 __pyx_t_16 = (0 <= __pyx_t_68); 10258 if (__pyx_t_16) { 10259 __pyx_t_16 = (__pyx_t_68 < (__pyx_v_dims[1])); 10408 10260 } 10409 __pyx_t_2 2 = (!__pyx_t_18);10410 if (!__pyx_t_2 2) {10261 __pyx_t_20 = (!__pyx_t_16); 10262 if (!__pyx_t_20) { 10411 10263 10412 10264 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":334 … … 10417 10269 * # Do our transfer here 10418 10270 */ 10419 __pyx_t_6 9= (__pyx_v_cur_ind[2]);10420 __pyx_t_1 8 = (0 <= __pyx_t_69);10421 if (__pyx_t_1 8) {10422 __pyx_t_1 8 = (__pyx_t_69< (__pyx_v_dims[2]));10271 __pyx_t_68 = (__pyx_v_cur_ind[2]); 10272 __pyx_t_16 = (0 <= __pyx_t_68); 10273 if (__pyx_t_16) { 10274 __pyx_t_16 = (__pyx_t_68 < (__pyx_v_dims[2])); 10423 10275 } 10424 __pyx_t_ 20 = (!__pyx_t_18);10425 __pyx_t_1 8 = __pyx_t_20;10276 __pyx_t_18 = (!__pyx_t_16); 10277 __pyx_t_16 = __pyx_t_18; 10426 10278 } else { 10427 __pyx_t_1 8 = __pyx_t_22;10279 __pyx_t_16 = __pyx_t_20; 10428 10280 } 10429 __pyx_t_2 2 = __pyx_t_18;10281 __pyx_t_20 = __pyx_t_16; 10430 10282 } else { 10431 __pyx_t_2 2= __pyx_t_3;10432 } 10433 if (__pyx_t_2 2) {10283 __pyx_t_20 = __pyx_t_3; 10284 } 10285 if (__pyx_t_20) { 10434 10286 10435 10287 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":335 … … 10452 10304 * if dist < shells[n,1]: 10453 10305 */ 10454 __pyx_t_ 70= __pyx_v_nshells;10455 for (__pyx_t_7 1 = 0; __pyx_t_71 < __pyx_t_70; __pyx_t_71+=1) {10456 __pyx_v_n = __pyx_t_7 1;10306 __pyx_t_69 = __pyx_v_nshells; 10307 for (__pyx_t_70 = 0; __pyx_t_70 < __pyx_t_69; __pyx_t_70+=1) { 10308 __pyx_v_n = __pyx_t_70; 10457 10309 10458 10310 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":338 … … 10463 10315 * dist = exp(-dist/8.0) 10464 10316 */ 10465 __pyx_t_7 2= __pyx_v_n;10466 __pyx_t_7 3= 0;10467 __pyx_v_dist = ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_7 2, __pyx_bstride_0_shells, __pyx_t_73, __pyx_bstride_1_shells)) - __pyx_v_dv);10317 __pyx_t_71 = __pyx_v_n; 10318 __pyx_t_72 = 0; 10319 __pyx_v_dist = ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_71, __pyx_bstride_0_shells, __pyx_t_72, __pyx_bstride_1_shells)) - __pyx_v_dv); 10468 10320 10469 10321 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":339 … … 10474 10326 * alpha = (1.0 - shells[n,5])*shells[n,5]#*dt 10475 10327 */ 10476 __pyx_t_7 4= __pyx_v_n;10477 __pyx_t_7 5= 1;10478 __pyx_t_2 2 = (__pyx_v_dist < (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_74, __pyx_bstride_0_shells, __pyx_t_75, __pyx_bstride_1_shells)));10479 if (__pyx_t_2 2) {10328 __pyx_t_73 = __pyx_v_n; 10329 __pyx_t_74 = 1; 10330 __pyx_t_20 = (__pyx_v_dist < (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_73, __pyx_bstride_0_shells, __pyx_t_74, __pyx_bstride_1_shells))); 10331 if (__pyx_t_20) { 10480 10332 10481 10333 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":340 … … 10495 10347 * image[ind,1] += alpha*shells[n,3]*dist 10496 10348 */ 10497 __pyx_t_7 6= __pyx_v_n;10498 __pyx_t_7 7= 5;10499 __pyx_t_7 8= __pyx_v_n;10500 __pyx_t_7 9= 5;10501 __pyx_v_alpha = ((1.0 - (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_7 6, __pyx_bstride_0_shells, __pyx_t_77, __pyx_bstride_1_shells))) * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_78, __pyx_bstride_0_shells, __pyx_t_79, __pyx_bstride_1_shells)));10349 __pyx_t_75 = __pyx_v_n; 10350 __pyx_t_76 = 5; 10351 __pyx_t_77 = __pyx_v_n; 10352 __pyx_t_78 = 5; 10353 __pyx_v_alpha = ((1.0 - (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_75, __pyx_bstride_0_shells, __pyx_t_76, __pyx_bstride_1_shells))) * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_77, __pyx_bstride_0_shells, __pyx_t_78, __pyx_bstride_1_shells))); 10502 10354 10503 10355 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":342 … … 10508 10360 * image[ind,2] += alpha*shells[n,4]*dist 10509 10361 */ 10510 __pyx_t_ 80= __pyx_v_n;10511 __pyx_t_8 1= 2;10512 __pyx_t_8 2= __pyx_v_ind;10513 __pyx_t_8 3= 0;10514 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_8 2, __pyx_bstride_0_image, __pyx_t_83, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_80, __pyx_bstride_0_shells, __pyx_t_81, __pyx_bstride_1_shells))) * __pyx_v_dist);10362 __pyx_t_79 = __pyx_v_n; 10363 __pyx_t_80 = 2; 10364 __pyx_t_81 = __pyx_v_ind; 10365 __pyx_t_82 = 0; 10366 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_81, __pyx_bstride_0_image, __pyx_t_82, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_79, __pyx_bstride_0_shells, __pyx_t_80, __pyx_bstride_1_shells))) * __pyx_v_dist); 10515 10367 10516 10368 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":343 … … 10521 10373 * image[ind,3] += alpha*shells[n,5]*dist 10522 10374 */ 10523 __pyx_t_8 4= __pyx_v_n;10524 __pyx_t_8 5= 3;10525 __pyx_t_8 6= __pyx_v_ind;10526 __pyx_t_8 7= 1;10527 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_8 6, __pyx_bstride_0_image, __pyx_t_87, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_84, __pyx_bstride_0_shells, __pyx_t_85, __pyx_bstride_1_shells))) * __pyx_v_dist);10375 __pyx_t_83 = __pyx_v_n; 10376 __pyx_t_84 = 3; 10377 __pyx_t_85 = __pyx_v_ind; 10378 __pyx_t_86 = 1; 10379 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_85, __pyx_bstride_0_image, __pyx_t_86, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_83, __pyx_bstride_0_shells, __pyx_t_84, __pyx_bstride_1_shells))) * __pyx_v_dist); 10528 10380 10529 10381 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":344 … … 10534 10386 * #image[ind,i] += rgba[i]*dist*rgba[3]/dt 10535 10387 */ 10536 __pyx_t_8 8= __pyx_v_n;10537 __pyx_t_8 9= 4;10538 __pyx_t_ 90= __pyx_v_ind;10539 __pyx_t_9 1= 2;10540 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_ 90, __pyx_bstride_0_image, __pyx_t_91, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_88, __pyx_bstride_0_shells, __pyx_t_89, __pyx_bstride_1_shells))) * __pyx_v_dist);10388 __pyx_t_87 = __pyx_v_n; 10389 __pyx_t_88 = 4; 10390 __pyx_t_89 = __pyx_v_ind; 10391 __pyx_t_90 = 2; 10392 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_89, __pyx_bstride_0_image, __pyx_t_90, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_87, __pyx_bstride_0_shells, __pyx_t_88, __pyx_bstride_1_shells))) * __pyx_v_dist); 10541 10393 10542 10394 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":345 … … 10547 10399 * #print rgba[i], image[ind,i], dist, dt 10548 10400 */ 10549 __pyx_t_9 2= __pyx_v_n;10550 __pyx_t_9 3= 5;10551 __pyx_t_9 4= __pyx_v_ind;10552 __pyx_t_9 5= 3;10553 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_9 4, __pyx_bstride_0_image, __pyx_t_95, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_92, __pyx_bstride_0_shells, __pyx_t_93, __pyx_bstride_1_shells))) * __pyx_v_dist);10401 __pyx_t_91 = __pyx_v_n; 10402 __pyx_t_92 = 5; 10403 __pyx_t_93 = __pyx_v_ind; 10404 __pyx_t_94 = 3; 10405 *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_93, __pyx_bstride_0_image, __pyx_t_94, __pyx_bstride_1_image) += ((__pyx_v_alpha * (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_91, __pyx_bstride_0_shells, __pyx_t_92, __pyx_bstride_1_shells))) * __pyx_v_dist); 10554 10406 10555 10407 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":348 … … 10574 10426 * break 10575 10427 */ 10576 __pyx_t_2 2= ((__pyx_v_tmax[0]) > 1.0);10577 if (__pyx_t_2 2) {10428 __pyx_t_20 = ((__pyx_v_tmax[0]) > 1.0); 10429 if (__pyx_t_20) { 10578 10430 __pyx_t_3 = ((__pyx_v_tmax[1]) > 1.0); 10579 10431 if (__pyx_t_3) { 10580 __pyx_t_1 8= ((__pyx_v_tmax[2]) > 1.0);10581 __pyx_t_ 20 = __pyx_t_18;10432 __pyx_t_16 = ((__pyx_v_tmax[2]) > 1.0); 10433 __pyx_t_18 = __pyx_t_16; 10582 10434 } else { 10583 __pyx_t_ 20= __pyx_t_3;10435 __pyx_t_18 = __pyx_t_3; 10584 10436 } 10437 __pyx_t_3 = __pyx_t_18; 10438 } else { 10585 10439 __pyx_t_3 = __pyx_t_20; 10586 } else {10587 __pyx_t_3 = __pyx_t_22;10588 10440 } 10589 10441 if (__pyx_t_3) { … … 10803 10655 * dv = data[cur_ind[0], cur_ind[1], cur_ind[2]] # <<<<<<<<<<<<<< 10804 10656 */ 10805 __pyx_t_6 9= (__pyx_v_cur_ind[0]);10806 __pyx_t_9 6= (__pyx_v_cur_ind[1]);10807 __pyx_t_9 7= (__pyx_v_cur_ind[2]);10808 __pyx_v_dv = (*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_data.buf, __pyx_t_6 9, __pyx_bstride_0_data, __pyx_t_96, __pyx_bstride_1_data, __pyx_t_97, __pyx_bstride_2_data));10657 __pyx_t_68 = (__pyx_v_cur_ind[0]); 10658 __pyx_t_95 = (__pyx_v_cur_ind[1]); 10659 __pyx_t_96 = (__pyx_v_cur_ind[2]); 10660 __pyx_v_dv = (*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_data.buf, __pyx_t_68, __pyx_bstride_0_data, __pyx_t_95, __pyx_bstride_1_data, __pyx_t_96, __pyx_bstride_2_data)); 10809 10661 } 10810 10662 __pyx_L23_break:; … … 10813 10665 goto __pyx_L0; 10814 10666 __pyx_L1_error:; 10667 __Pyx_XDECREF(__pyx_t_44); 10815 10668 __Pyx_XDECREF(__pyx_t_45); 10816 __Pyx_XDECREF(__pyx_t_46); 10817 __Pyx_XDECREF(__pyx_t_50); 10669 __Pyx_XDECREF(__pyx_t_49); 10818 10670 { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; 10819 10671 __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); … … 11033 10885 * 11034 10886 * cdef inline int iclip(int i, int a, int b): # <<<<<<<<<<<<<< 11035 * return imin(imax(i, a), b)11036 * 10887 * if i < a: return a 10888 * if i > b: return b 11037 10889 */ 11038 10890 11039 10891 static CYTHON_INLINE int __pyx_f_2yt_9amr_utils_iclip(int __pyx_v_i, int __pyx_v_a, int __pyx_v_b) { 11040 10892 int __pyx_r; 10893 int __pyx_t_1; 11041 10894 __Pyx_RefNannySetupContext("iclip"); 11042 10895 … … 11044 10897 * 11045 10898 * cdef inline int iclip(int i, int a, int b): 11046 * return imin(imax(i, a), b) # <<<<<<<<<<<<<< 10899 * if i < a: return a # <<<<<<<<<<<<<< 10900 * if i > b: return b 10901 * return i 10902 */ 10903 __pyx_t_1 = (__pyx_v_i < __pyx_v_a); 10904 if (__pyx_t_1) { 10905 __pyx_r = __pyx_v_a; 10906 goto __pyx_L0; 10907 goto __pyx_L3; 10908 } 10909 __pyx_L3:; 10910 10911 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":49 10912 * cdef inline int iclip(int i, int a, int b): 10913 * if i < a: return a 10914 * if i > b: return b # <<<<<<<<<<<<<< 10915 * return i 10916 * 10917 */ 10918 __pyx_t_1 = (__pyx_v_i > __pyx_v_b); 10919 if (__pyx_t_1) { 10920 __pyx_r = __pyx_v_b; 10921 goto __pyx_L0; 10922 goto __pyx_L4; 10923 } 10924 __pyx_L4:; 10925 10926 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":50 10927 * if i < a: return a 10928 * if i > b: return b 10929 * return i # <<<<<<<<<<<<<< 11047 10930 * 11048 10931 * cdef inline np.float64_t fclip(np.float64_t f, 11049 10932 */ 11050 __pyx_r = __pyx_ f_2yt_9amr_utils_imin(__pyx_f_2yt_9amr_utils_imax(__pyx_v_i, __pyx_v_a), __pyx_v_b);10933 __pyx_r = __pyx_v_i; 11051 10934 goto __pyx_L0; 11052 10935 … … 11057 10940 } 11058 10941 11059 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 011060 * return i min(imax(i, a), b)10942 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":52 10943 * return i 11061 10944 * 11062 10945 * cdef inline np.float64_t fclip(np.float64_t f, # <<<<<<<<<<<<<< … … 11069 10952 __Pyx_RefNannySetupContext("fclip"); 11070 10953 11071 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 210954 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":54 11072 10955 * cdef inline np.float64_t fclip(np.float64_t f, 11073 10956 * np.float64_t a, np.float64_t b): … … 11085 10968 } 11086 10969 11087 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":8 410970 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":86 11088 10971 * cdef int use_light 11089 10972 * cdef public object tf_obj … … 11130 11013 } 11131 11014 if (unlikely(kw_args > 0)) { 11132 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 8 4; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11015 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11133 11016 } 11134 11017 __pyx_v_tf_obj = values[0]; … … 11140 11023 goto __pyx_L4_argument_unpacking_done; 11141 11024 __pyx_L5_argtuple_error:; 11142 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 8 4; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11025 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11143 11026 __pyx_L3_error:; 11144 11027 __Pyx_AddTraceback("yt.amr_utils.TransferFunctionProxy.__cinit__"); … … 11151 11034 __pyx_bstruct_temp.buf = NULL; 11152 11035 11153 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":8 511036 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":87 11154 11037 * cdef public object tf_obj 11155 11038 * def __cinit__(self, tf_obj): … … 11164 11047 ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->tf_obj = __pyx_v_tf_obj; 11165 11048 11166 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":8 711049 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":89 11167 11050 * self.tf_obj = tf_obj 11168 11051 * cdef np.ndarray[np.float64_t, ndim=1] temp … … 11171 11054 * temp = tf_obj.green.y 11172 11055 */ 11173 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__red); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 8 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11056 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__red); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11174 11057 __Pyx_GOTREF(__pyx_t_1); 11175 __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__y); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 8 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11058 __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__y); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11176 11059 __Pyx_GOTREF(__pyx_t_2); 11177 11060 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11178 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 8 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11061 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11179 11062 __pyx_t_3 = ((PyArrayObject *)__pyx_t_2); 11180 11063 { … … 11193 11076 __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 11194 11077 __pyx_bshape_0_temp = __pyx_bstruct_temp.shape[0]; 11195 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 8 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11078 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11196 11079 } 11197 11080 __pyx_t_3 = 0; … … 11200 11083 __pyx_t_2 = 0; 11201 11084 11202 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 8811085 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":90 11203 11086 * cdef np.ndarray[np.float64_t, ndim=1] temp 11204 11087 * temp = tf_obj.red.y … … 11209 11092 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[0]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 11210 11093 11211 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 8911094 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":91 11212 11095 * temp = tf_obj.red.y 11213 11096 * self.vs[0] = <np.float64_t *> temp.data … … 11216 11099 * temp = tf_obj.blue.y 11217 11100 */ 11218 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__green); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11101 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__green); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11219 11102 __Pyx_GOTREF(__pyx_t_2); 11220 __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__y); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11103 __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__y); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11221 11104 __Pyx_GOTREF(__pyx_t_1); 11222 11105 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11223 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11106 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11224 11107 __pyx_t_3 = ((PyArrayObject *)__pyx_t_1); 11225 11108 { … … 11238 11121 __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 11239 11122 __pyx_bshape_0_temp = __pyx_bstruct_temp.shape[0]; 11240 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11123 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11241 11124 } 11242 11125 __pyx_t_3 = 0; … … 11245 11128 __pyx_t_1 = 0; 11246 11129 11247 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 011130 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":92 11248 11131 * self.vs[0] = <np.float64_t *> temp.data 11249 11132 * temp = tf_obj.green.y … … 11254 11137 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[1]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 11255 11138 11256 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 111139 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":93 11257 11140 * temp = tf_obj.green.y 11258 11141 * self.vs[1] = <np.float64_t *> temp.data … … 11261 11144 * temp = tf_obj.alpha.y 11262 11145 */ 11263 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__blue); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11146 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__blue); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11264 11147 __Pyx_GOTREF(__pyx_t_1); 11265 __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__y); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11148 __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__y); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11266 11149 __Pyx_GOTREF(__pyx_t_2); 11267 11150 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11268 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11151 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11269 11152 __pyx_t_3 = ((PyArrayObject *)__pyx_t_2); 11270 11153 { … … 11283 11166 __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 11284 11167 __pyx_bshape_0_temp = __pyx_bstruct_temp.shape[0]; 11285 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11168 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11286 11169 } 11287 11170 __pyx_t_3 = 0; … … 11290 11173 __pyx_t_2 = 0; 11291 11174 11292 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 211175 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":94 11293 11176 * self.vs[1] = <np.float64_t *> temp.data 11294 11177 * temp = tf_obj.blue.y … … 11299 11182 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[2]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 11300 11183 11301 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 311184 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":95 11302 11185 * temp = tf_obj.blue.y 11303 11186 * self.vs[2] = <np.float64_t *> temp.data … … 11306 11189 * self.x_bounds[0] = tf_obj.x_bounds[0] 11307 11190 */ 11308 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__alpha); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11191 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__alpha); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11309 11192 __Pyx_GOTREF(__pyx_t_2); 11310 __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__y); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11193 __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__y); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11311 11194 __Pyx_GOTREF(__pyx_t_1); 11312 11195 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11313 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11196 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11314 11197 __pyx_t_3 = ((PyArrayObject *)__pyx_t_1); 11315 11198 { … … 11328 11211 __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 11329 11212 __pyx_bshape_0_temp = __pyx_bstruct_temp.shape[0]; 11330 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11213 if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11331 11214 } 11332 11215 __pyx_t_3 = 0; … … 11335 11218 __pyx_t_1 = 0; 11336 11219 11337 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 411220 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":96 11338 11221 * self.vs[2] = <np.float64_t *> temp.data 11339 11222 * temp = tf_obj.alpha.y … … 11344 11227 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[3]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 11345 11228 11346 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 511229 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":97 11347 11230 * temp = tf_obj.alpha.y 11348 11231 * self.vs[3] = <np.float64_t *> temp.data … … 11351 11234 * self.nbins = tf_obj.nbins 11352 11235 */ 11353 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__x_bounds); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11236 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__x_bounds); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11354 11237 __Pyx_GOTREF(__pyx_t_1); 11355 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11238 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11356 11239 __Pyx_GOTREF(__pyx_t_2); 11357 11240 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11358 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11241 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11359 11242 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11360 11243 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[0]) = __pyx_t_8; 11361 11244 11362 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 611245 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":98 11363 11246 * self.vs[3] = <np.float64_t *> temp.data 11364 11247 * self.x_bounds[0] = tf_obj.x_bounds[0] … … 11367 11250 * self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins 11368 11251 */ 11369 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__x_bounds); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11252 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__x_bounds); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11370 11253 __Pyx_GOTREF(__pyx_t_2); 11371 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11254 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11372 11255 __Pyx_GOTREF(__pyx_t_1); 11373 11256 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11374 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11257 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11375 11258 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11376 11259 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[1]) = __pyx_t_8; 11377 11260 11378 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":9 711261 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":99 11379 11262 * self.x_bounds[0] = tf_obj.x_bounds[0] 11380 11263 * self.x_bounds[1] = tf_obj.x_bounds[1] 11381 11264 * self.nbins = tf_obj.nbins # <<<<<<<<<<<<<< 11382 11265 * self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins 11383 * self. light_color[0] = tf_obj.light_color[0]11384 */ 11385 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__nbins); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11266 * self.idbin = 1.0/self.dbin 11267 */ 11268 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__nbins); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11386 11269 __Pyx_GOTREF(__pyx_t_1); 11387 __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 9 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11270 __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11388 11271 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11389 11272 ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->nbins = __pyx_t_4; 11390 11273 11391 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 9811274 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":100 11392 11275 * self.x_bounds[1] = tf_obj.x_bounds[1] 11393 11276 * self.nbins = tf_obj.nbins 11394 11277 * self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins # <<<<<<<<<<<<<< 11278 * self.idbin = 1.0/self.dbin 11279 * self.light_color[0] = tf_obj.light_color[0] 11280 */ 11281 ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->dbin = (((((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[1]) - (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[0])) / ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->nbins); 11282 11283 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":101 11284 * self.nbins = tf_obj.nbins 11285 * self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins 11286 * self.idbin = 1.0/self.dbin # <<<<<<<<<<<<<< 11395 11287 * self.light_color[0] = tf_obj.light_color[0] 11396 11288 * self.light_color[1] = tf_obj.light_color[1] 11397 11289 */ 11398 __pyx_t_8 = ((((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[1]) - (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[0])); 11399 if (unlikely(((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->nbins == 0)) { 11400 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 11401 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11402 } 11403 ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->dbin = (__pyx_t_8 / ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->nbins); 11404 11405 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":99 11406 * self.nbins = tf_obj.nbins 11290 ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->idbin = (1.0 / ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->dbin); 11291 11292 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":102 11407 11293 * self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins 11294 * self.idbin = 1.0/self.dbin 11408 11295 * self.light_color[0] = tf_obj.light_color[0] # <<<<<<<<<<<<<< 11409 11296 * self.light_color[1] = tf_obj.light_color[1] 11410 11297 * self.light_color[2] = tf_obj.light_color[2] 11411 11298 */ 11412 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_color); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11299 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_color); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11413 11300 __Pyx_GOTREF(__pyx_t_1); 11414 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11301 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11415 11302 __Pyx_GOTREF(__pyx_t_2); 11416 11303 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11417 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11304 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11418 11305 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11419 11306 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_color[0]) = __pyx_t_8; 11420 11307 11421 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":10 011422 * self. dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins11308 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":103 11309 * self.idbin = 1.0/self.dbin 11423 11310 * self.light_color[0] = tf_obj.light_color[0] 11424 11311 * self.light_color[1] = tf_obj.light_color[1] # <<<<<<<<<<<<<< … … 11426 11313 * self.light_dir[0] = tf_obj.light_dir[0] 11427 11314 */ 11428 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_color); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 0; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11315 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_color); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11429 11316 __Pyx_GOTREF(__pyx_t_2); 11430 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 0; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11317 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11431 11318 __Pyx_GOTREF(__pyx_t_1); 11432 11319 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11433 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 0; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11320 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11434 11321 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11435 11322 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_color[1]) = __pyx_t_8; 11436 11323 11437 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":10 111324 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":104 11438 11325 * self.light_color[0] = tf_obj.light_color[0] 11439 11326 * self.light_color[1] = tf_obj.light_color[1] … … 11442 11329 * self.light_dir[1] = tf_obj.light_dir[1] 11443 11330 */ 11444 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_color); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11331 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_color); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11445 11332 __Pyx_GOTREF(__pyx_t_1); 11446 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 2, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11333 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 2, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11447 11334 __Pyx_GOTREF(__pyx_t_2); 11448 11335 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11449 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11336 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11450 11337 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11451 11338 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_color[2]) = __pyx_t_8; 11452 11339 11453 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":10 211340 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":105 11454 11341 * self.light_color[1] = tf_obj.light_color[1] 11455 11342 * self.light_color[2] = tf_obj.light_color[2] … … 11458 11345 * self.light_dir[2] = tf_obj.light_dir[2] 11459 11346 */ 11460 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_dir); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11347 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_dir); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11461 11348 __Pyx_GOTREF(__pyx_t_2); 11462 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11349 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11463 11350 __Pyx_GOTREF(__pyx_t_1); 11464 11351 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11465 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11352 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11466 11353 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11467 11354 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[0]) = __pyx_t_8; 11468 11355 11469 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":10 311356 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":106 11470 11357 * self.light_color[2] = tf_obj.light_color[2] 11471 11358 * self.light_dir[0] = tf_obj.light_dir[0] … … 11474 11361 * cdef np.float64_t normval = 0.0 11475 11362 */ 11476 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_dir); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11363 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_dir); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11477 11364 __Pyx_GOTREF(__pyx_t_1); 11478 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11365 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11479 11366 __Pyx_GOTREF(__pyx_t_2); 11480 11367 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11481 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11368 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11482 11369 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11483 11370 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[1]) = __pyx_t_8; 11484 11371 11485 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":10 411372 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":107 11486 11373 * self.light_dir[0] = tf_obj.light_dir[0] 11487 11374 * self.light_dir[1] = tf_obj.light_dir[1] … … 11490 11377 * for i in range(3): normval += self.light_dir[i]**2 11491 11378 */ 11492 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_dir); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11379 __pyx_t_2 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__light_dir); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11493 11380 __Pyx_GOTREF(__pyx_t_2); 11494 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 2, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11381 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 2, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11495 11382 __Pyx_GOTREF(__pyx_t_1); 11496 11383 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 11497 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11384 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_8 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11498 11385 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11499 11386 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[2]) = __pyx_t_8; 11500 11387 11501 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":10 511388 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":108 11502 11389 * self.light_dir[1] = tf_obj.light_dir[1] 11503 11390 * self.light_dir[2] = tf_obj.light_dir[2] … … 11508 11395 __pyx_v_normval = 0.0; 11509 11396 11510 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":10 611397 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":109 11511 11398 * self.light_dir[2] = tf_obj.light_dir[2] 11512 11399 * cdef np.float64_t normval = 0.0 … … 11515 11402 * for i in range(3): self.light_dir[i] /= normval 11516 11403 */ 11517 __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11404 __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11518 11405 __Pyx_GOTREF(__pyx_t_1); 11519 11406 __Pyx_INCREF(__pyx_int_3); 11520 11407 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_3); 11521 11408 __Pyx_GIVEREF(__pyx_int_3); 11522 __pyx_t_2 = PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11409 __pyx_t_2 = PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11523 11410 __Pyx_GOTREF(__pyx_t_2); 11524 11411 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; … … 11526 11413 __pyx_t_9 = 0; __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); 11527 11414 } else { 11528 __pyx_t_9 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11415 __pyx_t_9 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11529 11416 __Pyx_GOTREF(__pyx_t_1); 11530 11417 } … … 11540 11427 __pyx_t_2 = PyIter_Next(__pyx_t_1); 11541 11428 if (!__pyx_t_2) { 11542 if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11429 if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11543 11430 break; 11544 11431 } … … 11548 11435 __pyx_v_i = __pyx_t_2; 11549 11436 __pyx_t_2 = 0; 11550 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 10 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11437 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11551 11438 __pyx_v_normval += pow((((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[__pyx_t_10]), 2); 11552 11439 } 11553 11440 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11554 11441 11555 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":1 0711442 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":110 11556 11443 * cdef np.float64_t normval = 0.0 11557 11444 * for i in range(3): normval += self.light_dir[i]**2 … … 11562 11449 __pyx_v_normval = pow(__pyx_v_normval, 0.5); 11563 11450 11564 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":1 0811451 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":111 11565 11452 * for i in range(3): normval += self.light_dir[i]**2 11566 11453 * normval = normval**0.5 … … 11569 11456 * 11570 11457 */ 11571 __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 08; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11458 __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11572 11459 __Pyx_GOTREF(__pyx_t_1); 11573 11460 __Pyx_INCREF(__pyx_int_3); 11574 11461 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_3); 11575 11462 __Pyx_GIVEREF(__pyx_int_3); 11576 __pyx_t_2 = PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 08; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11463 __pyx_t_2 = PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11577 11464 __Pyx_GOTREF(__pyx_t_2); 11578 11465 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; … … 11580 11467 __pyx_t_9 = 0; __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); 11581 11468 } else { 11582 __pyx_t_9 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 08; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11469 __pyx_t_9 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11583 11470 __Pyx_GOTREF(__pyx_t_1); 11584 11471 } … … 11594 11481 __pyx_t_2 = PyIter_Next(__pyx_t_1); 11595 11482 if (!__pyx_t_2) { 11596 if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 08; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11483 if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11597 11484 break; 11598 11485 } … … 11602 11489 __pyx_v_i = __pyx_t_2; 11603 11490 __pyx_t_2 = 0; 11604 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 08; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11491 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11605 11492 (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[__pyx_t_10]) /= __pyx_v_normval; 11606 11493 } 11607 11494 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11608 11495 11609 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":1 0911496 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":112 11610 11497 * normval = normval**0.5 11611 11498 * for i in range(3): self.light_dir[i] /= normval 11612 11499 * self.use_light = tf_obj.use_light # <<<<<<<<<<<<<< 11613 11500 * 11614 * cdef void eval_transfer(self, np.float64_t dt, np.float64_t dv,11615 */ 11616 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__use_light); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 09; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11501 * @cython.boundscheck(False) 11502 */ 11503 __pyx_t_1 = PyObject_GetAttr(__pyx_v_tf_obj, __pyx_n_s__use_light); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11617 11504 __Pyx_GOTREF(__pyx_t_1); 11618 __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 09; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11505 __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11619 11506 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 11620 11507 ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->use_light = __pyx_t_4; … … 11643 11530 } 11644 11531 11645 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":111 11646 * self.use_light = tf_obj.use_light 11647 * 11532 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":116 11533 * @cython.boundscheck(False) 11534 * @cython.wraparound(False) 11535 * cdef void interpolate(self, np.float64_t dv, np.float64_t *trgba): # <<<<<<<<<<<<<< 11536 * cdef int bin_id, channel 11537 * cdef np.float64_t bv, dy, dd, tf 11538 */ 11539 11540 static void __pyx_f_2yt_9amr_utils_21TransferFunctionProxy_interpolate(struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *__pyx_v_self, __pyx_t_5numpy_float64_t __pyx_v_dv, __pyx_t_5numpy_float64_t *__pyx_v_trgba) { 11541 int __pyx_v_bin_id; 11542 int __pyx_v_channel; 11543 __pyx_t_5numpy_float64_t __pyx_v_bv; 11544 __pyx_t_5numpy_float64_t __pyx_v_dy; 11545 __pyx_t_5numpy_float64_t __pyx_v_dd; 11546 int __pyx_t_1; 11547 __Pyx_RefNannySetupContext("interpolate"); 11548 __Pyx_INCREF((PyObject *)__pyx_v_self); 11549 11550 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":119 11551 * cdef int bin_id, channel 11552 * cdef np.float64_t bv, dy, dd, tf 11553 * bin_id = <int> ((dv - self.x_bounds[0]) * self.idbin) # <<<<<<<<<<<<<< 11554 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11555 * dd = dv-(self.x_bounds[0] + bin_id * self.dbin) # x - x0 11556 */ 11557 __pyx_v_bin_id = ((int)((__pyx_v_dv - (__pyx_v_self->x_bounds[0])) * __pyx_v_self->idbin)); 11558 11559 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":121 11560 * bin_id = <int> ((dv - self.x_bounds[0]) * self.idbin) 11561 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11562 * dd = dv-(self.x_bounds[0] + bin_id * self.dbin) # x - x0 # <<<<<<<<<<<<<< 11563 * for channel in range(4): 11564 * bv = self.vs[channel][bin_id] # This is x0 11565 */ 11566 __pyx_v_dd = (__pyx_v_dv - ((__pyx_v_self->x_bounds[0]) + (__pyx_v_bin_id * __pyx_v_self->dbin))); 11567 11568 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":122 11569 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11570 * dd = dv-(self.x_bounds[0] + bin_id * self.dbin) # x - x0 11571 * for channel in range(4): # <<<<<<<<<<<<<< 11572 * bv = self.vs[channel][bin_id] # This is x0 11573 * dy = self.vs[channel][bin_id+1]-bv # dy 11574 */ 11575 for (__pyx_t_1 = 0; __pyx_t_1 < 4; __pyx_t_1+=1) { 11576 __pyx_v_channel = __pyx_t_1; 11577 11578 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":123 11579 * dd = dv-(self.x_bounds[0] + bin_id * self.dbin) # x - x0 11580 * for channel in range(4): 11581 * bv = self.vs[channel][bin_id] # This is x0 # <<<<<<<<<<<<<< 11582 * dy = self.vs[channel][bin_id+1]-bv # dy 11583 * # This is our final value for transfer function on the entering face 11584 */ 11585 __pyx_v_bv = ((__pyx_v_self->vs[__pyx_v_channel])[__pyx_v_bin_id]); 11586 11587 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":124 11588 * for channel in range(4): 11589 * bv = self.vs[channel][bin_id] # This is x0 11590 * dy = self.vs[channel][bin_id+1]-bv # dy # <<<<<<<<<<<<<< 11591 * # This is our final value for transfer function on the entering face 11592 * trgba[channel] = bv+dd*dy*self.idbin 11593 */ 11594 __pyx_v_dy = (((__pyx_v_self->vs[__pyx_v_channel])[(__pyx_v_bin_id + 1)]) - __pyx_v_bv); 11595 11596 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":126 11597 * dy = self.vs[channel][bin_id+1]-bv # dy 11598 * # This is our final value for transfer function on the entering face 11599 * trgba[channel] = bv+dd*dy*self.idbin # <<<<<<<<<<<<<< 11600 * 11601 * @cython.boundscheck(False) 11602 */ 11603 (__pyx_v_trgba[__pyx_v_channel]) = (__pyx_v_bv + ((__pyx_v_dd * __pyx_v_dy) * __pyx_v_self->idbin)); 11604 } 11605 11606 __Pyx_DECREF((PyObject *)__pyx_v_self); 11607 __Pyx_RefNannyFinishContext(); 11608 } 11609 11610 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":130 11611 * @cython.boundscheck(False) 11612 * @cython.wraparound(False) 11648 11613 * cdef void eval_transfer(self, np.float64_t dt, np.float64_t dv, # <<<<<<<<<<<<<< 11649 11614 * np.float64_t *rgba, np.float64_t *grad): … … 11653 11618 static void __pyx_f_2yt_9amr_utils_21TransferFunctionProxy_eval_transfer(struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *__pyx_v_self, __pyx_t_5numpy_float64_t __pyx_v_dt, __pyx_t_5numpy_float64_t __pyx_v_dv, __pyx_t_5numpy_float64_t *__pyx_v_rgba, __pyx_t_5numpy_float64_t *__pyx_v_grad) { 11654 11619 int __pyx_v_i; 11655 int __pyx_v_bin_id;11656 __pyx_t_5numpy_float64_t __pyx_v_tf;11657 __pyx_t_5numpy_float64_t __pyx_v_bv;11658 __pyx_t_5numpy_float64_t __pyx_v_dx;11659 __pyx_t_5numpy_float64_t __pyx_v_dy;11660 __pyx_t_5numpy_float64_t __pyx_v_dd;11661 11620 __pyx_t_5numpy_float64_t __pyx_v_ta; 11621 __pyx_t_5numpy_float64_t __pyx_v_trgba[4]; 11662 11622 __pyx_t_5numpy_float64_t __pyx_v_dot_prod; 11663 __pyx_t_5numpy_float64_t __pyx_t_1; 11664 int __pyx_t_2; 11623 int __pyx_t_1; 11665 11624 __Pyx_RefNannySetupContext("eval_transfer"); 11666 11625 __Pyx_INCREF((PyObject *)__pyx_v_self); 11667 11626 11668 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":116 11669 * cdef int bin_id 11670 * cdef np.float64_t tf, trgba[4], bv, dx, dy, dd, ta, dot_prod 11671 * dx = self.dbin # <<<<<<<<<<<<<< 11672 * 11673 * # get source alpha first 11674 */ 11675 __pyx_v_dx = __pyx_v_self->dbin; 11676 11677 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":120 11627 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":134 11628 * cdef int i 11629 * cdef np.float64_t ta, tf, trgba[4], dot_prod 11630 * self.interpolate(dv, trgba) # <<<<<<<<<<<<<< 11678 11631 * # get source alpha first 11679 11632 * # First locate our points 11680 * bin_id = iclip(<int> floor((dv - self.x_bounds[0]) / dx), # <<<<<<<<<<<<<< 11681 * 0, self.nbins-2) 11682 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11683 */ 11684 __pyx_t_1 = (__pyx_v_dv - (__pyx_v_self->x_bounds[0])); 11685 if (unlikely(__pyx_v_dx == 0)) { 11686 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 11687 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11688 } 11689 11690 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":121 11633 */ 11634 ((struct __pyx_vtabstruct_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self->__pyx_vtab)->interpolate(__pyx_v_self, __pyx_v_dv, __pyx_v_trgba); 11635 11636 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":137 11637 * # get source alpha first 11691 11638 * # First locate our points 11692 * bin_id = iclip(<int> floor((dv - self.x_bounds[0]) / dx), 11693 * 0, self.nbins-2) # <<<<<<<<<<<<<< 11694 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11695 * bv = self.vs[3][bin_id] # This is x0 11696 */ 11697 __pyx_v_bin_id = __pyx_f_2yt_9amr_utils_iclip(((int)floor((__pyx_t_1 / __pyx_v_dx))), 0, (__pyx_v_self->nbins - 2)); 11698 11699 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":123 11700 * 0, self.nbins-2) 11701 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11702 * bv = self.vs[3][bin_id] # This is x0 # <<<<<<<<<<<<<< 11703 * dy = self.vs[3][bin_id+1]-bv # dy 11704 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 11705 */ 11706 __pyx_v_bv = ((__pyx_v_self->vs[3])[__pyx_v_bin_id]); 11707 11708 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":124 11709 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11710 * bv = self.vs[3][bin_id] # This is x0 11711 * dy = self.vs[3][bin_id+1]-bv # dy # <<<<<<<<<<<<<< 11712 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 11713 * # This is our final value for transfer function on the entering face 11714 */ 11715 __pyx_v_dy = (((__pyx_v_self->vs[3])[(__pyx_v_bin_id + 1)]) - __pyx_v_bv); 11716 11717 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":125 11718 * bv = self.vs[3][bin_id] # This is x0 11719 * dy = self.vs[3][bin_id+1]-bv # dy 11720 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 # <<<<<<<<<<<<<< 11721 * # This is our final value for transfer function on the entering face 11722 * tf = bv+dd*(dy/dx) 11723 */ 11724 __pyx_v_dd = (__pyx_v_dv - ((__pyx_v_self->x_bounds[0]) + (__pyx_v_bin_id * __pyx_v_dx))); 11725 11726 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":127 11727 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 11728 * # This is our final value for transfer function on the entering face 11729 * tf = bv+dd*(dy/dx) # <<<<<<<<<<<<<< 11730 * ta = tf # Store the source alpha 11639 * dot_prod = 0.0 # <<<<<<<<<<<<<< 11640 * if self.use_light: 11641 * for i in range(3): 11642 */ 11643 __pyx_v_dot_prod = 0.0; 11644 11645 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":138 11646 * # First locate our points 11731 11647 * dot_prod = 0.0 11732 */ 11733 if (unlikely(__pyx_v_dx == 0)) { 11734 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 11735 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11736 } 11737 __pyx_v_tf = (__pyx_v_bv + (__pyx_v_dd * (__pyx_v_dy / __pyx_v_dx))); 11738 11739 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":128 11740 * # This is our final value for transfer function on the entering face 11741 * tf = bv+dd*(dy/dx) 11742 * ta = tf # Store the source alpha # <<<<<<<<<<<<<< 11648 * if self.use_light: # <<<<<<<<<<<<<< 11649 * for i in range(3): 11650 * dot_prod += self.light_dir[i] * grad[i] 11651 */ 11652 __pyx_t_1 = __pyx_v_self->use_light; 11653 if (__pyx_t_1) { 11654 11655 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":139 11743 11656 * dot_prod = 0.0 11744 * for i in range(3): 11745 */ 11746 __pyx_v_ta = __pyx_v_tf; 11747 11748 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":129 11749 * tf = bv+dd*(dy/dx) 11750 * ta = tf # Store the source alpha 11751 * dot_prod = 0.0 # <<<<<<<<<<<<<< 11752 * for i in range(3): 11753 * dot_prod += self.light_dir[i] * grad[i] 11754 */ 11755 __pyx_v_dot_prod = 0.0; 11756 11757 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":130 11758 * ta = tf # Store the source alpha 11759 * dot_prod = 0.0 11760 * for i in range(3): # <<<<<<<<<<<<<< 11761 * dot_prod += self.light_dir[i] * grad[i] 11762 * #print dot_prod, grad[0], grad[1], grad[2] 11763 */ 11764 for (__pyx_t_2 = 0; __pyx_t_2 < 3; __pyx_t_2+=1) { 11765 __pyx_v_i = __pyx_t_2; 11766 11767 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":131 11768 * dot_prod = 0.0 11769 * for i in range(3): 11770 * dot_prod += self.light_dir[i] * grad[i] # <<<<<<<<<<<<<< 11771 * #print dot_prod, grad[0], grad[1], grad[2] 11772 * dot_prod = fmax(0.0, dot_prod) 11773 */ 11774 __pyx_v_dot_prod += ((__pyx_v_self->light_dir[__pyx_v_i]) * (__pyx_v_grad[__pyx_v_i])); 11775 } 11776 11777 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":133 11778 * dot_prod += self.light_dir[i] * grad[i] 11779 * #print dot_prod, grad[0], grad[1], grad[2] 11780 * dot_prod = fmax(0.0, dot_prod) # <<<<<<<<<<<<<< 11781 * for i in range(3): 11782 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11783 */ 11784 __pyx_v_dot_prod = __pyx_f_2yt_9amr_utils_fmax(0.0, __pyx_v_dot_prod); 11785 11786 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":134 11787 * #print dot_prod, grad[0], grad[1], grad[2] 11788 * dot_prod = fmax(0.0, dot_prod) 11789 * for i in range(3): # <<<<<<<<<<<<<< 11790 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11791 * bv = self.vs[i][bin_id] # This is x0 11792 */ 11793 for (__pyx_t_2 = 0; __pyx_t_2 < 3; __pyx_t_2+=1) { 11794 __pyx_v_i = __pyx_t_2; 11795 11796 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":136 11797 * for i in range(3): 11798 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11799 * bv = self.vs[i][bin_id] # This is x0 # <<<<<<<<<<<<<< 11800 * dy = self.vs[i][bin_id+1]-bv # dy 11801 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 11802 */ 11803 __pyx_v_bv = ((__pyx_v_self->vs[__pyx_v_i])[__pyx_v_bin_id]); 11804 11805 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":137 11806 * # Recall that linear interpolation is y0 + (x-x0) * dx/dy 11807 * bv = self.vs[i][bin_id] # This is x0 11808 * dy = self.vs[i][bin_id+1]-bv # dy # <<<<<<<<<<<<<< 11809 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 11810 * # This is our final value for transfer function on the entering face 11811 */ 11812 __pyx_v_dy = (((__pyx_v_self->vs[__pyx_v_i])[(__pyx_v_bin_id + 1)]) - __pyx_v_bv); 11813 11814 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":138 11815 * bv = self.vs[i][bin_id] # This is x0 11816 * dy = self.vs[i][bin_id+1]-bv # dy 11817 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 # <<<<<<<<<<<<<< 11818 * # This is our final value for transfer function on the entering face 11819 * tf = bv+dd*(dy/dx) + dot_prod * self.light_color[i] 11820 */ 11821 __pyx_v_dd = (__pyx_v_dv - ((__pyx_v_self->x_bounds[0]) + (__pyx_v_bin_id * __pyx_v_dx))); 11822 11823 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":140 11824 * dd = dv-(self.x_bounds[0] + bin_id * dx) # x - x0 11825 * # This is our final value for transfer function on the entering face 11826 * tf = bv+dd*(dy/dx) + dot_prod * self.light_color[i] # <<<<<<<<<<<<<< 11827 * # alpha blending 11828 * rgba[i] += (1. - rgba[3])*ta*tf*dt 11829 */ 11830 if (unlikely(__pyx_v_dx == 0)) { 11831 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 11832 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11833 } 11834 __pyx_v_tf = ((__pyx_v_bv + (__pyx_v_dd * (__pyx_v_dy / __pyx_v_dx))) + (__pyx_v_dot_prod * (__pyx_v_self->light_color[__pyx_v_i]))); 11657 * if self.use_light: 11658 * for i in range(3): # <<<<<<<<<<<<<< 11659 * dot_prod += self.light_dir[i] * grad[i] 11660 * dot_prod = fmax(0.0, dot_prod) 11661 */ 11662 for (__pyx_t_1 = 0; __pyx_t_1 < 3; __pyx_t_1+=1) { 11663 __pyx_v_i = __pyx_t_1; 11664 11665 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":140 11666 * if self.use_light: 11667 * for i in range(3): 11668 * dot_prod += self.light_dir[i] * grad[i] # <<<<<<<<<<<<<< 11669 * dot_prod = fmax(0.0, dot_prod) 11670 * for i in range(3): 11671 */ 11672 __pyx_v_dot_prod += ((__pyx_v_self->light_dir[__pyx_v_i]) * (__pyx_v_grad[__pyx_v_i])); 11673 } 11674 11675 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":141 11676 * for i in range(3): 11677 * dot_prod += self.light_dir[i] * grad[i] 11678 * dot_prod = fmax(0.0, dot_prod) # <<<<<<<<<<<<<< 11679 * for i in range(3): 11680 * trgba[i] += dot_prod*self.light_color[i] 11681 */ 11682 __pyx_v_dot_prod = __pyx_f_2yt_9amr_utils_fmax(0.0, __pyx_v_dot_prod); 11835 11683 11836 11684 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":142 11837 * tf = bv+dd*(dy/dx) + dot_prod * self.light_color[i] 11838 * # alpha blending 11839 * rgba[i] += (1. - rgba[3])*ta*tf*dt # <<<<<<<<<<<<<< 11840 * #update alpha 11841 * rgba[3] += (1. - rgba[3])*ta*dt 11842 */ 11843 (__pyx_v_rgba[__pyx_v_i]) += ((((1.0 - (__pyx_v_rgba[3])) * __pyx_v_ta) * __pyx_v_tf) * __pyx_v_dt); 11844 } 11845 11846 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":144 11847 * rgba[i] += (1. - rgba[3])*ta*tf*dt 11848 * #update alpha 11849 * rgba[3] += (1. - rgba[3])*ta*dt # <<<<<<<<<<<<<< 11850 * # We should really do some alpha blending. 11851 * # Front to back blending is defined as: 11852 */ 11853 (__pyx_v_rgba[3]) += (((1.0 - (__pyx_v_rgba[3])) * __pyx_v_ta) * __pyx_v_dt); 11854 11855 goto __pyx_L0; 11856 __pyx_L1_error:; 11857 __Pyx_WriteUnraisable("yt.amr_utils.TransferFunctionProxy.eval_transfer"); 11858 __pyx_L0:; 11685 * dot_prod += self.light_dir[i] * grad[i] 11686 * dot_prod = fmax(0.0, dot_prod) 11687 * for i in range(3): # <<<<<<<<<<<<<< 11688 * trgba[i] += dot_prod*self.light_color[i] 11689 * # alpha blending 11690 */ 11691 for (__pyx_t_1 = 0; __pyx_t_1 < 3; __pyx_t_1+=1) { 11692 __pyx_v_i = __pyx_t_1; 11693 11694 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":143 11695 * dot_prod = fmax(0.0, dot_prod) 11696 * for i in range(3): 11697 * trgba[i] += dot_prod*self.light_color[i] # <<<<<<<<<<<<<< 11698 * # alpha blending 11699 * ta = (1.0 - rgba[3])*dt*trgba[3] 11700 */ 11701 (__pyx_v_trgba[__pyx_v_i]) += (__pyx_v_dot_prod * (__pyx_v_self->light_color[__pyx_v_i])); 11702 } 11703 goto __pyx_L3; 11704 } 11705 __pyx_L3:; 11706 11707 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":145 11708 * trgba[i] += dot_prod*self.light_color[i] 11709 * # alpha blending 11710 * ta = (1.0 - rgba[3])*dt*trgba[3] # <<<<<<<<<<<<<< 11711 * for i in range(4): 11712 * rgba[i] += ta*trgba[i] 11713 */ 11714 __pyx_v_ta = (((1.0 - (__pyx_v_rgba[3])) * __pyx_v_dt) * (__pyx_v_trgba[3])); 11715 11716 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":146 11717 * # alpha blending 11718 * ta = (1.0 - rgba[3])*dt*trgba[3] 11719 * for i in range(4): # <<<<<<<<<<<<<< 11720 * rgba[i] += ta*trgba[i] 11721 * 11722 */ 11723 for (__pyx_t_1 = 0; __pyx_t_1 < 4; __pyx_t_1+=1) { 11724 __pyx_v_i = __pyx_t_1; 11725 11726 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":147 11727 * ta = (1.0 - rgba[3])*dt*trgba[3] 11728 * for i in range(4): 11729 * rgba[i] += ta*trgba[i] # <<<<<<<<<<<<<< 11730 * 11731 * cdef class VectorPlane: 11732 */ 11733 (__pyx_v_rgba[__pyx_v_i]) += (__pyx_v_ta * (__pyx_v_trgba[__pyx_v_i])); 11734 } 11735 11859 11736 __Pyx_DECREF((PyObject *)__pyx_v_self); 11860 11737 __Pyx_RefNannyFinishContext(); 11861 11738 } 11862 11739 11863 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":15 811740 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":157 11864 11741 * cdef np.float64_t *x_vec, *y_vec 11865 11742 * … … 11934 11811 if (likely(values[1])) kw_args--; 11935 11812 else { 11936 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11813 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11937 11814 } 11938 11815 case 2: … … 11940 11817 if (likely(values[2])) kw_args--; 11941 11818 else { 11942 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11819 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11943 11820 } 11944 11821 case 3: … … 11946 11823 if (likely(values[3])) kw_args--; 11947 11824 else { 11948 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11825 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11949 11826 } 11950 11827 case 4: … … 11952 11829 if (likely(values[4])) kw_args--; 11953 11830 else { 11954 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 4); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11831 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 4); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11955 11832 } 11956 11833 case 5: … … 11958 11835 if (likely(values[5])) kw_args--; 11959 11836 else { 11960 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 5); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11837 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 5); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11961 11838 } 11962 11839 case 6: … … 11964 11841 if (likely(values[6])) kw_args--; 11965 11842 else { 11966 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 6); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11843 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 6); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11967 11844 } 11968 11845 } 11969 11846 if (unlikely(kw_args > 0)) { 11970 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11847 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11971 11848 } 11972 11849 __pyx_v_vp_pos = ((PyArrayObject *)values[0]); … … 11990 11867 goto __pyx_L4_argument_unpacking_done; 11991 11868 __pyx_L5_argtuple_error:; 11992 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L3_error;}11869 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 11993 11870 __pyx_L3_error:; 11994 11871 __Pyx_AddTraceback("yt.amr_utils.VectorPlane.__cinit__"); … … 12009 11886 __pyx_bstruct_x_vec.buf = NULL; 12010 11887 __pyx_bstruct_y_vec.buf = NULL; 12011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vp_pos), __pyx_ptype_5numpy_ndarray, 1, "vp_pos", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vp_dir), __pyx_ptype_5numpy_ndarray, 1, "vp_dir", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12013 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_center), __pyx_ptype_5numpy_ndarray, 1, "center", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 16 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12014 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_image), __pyx_ptype_5numpy_ndarray, 1, "image", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 16 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12015 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_vec), __pyx_ptype_5numpy_ndarray, 1, "x_vec", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 16 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12016 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_y_vec), __pyx_ptype_5numpy_ndarray, 1, "y_vec", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 16 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11888 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vp_pos), __pyx_ptype_5numpy_ndarray, 1, "vp_pos", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11889 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vp_dir), __pyx_ptype_5numpy_ndarray, 1, "vp_dir", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11890 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_center), __pyx_ptype_5numpy_ndarray, 1, "center", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_image), __pyx_ptype_5numpy_ndarray, 1, "image", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11892 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_vec), __pyx_ptype_5numpy_ndarray, 1, "x_vec", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 11893 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_y_vec), __pyx_ptype_5numpy_ndarray, 1, "y_vec", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12017 11894 { 12018 11895 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12019 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_vp_pos, (PyObject*)__pyx_v_vp_pos, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11896 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_vp_pos, (PyObject*)__pyx_v_vp_pos, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12020 11897 } 12021 11898 __pyx_bstride_0_vp_pos = __pyx_bstruct_vp_pos.strides[0]; __pyx_bstride_1_vp_pos = __pyx_bstruct_vp_pos.strides[1]; __pyx_bstride_2_vp_pos = __pyx_bstruct_vp_pos.strides[2]; … … 12023 11900 { 12024 11901 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12025 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_vp_dir, (PyObject*)__pyx_v_vp_dir, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11902 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_vp_dir, (PyObject*)__pyx_v_vp_dir, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12026 11903 } 12027 11904 __pyx_bstride_0_vp_dir = __pyx_bstruct_vp_dir.strides[0]; … … 12029 11906 { 12030 11907 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12031 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_center, (PyObject*)__pyx_v_center, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11908 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_center, (PyObject*)__pyx_v_center, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12032 11909 } 12033 11910 __pyx_bstride_0_center = __pyx_bstruct_center.strides[0]; … … 12035 11912 { 12036 11913 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12037 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_image, (PyObject*)__pyx_v_image, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11914 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_image, (PyObject*)__pyx_v_image, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12038 11915 } 12039 11916 __pyx_bstride_0_image = __pyx_bstruct_image.strides[0]; __pyx_bstride_1_image = __pyx_bstruct_image.strides[1]; __pyx_bstride_2_image = __pyx_bstruct_image.strides[2]; … … 12041 11918 { 12042 11919 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12043 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_x_vec, (PyObject*)__pyx_v_x_vec, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11920 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_x_vec, (PyObject*)__pyx_v_x_vec, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12044 11921 } 12045 11922 __pyx_bstride_0_x_vec = __pyx_bstruct_x_vec.strides[0]; … … 12047 11924 { 12048 11925 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12049 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_y_vec, (PyObject*)__pyx_v_y_vec, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}11926 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_y_vec, (PyObject*)__pyx_v_y_vec, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12050 11927 } 12051 11928 __pyx_bstride_0_y_vec = __pyx_bstruct_y_vec.strides[0]; 12052 11929 __pyx_bshape_0_y_vec = __pyx_bstruct_y_vec.shape[0]; 12053 11930 12054 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":16 711931 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":166 12055 11932 * np.ndarray[np.float64_t, ndim=1] y_vec): 12056 11933 * cdef int i, j … … 12065 11942 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->avp_pos = ((PyObject *)__pyx_v_vp_pos); 12066 11943 12067 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":16 811944 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":167 12068 11945 * cdef int i, j 12069 11946 * self.avp_pos = vp_pos … … 12078 11955 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->avp_dir = ((PyObject *)__pyx_v_vp_dir); 12079 11956 12080 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":16 911957 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":168 12081 11958 * self.avp_pos = vp_pos 12082 11959 * self.avp_dir = vp_dir … … 12091 11968 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->acenter = ((PyObject *)__pyx_v_center); 12092 11969 12093 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":1 7011970 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":169 12094 11971 * self.avp_dir = vp_dir 12095 11972 * self.acenter = center … … 12104 11981 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->aimage = ((PyObject *)__pyx_v_image); 12105 11982 12106 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 111983 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":170 12107 11984 * self.acenter = center 12108 11985 * self.aimage = image … … 12117 11994 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->ax_vec = ((PyObject *)__pyx_v_x_vec); 12118 11995 12119 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 211996 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":171 12120 11997 * self.aimage = image 12121 11998 * self.ax_vec = x_vec … … 12130 12007 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->ay_vec = ((PyObject *)__pyx_v_y_vec); 12131 12008 12132 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 312009 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":172 12133 12010 * self.ax_vec = x_vec 12134 12011 * self.ay_vec = y_vec … … 12139 12016 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->vp_pos = ((__pyx_t_5numpy_float64_t *)__pyx_v_vp_pos->data); 12140 12017 12141 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 412018 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":173 12142 12019 * self.ay_vec = y_vec 12143 12020 * self.vp_pos = <np.float64_t *> vp_pos.data … … 12148 12025 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->vp_dir = ((__pyx_t_5numpy_float64_t *)__pyx_v_vp_dir->data); 12149 12026 12150 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 512027 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":174 12151 12028 * self.vp_pos = <np.float64_t *> vp_pos.data 12152 12029 * self.vp_dir = <np.float64_t *> vp_dir.data … … 12157 12034 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->center = ((__pyx_t_5numpy_float64_t *)__pyx_v_center->data); 12158 12035 12159 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 612036 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":175 12160 12037 * self.vp_dir = <np.float64_t *> vp_dir.data 12161 12038 * self.center = <np.float64_t *> center.data … … 12166 12043 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->image = ((__pyx_t_5numpy_float64_t *)__pyx_v_image->data); 12167 12044 12168 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 712045 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":176 12169 12046 * self.center = <np.float64_t *> center.data 12170 12047 * self.image = <np.float64_t *> image.data … … 12175 12052 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->x_vec = ((__pyx_t_5numpy_float64_t *)__pyx_v_x_vec->data); 12176 12053 12177 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 812054 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":177 12178 12055 * self.image = <np.float64_t *> image.data 12179 12056 * self.x_vec = <np.float64_t *> x_vec.data … … 12184 12061 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->y_vec = ((__pyx_t_5numpy_float64_t *)__pyx_v_y_vec->data); 12185 12062 12186 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":17 912063 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":178 12187 12064 * self.x_vec = <np.float64_t *> x_vec.data 12188 12065 * self.y_vec = <np.float64_t *> y_vec.data … … 12193 12070 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv = (__pyx_v_vp_pos->dimensions[0]); 12194 12071 12195 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":1 8012072 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":179 12196 12073 * self.y_vec = <np.float64_t *> y_vec.data 12197 12074 * self.nv = vp_pos.shape[0] … … 12202 12079 for (__pyx_t_1 = 0; __pyx_t_1 < 4; __pyx_t_1+=1) { 12203 12080 __pyx_v_i = __pyx_t_1; 12204 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_bounds, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12081 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_bounds, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12205 12082 __Pyx_GOTREF(__pyx_t_2); 12206 __pyx_t_3 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_3 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12083 __pyx_t_3 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_3 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12207 12084 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 12208 12085 (((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[__pyx_v_i]) = __pyx_t_3; 12209 12086 } 12210 12087 12211 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":18 112088 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":180 12212 12089 * self.nv = vp_pos.shape[0] 12213 12090 * for i in range(4): self.bounds[i] = bounds[i] … … 12216 12093 * 12217 12094 */ 12218 __pyx_t_3 = ((((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[1]) - (((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[0])); 12219 if (unlikely(((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv == 0)) { 12220 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 12221 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12222 } 12223 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->pdx = (__pyx_t_3 / ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv); 12224 12225 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":182 12095 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->pdx = (((((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[1]) - (((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[0])) / ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv); 12096 12097 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":181 12226 12098 * for i in range(4): self.bounds[i] = bounds[i] 12227 12099 * self.pdx = (self.bounds[1] - self.bounds[0])/self.nv 12228 12100 * self.pdy = (self.bounds[3] - self.bounds[2])/self.nv # <<<<<<<<<<<<<< 12229 12101 * 12230 * cdef void get_start_stop(self, np.float64_t *ex, int *rv): 12231 */ 12232 __pyx_t_3 = ((((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[3]) - (((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[2])); 12233 if (unlikely(((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv == 0)) { 12234 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 12235 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12236 } 12237 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->pdy = (__pyx_t_3 / ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv); 12102 * @cython.boundscheck(False) 12103 */ 12104 ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->pdy = (((((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[3]) - (((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[2])) / ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv); 12238 12105 12239 12106 __pyx_r = 0; … … 12273 12140 } 12274 12141 12275 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":18 412276 * self.pdy = (self.bounds[3] - self.bounds[2])/self.nv12277 * 12142 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":185 12143 * @cython.boundscheck(False) 12144 * @cython.wraparound(False) 12278 12145 * cdef void get_start_stop(self, np.float64_t *ex, int *rv): # <<<<<<<<<<<<<< 12279 12146 * # Extrema need to be re-centered … … 12284 12151 __pyx_t_5numpy_float64_t __pyx_v_cx; 12285 12152 __pyx_t_5numpy_float64_t __pyx_v_cy; 12286 PyObject *__pyx_v_i; 12287 Py_ssize_t __pyx_t_1; 12288 PyObject *__pyx_t_2 = NULL; 12289 PyObject *__pyx_t_3 = NULL; 12290 Py_ssize_t __pyx_t_4; 12291 Py_ssize_t __pyx_t_5; 12292 __pyx_t_5numpy_float64_t __pyx_t_6; 12153 int __pyx_v_i; 12154 int __pyx_t_1; 12293 12155 __Pyx_RefNannySetupContext("get_start_stop"); 12294 12156 __Pyx_INCREF((PyObject *)__pyx_v_self); 12295 __pyx_v_i = Py_None; __Pyx_INCREF(Py_None); 12296 12297 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":187 12298 * # Extrema need to be re-centered 12157 12158 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":189 12299 12159 * cdef np.float64_t cx, cy 12160 * cdef int i 12300 12161 * cx = cy = 0.0 # <<<<<<<<<<<<<< 12301 12162 * for i in range(3): … … 12305 12166 __pyx_v_cy = 0.0; 12306 12167 12307 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":1 8812308 * cdef np.float64_t cx, cy12168 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":190 12169 * cdef int i 12309 12170 * cx = cy = 0.0 12310 12171 * for i in range(3): # <<<<<<<<<<<<<< … … 12312 12173 * cy += self.center[i] * self.y_vec[i] 12313 12174 */ 12314 __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12315 __Pyx_GOTREF(__pyx_t_2); 12316 __Pyx_INCREF(__pyx_int_3); 12317 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_3); 12318 __Pyx_GIVEREF(__pyx_int_3); 12319 __pyx_t_3 = PyObject_Call(__pyx_builtin_range, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12320 __Pyx_GOTREF(__pyx_t_3); 12321 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 12322 if (PyList_CheckExact(__pyx_t_3) || PyTuple_CheckExact(__pyx_t_3)) { 12323 __pyx_t_1 = 0; __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); 12324 } else { 12325 __pyx_t_1 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12326 __Pyx_GOTREF(__pyx_t_2); 12327 } 12328 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 12329 for (;;) { 12330 if (likely(PyList_CheckExact(__pyx_t_2))) { 12331 if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_2)) break; 12332 __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; 12333 } else if (likely(PyTuple_CheckExact(__pyx_t_2))) { 12334 if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_2)) break; 12335 __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; 12336 } else { 12337 __pyx_t_3 = PyIter_Next(__pyx_t_2); 12338 if (!__pyx_t_3) { 12339 if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12340 break; 12341 } 12342 __Pyx_GOTREF(__pyx_t_3); 12343 } 12344 __Pyx_DECREF(__pyx_v_i); 12345 __pyx_v_i = __pyx_t_3; 12346 __pyx_t_3 = 0; 12347 12348 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":189 12175 for (__pyx_t_1 = 0; __pyx_t_1 < 3; __pyx_t_1+=1) { 12176 __pyx_v_i = __pyx_t_1; 12177 12178 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":191 12349 12179 * cx = cy = 0.0 12350 12180 * for i in range(3): … … 12353 12183 * rv[0] = <int> floor((ex[0] - cx - self.bounds[0])/self.pdx) 12354 12184 */ 12355 __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12356 __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12357 __pyx_v_cx += ((__pyx_v_self->center[__pyx_t_4]) * (__pyx_v_self->x_vec[__pyx_t_5])); 12358 12359 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":190 12185 __pyx_v_cx += ((__pyx_v_self->center[__pyx_v_i]) * (__pyx_v_self->x_vec[__pyx_v_i])); 12186 12187 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":192 12360 12188 * for i in range(3): 12361 12189 * cx += self.center[i] * self.x_vec[i] … … 12364 12192 * rv[1] = rv[0] + <int> ceil((ex[1] - ex[0])/self.pdx) 12365 12193 */ 12366 __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12367 __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12368 __pyx_v_cy += ((__pyx_v_self->center[__pyx_t_5]) * (__pyx_v_self->y_vec[__pyx_t_4])); 12369 } 12370 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 12371 12372 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":191 12194 __pyx_v_cy += ((__pyx_v_self->center[__pyx_v_i]) * (__pyx_v_self->y_vec[__pyx_v_i])); 12195 } 12196 12197 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":193 12373 12198 * cx += self.center[i] * self.x_vec[i] 12374 12199 * cy += self.center[i] * self.y_vec[i] … … 12377 12202 * rv[2] = <int> floor((ex[2] - cy - self.bounds[2])/self.pdy) 12378 12203 */ 12379 __pyx_t_6 = (((__pyx_v_ex[0]) - __pyx_v_cx) - (__pyx_v_self->bounds[0])); 12380 if (unlikely(__pyx_v_self->pdx == 0)) { 12381 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 12382 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12383 } 12384 (__pyx_v_rv[0]) = ((int)floor((__pyx_t_6 / __pyx_v_self->pdx))); 12385 12386 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":192 12204 (__pyx_v_rv[0]) = ((int)floor(((((__pyx_v_ex[0]) - __pyx_v_cx) - (__pyx_v_self->bounds[0])) / __pyx_v_self->pdx))); 12205 12206 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":194 12387 12207 * cy += self.center[i] * self.y_vec[i] 12388 12208 * rv[0] = <int> floor((ex[0] - cx - self.bounds[0])/self.pdx) … … 12391 12211 * rv[3] = rv[2] + <int> ceil((ex[3] - ex[2])/self.pdy) 12392 12212 */ 12393 __pyx_t_6 = ((__pyx_v_ex[1]) - (__pyx_v_ex[0])); 12394 if (unlikely(__pyx_v_self->pdx == 0)) { 12395 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 12396 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12397 } 12398 (__pyx_v_rv[1]) = ((__pyx_v_rv[0]) + ((int)ceil((__pyx_t_6 / __pyx_v_self->pdx)))); 12399 12400 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":193 12213 (__pyx_v_rv[1]) = ((__pyx_v_rv[0]) + ((int)ceil((((__pyx_v_ex[1]) - (__pyx_v_ex[0])) / __pyx_v_self->pdx)))); 12214 12215 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":195 12401 12216 * rv[0] = <int> floor((ex[0] - cx - self.bounds[0])/self.pdx) 12402 12217 * rv[1] = rv[0] + <int> ceil((ex[1] - ex[0])/self.pdx) … … 12405 12220 * 12406 12221 */ 12407 __pyx_t_6 = (((__pyx_v_ex[2]) - __pyx_v_cy) - (__pyx_v_self->bounds[2])); 12408 if (unlikely(__pyx_v_self->pdy == 0)) { 12409 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 12410 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12411 } 12412 (__pyx_v_rv[2]) = ((int)floor((__pyx_t_6 / __pyx_v_self->pdy))); 12413 12414 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":194 12222 (__pyx_v_rv[2]) = ((int)floor(((((__pyx_v_ex[2]) - __pyx_v_cy) - (__pyx_v_self->bounds[2])) / __pyx_v_self->pdy))); 12223 12224 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":196 12415 12225 * rv[1] = rv[0] + <int> ceil((ex[1] - ex[0])/self.pdx) 12416 12226 * rv[2] = <int> floor((ex[2] - cy - self.bounds[2])/self.pdy) … … 12419 12229 * cdef inline void copy_into(self, np.float64_t *fv, np.float64_t *tv, 12420 12230 */ 12421 __pyx_t_6 = ((__pyx_v_ex[3]) - (__pyx_v_ex[2])); 12422 if (unlikely(__pyx_v_self->pdy == 0)) { 12423 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 12424 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12425 } 12426 (__pyx_v_rv[3]) = ((__pyx_v_rv[2]) + ((int)ceil((__pyx_t_6 / __pyx_v_self->pdy)))); 12427 12428 goto __pyx_L0; 12429 __pyx_L1_error:; 12430 __Pyx_XDECREF(__pyx_t_2); 12431 __Pyx_XDECREF(__pyx_t_3); 12432 __Pyx_WriteUnraisable("yt.amr_utils.VectorPlane.get_start_stop"); 12433 __pyx_L0:; 12434 __Pyx_DECREF(__pyx_v_i); 12231 (__pyx_v_rv[3]) = ((__pyx_v_rv[2]) + ((int)ceil((((__pyx_v_ex[3]) - (__pyx_v_ex[2])) / __pyx_v_self->pdy)))); 12232 12435 12233 __Pyx_DECREF((PyObject *)__pyx_v_self); 12436 12234 __Pyx_RefNannyFinishContext(); 12437 12235 } 12438 12236 12439 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":19 612237 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":198 12440 12238 * rv[3] = rv[2] + <int> ceil((ex[3] - ex[2])/self.pdy) 12441 12239 * … … 12452 12250 __Pyx_INCREF((PyObject *)__pyx_v_self); 12453 12251 12454 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":20 112252 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":203 12455 12253 * # to-vector is flat and 'ni' long 12456 12254 * cdef int k … … 12463 12261 __pyx_v_k = __pyx_t_2; 12464 12262 12465 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":20 212263 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":204 12466 12264 * cdef int k 12467 12265 * for k in range(nk): … … 12477 12275 } 12478 12276 12479 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":20 412277 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":206 12480 12278 * tv[k] = fv[(((k*self.nv)+j)*self.nv+i)] 12481 12279 * … … 12492 12290 __Pyx_INCREF((PyObject *)__pyx_v_self); 12493 12291 12494 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":20 712292 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":209 12495 12293 * int i, int j, int nk): 12496 12294 * cdef int k … … 12503 12301 __pyx_v_k = __pyx_t_2; 12504 12302 12505 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 0812303 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":210 12506 12304 * cdef int k 12507 12305 * for k in range(nk): … … 12517 12315 } 12518 12316 12519 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":22 312317 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":226 12520 12318 * @cython.boundscheck(False) 12521 12319 * @cython.wraparound(False) … … 12553 12351 int __pyx_t_3; 12554 12352 int __pyx_t_4; 12555 __pyx_t_5numpy_float64_t __pyx_t_5; 12556 int __pyx_t_6; 12557 __pyx_t_5numpy_int64_t __pyx_t_7; 12353 int __pyx_t_5; 12558 12354 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__data,&__pyx_n_s__left_edge,&__pyx_n_s__right_edge,&__pyx_n_s__dims,0}; 12559 12355 __Pyx_RefNannySetupContext("__cinit__"); … … 12578 12374 if (likely(values[1])) kw_args--; 12579 12375 else { 12580 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12376 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12581 12377 } 12582 12378 case 2: … … 12584 12380 if (likely(values[2])) kw_args--; 12585 12381 else { 12586 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12382 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12587 12383 } 12588 12384 case 3: … … 12590 12386 if (likely(values[3])) kw_args--; 12591 12387 else { 12592 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12388 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12593 12389 } 12594 12390 } 12595 12391 if (unlikely(kw_args > 0)) { 12596 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12392 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12597 12393 } 12598 12394 __pyx_v_data = ((PyArrayObject *)values[0]); … … 12610 12406 goto __pyx_L4_argument_unpacking_done; 12611 12407 __pyx_L5_argtuple_error:; 12612 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12408 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12613 12409 __pyx_L3_error:; 12614 12410 __Pyx_AddTraceback("yt.amr_utils.PartitionedGrid.__cinit__"); … … 12624 12420 __pyx_bstruct_right_edge.buf = NULL; 12625 12421 __pyx_bstruct_dims.buf = NULL; 12626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), __pyx_ptype_5numpy_ndarray, 1, "data", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12627 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_left_edge), __pyx_ptype_5numpy_ndarray, 1, "left_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12628 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_right_edge), __pyx_ptype_5numpy_ndarray, 1, "right_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dims), __pyx_ptype_5numpy_ndarray, 1, "dims", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 2 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), __pyx_ptype_5numpy_ndarray, 1, "data", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_left_edge), __pyx_ptype_5numpy_ndarray, 1, "left_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_right_edge), __pyx_ptype_5numpy_ndarray, 1, "right_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12425 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dims), __pyx_ptype_5numpy_ndarray, 1, "dims", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12630 12426 { 12631 12427 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12632 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_data, (PyObject*)__pyx_v_data, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12428 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_data, (PyObject*)__pyx_v_data, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12633 12429 } 12634 12430 __pyx_bstride_0_data = __pyx_bstruct_data.strides[0]; __pyx_bstride_1_data = __pyx_bstruct_data.strides[1]; __pyx_bstride_2_data = __pyx_bstruct_data.strides[2]; … … 12636 12432 { 12637 12433 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12638 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_left_edge, (PyObject*)__pyx_v_left_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12434 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_left_edge, (PyObject*)__pyx_v_left_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12639 12435 } 12640 12436 __pyx_bstride_0_left_edge = __pyx_bstruct_left_edge.strides[0]; … … 12642 12438 { 12643 12439 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12644 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_right_edge, (PyObject*)__pyx_v_right_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12440 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_right_edge, (PyObject*)__pyx_v_right_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12645 12441 } 12646 12442 __pyx_bstride_0_right_edge = __pyx_bstruct_right_edge.strides[0]; … … 12648 12444 { 12649 12445 __Pyx_BufFmt_StackElem __pyx_stack[1]; 12650 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_dims, (PyObject*)__pyx_v_dims, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12446 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_dims, (PyObject*)__pyx_v_dims, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12651 12447 } 12652 12448 __pyx_bstride_0_dims = __pyx_bstruct_dims.strides[0]; 12653 12449 __pyx_bshape_0_dims = __pyx_bstruct_dims.shape[0]; 12654 12450 12655 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":23 012451 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":233 12656 12452 * # The data is likely brought in via a slice, so we copy it 12657 12453 * cdef int i, j, k, size … … 12666 12462 ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->LeftEdge = ((PyObject *)__pyx_v_left_edge); 12667 12463 12668 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":23 112464 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":234 12669 12465 * cdef int i, j, k, size 12670 12466 * self.LeftEdge = left_edge … … 12679 12475 ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->RightEdge = ((PyObject *)__pyx_v_right_edge); 12680 12476 12681 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":23 212477 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":235 12682 12478 * self.LeftEdge = left_edge 12683 12479 * self.RightEdge = right_edge … … 12689 12485 __pyx_v_i = __pyx_t_1; 12690 12486 12691 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":23 312487 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":236 12692 12488 * self.RightEdge = right_edge 12693 12489 * for i in range(3): … … 12699 12495 (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->left_edge[__pyx_v_i]) = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_2, __pyx_bstride_0_left_edge)); 12700 12496 12701 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":23 412497 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":237 12702 12498 * for i in range(3): 12703 12499 * self.left_edge[i] = left_edge[i] … … 12709 12505 (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->right_edge[__pyx_v_i]) = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_3, __pyx_bstride_0_right_edge)); 12710 12506 12711 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":23 512507 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":238 12712 12508 * self.left_edge[i] = left_edge[i] 12713 12509 * self.right_edge[i] = right_edge[i] 12714 12510 * self.dims[i] = dims[i] # <<<<<<<<<<<<<< 12715 12511 * self.dds[i] = (self.right_edge[i] - self.left_edge[i])/dims[i] 12716 * self.my_data = data12512 * self.idds[i] = 1.0/self.dds[i] 12717 12513 */ 12718 12514 __pyx_t_4 = __pyx_v_i; 12719 12515 (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->dims[__pyx_v_i]) = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_dims.buf, __pyx_t_4, __pyx_bstride_0_dims)); 12720 12516 12721 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":23 612517 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":239 12722 12518 * self.right_edge[i] = right_edge[i] 12723 12519 * self.dims[i] = dims[i] 12724 12520 * self.dds[i] = (self.right_edge[i] - self.left_edge[i])/dims[i] # <<<<<<<<<<<<<< 12521 * self.idds[i] = 1.0/self.dds[i] 12522 * self.my_data = data 12523 */ 12524 __pyx_t_5 = __pyx_v_i; 12525 (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->dds[__pyx_v_i]) = (((((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->right_edge[__pyx_v_i]) - (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->left_edge[__pyx_v_i])) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_dims.buf, __pyx_t_5, __pyx_bstride_0_dims))); 12526 12527 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":240 12528 * self.dims[i] = dims[i] 12529 * self.dds[i] = (self.right_edge[i] - self.left_edge[i])/dims[i] 12530 * self.idds[i] = 1.0/self.dds[i] # <<<<<<<<<<<<<< 12725 12531 * self.my_data = data 12726 12532 * self.data = <np.float64_t*> data.data 12727 12533 */ 12728 __pyx_t_5 = ((((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->right_edge[__pyx_v_i]) - (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->left_edge[__pyx_v_i])); 12729 __pyx_t_6 = __pyx_v_i; 12730 __pyx_t_7 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_dims.buf, __pyx_t_6, __pyx_bstride_0_dims)); 12731 if (unlikely(__pyx_t_7 == 0)) { 12732 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 12733 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12734 } 12735 (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->dds[__pyx_v_i]) = (__pyx_t_5 / __pyx_t_7); 12736 } 12737 12738 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":237 12739 * self.dims[i] = dims[i] 12534 (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->idds[__pyx_v_i]) = (1.0 / (((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->dds[__pyx_v_i])); 12535 } 12536 12537 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":241 12740 12538 * self.dds[i] = (self.right_edge[i] - self.left_edge[i])/dims[i] 12539 * self.idds[i] = 1.0/self.dds[i] 12741 12540 * self.my_data = data # <<<<<<<<<<<<<< 12742 12541 * self.data = <np.float64_t*> data.data … … 12749 12548 ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->my_data = ((PyObject *)__pyx_v_data); 12750 12549 12751 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 3812752 * self. dds[i] = (self.right_edge[i] - self.left_edge[i])/dims[i]12550 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":242 12551 * self.idds[i] = 1.0/self.dds[i] 12753 12552 * self.my_data = data 12754 12553 * self.data = <np.float64_t*> data.data # <<<<<<<<<<<<<< … … 12786 12585 } 12787 12586 12788 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":24 212587 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":246 12789 12588 * @cython.boundscheck(False) 12790 12589 * @cython.wraparound(False) … … 12832 12631 if (likely(values[1])) kw_args--; 12833 12632 else { 12834 __Pyx_RaiseArgtupleInvalid("cast_plane", 1, 2, 2, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 24 2; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12633 __Pyx_RaiseArgtupleInvalid("cast_plane", 1, 2, 2, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12835 12634 } 12836 12635 } 12837 12636 if (unlikely(kw_args > 0)) { 12838 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "cast_plane") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 24 2; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12637 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "cast_plane") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12839 12638 } 12840 12639 __pyx_v_tf = ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)values[0]); … … 12848 12647 goto __pyx_L4_argument_unpacking_done; 12849 12648 __pyx_L5_argtuple_error:; 12850 __Pyx_RaiseArgtupleInvalid("cast_plane", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 24 2; __pyx_clineno = __LINE__; goto __pyx_L3_error;}12649 __Pyx_RaiseArgtupleInvalid("cast_plane", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 12851 12650 __pyx_L3_error:; 12852 12651 __Pyx_AddTraceback("yt.amr_utils.PartitionedGrid.cast_plane"); … … 12856 12655 __Pyx_INCREF((PyObject *)__pyx_v_tf); 12857 12656 __Pyx_INCREF((PyObject *)__pyx_v_vp); 12858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tf), __pyx_ptype_2yt_9amr_utils_TransferFunctionProxy, 1, "tf", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 24 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vp), __pyx_ptype_2yt_9amr_utils_VectorPlane, 1, "vp", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 24 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12860 12861 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 4912657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tf), __pyx_ptype_2yt_9amr_utils_TransferFunctionProxy, 1, "tf", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vp), __pyx_ptype_2yt_9amr_utils_VectorPlane, 1, "vp", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12659 12660 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":253 12862 12661 * cdef int iter[4] 12863 12662 * cdef np.float64_t v_pos[3], v_dir[3], rgba[4], extrema[4] … … 12868 12667 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->__pyx_vtab)->calculate_extent(((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self), __pyx_v_vp, __pyx_v_extrema); 12869 12668 12870 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":25 012669 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":254 12871 12670 * cdef np.float64_t v_pos[3], v_dir[3], rgba[4], extrema[4] 12872 12671 * self.calculate_extent(vp, extrema) … … 12877 12676 ((struct __pyx_vtabstruct_2yt_9amr_utils_VectorPlane *)__pyx_v_vp->__pyx_vtab)->get_start_stop(__pyx_v_vp, __pyx_v_extrema, __pyx_v_iter); 12878 12677 12879 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":25 112678 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":255 12880 12679 * self.calculate_extent(vp, extrema) 12881 12680 * vp.get_start_stop(extrema, iter) … … 12889 12688 } 12890 12689 12891 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":25 212690 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":256 12892 12691 * vp.get_start_stop(extrema, iter) 12893 12692 * for i in range(4): iter[i] = iclip(iter[i], 0, vp.nv) … … 12898 12697 __pyx_v_hit = 0; 12899 12698 12900 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":25 312699 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":257 12901 12700 * for i in range(4): iter[i] = iclip(iter[i], 0, vp.nv) 12902 12701 * hit = 0 … … 12909 12708 __pyx_v_vj = __pyx_t_2; 12910 12709 12911 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":25 412710 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":258 12912 12711 * hit = 0 12913 12712 * for vj in range(iter[0], iter[1]): … … 12920 12719 __pyx_v_vi = __pyx_t_4; 12921 12720 12922 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":25 512721 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":259 12923 12722 * for vj in range(iter[0], iter[1]): 12924 12723 * for vi in range(iter[2], iter[3]): … … 12929 12728 ((struct __pyx_vtabstruct_2yt_9amr_utils_VectorPlane *)__pyx_v_vp->__pyx_vtab)->copy_into(__pyx_v_vp, __pyx_v_vp->vp_pos, __pyx_v_v_pos, __pyx_v_vi, __pyx_v_vj, 3); 12930 12729 12931 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 5612730 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":260 12932 12731 * for vi in range(iter[2], iter[3]): 12933 12732 * vp.copy_into(vp.vp_pos, v_pos, vi, vj, 3) … … 12938 12737 ((struct __pyx_vtabstruct_2yt_9amr_utils_VectorPlane *)__pyx_v_vp->__pyx_vtab)->copy_into(__pyx_v_vp, __pyx_v_vp->image, __pyx_v_rgba, __pyx_v_vi, __pyx_v_vj, 4); 12939 12738 12940 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 5712739 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":261 12941 12740 * vp.copy_into(vp.vp_pos, v_pos, vi, vj, 3) 12942 12741 * vp.copy_into(vp.image, rgba, vi, vj, 4) … … 12947 12746 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->__pyx_vtab)->integrate_ray(((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self), __pyx_v_v_pos, __pyx_v_vp->vp_dir, __pyx_v_rgba, __pyx_v_tf); 12948 12747 12949 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 5812748 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":262 12950 12749 * vp.copy_into(vp.image, rgba, vi, vj, 4) 12951 12750 * self.integrate_ray(v_pos, vp.vp_dir, rgba, tf) … … 12958 12757 } 12959 12758 12960 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 5912759 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":263 12961 12760 * self.integrate_ray(v_pos, vp.vp_dir, rgba, tf) 12962 12761 * vp.copy_back(rgba, vp.image, vi, vj, 4) … … 12966 12765 */ 12967 12766 __Pyx_XDECREF(__pyx_r); 12968 __pyx_t_5 = PyInt_FromLong(__pyx_v_hit); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 2 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}12767 __pyx_t_5 = PyInt_FromLong(__pyx_v_hit); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 12969 12768 __Pyx_GOTREF(__pyx_t_5); 12970 12769 __pyx_r = __pyx_t_5; … … 12987 12786 } 12988 12787 12989 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":26 312788 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":267 12990 12789 * @cython.boundscheck(False) 12991 12790 * @cython.wraparound(False) … … 13010 12809 __Pyx_INCREF((PyObject *)__pyx_v_vp); 13011 12810 13012 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 6712811 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":271 13013 12812 * # We do this for all eight corners 13014 12813 * cdef np.float64_t *edges[2], temp … … 13019 12818 (__pyx_v_edges[0]) = __pyx_v_self->left_edge; 13020 12819 13021 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 6812820 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":272 13022 12821 * cdef np.float64_t *edges[2], temp 13023 12822 * edges[0] = self.left_edge … … 13028 12827 (__pyx_v_edges[1]) = __pyx_v_self->right_edge; 13029 12828 13030 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 6912829 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":273 13031 12830 * edges[0] = self.left_edge 13032 12831 * edges[1] = self.right_edge … … 13041 12840 (__pyx_v_extrema[3]) = __pyx_t_1; 13042 12841 13043 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":27 112842 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":275 13044 12843 * extrema[0] = extrema[2] = 1e300; extrema[1] = extrema[3] = -1e300 13045 12844 * cdef int i, j, k … … 13051 12850 __pyx_v_i = __pyx_t_2; 13052 12851 13053 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":27 212852 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":276 13054 12853 * cdef int i, j, k 13055 12854 * for i in range(2): … … 13061 12860 __pyx_v_j = __pyx_t_3; 13062 12861 13063 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":27 312862 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":277 13064 12863 * for i in range(2): 13065 12864 * for j in range(2): … … 13071 12870 __pyx_v_k = __pyx_t_4; 13072 12871 13073 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":27 512872 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":279 13074 12873 * for k in range(2): 13075 12874 * # This should rotate it into the vector plane … … 13080 12879 __pyx_v_temp = (((__pyx_v_edges[__pyx_v_i])[0]) * (__pyx_v_vp->x_vec[0])); 13081 12880 13082 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 7612881 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":280 13083 12882 * # This should rotate it into the vector plane 13084 12883 * temp = edges[i][0] * vp.x_vec[0] … … 13089 12888 __pyx_v_temp += (((__pyx_v_edges[__pyx_v_j])[1]) * (__pyx_v_vp->x_vec[1])); 13090 12889 13091 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 7712890 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":281 13092 12891 * temp = edges[i][0] * vp.x_vec[0] 13093 12892 * temp += edges[j][1] * vp.x_vec[1] … … 13098 12897 __pyx_v_temp += (((__pyx_v_edges[__pyx_v_k])[2]) * (__pyx_v_vp->x_vec[2])); 13099 12898 13100 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 7812899 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":282 13101 12900 * temp += edges[j][1] * vp.x_vec[1] 13102 12901 * temp += edges[k][2] * vp.x_vec[2] … … 13112 12911 __pyx_L9:; 13113 12912 13114 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 7912913 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":283 13115 12914 * temp += edges[k][2] * vp.x_vec[2] 13116 12915 * if temp < extrema[0]: extrema[0] = temp … … 13126 12925 __pyx_L10:; 13127 12926 13128 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":28 012927 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":284 13129 12928 * if temp < extrema[0]: extrema[0] = temp 13130 12929 * if temp > extrema[1]: extrema[1] = temp … … 13135 12934 __pyx_v_temp = (((__pyx_v_edges[__pyx_v_i])[0]) * (__pyx_v_vp->y_vec[0])); 13136 12935 13137 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":28 112936 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":285 13138 12937 * if temp > extrema[1]: extrema[1] = temp 13139 12938 * temp = edges[i][0] * vp.y_vec[0] … … 13144 12943 __pyx_v_temp += (((__pyx_v_edges[__pyx_v_j])[1]) * (__pyx_v_vp->y_vec[1])); 13145 12944 13146 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":28 212945 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":286 13147 12946 * temp = edges[i][0] * vp.y_vec[0] 13148 12947 * temp += edges[j][1] * vp.y_vec[1] … … 13153 12952 __pyx_v_temp += (((__pyx_v_edges[__pyx_v_k])[2]) * (__pyx_v_vp->y_vec[2])); 13154 12953 13155 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":28 312954 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":287 13156 12955 * temp += edges[j][1] * vp.y_vec[1] 13157 12956 * temp += edges[k][2] * vp.y_vec[2] … … 13167 12966 __pyx_L11:; 13168 12967 13169 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":28 412968 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":288 13170 12969 * temp += edges[k][2] * vp.y_vec[2] 13171 12970 * if temp < extrema[2]: extrema[2] = temp … … 13189 12988 } 13190 12989 13191 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":2 8912990 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":293 13192 12991 * @cython.boundscheck(False) 13193 12992 * @cython.wraparound(False) … … 13210 13009 __pyx_t_5numpy_float64_t __pyx_v_tdelta[3]; 13211 13010 __pyx_t_5numpy_float64_t __pyx_v_enter_t; 13212 __pyx_t_5numpy_float64_t __pyx_v_ dt;13011 __pyx_t_5numpy_float64_t __pyx_v_exit_t; 13213 13012 __pyx_t_5numpy_float64_t __pyx_v_tr; 13214 13013 __pyx_t_5numpy_float64_t __pyx_v_tl; … … 13218 13017 int __pyx_t_1; 13219 13018 int __pyx_t_2; 13220 __pyx_t_5numpy_float64_t __pyx_t_3;13221 __pyx_t_5numpy_float64_t __pyx_t_4;13019 int __pyx_t_3; 13020 int __pyx_t_4; 13222 13021 int __pyx_t_5; 13223 13022 int __pyx_t_6; 13224 13023 int __pyx_t_7; 13225 13024 int __pyx_t_8; 13226 int __pyx_t_9;13227 int __pyx_t_10;13228 13025 __Pyx_RefNannySetupContext("integrate_ray"); 13229 13026 __Pyx_INCREF((PyObject *)__pyx_v_self); 13230 13027 __Pyx_INCREF((PyObject *)__pyx_v_tf); 13231 13028 13232 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":29 413029 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":298 13233 13030 * TransferFunctionProxy tf): 13234 13031 * cdef int cur_ind[3], step[3], x, y, i, n, flat_ind, hit, direction 13235 13032 * cdef np.float64_t intersect_t = 1.0 # <<<<<<<<<<<<<< 13236 13033 * cdef np.float64_t intersect[3], tmax[3], tdelta[3] 13237 * cdef np.float64_t enter_t, dist, alpha, dt 13034 * cdef np.float64_t enter_t, dist, alpha, dt, exit_t 13238 13035 */ 13239 13036 __pyx_v_intersect_t = 1.0; 13240 13037 13241 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 29813242 * cdef np.float64_t enter_t, dist, alpha, dt 13038 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":302 13039 * cdef np.float64_t enter_t, dist, alpha, dt, exit_t 13243 13040 * cdef np.float64_t tr, tl, temp_x, temp_y, dv 13244 13041 * for i in range(3): # <<<<<<<<<<<<<< … … 13249 13046 __pyx_v_i = __pyx_t_1; 13250 13047 13251 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 29913048 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":303 13252 13049 * cdef np.float64_t tr, tl, temp_x, temp_y, dv 13253 13050 * for i in range(3): … … 13259 13056 if (__pyx_t_2) { 13260 13057 13261 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":30 013058 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":304 13262 13059 * for i in range(3): 13263 13060 * if (v_dir[i] < 0): … … 13271 13068 /*else*/ { 13272 13069 13273 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":30 213070 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":306 13274 13071 * step[i] = -1 13275 13072 * else: … … 13282 13079 __pyx_L5:; 13283 13080 13284 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":30 313081 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":307 13285 13082 * else: 13286 13083 * step[i] = 1 … … 13289 13086 * tl = (self.left_edge[i] - v_pos[i])/v_dir[i] 13290 13087 */ 13291 __pyx_v_x = __Pyx_mod_long((__pyx_v_i + 1),3);13292 13293 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":30 413088 __pyx_v_x = ((__pyx_v_i + 1) % 3); 13089 13090 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":308 13294 13091 * step[i] = 1 13295 13092 * x = (i+1) % 3 … … 13298 13095 * tr = (self.right_edge[i] - v_pos[i])/v_dir[i] 13299 13096 */ 13300 __pyx_v_y = __Pyx_mod_long((__pyx_v_i + 2),3);13301 13302 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":30 513097 __pyx_v_y = ((__pyx_v_i + 2) % 3); 13098 13099 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":309 13303 13100 * x = (i+1) % 3 13304 13101 * y = (i+2) % 3 … … 13307 13104 * temp_x = (v_pos[x] + tl*v_dir[x]) 13308 13105 */ 13309 __pyx_t_3 = ((__pyx_v_self->left_edge[__pyx_v_i]) - (__pyx_v_v_pos[__pyx_v_i])); 13310 __pyx_t_4 = (__pyx_v_v_dir[__pyx_v_i]); 13311 if (unlikely(__pyx_t_4 == 0)) { 13312 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 13313 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 13314 } 13315 __pyx_v_tl = (__pyx_t_3 / __pyx_t_4); 13316 13317 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":306 13106 __pyx_v_tl = (((__pyx_v_self->left_edge[__pyx_v_i]) - (__pyx_v_v_pos[__pyx_v_i])) / (__pyx_v_v_dir[__pyx_v_i])); 13107 13108 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":310 13318 13109 * y = (i+2) % 3 13319 13110 * tl = (self.left_edge[i] - v_pos[i])/v_dir[i] … … 13322 13113 * temp_y = (v_pos[y] + tl*v_dir[y]) 13323 13114 */ 13324 __pyx_t_4 = ((__pyx_v_self->right_edge[__pyx_v_i]) - (__pyx_v_v_pos[__pyx_v_i])); 13325 __pyx_t_3 = (__pyx_v_v_dir[__pyx_v_i]); 13326 if (unlikely(__pyx_t_3 == 0)) { 13327 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 13328 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 13329 } 13330 __pyx_v_tr = (__pyx_t_4 / __pyx_t_3); 13331 13332 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":307 13115 __pyx_v_tr = (((__pyx_v_self->right_edge[__pyx_v_i]) - (__pyx_v_v_pos[__pyx_v_i])) / (__pyx_v_v_dir[__pyx_v_i])); 13116 13117 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":311 13333 13118 * tl = (self.left_edge[i] - v_pos[i])/v_dir[i] 13334 13119 * tr = (self.right_edge[i] - v_pos[i])/v_dir[i] … … 13339 13124 __pyx_v_temp_x = ((__pyx_v_v_pos[__pyx_v_x]) + (__pyx_v_tl * (__pyx_v_v_dir[__pyx_v_x]))); 13340 13125 13341 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 0813126 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":312 13342 13127 * tr = (self.right_edge[i] - v_pos[i])/v_dir[i] 13343 13128 * temp_x = (v_pos[x] + tl*v_dir[x]) … … 13348 13133 __pyx_v_temp_y = ((__pyx_v_v_pos[__pyx_v_y]) + (__pyx_v_tl * (__pyx_v_v_dir[__pyx_v_y]))); 13349 13134 13350 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 0913135 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":313 13351 13136 * temp_x = (v_pos[x] + tl*v_dir[x]) 13352 13137 * temp_y = (v_pos[y] + tl*v_dir[y]) … … 13357 13142 __pyx_t_2 = ((__pyx_v_self->left_edge[__pyx_v_x]) <= __pyx_v_temp_x); 13358 13143 if (__pyx_t_2) { 13359 __pyx_t_ 5= (__pyx_v_temp_x <= (__pyx_v_self->right_edge[__pyx_v_x]));13360 if (__pyx_t_ 5) {13361 13362 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":31 013144 __pyx_t_3 = (__pyx_v_temp_x <= (__pyx_v_self->right_edge[__pyx_v_x])); 13145 if (__pyx_t_3) { 13146 13147 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":314 13363 13148 * temp_y = (v_pos[y] + tl*v_dir[y]) 13364 13149 * if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ … … 13367 13152 * direction = i 13368 13153 */ 13369 __pyx_t_ 6= ((__pyx_v_self->left_edge[__pyx_v_y]) <= __pyx_v_temp_y);13370 if (__pyx_t_ 6) {13371 __pyx_t_ 7= (__pyx_v_temp_y <= (__pyx_v_self->right_edge[__pyx_v_y]));13372 if (__pyx_t_ 7) {13373 13374 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":31 113154 __pyx_t_4 = ((__pyx_v_self->left_edge[__pyx_v_y]) <= __pyx_v_temp_y); 13155 if (__pyx_t_4) { 13156 __pyx_t_5 = (__pyx_v_temp_y <= (__pyx_v_self->right_edge[__pyx_v_y])); 13157 if (__pyx_t_5) { 13158 13159 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":315 13375 13160 * if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ 13376 13161 * self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ … … 13379 13164 * intersect_t = tl 13380 13165 */ 13381 __pyx_t_ 8= (0.0 <= __pyx_v_tl);13382 if (__pyx_t_ 8) {13383 __pyx_t_ 9= (__pyx_v_tl < __pyx_v_intersect_t);13384 __pyx_t_ 10 = __pyx_t_9;13166 __pyx_t_6 = (0.0 <= __pyx_v_tl); 13167 if (__pyx_t_6) { 13168 __pyx_t_7 = (__pyx_v_tl < __pyx_v_intersect_t); 13169 __pyx_t_8 = __pyx_t_7; 13385 13170 } else { 13386 __pyx_t_ 10 = __pyx_t_8;13171 __pyx_t_8 = __pyx_t_6; 13387 13172 } 13388 __pyx_t_ 8 = __pyx_t_10;13173 __pyx_t_6 = __pyx_t_8; 13389 13174 } else { 13390 __pyx_t_ 8 = __pyx_t_7;13175 __pyx_t_6 = __pyx_t_5; 13391 13176 } 13392 __pyx_t_ 7 = __pyx_t_8;13177 __pyx_t_5 = __pyx_t_6; 13393 13178 } else { 13394 __pyx_t_ 7 = __pyx_t_6;13179 __pyx_t_5 = __pyx_t_4; 13395 13180 } 13396 __pyx_t_ 6 = __pyx_t_7;13181 __pyx_t_4 = __pyx_t_5; 13397 13182 } else { 13398 __pyx_t_ 6 = __pyx_t_5;13183 __pyx_t_4 = __pyx_t_3; 13399 13184 } 13400 __pyx_t_ 5 = __pyx_t_6;13185 __pyx_t_3 = __pyx_t_4; 13401 13186 } else { 13402 __pyx_t_ 5= __pyx_t_2;13403 } 13404 if (__pyx_t_ 5) {13405 13406 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":31 213187 __pyx_t_3 = __pyx_t_2; 13188 } 13189 if (__pyx_t_3) { 13190 13191 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":316 13407 13192 * self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ 13408 13193 * 0.0 <= tl and tl < intersect_t: … … 13413 13198 __pyx_v_direction = __pyx_v_i; 13414 13199 13415 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":31 313200 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":317 13416 13201 * 0.0 <= tl and tl < intersect_t: 13417 13202 * direction = i … … 13425 13210 __pyx_L6:; 13426 13211 13427 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":31 413212 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":318 13428 13213 * direction = i 13429 13214 * intersect_t = tl … … 13434 13219 __pyx_v_temp_x = ((__pyx_v_v_pos[__pyx_v_x]) + (__pyx_v_tr * (__pyx_v_v_dir[__pyx_v_x]))); 13435 13220 13436 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":31 513221 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":319 13437 13222 * intersect_t = tl 13438 13223 * temp_x = (v_pos[x] + tr*v_dir[x]) … … 13443 13228 __pyx_v_temp_y = ((__pyx_v_v_pos[__pyx_v_y]) + (__pyx_v_tr * (__pyx_v_v_dir[__pyx_v_y]))); 13444 13229 13445 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 1613230 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":320 13446 13231 * temp_x = (v_pos[x] + tr*v_dir[x]) 13447 13232 * temp_y = (v_pos[y] + tr*v_dir[y]) … … 13450 13235 * 0.0 <= tr and tr < intersect_t: 13451 13236 */ 13452 __pyx_t_ 5= ((__pyx_v_self->left_edge[__pyx_v_x]) <= __pyx_v_temp_x);13453 if (__pyx_t_ 5) {13237 __pyx_t_3 = ((__pyx_v_self->left_edge[__pyx_v_x]) <= __pyx_v_temp_x); 13238 if (__pyx_t_3) { 13454 13239 __pyx_t_2 = (__pyx_v_temp_x <= (__pyx_v_self->right_edge[__pyx_v_x])); 13455 13240 if (__pyx_t_2) { 13456 13241 13457 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 1713242 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":321 13458 13243 * temp_y = (v_pos[y] + tr*v_dir[y]) 13459 13244 * if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ … … 13462 13247 * direction = i 13463 13248 */ 13464 __pyx_t_ 6= ((__pyx_v_self->left_edge[__pyx_v_y]) <= __pyx_v_temp_y);13465 if (__pyx_t_ 6) {13466 __pyx_t_ 7= (__pyx_v_temp_y <= (__pyx_v_self->right_edge[__pyx_v_y]));13467 if (__pyx_t_ 7) {13468 13469 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 1813249 __pyx_t_4 = ((__pyx_v_self->left_edge[__pyx_v_y]) <= __pyx_v_temp_y); 13250 if (__pyx_t_4) { 13251 __pyx_t_5 = (__pyx_v_temp_y <= (__pyx_v_self->right_edge[__pyx_v_y])); 13252 if (__pyx_t_5) { 13253 13254 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":322 13470 13255 * if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ 13471 13256 * self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ … … 13474 13259 * intersect_t = tr 13475 13260 */ 13476 __pyx_t_ 8= (0.0 <= __pyx_v_tr);13477 if (__pyx_t_ 8) {13478 __pyx_t_ 10= (__pyx_v_tr < __pyx_v_intersect_t);13479 __pyx_t_ 9 = __pyx_t_10;13261 __pyx_t_6 = (0.0 <= __pyx_v_tr); 13262 if (__pyx_t_6) { 13263 __pyx_t_8 = (__pyx_v_tr < __pyx_v_intersect_t); 13264 __pyx_t_7 = __pyx_t_8; 13480 13265 } else { 13481 __pyx_t_ 9 = __pyx_t_8;13266 __pyx_t_7 = __pyx_t_6; 13482 13267 } 13483 __pyx_t_ 8 = __pyx_t_9;13268 __pyx_t_6 = __pyx_t_7; 13484 13269 } else { 13485 __pyx_t_ 8 = __pyx_t_7;13270 __pyx_t_6 = __pyx_t_5; 13486 13271 } 13487 __pyx_t_ 7 = __pyx_t_8;13272 __pyx_t_5 = __pyx_t_6; 13488 13273 } else { 13489 __pyx_t_ 7 = __pyx_t_6;13274 __pyx_t_5 = __pyx_t_4; 13490 13275 } 13491 __pyx_t_ 6 = __pyx_t_7;13276 __pyx_t_4 = __pyx_t_5; 13492 13277 } else { 13493 __pyx_t_ 6= __pyx_t_2;13278 __pyx_t_4 = __pyx_t_2; 13494 13279 } 13495 __pyx_t_2 = __pyx_t_ 6;13280 __pyx_t_2 = __pyx_t_4; 13496 13281 } else { 13497 __pyx_t_2 = __pyx_t_ 5;13282 __pyx_t_2 = __pyx_t_3; 13498 13283 } 13499 13284 if (__pyx_t_2) { 13500 13285 13501 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 1913286 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":323 13502 13287 * self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ 13503 13288 * 0.0 <= tr and tr < intersect_t: … … 13508 13293 __pyx_v_direction = __pyx_v_i; 13509 13294 13510 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":32 013295 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":324 13511 13296 * 0.0 <= tr and tr < intersect_t: 13512 13297 * direction = i … … 13521 13306 } 13522 13307 13523 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":32 113308 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":325 13524 13309 * direction = i 13525 13310 * intersect_t = tr … … 13530 13315 __pyx_t_2 = ((__pyx_v_self->left_edge[0]) <= (__pyx_v_v_pos[0])); 13531 13316 if (__pyx_t_2) { 13532 __pyx_t_ 5= ((__pyx_v_v_pos[0]) <= (__pyx_v_self->right_edge[0]));13533 if (__pyx_t_ 5) {13534 13535 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":32 213317 __pyx_t_3 = ((__pyx_v_v_pos[0]) <= (__pyx_v_self->right_edge[0])); 13318 if (__pyx_t_3) { 13319 13320 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":326 13536 13321 * intersect_t = tr 13537 13322 * if self.left_edge[0] <= v_pos[0] and v_pos[0] <= self.right_edge[0] and \ … … 13540 13325 * intersect_t = 0.0 13541 13326 */ 13542 __pyx_t_ 6= ((__pyx_v_self->left_edge[1]) <= (__pyx_v_v_pos[1]));13543 if (__pyx_t_ 6) {13544 __pyx_t_ 7= ((__pyx_v_v_pos[1]) <= (__pyx_v_self->right_edge[1]));13545 if (__pyx_t_ 7) {13546 13547 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":32 313327 __pyx_t_4 = ((__pyx_v_self->left_edge[1]) <= (__pyx_v_v_pos[1])); 13328 if (__pyx_t_4) { 13329 __pyx_t_5 = ((__pyx_v_v_pos[1]) <= (__pyx_v_self->right_edge[1])); 13330 if (__pyx_t_5) { 13331 13332 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":327 13548 13333 * if self.left_edge[0] <= v_pos[0] and v_pos[0] <= self.right_edge[0] and \ 13549 13334 * self.left_edge[1] <= v_pos[1] and v_pos[1] <= self.right_edge[1] and \ … … 13552 13337 * if not ((0.0 <= intersect_t) and (intersect_t < 1.0)): return 0 13553 13338 */ 13554 __pyx_t_ 8= ((__pyx_v_self->left_edge[2]) <= (__pyx_v_v_pos[2]));13555 if (__pyx_t_ 8) {13556 __pyx_t_ 9= ((__pyx_v_v_pos[2]) <= (__pyx_v_self->right_edge[2]));13557 __pyx_t_ 10 = __pyx_t_9;13339 __pyx_t_6 = ((__pyx_v_self->left_edge[2]) <= (__pyx_v_v_pos[2])); 13340 if (__pyx_t_6) { 13341 __pyx_t_7 = ((__pyx_v_v_pos[2]) <= (__pyx_v_self->right_edge[2])); 13342 __pyx_t_8 = __pyx_t_7; 13558 13343 } else { 13559 __pyx_t_ 10 = __pyx_t_8;13344 __pyx_t_8 = __pyx_t_6; 13560 13345 } 13561 __pyx_t_ 8 = __pyx_t_10;13346 __pyx_t_6 = __pyx_t_8; 13562 13347 } else { 13563 __pyx_t_ 8 = __pyx_t_7;13348 __pyx_t_6 = __pyx_t_5; 13564 13349 } 13565 __pyx_t_ 7 = __pyx_t_8;13350 __pyx_t_5 = __pyx_t_6; 13566 13351 } else { 13567 __pyx_t_ 7 = __pyx_t_6;13352 __pyx_t_5 = __pyx_t_4; 13568 13353 } 13569 __pyx_t_ 6 = __pyx_t_7;13354 __pyx_t_4 = __pyx_t_5; 13570 13355 } else { 13571 __pyx_t_ 6 = __pyx_t_5;13572 } 13573 __pyx_t_ 5 = __pyx_t_6;13356 __pyx_t_4 = __pyx_t_3; 13357 } 13358 __pyx_t_3 = __pyx_t_4; 13574 13359 } else { 13575 __pyx_t_ 5= __pyx_t_2;13576 } 13577 if (__pyx_t_ 5) {13578 13579 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":32 413360 __pyx_t_3 = __pyx_t_2; 13361 } 13362 if (__pyx_t_3) { 13363 13364 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":328 13580 13365 * self.left_edge[1] <= v_pos[1] and v_pos[1] <= self.right_edge[1] and \ 13581 13366 * self.left_edge[2] <= v_pos[2] and v_pos[2] <= self.right_edge[2]: … … 13589 13374 __pyx_L8:; 13590 13375 13591 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":32 513376 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":329 13592 13377 * self.left_edge[2] <= v_pos[2] and v_pos[2] <= self.right_edge[2]: 13593 13378 * intersect_t = 0.0 … … 13596 13381 * intersect[i] = v_pos[i] + intersect_t * v_dir[i] 13597 13382 */ 13598 __pyx_t_ 5= (0.0 <= __pyx_v_intersect_t);13599 if (__pyx_t_ 5) {13383 __pyx_t_3 = (0.0 <= __pyx_v_intersect_t); 13384 if (__pyx_t_3) { 13600 13385 __pyx_t_2 = (__pyx_v_intersect_t < 1.0); 13601 __pyx_t_ 6= __pyx_t_2;13386 __pyx_t_4 = __pyx_t_2; 13602 13387 } else { 13603 __pyx_t_ 6 = __pyx_t_5;13604 } 13605 __pyx_t_ 5 = (!__pyx_t_6);13606 if (__pyx_t_ 5) {13388 __pyx_t_4 = __pyx_t_3; 13389 } 13390 __pyx_t_3 = (!__pyx_t_4); 13391 if (__pyx_t_3) { 13607 13392 __pyx_r = 0; 13608 13393 goto __pyx_L0; … … 13611 13396 __pyx_L9:; 13612 13397 13613 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 2613398 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":330 13614 13399 * intersect_t = 0.0 13615 13400 * if not ((0.0 <= intersect_t) and (intersect_t < 1.0)): return 0 … … 13621 13406 __pyx_v_i = __pyx_t_1; 13622 13407 13623 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 2713408 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":331 13624 13409 * if not ((0.0 <= intersect_t) and (intersect_t < 1.0)): return 0 13625 13410 * for i in range(3): … … 13630 13415 (__pyx_v_intersect[__pyx_v_i]) = ((__pyx_v_v_pos[__pyx_v_i]) + (__pyx_v_intersect_t * (__pyx_v_v_dir[__pyx_v_i]))); 13631 13416 13632 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":330 13633 * cur_ind[i] = <int> floor((intersect[i] + 13634 * step[i]*1e-8*self.dds[i] - 13635 * self.left_edge[i])/self.dds[i]) # <<<<<<<<<<<<<< 13636 * tmax[i] = (((cur_ind[i]+step[i])*self.dds[i])+ 13637 * self.left_edge[i]-v_pos[i])/v_dir[i] 13638 */ 13639 __pyx_t_3 = (((__pyx_v_intersect[__pyx_v_i]) + (((__pyx_v_step[__pyx_v_i]) * 1e-08) * (__pyx_v_self->dds[__pyx_v_i]))) - (__pyx_v_self->left_edge[__pyx_v_i])); 13640 __pyx_t_4 = (__pyx_v_self->dds[__pyx_v_i]); 13641 if (unlikely(__pyx_t_4 == 0)) { 13642 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 13643 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 13644 } 13645 13646 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":328 13417 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":332 13647 13418 * for i in range(3): 13648 13419 * intersect[i] = v_pos[i] + intersect_t * v_dir[i] 13649 13420 * cur_ind[i] = <int> floor((intersect[i] + # <<<<<<<<<<<<<< 13650 13421 * step[i]*1e-8*self.dds[i] - 13651 * self.left_edge[i])/self.dds[i]) 13652 */ 13653 (__pyx_v_cur_ind[__pyx_v_i]) = ((int)floor((__pyx_t_3 / __pyx_t_4))); 13654 13655 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":332 13656 * self.left_edge[i])/self.dds[i]) 13657 * tmax[i] = (((cur_ind[i]+step[i])*self.dds[i])+ 13658 * self.left_edge[i]-v_pos[i])/v_dir[i] # <<<<<<<<<<<<<< 13659 * if cur_ind[i] == self.dims[i] and step[i] < 0: 13660 * cur_ind[i] = self.dims[i] - 1 13661 */ 13662 __pyx_t_4 = (((((__pyx_v_cur_ind[__pyx_v_i]) + (__pyx_v_step[__pyx_v_i])) * (__pyx_v_self->dds[__pyx_v_i])) + (__pyx_v_self->left_edge[__pyx_v_i])) - (__pyx_v_v_pos[__pyx_v_i])); 13663 __pyx_t_3 = (__pyx_v_v_dir[__pyx_v_i]); 13664 if (unlikely(__pyx_t_3 == 0)) { 13665 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 13666 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 13667 } 13668 13669 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":331 13422 * self.left_edge[i])*self.idds[i]) 13423 */ 13424 (__pyx_v_cur_ind[__pyx_v_i]) = ((int)floor(((((__pyx_v_intersect[__pyx_v_i]) + (((__pyx_v_step[__pyx_v_i]) * 1e-08) * (__pyx_v_self->dds[__pyx_v_i]))) - (__pyx_v_self->left_edge[__pyx_v_i])) * (__pyx_v_self->idds[__pyx_v_i])))); 13425 13426 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":335 13670 13427 * step[i]*1e-8*self.dds[i] - 13671 * self.left_edge[i]) /self.dds[i])13428 * self.left_edge[i])*self.idds[i]) 13672 13429 * tmax[i] = (((cur_ind[i]+step[i])*self.dds[i])+ # <<<<<<<<<<<<<< 13673 13430 * self.left_edge[i]-v_pos[i])/v_dir[i] 13674 * if cur_ind[i] == self.dims[i] and step[i] < 0:13675 */ 13676 (__pyx_v_tmax[__pyx_v_i]) = ( __pyx_t_4 / __pyx_t_3);13677 13678 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 3313679 * tmax[i] = (((cur_ind[i]+step[i])*self.dds[i])+13680 * self.left_edge[i]-v_pos[i])/v_dir[i]13431 * # This deals with the asymmetry in having our indices refer to the 13432 */ 13433 (__pyx_v_tmax[__pyx_v_i]) = ((((((__pyx_v_cur_ind[__pyx_v_i]) + (__pyx_v_step[__pyx_v_i])) * (__pyx_v_self->dds[__pyx_v_i])) + (__pyx_v_self->left_edge[__pyx_v_i])) - (__pyx_v_v_pos[__pyx_v_i])) / (__pyx_v_v_dir[__pyx_v_i])); 13434 13435 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":340 13436 * # left edge of a cell, but the right edge of the brick being one 13437 * # extra zone out. 13681 13438 * if cur_ind[i] == self.dims[i] and step[i] < 0: # <<<<<<<<<<<<<< 13682 13439 * cur_ind[i] = self.dims[i] - 1 13683 13440 * if cur_ind[i] < 0 or cur_ind[i] >= self.dims[i]: return 0 13684 13441 */ 13685 __pyx_t_ 5= ((__pyx_v_cur_ind[__pyx_v_i]) == (__pyx_v_self->dims[__pyx_v_i]));13686 if (__pyx_t_ 5) {13687 __pyx_t_ 6= ((__pyx_v_step[__pyx_v_i]) < 0);13688 __pyx_t_2 = __pyx_t_ 6;13442 __pyx_t_3 = ((__pyx_v_cur_ind[__pyx_v_i]) == (__pyx_v_self->dims[__pyx_v_i])); 13443 if (__pyx_t_3) { 13444 __pyx_t_4 = ((__pyx_v_step[__pyx_v_i]) < 0); 13445 __pyx_t_2 = __pyx_t_4; 13689 13446 } else { 13690 __pyx_t_2 = __pyx_t_ 5;13447 __pyx_t_2 = __pyx_t_3; 13691 13448 } 13692 13449 if (__pyx_t_2) { 13693 13450 13694 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 3413695 * self.left_edge[i]-v_pos[i])/v_dir[i]13451 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":341 13452 * # extra zone out. 13696 13453 * if cur_ind[i] == self.dims[i] and step[i] < 0: 13697 13454 * cur_ind[i] = self.dims[i] - 1 # <<<<<<<<<<<<<< … … 13704 13461 __pyx_L12:; 13705 13462 13706 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 3513463 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":342 13707 13464 * if cur_ind[i] == self.dims[i] and step[i] < 0: 13708 13465 * cur_ind[i] = self.dims[i] - 1 … … 13713 13470 __pyx_t_2 = ((__pyx_v_cur_ind[__pyx_v_i]) < 0); 13714 13471 if (!__pyx_t_2) { 13715 __pyx_t_ 5= ((__pyx_v_cur_ind[__pyx_v_i]) >= (__pyx_v_self->dims[__pyx_v_i]));13716 __pyx_t_ 6 = __pyx_t_5;13472 __pyx_t_3 = ((__pyx_v_cur_ind[__pyx_v_i]) >= (__pyx_v_self->dims[__pyx_v_i])); 13473 __pyx_t_4 = __pyx_t_3; 13717 13474 } else { 13718 __pyx_t_ 6= __pyx_t_2;13719 } 13720 if (__pyx_t_ 6) {13475 __pyx_t_4 = __pyx_t_2; 13476 } 13477 if (__pyx_t_4) { 13721 13478 __pyx_r = 0; 13722 13479 goto __pyx_L0; … … 13725 13482 __pyx_L13:; 13726 13483 13727 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 3613484 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":343 13728 13485 * cur_ind[i] = self.dims[i] - 1 13729 13486 * if cur_ind[i] < 0 or cur_ind[i] >= self.dims[i]: return 0 … … 13732 13489 * +self.left_edge[i]-v_pos[i])/v_dir[i] 13733 13490 */ 13734 __pyx_t_6 = ((__pyx_v_step[__pyx_v_i]) > 0); 13735 if (__pyx_t_6) { 13736 13737 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":338 13738 * if step[i] > 0: 13739 * tmax[i] = (((cur_ind[i]+1)*self.dds[i]) 13740 * +self.left_edge[i]-v_pos[i])/v_dir[i] # <<<<<<<<<<<<<< 13741 * if step[i] < 0: 13742 * tmax[i] = (((cur_ind[i]+0)*self.dds[i]) 13743 */ 13744 __pyx_t_3 = (((((__pyx_v_cur_ind[__pyx_v_i]) + 1) * (__pyx_v_self->dds[__pyx_v_i])) + (__pyx_v_self->left_edge[__pyx_v_i])) - (__pyx_v_v_pos[__pyx_v_i])); 13745 __pyx_t_4 = (__pyx_v_v_dir[__pyx_v_i]); 13746 if (unlikely(__pyx_t_4 == 0)) { 13747 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 13748 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 13749 } 13750 13751 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":337 13491 __pyx_t_4 = ((__pyx_v_step[__pyx_v_i]) > 0); 13492 if (__pyx_t_4) { 13493 13494 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":344 13752 13495 * if cur_ind[i] < 0 or cur_ind[i] >= self.dims[i]: return 0 13753 13496 * if step[i] > 0: … … 13756 13499 * if step[i] < 0: 13757 13500 */ 13758 (__pyx_v_tmax[__pyx_v_i]) = ( __pyx_t_3 / __pyx_t_4);13501 (__pyx_v_tmax[__pyx_v_i]) = ((((((__pyx_v_cur_ind[__pyx_v_i]) + 1) * (__pyx_v_self->dds[__pyx_v_i])) + (__pyx_v_self->left_edge[__pyx_v_i])) - (__pyx_v_v_pos[__pyx_v_i])) / (__pyx_v_v_dir[__pyx_v_i])); 13759 13502 goto __pyx_L14; 13760 13503 } 13761 13504 __pyx_L14:; 13762 13505 13763 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 3913506 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":346 13764 13507 * tmax[i] = (((cur_ind[i]+1)*self.dds[i]) 13765 13508 * +self.left_edge[i]-v_pos[i])/v_dir[i] … … 13768 13511 * +self.left_edge[i]-v_pos[i])/v_dir[i] 13769 13512 */ 13770 __pyx_t_6 = ((__pyx_v_step[__pyx_v_i]) < 0); 13771 if (__pyx_t_6) { 13772 13773 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":341 13774 * if step[i] < 0: 13775 * tmax[i] = (((cur_ind[i]+0)*self.dds[i]) 13776 * +self.left_edge[i]-v_pos[i])/v_dir[i] # <<<<<<<<<<<<<< 13777 * tdelta[i] = (self.dds[i]/v_dir[i]) 13778 * if tdelta[i] < 0: tdelta[i] *= -1 13779 */ 13780 __pyx_t_4 = (((((__pyx_v_cur_ind[__pyx_v_i]) + 0) * (__pyx_v_self->dds[__pyx_v_i])) + (__pyx_v_self->left_edge[__pyx_v_i])) - (__pyx_v_v_pos[__pyx_v_i])); 13781 __pyx_t_3 = (__pyx_v_v_dir[__pyx_v_i]); 13782 if (unlikely(__pyx_t_3 == 0)) { 13783 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 13784 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 13785 } 13786 13787 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":340 13513 __pyx_t_4 = ((__pyx_v_step[__pyx_v_i]) < 0); 13514 if (__pyx_t_4) { 13515 13516 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":347 13788 13517 * +self.left_edge[i]-v_pos[i])/v_dir[i] 13789 13518 * if step[i] < 0: … … 13792 13521 * tdelta[i] = (self.dds[i]/v_dir[i]) 13793 13522 */ 13794 (__pyx_v_tmax[__pyx_v_i]) = ( __pyx_t_4 / __pyx_t_3);13523 (__pyx_v_tmax[__pyx_v_i]) = ((((((__pyx_v_cur_ind[__pyx_v_i]) + 0) * (__pyx_v_self->dds[__pyx_v_i])) + (__pyx_v_self->left_edge[__pyx_v_i])) - (__pyx_v_v_pos[__pyx_v_i])) / (__pyx_v_v_dir[__pyx_v_i])); 13795 13524 goto __pyx_L15; 13796 13525 } 13797 13526 __pyx_L15:; 13798 13527 13799 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":34 213528 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":349 13800 13529 * tmax[i] = (((cur_ind[i]+0)*self.dds[i]) 13801 13530 * +self.left_edge[i]-v_pos[i])/v_dir[i] … … 13804 13533 * # We have to jumpstart our calculation 13805 13534 */ 13806 __pyx_t_3 = (__pyx_v_self->dds[__pyx_v_i]); 13807 __pyx_t_4 = (__pyx_v_v_dir[__pyx_v_i]); 13808 if (unlikely(__pyx_t_4 == 0)) { 13809 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 13810 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 13811 } 13812 (__pyx_v_tdelta[__pyx_v_i]) = (__pyx_t_3 / __pyx_t_4); 13813 13814 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":343 13535 (__pyx_v_tdelta[__pyx_v_i]) = ((__pyx_v_self->dds[__pyx_v_i]) / (__pyx_v_v_dir[__pyx_v_i])); 13536 13537 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":350 13815 13538 * +self.left_edge[i]-v_pos[i])/v_dir[i] 13816 13539 * tdelta[i] = (self.dds[i]/v_dir[i]) … … 13819 13542 * enter_t = intersect_t 13820 13543 */ 13821 __pyx_t_ 6= ((__pyx_v_tdelta[__pyx_v_i]) < 0);13822 if (__pyx_t_ 6) {13544 __pyx_t_4 = ((__pyx_v_tdelta[__pyx_v_i]) < 0); 13545 if (__pyx_t_4) { 13823 13546 (__pyx_v_tdelta[__pyx_v_i]) *= -1; 13824 13547 goto __pyx_L16; … … 13827 13550 } 13828 13551 13829 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 4513552 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":352 13830 13553 * if tdelta[i] < 0: tdelta[i] *= -1 13831 13554 * # We have to jumpstart our calculation … … 13836 13559 __pyx_v_enter_t = __pyx_v_intersect_t; 13837 13560 13838 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 4613561 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":353 13839 13562 * # We have to jumpstart our calculation 13840 13563 * enter_t = intersect_t … … 13844 13567 */ 13845 13568 while (1) { 13846 __pyx_t_ 6= 1;13847 if (!__pyx_t_ 6) break;13848 13849 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 4913569 __pyx_t_4 = 1; 13570 if (!__pyx_t_4) break; 13571 13572 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":356 13850 13573 * # dims here is one less than the dimensions of the data, 13851 13574 * # but we are tracing on the grid, not on the data... … … 13855 13578 */ 13856 13579 __pyx_t_1 = (__pyx_v_cur_ind[0]); 13857 __pyx_t_ 6= (0 <= __pyx_t_1);13858 if (__pyx_t_ 6) {13859 __pyx_t_ 6= (__pyx_t_1 < (__pyx_v_self->dims[0]));13860 } 13861 __pyx_t_2 = (!__pyx_t_ 6);13580 __pyx_t_4 = (0 <= __pyx_t_1); 13581 if (__pyx_t_4) { 13582 __pyx_t_4 = (__pyx_t_1 < (__pyx_v_self->dims[0])); 13583 } 13584 __pyx_t_2 = (!__pyx_t_4); 13862 13585 if (!__pyx_t_2) { 13863 13586 13864 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":35 013587 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":357 13865 13588 * # but we are tracing on the grid, not on the data... 13866 13589 * if (not (0 <= cur_ind[0] < self.dims[0])) or \ … … 13870 13593 */ 13871 13594 __pyx_t_1 = (__pyx_v_cur_ind[1]); 13872 __pyx_t_ 6= (0 <= __pyx_t_1);13873 if (__pyx_t_ 6) {13874 __pyx_t_ 6= (__pyx_t_1 < (__pyx_v_self->dims[1]));13595 __pyx_t_4 = (0 <= __pyx_t_1); 13596 if (__pyx_t_4) { 13597 __pyx_t_4 = (__pyx_t_1 < (__pyx_v_self->dims[1])); 13875 13598 } 13876 __pyx_t_ 5 = (!__pyx_t_6);13877 if (!__pyx_t_ 5) {13878 13879 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":35 113599 __pyx_t_3 = (!__pyx_t_4); 13600 if (!__pyx_t_3) { 13601 13602 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":358 13880 13603 * if (not (0 <= cur_ind[0] < self.dims[0])) or \ 13881 13604 * (not (0 <= cur_ind[1] < self.dims[1])) or \ … … 13885 13608 */ 13886 13609 __pyx_t_1 = (__pyx_v_cur_ind[2]); 13887 __pyx_t_ 6= (0 <= __pyx_t_1);13888 if (__pyx_t_ 6) {13889 __pyx_t_ 6= (__pyx_t_1 < (__pyx_v_self->dims[2]));13610 __pyx_t_4 = (0 <= __pyx_t_1); 13611 if (__pyx_t_4) { 13612 __pyx_t_4 = (__pyx_t_1 < (__pyx_v_self->dims[2])); 13890 13613 } 13891 __pyx_t_ 7 = (!__pyx_t_6);13892 __pyx_t_ 6 = __pyx_t_7;13614 __pyx_t_5 = (!__pyx_t_4); 13615 __pyx_t_4 = __pyx_t_5; 13893 13616 } else { 13894 __pyx_t_ 6 = __pyx_t_5;13617 __pyx_t_4 = __pyx_t_3; 13895 13618 } 13896 __pyx_t_ 5 = __pyx_t_6;13619 __pyx_t_3 = __pyx_t_4; 13897 13620 } else { 13898 __pyx_t_ 5= __pyx_t_2;13899 } 13900 if (__pyx_t_ 5) {13901 13902 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":35 213621 __pyx_t_3 = __pyx_t_2; 13622 } 13623 if (__pyx_t_3) { 13624 13625 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":359 13903 13626 * (not (0 <= cur_ind[1] < self.dims[1])) or \ 13904 13627 * (not (0 <= cur_ind[2] < self.dims[2])): … … 13912 13635 __pyx_L19:; 13913 13636 13914 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 5313637 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":360 13915 13638 * (not (0 <= cur_ind[2] < self.dims[2])): 13916 13639 * break … … 13921 13644 __pyx_v_hit += 1; 13922 13645 13923 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 5413646 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":361 13924 13647 * break 13925 13648 * hit += 1 13926 13649 * if tmax[0] < tmax[1]: # <<<<<<<<<<<<<< 13927 13650 * if tmax[0] < tmax[2]: 13928 * self.sample_values(v_pos, v_dir, enter_t, tmax[0], cur_ind,13929 */ 13930 __pyx_t_ 5= ((__pyx_v_tmax[0]) < (__pyx_v_tmax[1]));13931 if (__pyx_t_ 5) {13932 13933 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 5513651 * exit_t = fmin(tmax[0], 1.0) 13652 */ 13653 __pyx_t_3 = ((__pyx_v_tmax[0]) < (__pyx_v_tmax[1])); 13654 if (__pyx_t_3) { 13655 13656 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":362 13934 13657 * hit += 1 13935 13658 * if tmax[0] < tmax[1]: 13936 13659 * if tmax[0] < tmax[2]: # <<<<<<<<<<<<<< 13937 * self.sample_values(v_pos, v_dir, enter_t, tmax[0], cur_ind, 13660 * exit_t = fmin(tmax[0], 1.0) 13661 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13662 */ 13663 __pyx_t_3 = ((__pyx_v_tmax[0]) < (__pyx_v_tmax[2])); 13664 if (__pyx_t_3) { 13665 13666 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":363 13667 * if tmax[0] < tmax[1]: 13668 * if tmax[0] < tmax[2]: 13669 * exit_t = fmin(tmax[0], 1.0) # <<<<<<<<<<<<<< 13670 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13938 13671 * rgba, tf) 13939 13672 */ 13940 __pyx_t_5 = ((__pyx_v_tmax[0]) < (__pyx_v_tmax[2])); 13941 if (__pyx_t_5) { 13942 13943 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":357 13944 * if tmax[0] < tmax[2]: 13945 * self.sample_values(v_pos, v_dir, enter_t, tmax[0], cur_ind, 13673 __pyx_v_exit_t = __pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[0]), 1.0); 13674 13675 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":365 13676 * exit_t = fmin(tmax[0], 1.0) 13677 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13946 13678 * rgba, tf) # <<<<<<<<<<<<<< 13947 13679 * cur_ind[0] += step[0] 13948 * dt = fmin(tmax[0], 1.0) - enter_t13949 */ 13950 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, (__pyx_v_tmax[0]), __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf);13951 13952 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 5813953 * self.sample_values(v_pos, v_dir, enter_t, tmax[0], cur_ind,13680 * enter_t = tmax[0] 13681 */ 13682 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, __pyx_v_exit_t, __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf); 13683 13684 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":366 13685 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13954 13686 * rgba, tf) 13955 13687 * cur_ind[0] += step[0] # <<<<<<<<<<<<<< 13956 * dt = fmin(tmax[0], 1.0) - enter_t13957 13688 * enter_t = tmax[0] 13689 * tmax[0] += tdelta[0] 13958 13690 */ 13959 13691 (__pyx_v_cur_ind[0]) += (__pyx_v_step[0]); 13960 13692 13961 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 5913693 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":367 13962 13694 * rgba, tf) 13963 13695 * cur_ind[0] += step[0] 13964 * dt = fmin(tmax[0], 1.0) - enter_t # <<<<<<<<<<<<<<13965 * enter_t = tmax[0]13966 * tmax[0] += tdelta[0]13967 */13968 __pyx_v_dt = (__pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[0]), 1.0) - __pyx_v_enter_t);13969 13970 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":36013971 * cur_ind[0] += step[0]13972 * dt = fmin(tmax[0], 1.0) - enter_t13973 13696 * enter_t = tmax[0] # <<<<<<<<<<<<<< 13974 13697 * tmax[0] += tdelta[0] … … 13977 13700 __pyx_v_enter_t = (__pyx_v_tmax[0]); 13978 13701 13979 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":36 113980 * dt = fmin(tmax[0], 1.0) - enter_t13702 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":368 13703 * cur_ind[0] += step[0] 13981 13704 * enter_t = tmax[0] 13982 13705 * tmax[0] += tdelta[0] # <<<<<<<<<<<<<< 13983 13706 * else: 13984 * self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind,13707 * exit_t = fmin(tmax[2], 1.0) 13985 13708 */ 13986 13709 (__pyx_v_tmax[0]) += (__pyx_v_tdelta[0]); … … 13989 13712 /*else*/ { 13990 13713 13991 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":364 13714 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":370 13715 * tmax[0] += tdelta[0] 13992 13716 * else: 13993 * self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind, 13717 * exit_t = fmin(tmax[2], 1.0) # <<<<<<<<<<<<<< 13718 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13719 * rgba, tf) 13720 */ 13721 __pyx_v_exit_t = __pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[2]), 1.0); 13722 13723 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":372 13724 * exit_t = fmin(tmax[2], 1.0) 13725 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13994 13726 * rgba, tf) # <<<<<<<<<<<<<< 13995 13727 * cur_ind[2] += step[2] 13996 * dt = fmin(tmax[2], 1.0) - enter_t13997 */ 13998 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, (__pyx_v_tmax[2]), __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf);13999 14000 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 6514001 * self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind,13728 * enter_t = tmax[2] 13729 */ 13730 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, __pyx_v_exit_t, __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf); 13731 13732 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":373 13733 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 14002 13734 * rgba, tf) 14003 13735 * cur_ind[2] += step[2] # <<<<<<<<<<<<<< 14004 * dt = fmin(tmax[2], 1.0) - enter_t14005 13736 * enter_t = tmax[2] 13737 * tmax[2] += tdelta[2] 14006 13738 */ 14007 13739 (__pyx_v_cur_ind[2]) += (__pyx_v_step[2]); 14008 13740 14009 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 6613741 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":374 14010 13742 * rgba, tf) 14011 13743 * cur_ind[2] += step[2] 14012 * dt = fmin(tmax[2], 1.0) - enter_t # <<<<<<<<<<<<<<14013 * enter_t = tmax[2]14014 * tmax[2] += tdelta[2]14015 */14016 __pyx_v_dt = (__pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[2]), 1.0) - __pyx_v_enter_t);14017 14018 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":36714019 * cur_ind[2] += step[2]14020 * dt = fmin(tmax[2], 1.0) - enter_t14021 13744 * enter_t = tmax[2] # <<<<<<<<<<<<<< 14022 13745 * tmax[2] += tdelta[2] … … 14025 13748 __pyx_v_enter_t = (__pyx_v_tmax[2]); 14026 13749 14027 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 6814028 * dt = fmin(tmax[2], 1.0) - enter_t13750 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":375 13751 * cur_ind[2] += step[2] 14029 13752 * enter_t = tmax[2] 14030 13753 * tmax[2] += tdelta[2] # <<<<<<<<<<<<<< … … 14039 13762 /*else*/ { 14040 13763 14041 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":37 013764 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":377 14042 13765 * tmax[2] += tdelta[2] 14043 13766 * else: 14044 13767 * if tmax[1] < tmax[2]: # <<<<<<<<<<<<<< 14045 * self.sample_values(v_pos, v_dir, enter_t, tmax[1], cur_ind, 13768 * exit_t = fmin(tmax[1], 1.0) 13769 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13770 */ 13771 __pyx_t_3 = ((__pyx_v_tmax[1]) < (__pyx_v_tmax[2])); 13772 if (__pyx_t_3) { 13773 13774 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":378 13775 * else: 13776 * if tmax[1] < tmax[2]: 13777 * exit_t = fmin(tmax[1], 1.0) # <<<<<<<<<<<<<< 13778 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 14046 13779 * rgba, tf) 14047 13780 */ 14048 __pyx_t_5 = ((__pyx_v_tmax[1]) < (__pyx_v_tmax[2])); 14049 if (__pyx_t_5) { 14050 14051 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":372 14052 * if tmax[1] < tmax[2]: 14053 * self.sample_values(v_pos, v_dir, enter_t, tmax[1], cur_ind, 13781 __pyx_v_exit_t = __pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[1]), 1.0); 13782 13783 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":380 13784 * exit_t = fmin(tmax[1], 1.0) 13785 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 14054 13786 * rgba, tf) # <<<<<<<<<<<<<< 14055 13787 * cur_ind[1] += step[1] 14056 * dt = fmin(tmax[1], 1.0) - enter_t14057 */ 14058 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, (__pyx_v_tmax[1]), __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf);14059 14060 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 7314061 * self.sample_values(v_pos, v_dir, enter_t, tmax[1], cur_ind,13788 * enter_t = tmax[1] 13789 */ 13790 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, __pyx_v_exit_t, __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf); 13791 13792 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":381 13793 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 14062 13794 * rgba, tf) 14063 13795 * cur_ind[1] += step[1] # <<<<<<<<<<<<<< 14064 * dt = fmin(tmax[1], 1.0) - enter_t14065 13796 * enter_t = tmax[1] 13797 * tmax[1] += tdelta[1] 14066 13798 */ 14067 13799 (__pyx_v_cur_ind[1]) += (__pyx_v_step[1]); 14068 13800 14069 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 7413801 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":382 14070 13802 * rgba, tf) 14071 13803 * cur_ind[1] += step[1] 14072 * dt = fmin(tmax[1], 1.0) - enter_t # <<<<<<<<<<<<<<14073 * enter_t = tmax[1]14074 * tmax[1] += tdelta[1]14075 */14076 __pyx_v_dt = (__pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[1]), 1.0) - __pyx_v_enter_t);14077 14078 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":37514079 * cur_ind[1] += step[1]14080 * dt = fmin(tmax[1], 1.0) - enter_t14081 13804 * enter_t = tmax[1] # <<<<<<<<<<<<<< 14082 13805 * tmax[1] += tdelta[1] … … 14085 13808 __pyx_v_enter_t = (__pyx_v_tmax[1]); 14086 13809 14087 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 7614088 * dt = fmin(tmax[1], 1.0) - enter_t13810 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":383 13811 * cur_ind[1] += step[1] 14089 13812 * enter_t = tmax[1] 14090 13813 * tmax[1] += tdelta[1] # <<<<<<<<<<<<<< 14091 13814 * else: 14092 * self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind,13815 * exit_t = fmin(tmax[2], 1.0) 14093 13816 */ 14094 13817 (__pyx_v_tmax[1]) += (__pyx_v_tdelta[1]); … … 14097 13820 /*else*/ { 14098 13821 14099 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":379 13822 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":385 13823 * tmax[1] += tdelta[1] 14100 13824 * else: 14101 * self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind, 13825 * exit_t = fmin(tmax[2], 1.0) # <<<<<<<<<<<<<< 13826 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 13827 * rgba, tf) 13828 */ 13829 __pyx_v_exit_t = __pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[2]), 1.0); 13830 13831 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":387 13832 * exit_t = fmin(tmax[2], 1.0) 13833 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 14102 13834 * rgba, tf) # <<<<<<<<<<<<<< 14103 13835 * cur_ind[2] += step[2] 14104 * dt = fmin(tmax[2], 1.0) - enter_t14105 */ 14106 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, (__pyx_v_tmax[2]), __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf);14107 14108 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":38 014109 * self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind,13836 * enter_t = tmax[2] 13837 */ 13838 ((struct __pyx_vtabstruct_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self->__pyx_vtab)->sample_values(__pyx_v_self, __pyx_v_v_pos, __pyx_v_v_dir, __pyx_v_enter_t, __pyx_v_exit_t, __pyx_v_cur_ind, __pyx_v_rgba, __pyx_v_tf); 13839 13840 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":388 13841 * self.sample_values(v_pos, v_dir, enter_t, exit_t, cur_ind, 14110 13842 * rgba, tf) 14111 13843 * cur_ind[2] += step[2] # <<<<<<<<<<<<<< 14112 * dt = fmin(tmax[2], 1.0) - enter_t14113 13844 * enter_t = tmax[2] 13845 * tmax[2] += tdelta[2] 14114 13846 */ 14115 13847 (__pyx_v_cur_ind[2]) += (__pyx_v_step[2]); 14116 13848 14117 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":38 113849 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":389 14118 13850 * rgba, tf) 14119 13851 * cur_ind[2] += step[2] 14120 * dt = fmin(tmax[2], 1.0) - enter_t # <<<<<<<<<<<<<<14121 * enter_t = tmax[2]14122 * tmax[2] += tdelta[2]14123 */14124 __pyx_v_dt = (__pyx_f_2yt_9amr_utils_fmin((__pyx_v_tmax[2]), 1.0) - __pyx_v_enter_t);14125 14126 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":38214127 * cur_ind[2] += step[2]14128 * dt = fmin(tmax[2], 1.0) - enter_t14129 13852 * enter_t = tmax[2] # <<<<<<<<<<<<<< 14130 13853 * tmax[2] += tdelta[2] … … 14133 13856 __pyx_v_enter_t = (__pyx_v_tmax[2]); 14134 13857 14135 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 8314136 * dt = fmin(tmax[2], 1.0) - enter_t13858 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":390 13859 * cur_ind[2] += step[2] 14137 13860 * enter_t = tmax[2] 14138 13861 * tmax[2] += tdelta[2] # <<<<<<<<<<<<<< … … 14146 13869 __pyx_L20:; 14147 13870 14148 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 8413871 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":391 14149 13872 * enter_t = tmax[2] 14150 13873 * tmax[2] += tdelta[2] … … 14153 13876 * 14154 13877 */ 14155 __pyx_t_ 5= (__pyx_v_enter_t > 1.0);14156 if (__pyx_t_ 5) {13878 __pyx_t_3 = (__pyx_v_enter_t > 1.0); 13879 if (__pyx_t_3) { 14157 13880 goto __pyx_L18_break; 14158 13881 goto __pyx_L23; … … 14162 13885 __pyx_L18_break:; 14163 13886 14164 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 8513887 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":392 14165 13888 * tmax[2] += tdelta[2] 14166 13889 * if enter_t > 1.0: break 14167 13890 * return hit # <<<<<<<<<<<<<< 14168 13891 * 14169 * cdef void sample_values(self,13892 * @cython.boundscheck(False) 14170 13893 */ 14171 13894 __pyx_r = __pyx_v_hit; 14172 13895 goto __pyx_L0; 14173 13896 14174 __pyx_r = 0;14175 goto __pyx_L0;14176 __pyx_L1_error:;14177 __Pyx_WriteUnraisable("yt.amr_utils.PartitionedGrid.integrate_ray");14178 13897 __pyx_r = 0; 14179 13898 __pyx_L0:; … … 14184 13903 } 14185 13904 14186 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":3 8714187 * return hit14188 * 13905 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":396 13906 * @cython.boundscheck(False) 13907 * @cython.wraparound(False) 14189 13908 * cdef void sample_values(self, # <<<<<<<<<<<<<< 14190 13909 * np.float64_t v_pos[3], … … 14193 13912 14194 13913 static void __pyx_f_2yt_9amr_utils_15PartitionedGrid_sample_values(struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *__pyx_v_self, __pyx_t_5numpy_float64_t *__pyx_v_v_pos, __pyx_t_5numpy_float64_t *__pyx_v_v_dir, __pyx_t_5numpy_float64_t __pyx_v_enter_t, __pyx_t_5numpy_float64_t __pyx_v_exit_t, int *__pyx_v_ci, __pyx_t_5numpy_float64_t *__pyx_v_rgba, struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *__pyx_v_tf) { 14195 __pyx_t_5numpy_float64_t __pyx_v_cp[3];14196 13914 __pyx_t_5numpy_float64_t __pyx_v_dp[3]; 13915 __pyx_t_5numpy_float64_t __pyx_v_temp; 14197 13916 __pyx_t_5numpy_float64_t __pyx_v_dt; 14198 __pyx_t_5numpy_float64_t __pyx_v_t;14199 13917 __pyx_t_5numpy_float64_t __pyx_v_dv; 14200 13918 __pyx_t_5numpy_float64_t __pyx_v_grad[3]; 13919 __pyx_t_5numpy_float64_t __pyx_v_ds[3]; 14201 13920 int __pyx_v_dti; 14202 13921 int __pyx_v_i; 14203 __pyx_t_5numpy_float64_t __pyx_t_1;14204 long__pyx_t_2;13922 int __pyx_t_1; 13923 int __pyx_t_2; 14205 13924 int __pyx_t_3; 14206 13925 int __pyx_t_4; 14207 double__pyx_t_5;13926 int __pyx_t_5; 14208 13927 int __pyx_t_6; 14209 13928 __Pyx_RefNannySetupContext("sample_values"); … … 14211 13930 __Pyx_INCREF((PyObject *)__pyx_v_tf); 14212 13931 14213 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":398 14214 * cdef np.float64_t grad[3] 13932 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":406 13933 * cdef np.float64_t cp[3], dp[3], temp, dt, t, dv 13934 * cdef np.float64_t grad[3], ds[3] 13935 * grad[0] = grad[1] = grad[2] = 0.0 # <<<<<<<<<<<<<< 14215 13936 * cdef int dti, i 14216 * dt = (exit_t - enter_t) / (tf.ns-1) # five samples, so divide by four # <<<<<<<<<<<<<< 14217 * for dti in range(tf.ns - 1): 14218 * t = enter_t + dt * dti 14219 */ 14220 __pyx_t_1 = (__pyx_v_exit_t - __pyx_v_enter_t); 14221 __pyx_t_2 = (__pyx_v_tf->ns - 1); 14222 if (unlikely(__pyx_t_2 == 0)) { 14223 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 14224 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14225 } 14226 __pyx_v_dt = (__pyx_t_1 / __pyx_t_2); 14227 14228 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":399 13937 * dt = (exit_t - enter_t) / (tf.ns) # 4 samples should be dt=0.25 13938 */ 13939 (__pyx_v_grad[0]) = 0.0; 13940 (__pyx_v_grad[1]) = 0.0; 13941 (__pyx_v_grad[2]) = 0.0; 13942 13943 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":408 13944 * grad[0] = grad[1] = grad[2] = 0.0 14229 13945 * cdef int dti, i 14230 * dt = (exit_t - enter_t) / (tf.ns-1) # five samples, so divide by four 14231 * for dti in range(tf.ns - 1): # <<<<<<<<<<<<<< 14232 * t = enter_t + dt * dti 13946 * dt = (exit_t - enter_t) / (tf.ns) # 4 samples should be dt=0.25 # <<<<<<<<<<<<<< 13947 * for i in range(3): 13948 * temp = ci[i] * self.dds[i] + self.left_edge[i] 13949 */ 13950 __pyx_v_dt = ((__pyx_v_exit_t - __pyx_v_enter_t) / __pyx_v_tf->ns); 13951 13952 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":409 13953 * cdef int dti, i 13954 * dt = (exit_t - enter_t) / (tf.ns) # 4 samples should be dt=0.25 13955 * for i in range(3): # <<<<<<<<<<<<<< 13956 * temp = ci[i] * self.dds[i] + self.left_edge[i] 13957 * dp[i] = (enter_t + 0.5 * dt) * v_dir[i] + v_pos[i] - temp 13958 */ 13959 for (__pyx_t_1 = 0; __pyx_t_1 < 3; __pyx_t_1+=1) { 13960 __pyx_v_i = __pyx_t_1; 13961 13962 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":410 13963 * dt = (exit_t - enter_t) / (tf.ns) # 4 samples should be dt=0.25 13964 * for i in range(3): 13965 * temp = ci[i] * self.dds[i] + self.left_edge[i] # <<<<<<<<<<<<<< 13966 * dp[i] = (enter_t + 0.5 * dt) * v_dir[i] + v_pos[i] - temp 13967 * dp[i] *= self.idds[i] 13968 */ 13969 __pyx_v_temp = (((__pyx_v_ci[__pyx_v_i]) * (__pyx_v_self->dds[__pyx_v_i])) + (__pyx_v_self->left_edge[__pyx_v_i])); 13970 13971 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":411 13972 * for i in range(3): 13973 * temp = ci[i] * self.dds[i] + self.left_edge[i] 13974 * dp[i] = (enter_t + 0.5 * dt) * v_dir[i] + v_pos[i] - temp # <<<<<<<<<<<<<< 13975 * dp[i] *= self.idds[i] 13976 * ds[i] = v_dir[i] * self.idds[i] * dt 13977 */ 13978 (__pyx_v_dp[__pyx_v_i]) = ((((__pyx_v_enter_t + (0.5 * __pyx_v_dt)) * (__pyx_v_v_dir[__pyx_v_i])) + (__pyx_v_v_pos[__pyx_v_i])) - __pyx_v_temp); 13979 13980 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":412 13981 * temp = ci[i] * self.dds[i] + self.left_edge[i] 13982 * dp[i] = (enter_t + 0.5 * dt) * v_dir[i] + v_pos[i] - temp 13983 * dp[i] *= self.idds[i] # <<<<<<<<<<<<<< 13984 * ds[i] = v_dir[i] * self.idds[i] * dt 13985 * for dti in range(tf.ns): 13986 */ 13987 (__pyx_v_dp[__pyx_v_i]) *= (__pyx_v_self->idds[__pyx_v_i]); 13988 13989 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":413 13990 * dp[i] = (enter_t + 0.5 * dt) * v_dir[i] + v_pos[i] - temp 13991 * dp[i] *= self.idds[i] 13992 * ds[i] = v_dir[i] * self.idds[i] * dt # <<<<<<<<<<<<<< 13993 * for dti in range(tf.ns): 14233 13994 * for i in range(3): 14234 13995 */ 14235 __pyx_t_2 = (__pyx_v_tf->ns - 1); 14236 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { 14237 __pyx_v_dti = __pyx_t_3; 14238 14239 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":400 14240 * dt = (exit_t - enter_t) / (tf.ns-1) # five samples, so divide by four 14241 * for dti in range(tf.ns - 1): 14242 * t = enter_t + dt * dti # <<<<<<<<<<<<<< 13996 (__pyx_v_ds[__pyx_v_i]) = (((__pyx_v_v_dir[__pyx_v_i]) * (__pyx_v_self->idds[__pyx_v_i])) * __pyx_v_dt); 13997 } 13998 13999 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":414 14000 * dp[i] *= self.idds[i] 14001 * ds[i] = v_dir[i] * self.idds[i] * dt 14002 * for dti in range(tf.ns): # <<<<<<<<<<<<<< 14243 14003 * for i in range(3): 14244 * cp[i] = v_pos[i] + t * v_dir[i] 14245 */ 14246 __pyx_v_t = (__pyx_v_enter_t + (__pyx_v_dt * __pyx_v_dti)); 14247 14248 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":401 14249 * for dti in range(tf.ns - 1): 14250 * t = enter_t + dt * dti 14004 * dp[i] += ds[i] 14005 */ 14006 __pyx_t_1 = __pyx_v_tf->ns; 14007 for (__pyx_t_2 = 0; __pyx_t_2 < __pyx_t_1; __pyx_t_2+=1) { 14008 __pyx_v_dti = __pyx_t_2; 14009 14010 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":415 14011 * ds[i] = v_dir[i] * self.idds[i] * dt 14012 * for dti in range(tf.ns): 14251 14013 * for i in range(3): # <<<<<<<<<<<<<< 14252 * cp[i] = v_pos[i] + t * v_dir[i]14253 * dp[i] = fclip(fmod(cp[i], self.dds[i])/self.dds[i], 0, 1.0)14254 */ 14255 for (__pyx_t_ 4 = 0; __pyx_t_4 < 3; __pyx_t_4+=1) {14256 __pyx_v_i = __pyx_t_ 4;14257 14258 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 0214259 * t = enter_t + dt * dti14014 * dp[i] += ds[i] 14015 * dv = trilinear_interpolate(self.dims, ci, dp, self.data) 14016 */ 14017 for (__pyx_t_3 = 0; __pyx_t_3 < 3; __pyx_t_3+=1) { 14018 __pyx_v_i = __pyx_t_3; 14019 14020 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":416 14021 * for dti in range(tf.ns): 14260 14022 * for i in range(3): 14261 * cp[i] = v_pos[i] + t * v_dir[i] # <<<<<<<<<<<<<< 14262 * dp[i] = fclip(fmod(cp[i], self.dds[i])/self.dds[i], 0, 1.0) 14023 * dp[i] += ds[i] # <<<<<<<<<<<<<< 14263 14024 * dv = trilinear_interpolate(self.dims, ci, dp, self.data) 14264 */ 14265 (__pyx_v_cp[__pyx_v_i]) = ((__pyx_v_v_pos[__pyx_v_i]) + (__pyx_v_t * (__pyx_v_v_dir[__pyx_v_i]))); 14266 14267 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":403 14025 * if not ((dv > tf.x_bounds[0]) and (dv < tf.x_bounds[1])): 14026 */ 14027 (__pyx_v_dp[__pyx_v_i]) += (__pyx_v_ds[__pyx_v_i]); 14028 } 14029 14030 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":417 14268 14031 * for i in range(3): 14269 * cp[i] = v_pos[i] + t * v_dir[i] 14270 * dp[i] = fclip(fmod(cp[i], self.dds[i])/self.dds[i], 0, 1.0) # <<<<<<<<<<<<<< 14032 * dp[i] += ds[i] 14033 * dv = trilinear_interpolate(self.dims, ci, dp, self.data) # <<<<<<<<<<<<<< 14034 * if not ((dv > tf.x_bounds[0]) and (dv < tf.x_bounds[1])): 14035 * continue 14036 */ 14037 __pyx_v_dv = trilinear_interpolate(__pyx_v_self->dims, __pyx_v_ci, __pyx_v_dp, __pyx_v_self->data); 14038 14039 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":418 14040 * dp[i] += ds[i] 14271 14041 * dv = trilinear_interpolate(self.dims, ci, dp, self.data) 14042 * if not ((dv > tf.x_bounds[0]) and (dv < tf.x_bounds[1])): # <<<<<<<<<<<<<< 14043 * continue 14272 14044 * if tf.use_light == 1: 14273 14045 */ 14274 __pyx_t_5 = fmod((__pyx_v_cp[__pyx_v_i]), (__pyx_v_self->dds[__pyx_v_i])); 14275 __pyx_t_1 = (__pyx_v_self->dds[__pyx_v_i]); 14276 if (unlikely(__pyx_t_1 == 0)) { 14277 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 14278 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14279 } 14280 (__pyx_v_dp[__pyx_v_i]) = __pyx_f_2yt_9amr_utils_fclip((__pyx_t_5 / __pyx_t_1), 0, 1.0); 14281 } 14282 14283 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":404 14284 * cp[i] = v_pos[i] + t * v_dir[i] 14285 * dp[i] = fclip(fmod(cp[i], self.dds[i])/self.dds[i], 0, 1.0) 14286 * dv = trilinear_interpolate(self.dims, ci, dp, self.data) # <<<<<<<<<<<<<< 14046 __pyx_t_4 = (__pyx_v_dv > (__pyx_v_tf->x_bounds[0])); 14047 if (__pyx_t_4) { 14048 __pyx_t_5 = (__pyx_v_dv < (__pyx_v_tf->x_bounds[1])); 14049 __pyx_t_6 = __pyx_t_5; 14050 } else { 14051 __pyx_t_6 = __pyx_t_4; 14052 } 14053 __pyx_t_4 = (!__pyx_t_6); 14054 if (__pyx_t_4) { 14055 14056 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":419 14057 * dv = trilinear_interpolate(self.dims, ci, dp, self.data) 14058 * if not ((dv > tf.x_bounds[0]) and (dv < tf.x_bounds[1])): 14059 * continue # <<<<<<<<<<<<<< 14287 14060 * if tf.use_light == 1: 14288 14061 * eval_gradient(self.dims, ci, dp, self.data, grad) 14289 14062 */ 14290 __pyx_v_dv = trilinear_interpolate(__pyx_v_self->dims, __pyx_v_ci, __pyx_v_dp, __pyx_v_self->data); 14291 14292 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":405 14293 * dp[i] = fclip(fmod(cp[i], self.dds[i])/self.dds[i], 0, 1.0) 14294 * dv = trilinear_interpolate(self.dims, ci, dp, self.data) 14063 goto __pyx_L5_continue; 14064 goto __pyx_L9; 14065 } 14066 __pyx_L9:; 14067 14068 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":420 14069 * if not ((dv > tf.x_bounds[0]) and (dv < tf.x_bounds[1])): 14070 * continue 14295 14071 * if tf.use_light == 1: # <<<<<<<<<<<<<< 14296 14072 * eval_gradient(self.dims, ci, dp, self.data, grad) 14297 14073 * tf.eval_transfer(dt, dv, rgba, grad) 14298 14074 */ 14299 __pyx_t_ 6= (__pyx_v_tf->use_light == 1);14300 if (__pyx_t_ 6) {14301 14302 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 0614303 * dv = trilinear_interpolate(self.dims, ci, dp, self.data)14075 __pyx_t_4 = (__pyx_v_tf->use_light == 1); 14076 if (__pyx_t_4) { 14077 14078 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":421 14079 * continue 14304 14080 * if tf.use_light == 1: 14305 14081 * eval_gradient(self.dims, ci, dp, self.data, grad) # <<<<<<<<<<<<<< … … 14308 14084 */ 14309 14085 eval_gradient(__pyx_v_self->dims, __pyx_v_ci, __pyx_v_dp, __pyx_v_self->data, __pyx_v_grad); 14310 goto __pyx_L 7;14311 } 14312 __pyx_L 7:;14313 14314 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 0714086 goto __pyx_L10; 14087 } 14088 __pyx_L10:; 14089 14090 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":422 14315 14091 * if tf.use_light == 1: 14316 14092 * eval_gradient(self.dims, ci, dp, self.data, grad) … … 14320 14096 */ 14321 14097 ((struct __pyx_vtabstruct_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_tf->__pyx_vtab)->eval_transfer(__pyx_v_tf, __pyx_v_dt, __pyx_v_dv, __pyx_v_rgba, __pyx_v_grad); 14322 } 14323 14324 goto __pyx_L0; 14325 __pyx_L1_error:; 14326 __Pyx_WriteUnraisable("yt.amr_utils.PartitionedGrid.sample_values"); 14327 __pyx_L0:; 14098 __pyx_L5_continue:; 14099 } 14100 14328 14101 __Pyx_DECREF((PyObject *)__pyx_v_self); 14329 14102 __Pyx_DECREF((PyObject *)__pyx_v_tf); … … 14331 14104 } 14332 14105 14333 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 1714106 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":432 14334 14107 * @cython.boundscheck(False) 14335 14108 * @cython.wraparound(False) … … 14372 14145 if (likely(values[1])) kw_args--; 14373 14146 else { 14374 __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14147 __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14375 14148 } 14376 14149 case 2: … … 14378 14151 if (likely(values[2])) kw_args--; 14379 14152 else { 14380 __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14153 __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14381 14154 } 14382 14155 } 14383 14156 if (unlikely(kw_args > 0)) { 14384 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14157 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14385 14158 } 14386 14159 __pyx_v_grid = values[0]; 14387 __pyx_v_direction = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14388 __pyx_v_left = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_left == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14160 __pyx_v_direction = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14161 __pyx_v_left = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_left == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14389 14162 } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { 14390 14163 goto __pyx_L5_argtuple_error; 14391 14164 } else { 14392 14165 __pyx_v_grid = PyTuple_GET_ITEM(__pyx_args, 0); 14393 __pyx_v_direction = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14394 __pyx_v_left = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_left == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14166 __pyx_v_direction = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14167 __pyx_v_left = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_left == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14395 14168 } 14396 14169 goto __pyx_L4_argument_unpacking_done; 14397 14170 __pyx_L5_argtuple_error:; 14398 __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 17; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14171 __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14399 14172 __pyx_L3_error:; 14400 14173 __Pyx_AddTraceback("yt.amr_utils.GridFace.__init__"); … … 14404 14177 __Pyx_INCREF(__pyx_v_grid); 14405 14178 14406 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 1814179 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":433 14407 14180 * @cython.wraparound(False) 14408 14181 * def __init__(self, grid, int direction, int left): … … 14413 14186 ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->direction = __pyx_v_direction; 14414 14187 14415 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 1914188 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":434 14416 14189 * def __init__(self, grid, int direction, int left): 14417 14190 * self.direction = direction … … 14423 14196 if (__pyx_t_1) { 14424 14197 14425 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 2014198 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":435 14426 14199 * self.direction = direction 14427 14200 * if left == 1: … … 14430 14203 * self.coord = grid.RightEdge[direction] 14431 14204 */ 14432 __pyx_t_2 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__LeftEdge); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14205 __pyx_t_2 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__LeftEdge); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14433 14206 __Pyx_GOTREF(__pyx_t_2); 14434 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, __pyx_v_direction, sizeof(int), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14207 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, __pyx_v_direction, sizeof(int), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14435 14208 __Pyx_GOTREF(__pyx_t_3); 14436 14209 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 14437 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_3); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14210 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_3); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14438 14211 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 14439 14212 ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->coord = __pyx_t_4; … … 14442 14215 /*else*/ { 14443 14216 14444 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 2214217 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":437 14445 14218 * self.coord = grid.LeftEdge[direction] 14446 14219 * else: … … 14449 14222 * for i in range(3): 14450 14223 */ 14451 __pyx_t_3 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__RightEdge); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14224 __pyx_t_3 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__RightEdge); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14452 14225 __Pyx_GOTREF(__pyx_t_3); 14453 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_direction, sizeof(int), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14226 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_direction, sizeof(int), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14454 14227 __Pyx_GOTREF(__pyx_t_2); 14455 14228 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 14456 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14229 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14457 14230 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 14458 14231 ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->coord = __pyx_t_4; … … 14460 14233 __pyx_L6:; 14461 14234 14462 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 2414235 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":439 14463 14236 * self.coord = grid.RightEdge[direction] 14464 14237 * cdef int i … … 14470 14243 __pyx_v_i = __pyx_t_5; 14471 14244 14472 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 2514245 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":440 14473 14246 * cdef int i 14474 14247 * for i in range(3): … … 14477 14250 * self.left_edge[direction] = self.right_edge[direction] = self.coord 14478 14251 */ 14479 __pyx_t_2 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__LeftEdge); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14252 __pyx_t_2 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__LeftEdge); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14480 14253 __Pyx_GOTREF(__pyx_t_2); 14481 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14254 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14482 14255 __Pyx_GOTREF(__pyx_t_3); 14483 14256 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 14484 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_3); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14257 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_3); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14485 14258 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 14486 14259 (((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->left_edge[__pyx_v_i]) = __pyx_t_4; 14487 14260 14488 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 2614261 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":441 14489 14262 * for i in range(3): 14490 14263 * self.left_edge[i] = grid.LeftEdge[i] … … 14493 14266 * 14494 14267 */ 14495 __pyx_t_3 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__RightEdge); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14268 __pyx_t_3 = PyObject_GetAttr(__pyx_v_grid, __pyx_n_s__RightEdge); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14496 14269 __Pyx_GOTREF(__pyx_t_3); 14497 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14270 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14498 14271 __Pyx_GOTREF(__pyx_t_2); 14499 14272 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 14500 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14273 __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_4 == (npy_float64)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14501 14274 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 14502 14275 (((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->right_edge[__pyx_v_i]) = __pyx_t_4; 14503 14276 } 14504 14277 14505 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 2714278 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":442 14506 14279 * self.left_edge[i] = grid.LeftEdge[i] 14507 14280 * self.right_edge[i] = grid.RightEdge[i] … … 14527 14300 } 14528 14301 14529 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3114302 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":446 14530 14303 * @cython.boundscheck(False) 14531 14304 * @cython.wraparound(False) … … 14543 14316 __Pyx_INCREF((PyObject *)__pyx_v_self); 14544 14317 14545 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3314318 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":448 14546 14319 * cdef int proj_overlap(self, np.float64_t *left_edge, np.float64_t *right_edge): 14547 14320 * cdef int xax, yax … … 14550 14323 * if left_edge[xax] >= self.right_edge[xax]: return 0 14551 14324 */ 14552 __pyx_v_xax = __Pyx_mod_long((__pyx_v_self->direction + 1),3);14553 14554 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3414325 __pyx_v_xax = ((__pyx_v_self->direction + 1) % 3); 14326 14327 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":449 14555 14328 * cdef int xax, yax 14556 14329 * xax = (self.direction + 1) % 3 … … 14559 14332 * if right_edge[xax] <= self.left_edge[xax]: return 0 14560 14333 */ 14561 __pyx_v_yax = __Pyx_mod_long((__pyx_v_self->direction + 2),3);14562 14563 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3514334 __pyx_v_yax = ((__pyx_v_self->direction + 2) % 3); 14335 14336 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":450 14564 14337 * xax = (self.direction + 1) % 3 14565 14338 * yax = (self.direction + 2) % 3 … … 14576 14349 __pyx_L3:; 14577 14350 14578 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3614351 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":451 14579 14352 * yax = (self.direction + 2) % 3 14580 14353 * if left_edge[xax] >= self.right_edge[xax]: return 0 … … 14591 14364 __pyx_L4:; 14592 14365 14593 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3714366 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":452 14594 14367 * if left_edge[xax] >= self.right_edge[xax]: return 0 14595 14368 * if right_edge[xax] <= self.left_edge[xax]: return 0 … … 14606 14379 __pyx_L5:; 14607 14380 14608 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3814381 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":453 14609 14382 * if right_edge[xax] <= self.left_edge[xax]: return 0 14610 14383 * if left_edge[yax] >= self.right_edge[yax]: return 0 … … 14621 14394 __pyx_L6:; 14622 14395 14623 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 3914396 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":454 14624 14397 * if left_edge[yax] >= self.right_edge[yax]: return 0 14625 14398 * if right_edge[yax] <= self.left_edge[yax]: return 0 … … 14638 14411 } 14639 14412 14640 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 4714413 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":462 14641 14414 * cdef public object RightEdge 14642 14415 * cdef public object subgrid_faces … … 14684 14457 if (likely(values[1])) kw_args--; 14685 14458 else { 14686 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 47; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14459 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14687 14460 } 14688 14461 case 2: … … 14690 14463 if (likely(values[2])) kw_args--; 14691 14464 else { 14692 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 47; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14465 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14693 14466 } 14694 14467 } 14695 14468 if (unlikely(kw_args > 0)) { 14696 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 47; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14469 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__cinit__") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14697 14470 } 14698 14471 __pyx_v_left_edge = ((PyArrayObject *)values[0]); … … 14708 14481 goto __pyx_L4_argument_unpacking_done; 14709 14482 __pyx_L5_argtuple_error:; 14710 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 47; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14483 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14711 14484 __pyx_L3_error:; 14712 14485 __Pyx_AddTraceback("yt.amr_utils.ProtoPrism.__cinit__"); … … 14719 14492 __pyx_bstruct_left_edge.buf = NULL; 14720 14493 __pyx_bstruct_right_edge.buf = NULL; 14721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_left_edge), __pyx_ptype_5numpy_ndarray, 1, "left_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_right_edge), __pyx_ptype_5numpy_ndarray, 1, "right_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_left_edge), __pyx_ptype_5numpy_ndarray, 1, "left_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_right_edge), __pyx_ptype_5numpy_ndarray, 1, "right_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14723 14496 { 14724 14497 __Pyx_BufFmt_StackElem __pyx_stack[1]; 14725 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_left_edge, (PyObject*)__pyx_v_left_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14498 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_left_edge, (PyObject*)__pyx_v_left_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14726 14499 } 14727 14500 __pyx_bstride_0_left_edge = __pyx_bstruct_left_edge.strides[0]; … … 14729 14502 { 14730 14503 __Pyx_BufFmt_StackElem __pyx_stack[1]; 14731 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_right_edge, (PyObject*)__pyx_v_right_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14504 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_right_edge, (PyObject*)__pyx_v_right_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14732 14505 } 14733 14506 __pyx_bstride_0_right_edge = __pyx_bstruct_right_edge.strides[0]; 14734 14507 __pyx_bshape_0_right_edge = __pyx_bstruct_right_edge.shape[0]; 14735 14508 14736 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 5114509 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":466 14737 14510 * subgrid_faces): 14738 14511 * cdef int i … … 14747 14520 ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge = ((PyObject *)__pyx_v_left_edge); 14748 14521 14749 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 5214522 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":467 14750 14523 * cdef int i 14751 14524 * self.LeftEdge = left_edge … … 14760 14533 ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge = ((PyObject *)__pyx_v_right_edge); 14761 14534 14762 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 5314535 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":468 14763 14536 * self.LeftEdge = left_edge 14764 14537 * self.RightEdge = right_edge … … 14770 14543 __pyx_v_i = __pyx_t_1; 14771 14544 14772 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 5414545 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":469 14773 14546 * self.RightEdge = right_edge 14774 14547 * for i in range(3): … … 14785 14558 if (unlikely(__pyx_t_3 != -1)) { 14786 14559 __Pyx_RaiseBufferIndexError(__pyx_t_3); 14787 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14560 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14788 14561 } 14789 14562 (((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->left_edge[__pyx_v_i]) = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_2, __pyx_bstride_0_left_edge)); 14790 14563 14791 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 5514564 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":470 14792 14565 * for i in range(3): 14793 14566 * self.left_edge[i] = left_edge[i] … … 14804 14577 if (unlikely(__pyx_t_4 != -1)) { 14805 14578 __Pyx_RaiseBufferIndexError(__pyx_t_4); 14806 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14579 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14807 14580 } 14808 14581 (((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->right_edge[__pyx_v_i]) = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_right_edge.buf, __pyx_t_3, __pyx_bstride_0_right_edge)); 14809 14582 } 14810 14583 14811 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 5614584 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":471 14812 14585 * self.left_edge[i] = left_edge[i] 14813 14586 * self.right_edge[i] = right_edge[i] … … 14845 14618 } 14846 14619 14847 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 6014620 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":475 14848 14621 * @cython.boundscheck(False) 14849 14622 * @cython.wraparound(False) … … 14897 14670 } 14898 14671 if (unlikely(kw_args > 0)) { 14899 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "sweep") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14672 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "sweep") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14900 14673 } 14901 14674 if (values[0]) { 14902 __pyx_v_direction = __Pyx_PyInt_AsInt(values[0]); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14675 __pyx_v_direction = __Pyx_PyInt_AsInt(values[0]); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14903 14676 } else { 14904 14677 __pyx_v_direction = ((int)0); 14905 14678 } 14906 14679 if (values[1]) { 14907 __pyx_v_stack = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_stack == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14680 __pyx_v_stack = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_stack == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14908 14681 } else { 14909 14682 __pyx_v_stack = ((int)0); … … 14913 14686 __pyx_v_stack = ((int)0); 14914 14687 switch (PyTuple_GET_SIZE(__pyx_args)) { 14915 case 2: __pyx_v_stack = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_stack == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14916 case 1: __pyx_v_direction = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14688 case 2: __pyx_v_stack = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_stack == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14689 case 1: __pyx_v_direction = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_direction == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14917 14690 case 0: break; 14918 14691 default: goto __pyx_L5_argtuple_error; … … 14921 14694 goto __pyx_L4_argument_unpacking_done; 14922 14695 __pyx_L5_argtuple_error:; 14923 __Pyx_RaiseArgtupleInvalid("sweep", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;}14696 __Pyx_RaiseArgtupleInvalid("sweep", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 14924 14697 __pyx_L3_error:; 14925 14698 __Pyx_AddTraceback("yt.amr_utils.ProtoPrism.sweep"); … … 14933 14706 __pyx_v_RC = Py_None; __Pyx_INCREF(Py_None); 14934 14707 14935 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 6414708 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":479 14936 14709 * cdef GridFace face 14937 14710 * cdef np.float64_t proto_split[3] … … 14945 14718 } 14946 14719 14947 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 6514720 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":480 14948 14721 * cdef np.float64_t proto_split[3] 14949 14722 * for i in range(3): proto_split[i] = self.right_edge[i] … … 14952 14725 * if proto_split[direction] <= self.left_edge[direction]: 14953 14726 */ 14954 __pyx_t_3 = __Pyx_GetItemInt(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->subgrid_faces, __pyx_v_direction, sizeof(int), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14727 __pyx_t_3 = __Pyx_GetItemInt(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->subgrid_faces, __pyx_v_direction, sizeof(int), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14955 14728 __Pyx_GOTREF(__pyx_t_3); 14956 14729 if (PyList_CheckExact(__pyx_t_3) || PyTuple_CheckExact(__pyx_t_3)) { 14957 14730 __pyx_t_2 = 0; __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); 14958 14731 } else { 14959 __pyx_t_2 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14732 __pyx_t_2 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14960 14733 __Pyx_GOTREF(__pyx_t_4); 14961 14734 } … … 14971 14744 __pyx_t_3 = PyIter_Next(__pyx_t_4); 14972 14745 if (!__pyx_t_3) { 14973 if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14746 if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14974 14747 break; 14975 14748 } 14976 14749 __Pyx_GOTREF(__pyx_t_3); 14977 14750 } 14978 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_2yt_9amr_utils_GridFace))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14751 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_2yt_9amr_utils_GridFace))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 14979 14752 __Pyx_DECREF(((PyObject *)__pyx_v_face)); 14980 14753 __pyx_v_face = ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_t_3); 14981 14754 __pyx_t_3 = 0; 14982 14755 14983 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 6614756 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":481 14984 14757 * for i in range(3): proto_split[i] = self.right_edge[i] 14985 14758 * for face in self.subgrid_faces[direction]: … … 14990 14763 (__pyx_v_proto_split[__pyx_v_direction]) = __pyx_v_face->coord; 14991 14764 14992 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 6714765 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":482 14993 14766 * for face in self.subgrid_faces[direction]: 14994 14767 * proto_split[direction] = face.coord … … 15000 14773 if (__pyx_t_5) { 15001 14774 15002 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 6814775 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":483 15003 14776 * proto_split[direction] = face.coord 15004 14777 * if proto_split[direction] <= self.left_edge[direction]: … … 15012 14785 __pyx_L10:; 15013 14786 15014 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 6914787 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":484 15015 14788 * if proto_split[direction] <= self.left_edge[direction]: 15016 14789 * continue … … 15022 14795 if (__pyx_t_5) { 15023 14796 15024 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7014797 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":485 15025 14798 * continue 15026 14799 * if proto_split[direction] == self.right_edge[direction]: … … 15032 14805 if (__pyx_t_5) { 15033 14806 __Pyx_XDECREF(__pyx_r); 15034 __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14807 __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15035 14808 __Pyx_GOTREF(((PyObject *)__pyx_t_3)); 15036 14809 __Pyx_INCREF(__pyx_v_self); … … 15045 14818 __pyx_L12:; 15046 14819 15047 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7114820 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":486 15048 14821 * if proto_split[direction] == self.right_edge[direction]: 15049 14822 * if stack == 2: return [self] … … 15053 14826 */ 15054 14827 __Pyx_XDECREF(__pyx_r); 15055 __pyx_t_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__sweep); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14828 __pyx_t_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__sweep); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15056 14829 __Pyx_GOTREF(__pyx_t_3); 15057 __pyx_t_6 = PyInt_FromLong( __Pyx_mod_long((__pyx_v_direction + 1), 3)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14830 __pyx_t_6 = PyInt_FromLong(((__pyx_v_direction + 1) % 3)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15058 14831 __Pyx_GOTREF(__pyx_t_6); 15059 __pyx_t_7 = PyInt_FromLong((__pyx_v_stack + 1)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14832 __pyx_t_7 = PyInt_FromLong((__pyx_v_stack + 1)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15060 14833 __Pyx_GOTREF(__pyx_t_7); 15061 __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14834 __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15062 14835 __Pyx_GOTREF(__pyx_t_8); 15063 14836 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); … … 15067 14840 __pyx_t_6 = 0; 15068 14841 __pyx_t_7 = 0; 15069 __pyx_t_7 = PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14842 __pyx_t_7 = PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15070 14843 __Pyx_GOTREF(__pyx_t_7); 15071 14844 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; … … 15079 14852 __pyx_L11:; 15080 14853 15081 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7214854 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":487 15082 14855 * if stack == 2: return [self] 15083 14856 * return self.sweep((direction + 1) % 3, stack + 1) … … 15089 14862 if (__pyx_t_5) { 15090 14863 15091 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7314864 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":488 15092 14865 * return self.sweep((direction + 1) % 3, stack + 1) 15093 14866 * if face.proj_overlap(self.left_edge, proto_split) == 1: … … 15096 14869 * RC = right.sweep(direction) 15097 14870 */ 15098 __pyx_t_7 = ((struct __pyx_vtabstruct_2yt_9amr_utils_ProtoPrism *)((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->__pyx_vtab)->split(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self), __pyx_v_proto_split, __pyx_v_direction); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14871 __pyx_t_7 = ((struct __pyx_vtabstruct_2yt_9amr_utils_ProtoPrism *)((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->__pyx_vtab)->split(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self), __pyx_v_proto_split, __pyx_v_direction); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15099 14872 __Pyx_GOTREF(__pyx_t_7); 15100 14873 if (PyTuple_CheckExact(__pyx_t_7) && likely(PyTuple_GET_SIZE(__pyx_t_7) == 2)) { … … 15110 14883 __pyx_t_3 = 0; 15111 14884 } else { 15112 __pyx_t_6 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14885 __pyx_t_6 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15113 14886 __Pyx_GOTREF(__pyx_t_6); 15114 14887 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 15115 __pyx_t_8 = __Pyx_UnpackItem(__pyx_t_6, 0); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14888 __pyx_t_8 = __Pyx_UnpackItem(__pyx_t_6, 0); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15116 14889 __Pyx_GOTREF(__pyx_t_8); 15117 __pyx_t_3 = __Pyx_UnpackItem(__pyx_t_6, 1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14890 __pyx_t_3 = __Pyx_UnpackItem(__pyx_t_6, 1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15118 14891 __Pyx_GOTREF(__pyx_t_3); 15119 if (__Pyx_EndUnpack(__pyx_t_6) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14892 if (__Pyx_EndUnpack(__pyx_t_6) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15120 14893 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; 15121 14894 __Pyx_DECREF(__pyx_v_left); … … 15127 14900 } 15128 14901 15129 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7414902 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":489 15130 14903 * if face.proj_overlap(self.left_edge, proto_split) == 1: 15131 14904 * left, right = self.split(proto_split, direction) … … 15134 14907 * return LC + RC 15135 14908 */ 15136 __pyx_t_7 = PyObject_GetAttr(__pyx_v_left, __pyx_n_s__sweep); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14909 __pyx_t_7 = PyObject_GetAttr(__pyx_v_left, __pyx_n_s__sweep); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15137 14910 __Pyx_GOTREF(__pyx_t_7); 15138 __pyx_t_3 = PyInt_FromLong( __Pyx_mod_long((__pyx_v_direction + 1), 3)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14911 __pyx_t_3 = PyInt_FromLong(((__pyx_v_direction + 1) % 3)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15139 14912 __Pyx_GOTREF(__pyx_t_3); 15140 __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14913 __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15141 14914 __Pyx_GOTREF(__pyx_t_8); 15142 14915 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3); 15143 14916 __Pyx_GIVEREF(__pyx_t_3); 15144 14917 __pyx_t_3 = 0; 15145 __pyx_t_3 = PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14918 __pyx_t_3 = PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15146 14919 __Pyx_GOTREF(__pyx_t_3); 15147 14920 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; … … 15151 14924 __pyx_t_3 = 0; 15152 14925 15153 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7514926 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":490 15154 14927 * left, right = self.split(proto_split, direction) 15155 14928 * LC = left.sweep((direction + 1) % 3) … … 15158 14931 * raise RuntimeError 15159 14932 */ 15160 __pyx_t_3 = PyObject_GetAttr(__pyx_v_right, __pyx_n_s__sweep); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14933 __pyx_t_3 = PyObject_GetAttr(__pyx_v_right, __pyx_n_s__sweep); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15161 14934 __Pyx_GOTREF(__pyx_t_3); 15162 __pyx_t_8 = PyInt_FromLong(__pyx_v_direction); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14935 __pyx_t_8 = PyInt_FromLong(__pyx_v_direction); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15163 14936 __Pyx_GOTREF(__pyx_t_8); 15164 __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14937 __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15165 14938 __Pyx_GOTREF(__pyx_t_7); 15166 14939 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); 15167 14940 __Pyx_GIVEREF(__pyx_t_8); 15168 14941 __pyx_t_8 = 0; 15169 __pyx_t_8 = PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14942 __pyx_t_8 = PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15170 14943 __Pyx_GOTREF(__pyx_t_8); 15171 14944 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; … … 15175 14948 __pyx_t_8 = 0; 15176 14949 15177 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7614950 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":491 15178 14951 * LC = left.sweep((direction + 1) % 3) 15179 14952 * RC = right.sweep(direction) … … 15183 14956 */ 15184 14957 __Pyx_XDECREF(__pyx_r); 15185 __pyx_t_8 = PyNumber_Add(__pyx_v_LC, __pyx_v_RC); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14958 __pyx_t_8 = PyNumber_Add(__pyx_v_LC, __pyx_v_RC); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15186 14959 __Pyx_GOTREF(__pyx_t_8); 15187 14960 __pyx_r = __pyx_t_8; … … 15196 14969 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; 15197 14970 15198 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 7714971 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":492 15199 14972 * RC = right.sweep(direction) 15200 14973 * return LC + RC … … 15204 14977 */ 15205 14978 __Pyx_Raise(__pyx_builtin_RuntimeError, 0, 0); 15206 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}14979 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15207 14980 15208 14981 __pyx_r = Py_None; __Pyx_INCREF(Py_None); … … 15228 15001 } 15229 15002 15230 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 8115003 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":496 15231 15004 * @cython.boundscheck(False) 15232 15005 * @cython.wraparound(False) … … 15251 15024 __pyx_v_right = Py_None; __Pyx_INCREF(Py_None); 15252 15025 15253 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 8315026 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":498 15254 15027 * cdef object split(self, np.float64_t *sp, int direction): 15255 15028 * cdef int i … … 15258 15031 * 15259 15032 */ 15260 __pyx_t_1 = PyObject_GetAttr(__pyx_v_self->LeftEdge, __pyx_n_s__copy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15033 __pyx_t_1 = PyObject_GetAttr(__pyx_v_self->LeftEdge, __pyx_n_s__copy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15261 15034 __Pyx_GOTREF(__pyx_t_1); 15262 __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15035 __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15263 15036 __Pyx_GOTREF(__pyx_t_2); 15264 15037 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 15265 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15038 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15266 15039 __pyx_v_split_left = ((PyArrayObject *)__pyx_t_2); 15267 15040 __pyx_t_2 = 0; 15268 15041 15269 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":4 8415042 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":499 15270 15043 * cdef int i 15271 15044 * cdef np.ndarray split_left = self.LeftEdge.copy() … … 15274 15047 * for i in range(3): split_left[i] = self.right_edge[i] 15275 15048 */ 15276 __pyx_t_2 = PyObject_GetAttr(__pyx_v_self->RightEdge, __pyx_n_s__copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15049 __pyx_t_2 = PyObject_GetAttr(__pyx_v_self->RightEdge, __pyx_n_s__copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15277 15050 __Pyx_GOTREF(__pyx_t_2); 15278 __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15051 __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15279 15052 __Pyx_GOTREF(__pyx_t_1); 15280 15053 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 15281 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15054 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15282 15055 __pyx_v_split_right = ((PyArrayObject *)__pyx_t_1); 15283 15056 __pyx_t_1 = 0; 15284 15057 15285 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 48615058 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":501 15286 15059 * cdef np.ndarray split_right = self.RightEdge.copy() 15287 15060 * … … 15292 15065 for (__pyx_t_3 = 0; __pyx_t_3 < 3; __pyx_t_3+=1) { 15293 15066 __pyx_v_i = __pyx_t_3; 15294 __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->right_edge[__pyx_v_i])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15067 __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->right_edge[__pyx_v_i])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15295 15068 __Pyx_GOTREF(__pyx_t_1); 15296 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_left), __pyx_v_i, __pyx_t_1, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15069 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_left), __pyx_v_i, __pyx_t_1, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15297 15070 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 15298 15071 } 15299 15072 15300 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 48715073 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":502 15301 15074 * 15302 15075 * for i in range(3): split_left[i] = self.right_edge[i] … … 15305 15078 * 15306 15079 */ 15307 __pyx_t_1 = PyFloat_FromDouble((__pyx_v_sp[__pyx_v_direction])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15080 __pyx_t_1 = PyFloat_FromDouble((__pyx_v_sp[__pyx_v_direction])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15308 15081 __Pyx_GOTREF(__pyx_t_1); 15309 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_left), __pyx_v_direction, __pyx_t_1, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15082 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_left), __pyx_v_direction, __pyx_t_1, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15310 15083 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 15311 15084 15312 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 48815085 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":503 15313 15086 * for i in range(3): split_left[i] = self.right_edge[i] 15314 15087 * split_left[direction] = sp[direction] … … 15317 15090 * for i in range(3): split_right[i] = self.left_edge[i] 15318 15091 */ 15319 __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15092 __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15320 15093 __Pyx_GOTREF(__pyx_t_1); 15321 15094 __Pyx_INCREF(__pyx_v_self->LeftEdge); … … 15328 15101 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_self->subgrid_faces); 15329 15102 __Pyx_GIVEREF(__pyx_v_self->subgrid_faces); 15330 __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_2yt_9amr_utils_ProtoPrism)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15103 __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_2yt_9amr_utils_ProtoPrism)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15331 15104 __Pyx_GOTREF(__pyx_t_2); 15332 15105 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; … … 15335 15108 __pyx_t_2 = 0; 15336 15109 15337 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 49015110 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":505 15338 15111 * left = ProtoPrism(self.LeftEdge, split_left, self.subgrid_faces) 15339 15112 * … … 15344 15117 for (__pyx_t_3 = 0; __pyx_t_3 < 3; __pyx_t_3+=1) { 15345 15118 __pyx_v_i = __pyx_t_3; 15346 __pyx_t_2 = PyFloat_FromDouble((__pyx_v_self->left_edge[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15119 __pyx_t_2 = PyFloat_FromDouble((__pyx_v_self->left_edge[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15347 15120 __Pyx_GOTREF(__pyx_t_2); 15348 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_right), __pyx_v_i, __pyx_t_2, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15121 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_right), __pyx_v_i, __pyx_t_2, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15349 15122 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 15350 15123 } 15351 15124 15352 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 49115125 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":506 15353 15126 * 15354 15127 * for i in range(3): split_right[i] = self.left_edge[i] … … 15357 15130 * 15358 15131 */ 15359 __pyx_t_2 = PyFloat_FromDouble((__pyx_v_sp[__pyx_v_direction])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15132 __pyx_t_2 = PyFloat_FromDouble((__pyx_v_sp[__pyx_v_direction])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15360 15133 __Pyx_GOTREF(__pyx_t_2); 15361 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_right), __pyx_v_direction, __pyx_t_2, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15134 if (__Pyx_SetItemInt(((PyObject *)__pyx_v_split_right), __pyx_v_direction, __pyx_t_2, sizeof(int), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15362 15135 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 15363 15136 15364 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 49215137 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":507 15365 15138 * for i in range(3): split_right[i] = self.left_edge[i] 15366 15139 * split_right[direction] = sp[direction] … … 15369 15142 * return (left, right) 15370 15143 */ 15371 __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15144 __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15372 15145 __Pyx_GOTREF(__pyx_t_2); 15373 15146 __Pyx_INCREF(((PyObject *)__pyx_v_split_right)); … … 15380 15153 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->subgrid_faces); 15381 15154 __Pyx_GIVEREF(__pyx_v_self->subgrid_faces); 15382 __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_2yt_9amr_utils_ProtoPrism)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15155 __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_2yt_9amr_utils_ProtoPrism)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15383 15156 __Pyx_GOTREF(__pyx_t_1); 15384 15157 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; … … 15387 15160 __pyx_t_1 = 0; 15388 15161 15389 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 49415162 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":509 15390 15163 * right = ProtoPrism(split_right, self.RightEdge, self.subgrid_faces) 15391 15164 * … … 15395 15168 */ 15396 15169 __Pyx_XDECREF(__pyx_r); 15397 __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15170 __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15398 15171 __Pyx_GOTREF(__pyx_t_1); 15399 15172 __Pyx_INCREF(__pyx_v_left); … … 15425 15198 } 15426 15199 15427 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx": 49815200 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":513 15428 15201 * @cython.boundscheck(False) 15429 15202 * @cython.wraparound(False) … … 15472 15245 int __pyx_t_1; 15473 15246 int __pyx_t_2; 15474 __pyx_t_5numpy_float64_t __pyx_t_3;15247 int __pyx_t_3; 15475 15248 int __pyx_t_4; 15476 __pyx_t_5numpy_float64_t __pyx_t_5;15477 int __pyx_t_6;15478 int __pyx_t_7;15249 int __pyx_t_5; 15250 PyObject *__pyx_t_6 = NULL; 15251 PyObject *__pyx_t_7 = NULL; 15479 15252 PyObject *__pyx_t_8 = NULL; 15480 15253 PyObject *__pyx_t_9 = NULL; 15481 PyObject *__pyx_t_10 = NULL;15482 Py Object *__pyx_t_11 = NULL;15254 int __pyx_t_10; 15255 PyArrayObject *__pyx_t_11 = NULL; 15483 15256 int __pyx_t_12; 15484 Py ArrayObject *__pyx_t_13 = NULL;15485 int __pyx_t_14;15257 PyObject *__pyx_t_13 = NULL; 15258 PyArrayObject *__pyx_t_14 = NULL; 15486 15259 PyObject *__pyx_t_15 = NULL; 15487 Py ArrayObject *__pyx_t_16 = NULL;15260 PyObject *__pyx_t_16 = NULL; 15488 15261 PyObject *__pyx_t_17 = NULL; 15489 PyObject *__pyx_t_18 = NULL;15490 PyObject *__pyx_t_19 = NULL;15491 15262 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__grid_left_edge,&__pyx_n_s__grid_dds,&__pyx_n_s__data,&__pyx_n_s__child_mask,0}; 15492 15263 __Pyx_RefNannySetupContext("get_brick"); … … 15511 15282 if (likely(values[1])) kw_args--; 15512 15283 else { 15513 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L3_error;}15284 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 15514 15285 } 15515 15286 case 2: … … 15517 15288 if (likely(values[2])) kw_args--; 15518 15289 else { 15519 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L3_error;}15290 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 15520 15291 } 15521 15292 case 3: … … 15523 15294 if (likely(values[3])) kw_args--; 15524 15295 else { 15525 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L3_error;}15296 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 15526 15297 } 15527 15298 } 15528 15299 if (unlikely(kw_args > 0)) { 15529 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "get_brick") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L3_error;}15300 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "get_brick") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 15530 15301 } 15531 15302 __pyx_v_grid_left_edge = ((PyArrayObject *)values[0]); … … 15543 15314 goto __pyx_L4_argument_unpacking_done; 15544 15315 __pyx_L5_argtuple_error:; 15545 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L3_error;}15316 __Pyx_RaiseArgtupleInvalid("get_brick", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} 15546 15317 __pyx_L3_error:; 15547 15318 __Pyx_AddTraceback("yt.amr_utils.ProtoPrism.get_brick"); … … 15560 15331 __pyx_bstruct_grid_dds.buf = NULL; 15561 15332 __pyx_bstruct_data.buf = NULL; 15562 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grid_left_edge), __pyx_ptype_5numpy_ndarray, 1, "grid_left_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15563 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grid_dds), __pyx_ptype_5numpy_ndarray, 1, "grid_dds", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15564 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), __pyx_ptype_5numpy_ndarray, 1, "data", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 5 00; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15333 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grid_left_edge), __pyx_ptype_5numpy_ndarray, 1, "grid_left_edge", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15334 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grid_dds), __pyx_ptype_5numpy_ndarray, 1, "grid_dds", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15335 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), __pyx_ptype_5numpy_ndarray, 1, "data", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15565 15336 { 15566 15337 __Pyx_BufFmt_StackElem __pyx_stack[1]; 15567 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_grid_left_edge, (PyObject*)__pyx_v_grid_left_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15338 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_grid_left_edge, (PyObject*)__pyx_v_grid_left_edge, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15568 15339 } 15569 15340 __pyx_bstride_0_grid_left_edge = __pyx_bstruct_grid_left_edge.strides[0]; … … 15571 15342 { 15572 15343 __Pyx_BufFmt_StackElem __pyx_stack[1]; 15573 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_grid_dds, (PyObject*)__pyx_v_grid_dds, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15344 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_grid_dds, (PyObject*)__pyx_v_grid_dds, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 1, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15574 15345 } 15575 15346 __pyx_bstride_0_grid_dds = __pyx_bstruct_grid_dds.strides[0]; … … 15577 15348 { 15578 15349 __Pyx_BufFmt_StackElem __pyx_stack[1]; 15579 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_data, (PyObject*)__pyx_v_data, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15350 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_data, (PyObject*)__pyx_v_data, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15580 15351 } 15581 15352 __pyx_bstride_0_data = __pyx_bstruct_data.strides[0]; __pyx_bstride_1_data = __pyx_bstruct_data.strides[1]; __pyx_bstride_2_data = __pyx_bstruct_data.strides[2]; 15582 15353 __pyx_bshape_0_data = __pyx_bstruct_data.shape[0]; __pyx_bshape_1_data = __pyx_bstruct_data.shape[1]; __pyx_bshape_2_data = __pyx_bstruct_data.shape[2]; 15583 15354 15584 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 0615355 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":521 15585 15356 * cdef PartitionedGrid PG 15586 15357 * cdef int li[3], ri[3], idims[3], i … … 15592 15363 __pyx_v_i = __pyx_t_1; 15593 15364 15594 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 0715365 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":522 15595 15366 * cdef int li[3], ri[3], idims[3], i 15596 15367 * for i in range(3): … … 15600 15371 */ 15601 15372 __pyx_t_2 = __pyx_v_i; 15602 __pyx_t_3 = ((((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->left_edge[__pyx_v_i]) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_left_edge.buf, __pyx_t_2, __pyx_bstride_0_grid_left_edge))); 15603 __pyx_t_4 = __pyx_v_i; 15604 __pyx_t_5 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dds.buf, __pyx_t_4, __pyx_bstride_0_grid_dds)); 15605 if (unlikely(__pyx_t_5 == 0)) { 15606 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 15607 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15608 } 15609 (__pyx_v_li[__pyx_v_i]) = lrint((__pyx_t_3 / __pyx_t_5)); 15610 15611 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":508 15373 __pyx_t_3 = __pyx_v_i; 15374 (__pyx_v_li[__pyx_v_i]) = lrint((((((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->left_edge[__pyx_v_i]) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_left_edge.buf, __pyx_t_2, __pyx_bstride_0_grid_left_edge))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dds.buf, __pyx_t_3, __pyx_bstride_0_grid_dds)))); 15375 15376 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":523 15612 15377 * for i in range(3): 15613 15378 * li[i] = lrint((self.left_edge[i] - grid_left_edge[i])/grid_dds[i]) … … 15616 15381 * if child_mask[li[0], li[1], li[2]] == 0: return [] 15617 15382 */ 15618 __pyx_t_6 = __pyx_v_i; 15619 __pyx_t_5 = ((((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->right_edge[__pyx_v_i]) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_left_edge.buf, __pyx_t_6, __pyx_bstride_0_grid_left_edge))); 15620 __pyx_t_7 = __pyx_v_i; 15621 __pyx_t_3 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dds.buf, __pyx_t_7, __pyx_bstride_0_grid_dds)); 15622 if (unlikely(__pyx_t_3 == 0)) { 15623 PyErr_Format(PyExc_ZeroDivisionError, "float division"); 15624 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15625 } 15626 (__pyx_v_ri[__pyx_v_i]) = lrint((__pyx_t_5 / __pyx_t_3)); 15627 15628 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":509 15383 __pyx_t_4 = __pyx_v_i; 15384 __pyx_t_5 = __pyx_v_i; 15385 (__pyx_v_ri[__pyx_v_i]) = lrint((((((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->right_edge[__pyx_v_i]) - (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_left_edge.buf, __pyx_t_4, __pyx_bstride_0_grid_left_edge))) / (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_grid_dds.buf, __pyx_t_5, __pyx_bstride_0_grid_dds)))); 15386 15387 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":524 15629 15388 * li[i] = lrint((self.left_edge[i] - grid_left_edge[i])/grid_dds[i]) 15630 15389 * ri[i] = lrint((self.right_edge[i] - grid_left_edge[i])/grid_dds[i]) … … 15636 15395 } 15637 15396 15638 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 1015397 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":525 15639 15398 * ri[i] = lrint((self.right_edge[i] - grid_left_edge[i])/grid_dds[i]) 15640 15399 * idims[i] = ri[i] - li[i] … … 15643 15402 * for i in range(3): 15644 15403 */ 15645 __pyx_t_8 = PyInt_FromLong((__pyx_v_li[0])); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15404 __pyx_t_6 = PyInt_FromLong((__pyx_v_li[0])); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15405 __Pyx_GOTREF(__pyx_t_6); 15406 __pyx_t_7 = PyInt_FromLong((__pyx_v_li[1])); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15407 __Pyx_GOTREF(__pyx_t_7); 15408 __pyx_t_8 = PyInt_FromLong((__pyx_v_li[2])); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15646 15409 __Pyx_GOTREF(__pyx_t_8); 15647 __pyx_t_9 = Py Int_FromLong((__pyx_v_li[1])); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15410 __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15648 15411 __Pyx_GOTREF(__pyx_t_9); 15649 __pyx_t_10 = PyInt_FromLong((__pyx_v_li[2])); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15650 __Pyx_G OTREF(__pyx_t_10);15651 __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15652 __Pyx_G OTREF(__pyx_t_11);15653 PyTuple_SET_ITEM(__pyx_t_ 11, 0, __pyx_t_8);15412 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); 15413 __Pyx_GIVEREF(__pyx_t_6); 15414 PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); 15415 __Pyx_GIVEREF(__pyx_t_7); 15416 PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_8); 15654 15417 __Pyx_GIVEREF(__pyx_t_8); 15655 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_9); 15656 __Pyx_GIVEREF(__pyx_t_9); 15657 PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_t_10); 15658 __Pyx_GIVEREF(__pyx_t_10); 15418 __pyx_t_6 = 0; 15419 __pyx_t_7 = 0; 15659 15420 __pyx_t_8 = 0; 15660 __pyx_t_9 = 0; 15661 __pyx_t_10 = 0; 15662 __pyx_t_10 = PyObject_GetItem(__pyx_v_child_mask, __pyx_t_11); if (!__pyx_t_10) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15663 __Pyx_GOTREF(__pyx_t_10); 15664 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; 15665 __pyx_t_11 = PyObject_RichCompare(__pyx_t_10, __pyx_int_0, Py_EQ); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15666 __Pyx_GOTREF(__pyx_t_11); 15667 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; 15668 __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_12 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15669 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; 15670 if (__pyx_t_12) { 15421 __pyx_t_8 = PyObject_GetItem(__pyx_v_child_mask, __pyx_t_9); if (!__pyx_t_8) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15422 __Pyx_GOTREF(__pyx_t_8); 15423 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15424 __pyx_t_9 = PyObject_RichCompare(__pyx_t_8, __pyx_int_0, Py_EQ); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15425 __Pyx_GOTREF(__pyx_t_9); 15426 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; 15427 __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_10 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15428 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15429 if (__pyx_t_10) { 15671 15430 __Pyx_XDECREF(__pyx_r); 15672 __pyx_t_ 11 = PyList_New(0); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15673 __Pyx_GOTREF(((PyObject *)__pyx_t_ 11));15674 __pyx_r = ((PyObject *)__pyx_t_ 11);15675 __pyx_t_ 11= 0;15431 __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15432 __Pyx_GOTREF(((PyObject *)__pyx_t_9)); 15433 __pyx_r = ((PyObject *)__pyx_t_9); 15434 __pyx_t_9 = 0; 15676 15435 goto __pyx_L0; 15677 15436 goto __pyx_L8; … … 15679 15438 __pyx_L8:; 15680 15439 15681 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 1115440 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":526 15682 15441 * idims[i] = ri[i] - li[i] 15683 15442 * if child_mask[li[0], li[1], li[2]] == 0: return [] … … 15686 15445 * dims[i] = idims[i] 15687 15446 */ 15688 __pyx_t_ 11 = __Pyx_GetName(__pyx_m, __pyx_n_s__np); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15689 __Pyx_GOTREF(__pyx_t_ 11);15690 __pyx_t_ 10 = PyObject_GetAttr(__pyx_t_11, __pyx_n_s__empty); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15691 __Pyx_GOTREF(__pyx_t_ 10);15692 __Pyx_DECREF(__pyx_t_ 11); __pyx_t_11= 0;15693 __pyx_t_ 11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15694 __Pyx_GOTREF(__pyx_t_ 11);15447 __pyx_t_9 = __Pyx_GetName(__pyx_m, __pyx_n_s__np); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15448 __Pyx_GOTREF(__pyx_t_9); 15449 __pyx_t_8 = PyObject_GetAttr(__pyx_t_9, __pyx_n_s__empty); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15450 __Pyx_GOTREF(__pyx_t_8); 15451 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15452 __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15453 __Pyx_GOTREF(__pyx_t_9); 15695 15454 __Pyx_INCREF(__pyx_int_3); 15696 PyTuple_SET_ITEM(__pyx_t_ 11, 0, __pyx_int_3);15455 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_int_3); 15697 15456 __Pyx_GIVEREF(__pyx_int_3); 15698 __pyx_t_ 9 = PyDict_New(); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15699 __Pyx_GOTREF(((PyObject *)__pyx_t_ 9));15700 if (PyDict_SetItem(__pyx_t_ 9, ((PyObject *)__pyx_n_s__dtype), ((PyObject *)__pyx_n_s__int64)) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15701 __pyx_t_ 8 = PyEval_CallObjectWithKeywords(__pyx_t_10, __pyx_t_11, ((PyObject *)__pyx_t_9)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15702 __Pyx_GOTREF(__pyx_t_ 8);15703 __Pyx_DECREF(__pyx_t_ 10); __pyx_t_10= 0;15704 __Pyx_DECREF(__pyx_t_ 11); __pyx_t_11= 0;15705 __Pyx_DECREF(((PyObject *)__pyx_t_ 9)); __pyx_t_9= 0;15706 if (!(likely(((__pyx_t_ 8) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_8, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15707 __pyx_t_1 3 = ((PyArrayObject *)__pyx_t_8);15457 __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15458 __Pyx_GOTREF(((PyObject *)__pyx_t_7)); 15459 if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__dtype), ((PyObject *)__pyx_n_s__int64)) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15460 __pyx_t_6 = PyEval_CallObjectWithKeywords(__pyx_t_8, __pyx_t_9, ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15461 __Pyx_GOTREF(__pyx_t_6); 15462 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; 15463 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15464 __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; 15465 if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15466 __pyx_t_11 = ((PyArrayObject *)__pyx_t_6); 15708 15467 { 15709 15468 __Pyx_BufFmt_StackElem __pyx_stack[1]; 15710 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_dims, (PyObject*)__pyx_t_1 3, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int64_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) {15469 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_dims, (PyObject*)__pyx_t_11, &__Pyx_TypeInfo_nn___pyx_t_5numpy_int64_t, PyBUF_FORMAT| PyBUF_STRIDES| PyBUF_WRITABLE, 1, 0, __pyx_stack) == -1)) { 15711 15470 __pyx_v_dims = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_bstruct_dims.buf = NULL; 15712 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 5 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15471 {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15713 15472 } else {__pyx_bstride_0_dims = __pyx_bstruct_dims.strides[0]; 15714 15473 __pyx_bshape_0_dims = __pyx_bstruct_dims.shape[0]; 15715 15474 } 15716 15475 } 15717 __pyx_t_1 3= 0;15718 __pyx_v_dims = ((PyArrayObject *)__pyx_t_ 8);15719 __pyx_t_ 8= 0;15720 15721 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 1215476 __pyx_t_11 = 0; 15477 __pyx_v_dims = ((PyArrayObject *)__pyx_t_6); 15478 __pyx_t_6 = 0; 15479 15480 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":527 15722 15481 * if child_mask[li[0], li[1], li[2]] == 0: return [] 15723 15482 * cdef np.ndarray[np.int64_t, ndim=1] dims = np.empty(3, dtype='int64') … … 15729 15488 __pyx_v_i = __pyx_t_1; 15730 15489 15731 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 1315490 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":528 15732 15491 * cdef np.ndarray[np.int64_t, ndim=1] dims = np.empty(3, dtype='int64') 15733 15492 * for i in range(3): … … 15736 15495 * new_data = data[li[0]:ri[0]+1,li[1]:ri[1]+1,li[2]:ri[2]+1].copy() 15737 15496 */ 15738 __pyx_t_1 4= __pyx_v_i;15739 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_dims.buf, __pyx_t_1 4, __pyx_bstride_0_dims) = (__pyx_v_idims[__pyx_v_i]);15740 } 15741 15742 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 1515497 __pyx_t_12 = __pyx_v_i; 15498 *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_dims.buf, __pyx_t_12, __pyx_bstride_0_dims) = (__pyx_v_idims[__pyx_v_i]); 15499 } 15500 15501 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":530 15743 15502 * dims[i] = idims[i] 15744 15503 * cdef np.ndarray[np.float64_t, ndim=3] new_data … … 15747 15506 * return [PG] 15748 15507 */ 15749 __pyx_t_8 = PyInt_FromLong((__pyx_v_li[0])); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15508 __pyx_t_6 = PyInt_FromLong((__pyx_v_li[0])); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15509 __Pyx_GOTREF(__pyx_t_6); 15510 __pyx_t_7 = PyInt_FromLong(((__pyx_v_ri[0]) + 1)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15511 __Pyx_GOTREF(__pyx_t_7); 15512 __pyx_t_9 = PySlice_New(__pyx_t_6, __pyx_t_7, Py_None); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15513 __Pyx_GOTREF(__pyx_t_9); 15514 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; 15515 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 15516 __pyx_t_7 = PyInt_FromLong((__pyx_v_li[1])); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15517 __Pyx_GOTREF(__pyx_t_7); 15518 __pyx_t_6 = PyInt_FromLong(((__pyx_v_ri[1]) + 1)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15519 __Pyx_GOTREF(__pyx_t_6); 15520 __pyx_t_8 = PySlice_New(__pyx_t_7, __pyx_t_6, Py_None); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15750 15521 __Pyx_GOTREF(__pyx_t_8); 15751 __pyx_t_9 = PyInt_FromLong(((__pyx_v_ri[0]) + 1)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15752 __Pyx_GOTREF(__pyx_t_9); 15753 __pyx_t_11 = PySlice_New(__pyx_t_8, __pyx_t_9, Py_None); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15754 __Pyx_GOTREF(__pyx_t_11); 15755 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; 15756 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15757 __pyx_t_9 = PyInt_FromLong((__pyx_v_li[1])); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15758 __Pyx_GOTREF(__pyx_t_9); 15759 __pyx_t_8 = PyInt_FromLong(((__pyx_v_ri[1]) + 1)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15760 __Pyx_GOTREF(__pyx_t_8); 15761 __pyx_t_10 = PySlice_New(__pyx_t_9, __pyx_t_8, Py_None); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15762 __Pyx_GOTREF(__pyx_t_10); 15763 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15764 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; 15765 __pyx_t_8 = PyInt_FromLong((__pyx_v_li[2])); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15766 __Pyx_GOTREF(__pyx_t_8); 15767 __pyx_t_9 = PyInt_FromLong(((__pyx_v_ri[2]) + 1)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15768 __Pyx_GOTREF(__pyx_t_9); 15769 __pyx_t_15 = PySlice_New(__pyx_t_8, __pyx_t_9, Py_None); if (unlikely(!__pyx_t_15)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15770 __Pyx_GOTREF(__pyx_t_15); 15771 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; 15772 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15773 __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15774 __Pyx_GOTREF(__pyx_t_9); 15775 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_11); 15776 __Pyx_GIVEREF(__pyx_t_11); 15777 PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10); 15778 __Pyx_GIVEREF(__pyx_t_10); 15779 PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_15); 15780 __Pyx_GIVEREF(__pyx_t_15); 15781 __pyx_t_11 = 0; 15782 __pyx_t_10 = 0; 15783 __pyx_t_15 = 0; 15784 __pyx_t_15 = PyObject_GetItem(((PyObject *)__pyx_v_data), __pyx_t_9); if (!__pyx_t_15) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15785 __Pyx_GOTREF(__pyx_t_15); 15786 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15787 __pyx_t_9 = PyObject_GetAttr(__pyx_t_15, __pyx_n_s__copy); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15788 __Pyx_GOTREF(__pyx_t_9); 15789 __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; 15790 __pyx_t_15 = PyObject_Call(__pyx_t_9, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_15)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15791 __Pyx_GOTREF(__pyx_t_15); 15792 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; 15793 if (!(likely(((__pyx_t_15) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_15, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15794 __pyx_t_16 = ((PyArrayObject *)__pyx_t_15); 15522 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 15523 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; 15524 __pyx_t_6 = PyInt_FromLong((__pyx_v_li[2])); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15525 __Pyx_GOTREF(__pyx_t_6); 15526 __pyx_t_7 = PyInt_FromLong(((__pyx_v_ri[2]) + 1)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15527 __Pyx_GOTREF(__pyx_t_7); 15528 __pyx_t_13 = PySlice_New(__pyx_t_6, __pyx_t_7, Py_None); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15529 __Pyx_GOTREF(__pyx_t_13); 15530 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; 15531 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 15532 __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15533 __Pyx_GOTREF(__pyx_t_7); 15534 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_9); 15535 __Pyx_GIVEREF(__pyx_t_9); 15536 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); 15537 __Pyx_GIVEREF(__pyx_t_8); 15538 PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_13); 15539 __Pyx_GIVEREF(__pyx_t_13); 15540 __pyx_t_9 = 0; 15541 __pyx_t_8 = 0; 15542 __pyx_t_13 = 0; 15543 __pyx_t_13 = PyObject_GetItem(((PyObject *)__pyx_v_data), __pyx_t_7); if (!__pyx_t_13) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15544 __Pyx_GOTREF(__pyx_t_13); 15545 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 15546 __pyx_t_7 = PyObject_GetAttr(__pyx_t_13, __pyx_n_s__copy); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15547 __Pyx_GOTREF(__pyx_t_7); 15548 __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; 15549 __pyx_t_13 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15550 __Pyx_GOTREF(__pyx_t_13); 15551 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 15552 if (!(likely(((__pyx_t_13) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_13, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15553 __pyx_t_14 = ((PyArrayObject *)__pyx_t_13); 15795 15554 { 15796 15555 __Pyx_BufFmt_StackElem __pyx_stack[1]; 15797 15556 __Pyx_SafeReleaseBuffer(&__pyx_bstruct_new_data); 15798 __pyx_t_1 = __Pyx_GetBufferAndValidate(&__pyx_bstruct_new_data, (PyObject*)__pyx_t_1 6, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack);15557 __pyx_t_1 = __Pyx_GetBufferAndValidate(&__pyx_bstruct_new_data, (PyObject*)__pyx_t_14, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack); 15799 15558 if (unlikely(__pyx_t_1 < 0)) { 15800 PyErr_Fetch(&__pyx_t_1 7, &__pyx_t_18, &__pyx_t_19);15559 PyErr_Fetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); 15801 15560 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_new_data, (PyObject*)__pyx_v_new_data, &__Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t, PyBUF_FORMAT| PyBUF_STRIDES, 3, 0, __pyx_stack) == -1)) { 15802 Py_XDECREF(__pyx_t_1 7); Py_XDECREF(__pyx_t_18); Py_XDECREF(__pyx_t_19);15561 Py_XDECREF(__pyx_t_15); Py_XDECREF(__pyx_t_16); Py_XDECREF(__pyx_t_17); 15803 15562 __Pyx_RaiseBufferFallbackError(); 15804 15563 } else { 15805 PyErr_Restore(__pyx_t_1 7, __pyx_t_18, __pyx_t_19);15564 PyErr_Restore(__pyx_t_15, __pyx_t_16, __pyx_t_17); 15806 15565 } 15807 15566 } 15808 15567 __pyx_bstride_0_new_data = __pyx_bstruct_new_data.strides[0]; __pyx_bstride_1_new_data = __pyx_bstruct_new_data.strides[1]; __pyx_bstride_2_new_data = __pyx_bstruct_new_data.strides[2]; 15809 15568 __pyx_bshape_0_new_data = __pyx_bstruct_new_data.shape[0]; __pyx_bshape_1_new_data = __pyx_bstruct_new_data.shape[1]; __pyx_bshape_2_new_data = __pyx_bstruct_new_data.shape[2]; 15810 if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 5 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15811 } 15812 __pyx_t_1 6= 0;15569 if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15570 } 15571 __pyx_t_14 = 0; 15813 15572 __Pyx_DECREF(((PyObject *)__pyx_v_new_data)); 15814 __pyx_v_new_data = ((PyArrayObject *)__pyx_t_1 5);15815 __pyx_t_1 5= 0;15816 15817 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 1615573 __pyx_v_new_data = ((PyArrayObject *)__pyx_t_13); 15574 __pyx_t_13 = 0; 15575 15576 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":531 15818 15577 * cdef np.ndarray[np.float64_t, ndim=3] new_data 15819 15578 * new_data = data[li[0]:ri[0]+1,li[1]:ri[1]+1,li[2]:ri[2]+1].copy() … … 15821 15580 * return [PG] 15822 15581 */ 15823 __pyx_t_1 5 = PyTuple_New(4); if (unlikely(!__pyx_t_15)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15824 __Pyx_GOTREF(__pyx_t_1 5);15582 __pyx_t_13 = PyTuple_New(4); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15583 __Pyx_GOTREF(__pyx_t_13); 15825 15584 __Pyx_INCREF(((PyObject *)__pyx_v_new_data)); 15826 PyTuple_SET_ITEM(__pyx_t_1 5, 0, ((PyObject *)__pyx_v_new_data));15585 PyTuple_SET_ITEM(__pyx_t_13, 0, ((PyObject *)__pyx_v_new_data)); 15827 15586 __Pyx_GIVEREF(((PyObject *)__pyx_v_new_data)); 15828 15587 __Pyx_INCREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge); 15829 PyTuple_SET_ITEM(__pyx_t_1 5, 1, ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge);15588 PyTuple_SET_ITEM(__pyx_t_13, 1, ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge); 15830 15589 __Pyx_GIVEREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge); 15831 15590 __Pyx_INCREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge); 15832 PyTuple_SET_ITEM(__pyx_t_1 5, 2, ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge);15591 PyTuple_SET_ITEM(__pyx_t_13, 2, ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge); 15833 15592 __Pyx_GIVEREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge); 15834 15593 __Pyx_INCREF(((PyObject *)__pyx_v_dims)); 15835 PyTuple_SET_ITEM(__pyx_t_1 5, 3, ((PyObject *)__pyx_v_dims));15594 PyTuple_SET_ITEM(__pyx_t_13, 3, ((PyObject *)__pyx_v_dims)); 15836 15595 __Pyx_GIVEREF(((PyObject *)__pyx_v_dims)); 15837 __pyx_t_ 9 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_2yt_9amr_utils_PartitionedGrid)), __pyx_t_15, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15838 __Pyx_GOTREF(__pyx_t_ 9);15839 __Pyx_DECREF(__pyx_t_1 5); __pyx_t_15= 0;15596 __pyx_t_7 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_2yt_9amr_utils_PartitionedGrid)), __pyx_t_13, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15597 __Pyx_GOTREF(__pyx_t_7); 15598 __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; 15840 15599 __Pyx_DECREF(((PyObject *)__pyx_v_PG)); 15841 __pyx_v_PG = ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_t_ 9);15842 __pyx_t_ 9= 0;15843 15844 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":5 1715600 __pyx_v_PG = ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_t_7); 15601 __pyx_t_7 = 0; 15602 15603 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":532 15845 15604 * new_data = data[li[0]:ri[0]+1,li[1]:ri[1]+1,li[2]:ri[2]+1].copy() 15846 15605 * PG = PartitionedGrid(new_data, self.LeftEdge, self.RightEdge, dims) … … 15848 15607 */ 15849 15608 __Pyx_XDECREF(__pyx_r); 15850 __pyx_t_ 9 = PyList_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}15851 __Pyx_GOTREF(((PyObject *)__pyx_t_ 9));15609 __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 15610 __Pyx_GOTREF(((PyObject *)__pyx_t_7)); 15852 15611 __Pyx_INCREF(((PyObject *)__pyx_v_PG)); 15853 PyList_SET_ITEM(__pyx_t_ 9, 0, ((PyObject *)__pyx_v_PG));15612 PyList_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_v_PG)); 15854 15613 __Pyx_GIVEREF(((PyObject *)__pyx_v_PG)); 15855 __pyx_r = ((PyObject *)__pyx_t_ 9);15856 __pyx_t_ 9= 0;15614 __pyx_r = ((PyObject *)__pyx_t_7); 15615 __pyx_t_7 = 0; 15857 15616 goto __pyx_L0; 15858 15617 … … 15860 15619 goto __pyx_L0; 15861 15620 __pyx_L1_error:; 15621 __Pyx_XDECREF(__pyx_t_6); 15622 __Pyx_XDECREF(__pyx_t_7); 15862 15623 __Pyx_XDECREF(__pyx_t_8); 15863 15624 __Pyx_XDECREF(__pyx_t_9); 15864 __Pyx_XDECREF(__pyx_t_10); 15865 __Pyx_XDECREF(__pyx_t_11); 15866 __Pyx_XDECREF(__pyx_t_15); 15625 __Pyx_XDECREF(__pyx_t_13); 15867 15626 { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; 15868 15627 __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); … … 16210 15969 * le0 = leftEdge[0] 16211 15970 */ 16212 if (unlikely(__pyx_v_cellSize == 0)) {16213 PyErr_Format(PyExc_ZeroDivisionError, "float division");16214 {__pyx_filename = __pyx_f[5]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}16215 }16216 15971 __pyx_v_fact = (1.0 / __pyx_v_cellSize); 16217 15972 … … 21330 21085 {&__pyx_n_s__i_i, __pyx_k__i_i, sizeof(__pyx_k__i_i), 0, 0, 1, 1}, 21331 21086 {&__pyx_n_s__i_s, __pyx_k__i_s, sizeof(__pyx_k__i_s), 0, 0, 1, 1}, 21087 {&__pyx_n_s__idbin, __pyx_k__idbin, sizeof(__pyx_k__idbin), 0, 0, 1, 1}, 21088 {&__pyx_n_s__idds, __pyx_k__idds, sizeof(__pyx_k__idds), 0, 0, 1, 1}, 21332 21089 {&__pyx_n_s__image, __pyx_k__image, sizeof(__pyx_k__image), 0, 0, 1, 1}, 21333 21090 {&__pyx_n_s__imax, __pyx_k__imax, sizeof(__pyx_k__imax), 0, 0, 1, 1}, … … 21338 21095 {&__pyx_n_s__int8, __pyx_k__int8, sizeof(__pyx_k__int8), 0, 0, 1, 1}, 21339 21096 {&__pyx_n_s__integrate_ray, __pyx_k__integrate_ray, sizeof(__pyx_k__integrate_ray), 0, 0, 1, 1}, 21097 {&__pyx_n_s__interpolate, __pyx_k__interpolate, sizeof(__pyx_k__interpolate), 0, 0, 1, 1}, 21340 21098 {&__pyx_n_s__istride, __pyx_k__istride, sizeof(__pyx_k__istride), 0, 0, 1, 1}, 21341 21099 {&__pyx_n_s__itemsize, __pyx_k__itemsize, sizeof(__pyx_k__itemsize), 0, 0, 1, 1}, … … 21431 21189 __pyx_builtin_xrange = __Pyx_GetName(__pyx_b, __pyx_n_s__xrange); if (!__pyx_builtin_xrange) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21432 21190 #endif 21433 __pyx_builtin_RuntimeError = __Pyx_GetName(__pyx_b, __pyx_n_s__RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21191 __pyx_builtin_RuntimeError = __Pyx_GetName(__pyx_b, __pyx_n_s__RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21434 21192 __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_n_s__ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21435 21193 return 0; … … 21528 21286 *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_VectorPlane.copy_back = (void(*)(void))__pyx_f_2yt_9amr_utils_11VectorPlane_copy_back; 21529 21287 #endif 21530 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_VectorPlane) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21531 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_VectorPlane.tp_dict, __pyx_vtabptr_2yt_9amr_utils_VectorPlane) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21532 if (__Pyx_SetAttrString(__pyx_m, "VectorPlane", (PyObject *)&__pyx_type_2yt_9amr_utils_VectorPlane) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21288 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_VectorPlane) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21289 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_VectorPlane.tp_dict, __pyx_vtabptr_2yt_9amr_utils_VectorPlane) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21290 if (__Pyx_SetAttrString(__pyx_m, "VectorPlane", (PyObject *)&__pyx_type_2yt_9amr_utils_VectorPlane) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21533 21291 __pyx_ptype_2yt_9amr_utils_VectorPlane = &__pyx_type_2yt_9amr_utils_VectorPlane; 21534 21292 __pyx_vtabptr_2yt_9amr_utils_TransferFunctionProxy = &__pyx_vtable_2yt_9amr_utils_TransferFunctionProxy; 21535 21293 #if PY_MAJOR_VERSION >= 3 21294 __pyx_vtable_2yt_9amr_utils_TransferFunctionProxy.interpolate = (void (*)(struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *, __pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t *))__pyx_f_2yt_9amr_utils_21TransferFunctionProxy_interpolate; 21536 21295 __pyx_vtable_2yt_9amr_utils_TransferFunctionProxy.eval_transfer = (void (*)(struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *, __pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t *, __pyx_t_5numpy_float64_t *))__pyx_f_2yt_9amr_utils_21TransferFunctionProxy_eval_transfer; 21537 21296 #else 21297 *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_TransferFunctionProxy.interpolate = (void(*)(void))__pyx_f_2yt_9amr_utils_21TransferFunctionProxy_interpolate; 21538 21298 *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_TransferFunctionProxy.eval_transfer = (void(*)(void))__pyx_f_2yt_9amr_utils_21TransferFunctionProxy_eval_transfer; 21539 21299 #endif 21540 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_TransferFunctionProxy) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 7 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21541 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_TransferFunctionProxy.tp_dict, __pyx_vtabptr_2yt_9amr_utils_TransferFunctionProxy) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 7 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21542 if (__Pyx_SetAttrString(__pyx_m, "TransferFunctionProxy", (PyObject *)&__pyx_type_2yt_9amr_utils_TransferFunctionProxy) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 7 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21300 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_TransferFunctionProxy) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21301 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_TransferFunctionProxy.tp_dict, __pyx_vtabptr_2yt_9amr_utils_TransferFunctionProxy) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21302 if (__Pyx_SetAttrString(__pyx_m, "TransferFunctionProxy", (PyObject *)&__pyx_type_2yt_9amr_utils_TransferFunctionProxy) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21543 21303 __pyx_ptype_2yt_9amr_utils_TransferFunctionProxy = &__pyx_type_2yt_9amr_utils_TransferFunctionProxy; 21544 21304 __pyx_vtabptr_2yt_9amr_utils_PartitionedGrid = &__pyx_vtable_2yt_9amr_utils_PartitionedGrid; … … 21552 21312 *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_PartitionedGrid.sample_values = (void(*)(void))__pyx_f_2yt_9amr_utils_15PartitionedGrid_sample_values; 21553 21313 #endif 21554 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_PartitionedGrid) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 21 0; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21555 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_PartitionedGrid.tp_dict, __pyx_vtabptr_2yt_9amr_utils_PartitionedGrid) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 21 0; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21556 if (__Pyx_SetAttrString(__pyx_m, "PartitionedGrid", (PyObject *)&__pyx_type_2yt_9amr_utils_PartitionedGrid) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 21 0; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21314 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_PartitionedGrid) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21315 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_PartitionedGrid.tp_dict, __pyx_vtabptr_2yt_9amr_utils_PartitionedGrid) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21316 if (__Pyx_SetAttrString(__pyx_m, "PartitionedGrid", (PyObject *)&__pyx_type_2yt_9amr_utils_PartitionedGrid) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21557 21317 __pyx_ptype_2yt_9amr_utils_PartitionedGrid = &__pyx_type_2yt_9amr_utils_PartitionedGrid; 21558 21318 __pyx_vtabptr_2yt_9amr_utils_GridFace = &__pyx_vtable_2yt_9amr_utils_GridFace; … … 21562 21322 *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_GridFace.proj_overlap = (void(*)(void))__pyx_f_2yt_9amr_utils_8GridFace_proj_overlap; 21563 21323 #endif 21564 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_GridFace) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 09; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21565 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_GridFace.tp_dict, __pyx_vtabptr_2yt_9amr_utils_GridFace) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 09; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21566 if (__Pyx_SetAttrString(__pyx_m, "GridFace", (PyObject *)&__pyx_type_2yt_9amr_utils_GridFace) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 09; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21324 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_GridFace) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21325 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_GridFace.tp_dict, __pyx_vtabptr_2yt_9amr_utils_GridFace) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21326 if (__Pyx_SetAttrString(__pyx_m, "GridFace", (PyObject *)&__pyx_type_2yt_9amr_utils_GridFace) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21567 21327 __pyx_ptype_2yt_9amr_utils_GridFace = &__pyx_type_2yt_9amr_utils_GridFace; 21568 21328 __pyx_vtabptr_2yt_9amr_utils_ProtoPrism = &__pyx_vtable_2yt_9amr_utils_ProtoPrism; … … 21572 21332 *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_ProtoPrism.split = (void(*)(void))__pyx_f_2yt_9amr_utils_10ProtoPrism_split; 21573 21333 #endif 21574 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_ProtoPrism) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21575 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_ProtoPrism.tp_dict, __pyx_vtabptr_2yt_9amr_utils_ProtoPrism) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21576 if (__Pyx_SetAttrString(__pyx_m, "ProtoPrism", (PyObject *)&__pyx_type_2yt_9amr_utils_ProtoPrism) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 4 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}21334 if (PyType_Ready(&__pyx_type_2yt_9amr_utils_ProtoPrism) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21335 if (__Pyx_SetVtable(__pyx_type_2yt_9amr_utils_ProtoPrism.tp_dict, __pyx_vtabptr_2yt_9amr_utils_ProtoPrism) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21336 if (__Pyx_SetAttrString(__pyx_m, "ProtoPrism", (PyObject *)&__pyx_type_2yt_9amr_utils_ProtoPrism) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 21577 21337 __pyx_ptype_2yt_9amr_utils_ProtoPrism = &__pyx_type_2yt_9amr_utils_ProtoPrism; 21578 21338 /*--- Type import code ---*/ … … 22378 22138 } 22379 22139 22380 22381 static CYTHON_INLINE long __Pyx_mod_long(long a, long b) {22382 long r = a % b;22383 r += ((r != 0) & ((r ^ b) < 0)) * b;22384 return r;22385 }22386 22140 static void __Pyx_RaiseBufferIndexError(int axis) { 22387 22141 PyErr_Format(PyExc_IndexError, … … 23378 23132 Py_DECREF(tmp); 23379 23133 return val; 23380 }23381 }23382 23383 static void __Pyx_WriteUnraisable(const char *name) {23384 PyObject *old_exc, *old_val, *old_tb;23385 PyObject *ctx;23386 __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);23387 #if PY_MAJOR_VERSION < 323388 ctx = PyString_FromString(name);23389 #else23390 ctx = PyUnicode_FromString(name);23391 #endif23392 __Pyx_ErrRestore(old_exc, old_val, old_tb);23393 if (!ctx) {23394 PyErr_WriteUnraisable(Py_None);23395 } else {23396 PyErr_WriteUnraisable(ctx);23397 Py_DECREF(ctx);23398 23134 } 23399 23135 }
