Changeset 1617

Show
Ignore:
Timestamp:
02/11/10 11:42:01 (6 months ago)
Author:
mturk
Message:

Re-generated the cython files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/yt/amr_utils.c

    r1607 r1617  
    1 /* Generated by Cython 0.12.1 on Wed Feb  3 23:14:23 2010 */ 
     1/* Generated by Cython 0.12.1 on Thu Feb 11 11:41:46 2010 */ 
    22 
    33#define PY_SSIZE_T_CLEAN 
     
    378378typedef npy_cdouble __pyx_t_5numpy_complex_t; 
    379379 
    380 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":74 
     380/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":76 
    381381 * cdef class VectorPlane 
    382382 *  
     
    394394  int ns; 
    395395  __pyx_t_5numpy_float64_t dbin; 
     396  __pyx_t_5numpy_float64_t idbin; 
    396397  __pyx_t_5numpy_float64_t light_color[3]; 
    397398  __pyx_t_5numpy_float64_t light_dir[3]; 
     
    431432}; 
    432433 
    433 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":441 
     434/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":456 
    434435 *         return 1 
    435436 *  
     
    463464}; 
    464465 
    465 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":409 
     466/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":424 
    466467 *             tf.eval_transfer(dt, dv, rgba, grad) 
    467468 *  
     
    480481}; 
    481482 
    482 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":72 
     483/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":74 
    483484 *                                        np.float64_t *data, np.float64_t *grad) 
    484485 *  
     
    509510}; 
    510511 
    511 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":210 
     512/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":212 
    512513 *             tv[(((k*self.nv)+j)*self.nv+i)] = fv[k] 
    513514 *  
     
    527528  __pyx_t_5numpy_float64_t right_edge[3]; 
    528529  __pyx_t_5numpy_float64_t dds[3]; 
     530  __pyx_t_5numpy_float64_t idds[3]; 
    529531  __pyx_t_5numpy_float64_t min_dds; 
    530532  int dims[3]; 
     
    532534 
    533535 
    534 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":441 
     536/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":456 
    535537 *         return 1 
    536538 *  
     
    546548 
    547549 
    548 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":150 
    549  *         #  dst.a   = dst.a   + (1 - dst.a) * src.a 
     550/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":149 
     551 *             rgba[i] += ta*trgba[i] 
    550552 *  
    551553 * cdef class VectorPlane:             # <<<<<<<<<<<<<< 
     
    562564 
    563565 
    564 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":210 
     566/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":212 
    565567 *             tv[(((k*self.nv)+j)*self.nv+i)] = fv[k] 
    566568 *  
     
    578580 
    579581 
    580 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":409 
     582/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":424 
    581583 *             tf.eval_transfer(dt, dv, rgba, grad) 
    582584 *  
     
    592594 
    593595 
    594 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":74 
     596/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":76 
    595597 * cdef class VectorPlane 
    596598 *  
     
    601603 
    602604struct __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 *); 
    603606  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 *); 
    604607}; 
     
    771774static void __Pyx_RaiseBufferFallbackError(void); /*proto*/ 
    772775#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 */ 
    775776static void __Pyx_RaiseBufferIndexError(int axis); /*proto*/ 
    776777 
     
    974975 
    975976static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *); 
    976  
    977 static void __Pyx_WriteUnraisable(const char *name); /*proto*/ 
    978977 
    979978static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/ 
     
    11101109static char __pyx_k__dims[] = "dims"; 
    11111110static char __pyx_k__grid[] = "grid"; 
     1111static char __pyx_k__idds[] = "idds"; 
    11121112static char __pyx_k__imax[] = "imax"; 
    11131113static char __pyx_k__imin[] = "imin"; 
     
    11361136static char __pyx_k__green[] = "green"; 
    11371137static char __pyx_k__grids[] = "grids"; 
     1138static char __pyx_k__idbin[] = "idbin"; 
    11381139static char __pyx_k__image[] = "image"; 
    11391140static char __pyx_k__int32[] = "int32"; 
     
    12161217static char __pyx_k__right_edge[] = "right_edge"; 
    12171218static char __pyx_k__suboffsets[] = "suboffsets"; 
     1219static char __pyx_k__interpolate[] = "interpolate"; 
    12181220static char __pyx_k__light_color[] = "light_color"; 
    12191221static char __pyx_k__refined_pos[] = "refined_pos"; 
     
    13041306static PyObject *__pyx_n_s__i_i; 
    13051307static PyObject *__pyx_n_s__i_s; 
     1308static PyObject *__pyx_n_s__idbin; 
     1309static PyObject *__pyx_n_s__idds; 
    13061310static PyObject *__pyx_n_s__image; 
    13071311static PyObject *__pyx_n_s__imax; 
     
    13121316static PyObject *__pyx_n_s__int8; 
    13131317static PyObject *__pyx_n_s__integrate_ray; 
     1318static PyObject *__pyx_n_s__interpolate; 
    13141319static PyObject *__pyx_n_s__istride; 
    13151320static PyObject *__pyx_n_s__itemsize; 
     
    24852490          __pyx_t_29 = 0; 
    24862491          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)); 
    24932493 
    24942494          /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":103 
     
    25012501          __pyx_t_35 = 1; 
    25022502          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)); 
    25092504 
    25102505          /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":104 
     
    25172512          __pyx_t_36 = 2; 
    25182513          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)); 
    25252515 
    25262516          /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":105 
     
    34173407          __pyx_t_39 = 0; 
    34183408          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)); 
    34253410 
    34263411          /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":156 
     
    34333418          __pyx_t_45 = 1; 
    34343419          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)); 
    34413421 
    34423422          /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":157 
     
    34493429          __pyx_t_46 = 2; 
    34503430          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)); 
    34573432 
    34583433          /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/DepthFirstOctree.pyx":159 
     
    37073682  long __pyx_t_5; 
    37083683  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; 
    37183692  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}; 
    37193693  __Pyx_RefNannySetupContext("UnilinearlyInterpolate"); 
     
    38763850    __pyx_t_6 = __pyx_v_x_i; 
    38773851    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); 
    38853854    __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; 
    38883857 
    38893858    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":42 
     
    38943863 *         output[i]  = table[x_i  ] * (xm) \ 
    38953864 */ 
    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_11 = __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_11; 
     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; 
    39063875 
    39073876    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":43 
     
    39123881 *                    + table[x_i+1] * (xp) 
    39133882 */ 
    3914     __pyx_t_12 = (__pyx_v_x_i + 1); 
    3915     if (__pyx_t_12 < 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_11 = __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_11; 
     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; 
    39243893 
    39253894    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":44 
     
    39303899 *  
    39313900 */ 
    3932     __pyx_t_13 = __pyx_v_x_i; 
    3933     if (__pyx_t_13 < 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; 
    39343903 
    39353904    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":45 
     
    39403909 * @cython.boundscheck(False) 
    39413910 */ 
    3942     __pyx_t_14 = (__pyx_v_x_i + 1); 
    3943     if (__pyx_t_14 < 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; 
    39443913 
    39453914    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":44 
     
    39503919 *  
    39513920 */ 
    3952     __pyx_t_15 = __pyx_v_i; 
    3953     if (__pyx_t_15 < 0) __pyx_t_15 += __pyx_bshape_0_output; 
    3954     *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_15, __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)); 
    39553924  } 
    39563925 
     
    39583927  goto __pyx_L0; 
    39593928  __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); 
    39623931  { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; 
    39633932    __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); 
     
    40534022  long __pyx_t_7; 
    40544023  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; 
    40574026  int __pyx_t_11; 
    40584027  int __pyx_t_12; 
    4059   int __pyx_t_13; 
     4028  long __pyx_t_13; 
    40604029  long __pyx_t_14; 
    4061   long __pyx_t_15; 
     4030  int __pyx_t_15; 
    40624031  int __pyx_t_16; 
    4063   int __pyx_t_17; 
    4064   long __pyx_t_18; 
     4032  long __pyx_t_17; 
     4033  int __pyx_t_18; 
    40654034  int __pyx_t_19; 
    4066   int __pyx_t_20; 
     4035  long __pyx_t_20; 
    40674036  long __pyx_t_21; 
    40684037  long __pyx_t_22; 
    4069   long __pyx_t_23; 
    4070   int __pyx_t_24; 
     4038  int __pyx_t_23; 
    40714039  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}; 
    40724040  __Pyx_RefNannySetupContext("BilinearlyInterpolate"); 
     
    43044272    __pyx_t_8 = __pyx_v_x_i; 
    43054273    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)))); 
    43124275 
    43134276    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":66 
     
    43184281 *         yp = (y - y_bins[y_i]) * dy_inv 
    43194282 */ 
    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; 
    43214286    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)))); 
    43304288 
    43314289    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":67 
     
    43364294 *         xm = (x_bins[x_i+1] - x) * dx_inv 
    43374295 */ 
    4338     __pyx_t_12 = __pyx_v_x_i; 
    4339     if (__pyx_t_12 < 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_12, __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); 
    43414299 
    43424300    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":68 
     
    43474305 *         ym = (y_bins[y_i+1] - y) * dy_inv 
    43484306 */ 
    4349     __pyx_t_13 = __pyx_v_y_i; 
    4350     if (__pyx_t_13 < 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_13, __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); 
    43524310 
    43534311    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":69 
     
    43584316 *         output[i]  = table[x_i  , y_i  ] * (xm*ym) \ 
    43594317 */ 
    4360     __pyx_t_14 = (__pyx_v_x_i + 1); 
    4361     if (__pyx_t_14 < 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_14, __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); 
    43634321 
    43644322    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":70 
     
    43694327 *                    + table[x_i+1, y_i  ] * (xp*ym) \ 
    43704328 */ 
    4371     __pyx_t_15 = (__pyx_v_y_i + 1); 
    4372     if (__pyx_t_15 < 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_15, __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); 
    43744332 
    43754333    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":71 
     
    43804338 *                    + table[x_i  , y_i+1] * (xm*yp) \ 
    43814339 */ 
    4382     __pyx_t_16 = __pyx_v_x_i; 
    4383     __pyx_t_17 = __pyx_v_y_i; 
    4384     if (__pyx_t_16 < 0) __pyx_t_16 += __pyx_bshape_0_table; 
    4385     if (__pyx_t_17 < 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; 
    43864344 
    43874345    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":72 
     
    43924350 *                    + table[x_i+1, y_i+1] * (xp*yp) 
    43934351 */ 
    4394     __pyx_t_18 = (__pyx_v_x_i + 1); 
    4395     __pyx_t_19 = __pyx_v_y_i; 
    4396     if (__pyx_t_18 < 0) __pyx_t_18 += __pyx_bshape_0_table; 
    4397     if (__pyx_t_19 < 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; 
    43984356 
    43994357    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":73 
     
    44044362 *  
    44054363 */ 
    4406     __pyx_t_20 = __pyx_v_x_i; 
    4407     __pyx_t_21 = (__pyx_v_y_i + 1); 
    4408     if (__pyx_t_20 < 0) __pyx_t_20 += __pyx_bshape_0_table; 
    4409     if (__pyx_t_21 < 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; 
    44104368 
    44114369    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":74 
     
    44164374 * @cython.boundscheck(False) 
    44174375 */ 
    4418     __pyx_t_22 = (__pyx_v_x_i + 1); 
    4419     __pyx_t_23 = (__pyx_v_y_i + 1); 
    4420     if (__pyx_t_22 < 0) __pyx_t_22 += __pyx_bshape_0_table; 
    4421     if (__pyx_t_23 < 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; 
    44224380 
    44234381    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":71 
     
    44284386 *                    + table[x_i  , y_i+1] * (xm*yp) \ 
    44294387 */ 
    4430     __pyx_t_24 = __pyx_v_i; 
    4431     if (__pyx_t_24 < 0) __pyx_t_24 += __pyx_bshape_0_output; 
    4432     *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_24, __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))); 
    44334391  } 
    44344392 
     
    45584516  long __pyx_t_9; 
    45594517  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; 
    45644522  int __pyx_t_15; 
    45654523  int __pyx_t_16; 
    45664524  int __pyx_t_17; 
    4567   int __pyx_t_18; 
     4525  long __pyx_t_18; 
    45684526  long __pyx_t_19; 
    45694527  long __pyx_t_20; 
    4570   long __pyx_t_21; 
     4528  int __pyx_t_21; 
    45714529  int __pyx_t_22; 
    45724530  int __pyx_t_23; 
    4573   int __pyx_t_24; 
    4574   long __pyx_t_25; 
     4531  long __pyx_t_24; 
     4532  int __pyx_t_25; 
    45754533  int __pyx_t_26; 
    45764534  int __pyx_t_27; 
    4577   int __pyx_t_28; 
    4578   long __pyx_t_29; 
     4535  long __pyx_t_28; 
     4536  int __pyx_t_29; 
    45794537  int __pyx_t_30; 
    45804538  int __pyx_t_31; 
    4581   int __pyx_t_32; 
     4539  long __pyx_t_32; 
    45824540  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; 
    45874545  long __pyx_t_38; 
    45884546  long __pyx_t_39; 
    45894547  long __pyx_t_40; 
    4590   long __pyx_t_41; 
    4591   int __pyx_t_42; 
     4548  int __pyx_t_41; 
     4549  long __pyx_t_42; 
    45924550  long __pyx_t_43; 
    45934551  long __pyx_t_44; 
    4594   long __pyx_t_45; 
    4595   int __pyx_t_46; 
     4552  int __pyx_t_45; 
    45964553  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}; 
    45974554  __Pyx_RefNannySetupContext("TrilinearlyInterpolate"); 
     
    49054862    __pyx_t_10 = __pyx_v_x_i; 
    49064863    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)))); 
    49134865 
    49144866    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":101 
     
    49194871 *         xp = (x - x_bins[x_i]) * dx_inv 
    49204872 */ 
    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; 
    49224876    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)))); 
    49314878 
    49324879    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":102 
     
    49374884 *         yp = (y - y_bins[y_i]) * dy_inv 
    49384885 */ 
    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; 
    49404889    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)))); 
    49494891 
    49504892    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":103 
     
    49554897 *         zp = (z - z_bins[z_i]) * dz_inv 
    49564898 */ 
    4957     __pyx_t_16 = __pyx_v_x_i; 
    4958     if (__pyx_t_16 < 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_16, __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); 
    49604902 
    49614903    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":104 
     
    49664908 *         xm = (x_bins[x_i+1] - x) * dx_inv 
    49674909 */ 
    4968     __pyx_t_17 = __pyx_v_y_i; 
    4969     if (__pyx_t_17 < 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_17, __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); 
    49714913 
    49724914    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":105 
     
    49774919 *         ym = (y_bins[y_i+1] - y) * dy_inv 
    49784920 */ 
    4979     __pyx_t_18 = __pyx_v_z_i; 
    4980     if (__pyx_t_18 < 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_18, __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); 
    49824924 
    49834925    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":106 
     
    49884930 *         zm = (z_bins[z_i+1] - z) * dz_inv 
    49894931 */ 
    4990     __pyx_t_19 = (__pyx_v_x_i + 1); 
    4991     if (__pyx_t_19 < 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_19, __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); 
    49934935 
    49944936    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":107 
     
    49994941 *         output[i]  = table[x_i  ,y_i  ,z_i  ] * (xm*ym*zm) \ 
    50004942 */ 
    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); 
    50044946 
    50054947    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":108 
     
    50104952 *                    + table[x_i+1,y_i  ,z_i  ] * (xp*ym*zm) \ 
    50114953 */ 
    5012     __pyx_t_21 = (__pyx_v_z_i + 1); 
    5013     if (__pyx_t_21 < 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_21, __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); 
    50154957 
    50164958    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":109 
     
    50214963 *                    + table[x_i  ,y_i+1,z_i  ] * (xm*yp*zm) \ 
    50224964 */ 
    5023     __pyx_t_22 = __pyx_v_x_i; 
    5024     __pyx_t_23 = __pyx_v_y_i; 
    5025     __pyx_t_24 = __pyx_v_z_i; 
    5026     if (__pyx_t_22 < 0) __pyx_t_22 += __pyx_bshape_0_table; 
    5027     if (__pyx_t_23 < 0) __pyx_t_23 += __pyx_bshape_1_table; 
    5028     if (__pyx_t_24 < 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; 
    50294971 
    50304972    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":110 
     
    50354977 *                    + table[x_i  ,y_i  ,z_i+1] * (xm*ym*zp) \ 
    50364978 */ 
    5037     __pyx_t_25 = (__pyx_v_x_i + 1); 
    5038     __pyx_t_26 = __pyx_v_y_i; 
    5039     __pyx_t_27 = __pyx_v_z_i; 
    5040     if (__pyx_t_25 < 0) __pyx_t_25 += __pyx_bshape_0_table; 
    5041     if (__pyx_t_26 < 0) __pyx_t_26 += __pyx_bshape_1_table; 
    5042     if (__pyx_t_27 < 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; 
    50434985 
    50444986    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":111 
     
    50494991 *                    + table[x_i+1,y_i  ,z_i+1] * (xp*ym*zp) \ 
    50504992 */ 
    5051     __pyx_t_28 = __pyx_v_x_i; 
    5052     __pyx_t_29 = (__pyx_v_y_i + 1); 
    5053     __pyx_t_30 = __pyx_v_z_i; 
    5054     if (__pyx_t_28 < 0) __pyx_t_28 += __pyx_bshape_0_table; 
    5055     if (__pyx_t_29 < 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; 
    50574999 
    50585000    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":112 
     
    50635005 *                    + table[x_i  ,y_i+1,z_i+1] * (xm*yp*zp) \ 
    50645006 */ 
    5065     __pyx_t_31 = __pyx_v_x_i; 
    5066     __pyx_t_32 = __pyx_v_y_i; 
    5067     __pyx_t_33 = (__pyx_v_z_i + 1); 
    5068     if (__pyx_t_31 < 0) __pyx_t_31 += __pyx_bshape_0_table; 
    5069     if (__pyx_t_32 < 0) __pyx_t_32 += __pyx_bshape_1_table; 
    5070     if (__pyx_t_33 < 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; 
    50715013 
    50725014    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":113 
     
    50775019 *                    + table[x_i+1,y_i+1,z_i  ] * (xp*yp*zm) \ 
    50785020 */ 
    5079     __pyx_t_34 = (__pyx_v_x_i + 1); 
    5080     __pyx_t_35 = __pyx_v_y_i; 
    5081     __pyx_t_36 = (__pyx_v_z_i + 1); 
    5082     if (__pyx_t_34 < 0) __pyx_t_34 += __pyx_bshape_0_table; 
    5083     if (__pyx_t_35 < 0) __pyx_t_35 += __pyx_bshape_1_table; 
    5084     if (__pyx_t_36 < 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; 
    50855027 
    50865028    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":114 
     
    50915033 *                    + table[x_i+1,y_i+1,z_i+1] * (xp*yp*zp) 
    50925034 */ 
    5093     __pyx_t_37 = __pyx_v_x_i; 
    5094     __pyx_t_38 = (__pyx_v_y_i + 1); 
    5095     __pyx_t_39 = (__pyx_v_z_i + 1); 
    5096     if (__pyx_t_37 < 0) __pyx_t_37 += __pyx_bshape_0_table; 
    5097     if (__pyx_t_38 < 0) __pyx_t_38 += __pyx_bshape_1_table; 
    5098     if (__pyx_t_39 < 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; 
    50995041 
    51005042    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":115 
     
    51045046 *                    + table[x_i+1,y_i+1,z_i+1] * (xp*yp*zp) 
    51055047 */ 
    5106     __pyx_t_40 = (__pyx_v_x_i + 1); 
    5107     __pyx_t_41 = (__pyx_v_y_i + 1); 
    5108     __pyx_t_42 = __pyx_v_z_i; 
    5109     if (__pyx_t_40 < 0) __pyx_t_40 += __pyx_bshape_0_table; 
    5110     if (__pyx_t_41 < 0) __pyx_t_41 += __pyx_bshape_1_table; 
    5111     if (__pyx_t_42 < 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; 
    51125054 
    51135055    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":116 
     
    51165058 *                    + table[x_i+1,y_i+1,z_i+1] * (xp*yp*zp)             # <<<<<<<<<<<<<< 
    51175059 */ 
    5118     __pyx_t_43 = (__pyx_v_x_i + 1); 
    5119     __pyx_t_44 = (__pyx_v_y_i + 1); 
    5120     __pyx_t_45 = (__pyx_v_z_i + 1); 
    5121     if (__pyx_t_43 < 0) __pyx_t_43 += __pyx_bshape_0_table; 
    5122     if (__pyx_t_44 < 0) __pyx_t_44 += __pyx_bshape_1_table; 
    5123     if (__pyx_t_45 < 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; 
    51245066 
    51255067    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/Interpolators.pyx":109 
     
    51305072 *                    + table[x_i  ,y_i+1,z_i  ] * (xm*yp*zm) \ 
    51315073 */ 
    5132     __pyx_t_46 = __pyx_v_i; 
    5133     if (__pyx_t_46 < 0) __pyx_t_46 += __pyx_bshape_0_output; 
    5134     *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_output.buf, __pyx_t_46, __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))); 
    51355077  } 
    51365078 
     
    54495391 *         if pmask[i] == 0: 
    54505392 */ 
    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   } 
    54555393  __pyx_v_dx_inv = (1.0 / __pyx_v_dx); 
    54565394 
     
    71237061  int __pyx_t_16; 
    71247062  int __pyx_t_17; 
    7125   __pyx_t_5numpy_float64_t __pyx_t_18; 
     7063  int __pyx_t_18; 
    71267064  int __pyx_t_19; 
    7127   __pyx_t_5numpy_float64_t __pyx_t_20; 
     7065  int __pyx_t_20; 
    71287066  int __pyx_t_21; 
    71297067  int __pyx_t_22; 
    71307068  int __pyx_t_23; 
    71317069  int __pyx_t_24; 
    7132   int __pyx_t_25; 
     7070  __pyx_t_5numpy_float64_t __pyx_t_25; 
    71337071  int __pyx_t_26; 
    71347072  int __pyx_t_27; 
     
    71477085  int __pyx_t_40; 
    71487086  int __pyx_t_41; 
    7149   int __pyx_t_42; 
     7087  long __pyx_t_42; 
    71507088  long __pyx_t_43; 
    71517089  long __pyx_t_44; 
     
    71567094  long __pyx_t_49; 
    71577095  long __pyx_t_50; 
    7158   long __pyx_t_51; 
     7096  PyObject *__pyx_t_51 = NULL; 
    71597097  PyObject *__pyx_t_52 = NULL; 
    71607098  PyObject *__pyx_t_53 = NULL; 
    7161   PyObject *__pyx_t_54 = NULL; 
     7099  int __pyx_t_54; 
    71627100  int __pyx_t_55; 
    71637101  int __pyx_t_56; 
    71647102  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; 
    71677105  int __pyx_t_60; 
    71687106  int __pyx_t_61; 
     
    71947132  int __pyx_t_87; 
    71957133  int __pyx_t_88; 
    7196   int __pyx_t_89; 
     7134  long __pyx_t_89; 
    71977135  long __pyx_t_90; 
    71987136  long __pyx_t_91; 
     
    72007138  long __pyx_t_93; 
    72017139  long __pyx_t_94; 
    7202   long __pyx_t_95; 
     7140  __pyx_t_5numpy_int64_t __pyx_t_95; 
    72037141  __pyx_t_5numpy_int64_t __pyx_t_96; 
    7204   __pyx_t_5numpy_int64_t __pyx_t_97; 
     7142  long __pyx_t_97; 
    72057143  long __pyx_t_98; 
    72067144  long __pyx_t_99; 
     
    72087146  long __pyx_t_101; 
    72097147  long __pyx_t_102; 
    7210   long __pyx_t_103; 
     7148  __pyx_t_5numpy_int64_t __pyx_t_103; 
    72117149  __pyx_t_5numpy_int64_t __pyx_t_104; 
    72127150  __pyx_t_5numpy_int64_t __pyx_t_105; 
    7213   __pyx_t_5numpy_int64_t __pyx_t_106; 
     7151  long __pyx_t_106; 
    72147152  long __pyx_t_107; 
    72157153  long __pyx_t_108; 
     
    72187156  long __pyx_t_111; 
    72197157  long __pyx_t_112; 
    7220   long __pyx_t_113; 
     7158  __pyx_t_5numpy_int64_t __pyx_t_113; 
    72217159  __pyx_t_5numpy_int64_t __pyx_t_114; 
    72227160  __pyx_t_5numpy_int64_t __pyx_t_115; 
    7223   __pyx_t_5numpy_int64_t __pyx_t_116; 
     7161  long __pyx_t_116; 
    72247162  long __pyx_t_117; 
    72257163  long __pyx_t_118; 
    72267164  long __pyx_t_119; 
    7227   long __pyx_t_120; 
     7165  __pyx_t_5numpy_int64_t __pyx_t_120; 
    72287166  __pyx_t_5numpy_int64_t __pyx_t_121; 
    72297167  __pyx_t_5numpy_int64_t __pyx_t_122; 
    7230   __pyx_t_5numpy_int64_t __pyx_t_123; 
     7168  long __pyx_t_123; 
    72317169  long __pyx_t_124; 
    72327170  long __pyx_t_125; 
     
    72367174  long __pyx_t_129; 
    72377175  long __pyx_t_130; 
    7238   long __pyx_t_131; 
     7176  __pyx_t_5numpy_int64_t __pyx_t_131; 
    72397177  __pyx_t_5numpy_int64_t __pyx_t_132; 
    72407178  __pyx_t_5numpy_int64_t __pyx_t_133; 
    7241   __pyx_t_5numpy_int64_t __pyx_t_134; 
     7179  long __pyx_t_134; 
    72427180  long __pyx_t_135; 
    72437181  long __pyx_t_136; 
    72447182  long __pyx_t_137; 
    7245   long __pyx_t_138; 
     7183  __pyx_t_5numpy_int64_t __pyx_t_138; 
    72467184  __pyx_t_5numpy_int64_t __pyx_t_139; 
    72477185  __pyx_t_5numpy_int64_t __pyx_t_140; 
    7248   __pyx_t_5numpy_int64_t __pyx_t_141; 
     7186  long __pyx_t_141; 
    72497187  long __pyx_t_142; 
    72507188  long __pyx_t_143; 
     
    72567194  long __pyx_t_149; 
    72577195  long __pyx_t_150; 
    7258   long __pyx_t_151; 
     7196  __pyx_t_5numpy_int64_t __pyx_t_151; 
    72597197  __pyx_t_5numpy_int64_t __pyx_t_152; 
    72607198  __pyx_t_5numpy_int64_t __pyx_t_153; 
    7261   __pyx_t_5numpy_int64_t __pyx_t_154; 
     7199  long __pyx_t_154; 
    72627200  long __pyx_t_155; 
    72637201  long __pyx_t_156; 
    72647202  long __pyx_t_157; 
    7265   long __pyx_t_158; 
     7203  __pyx_t_5numpy_int64_t __pyx_t_158; 
    72667204  __pyx_t_5numpy_int64_t __pyx_t_159; 
    72677205  __pyx_t_5numpy_int64_t __pyx_t_160; 
    7268   __pyx_t_5numpy_int64_t __pyx_t_161; 
     7206  long __pyx_t_161; 
    72697207  long __pyx_t_162; 
    72707208  long __pyx_t_163; 
     
    72747212  long __pyx_t_167; 
    72757213  long __pyx_t_168; 
    7276   long __pyx_t_169; 
     7214  __pyx_t_5numpy_int64_t __pyx_t_169; 
    72777215  __pyx_t_5numpy_int64_t __pyx_t_170; 
    72787216  __pyx_t_5numpy_int64_t __pyx_t_171; 
    7279   __pyx_t_5numpy_int64_t __pyx_t_172; 
     7217  long __pyx_t_172; 
    72807218  long __pyx_t_173; 
    72817219  long __pyx_t_174; 
    72827220  long __pyx_t_175; 
    7283   long __pyx_t_176; 
     7221  __pyx_t_5numpy_int64_t __pyx_t_176; 
    72847222  __pyx_t_5numpy_int64_t __pyx_t_177; 
    72857223  __pyx_t_5numpy_int64_t __pyx_t_178; 
    7286   __pyx_t_5numpy_int64_t __pyx_t_179; 
     7224  long __pyx_t_179; 
    72877225  long __pyx_t_180; 
    72887226  long __pyx_t_181; 
    72897227  long __pyx_t_182; 
    72907228  long __pyx_t_183; 
    7291   long __pyx_t_184; 
    72927229  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}; 
    72937230  __Pyx_RefNannySetupContext("VoxelTraversal"); 
     
    77827719 *         tl = (left_edge[i] - u[i])/v[i] 
    77837720 */ 
    7784     __pyx_v_x = __Pyx_mod_long((__pyx_v_i + 1), 3); 
     7721    __pyx_v_x = ((__pyx_v_i + 1) % 3); 
    77857722 
    77867723    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":155 
     
    77917728 *         tr = (right_edge[i] - u[i])/v[i] 
    77927729 */ 
    7793     __pyx_v_y = __Pyx_mod_long((__pyx_v_i + 2), 3); 
     7730    __pyx_v_y = ((__pyx_v_i + 2) % 3); 
    77947731 
    77957732    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":156 
     
    78027739    __pyx_t_16 = __pyx_v_i; 
    78037740    __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))); 
    78127743 
    78137744    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":157 
     
    78187749 *            (left_edge[y] <= (u[y] + tl*v[y]) <= right_edge[y]) and \ 
    78197750 */ 
     7751    __pyx_t_19 = __pyx_v_i; 
     7752    __pyx_t_20 = __pyx_v_i; 
    78207753    __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))); 
    78307755 
    78317756    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":158 
     
    78367761 *            (0.0 <= tl < intersect_t): 
    78377762 */ 
     7763    __pyx_t_22 = __pyx_v_x; 
     7764    __pyx_t_23 = __pyx_v_x; 
    78387765    __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); 
    78437768    if (__pyx_t_13) { 
    7844       __pyx_t_27 = __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))); 
    78467771    } 
    78477772    if (__pyx_t_13) { 
     
    78547779 *             intersect_t = tl 
    78557780 */ 
     7781      __pyx_t_27 = __pyx_v_y; 
    78567782      __pyx_t_28 = __pyx_v_y; 
    78577783      __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))); 
    78647789      } 
    7865       if (__pyx_t_31) { 
     7790      if (__pyx_t_30) { 
    78667791 
    78677792        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":160 
     
    78727797 *         if (left_edge[x] <= (u[x] + tr*v[x]) <= right_edge[x]) and \ 
    78737798 */ 
    7874         __pyx_t_33 = (0.0 <= __pyx_v_tl); 
    7875         if (__pyx_t_33) { 
    7876           __pyx_t_33 = (__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); 
    78777802        } 
    7878         __pyx_t_34 = __pyx_t_33; 
     7803        __pyx_t_33 = __pyx_t_32; 
    78797804      } else { 
    7880         __pyx_t_34 = __pyx_t_31; 
     7805        __pyx_t_33 = __pyx_t_30; 
    78817806      } 
    7882       __pyx_t_31 = __pyx_t_34; 
     7807      __pyx_t_30 = __pyx_t_33; 
    78837808    } else { 
    7884       __pyx_t_31 = __pyx_t_13; 
    7885     } 
    7886     if (__pyx_t_31) { 
     7809      __pyx_t_30 = __pyx_t_13; 
     7810    } 
     7811    if (__pyx_t_30) { 
    78877812 
    78887813      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":161 
     
    79057830 *            (0.0 <= tr < intersect_t): 
    79067831 */ 
     7832    __pyx_t_34 = __pyx_v_x; 
    79077833    __pyx_t_35 = __pyx_v_x; 
    79087834    __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) { 
    79177842 
    79187843      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":163 
     
    79237848 *             intersect_t = tr 
    79247849 */ 
     7850      __pyx_t_38 = __pyx_v_y; 
    79257851      __pyx_t_39 = __pyx_v_y; 
    79267852      __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); 
    79307855      if (__pyx_t_13) { 
    7931         __pyx_t_42 = __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))); 
    79337858      } 
    79347859      if (__pyx_t_13) { 
     
    79417866 *     # if fully enclosed 
    79427867 */ 
    7943         __pyx_t_34 = (0.0 <= __pyx_v_tr); 
    7944         if (__pyx_t_34) { 
    7945           __pyx_t_34 = (__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); 
    79467871        } 
    7947         __pyx_t_33 = __pyx_t_34; 
     7872        __pyx_t_32 = __pyx_t_33; 
    79487873      } else { 
    7949         __pyx_t_33 = __pyx_t_13; 
     7874        __pyx_t_32 = __pyx_t_13; 
    79507875      } 
    7951       __pyx_t_13 = __pyx_t_33; 
     7876      __pyx_t_13 = __pyx_t_32; 
    79527877    } else { 
    7953       __pyx_t_13 = __pyx_t_31; 
     7878      __pyx_t_13 = __pyx_t_30; 
    79547879    } 
    79557880    if (__pyx_t_13) { 
     
    79757900 *        (left_edge[2] <= u[2] <= right_edge[2]): 
    79767901 */ 
     7902  __pyx_t_42 = 0; 
    79777903  __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); 
    79817906  if (__pyx_t_13) { 
    7982     __pyx_t_45 = 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))); 
    79847909  } 
    79857910  if (__pyx_t_13) { 
     
    79927917 *         intersect_t = 0.0 
    79937918 */ 
     7919    __pyx_t_45 = 1; 
    79947920    __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) { 
    80037928 
    80047929      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":169 
     
    80097934 *     if not (0 <= intersect_t <= 1): return 
    80107935 */ 
     7936      __pyx_t_48 = 2; 
    80117937      __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))); 
    80187943      } 
    8019       __pyx_t_34 = __pyx_t_33; 
     7944      __pyx_t_33 = __pyx_t_32; 
    80207945    } else { 
    8021       __pyx_t_34 = __pyx_t_31; 
    8022     } 
    8023     __pyx_t_31 = __pyx_t_34; 
     7946      __pyx_t_33 = __pyx_t_30; 
     7947    } 
     7948    __pyx_t_30 = __pyx_t_33; 
    80247949  } else { 
    8025     __pyx_t_31 = __pyx_t_13; 
    8026   } 
    8027   if (__pyx_t_31) { 
     7950    __pyx_t_30 = __pyx_t_13; 
     7951  } 
     7952  if (__pyx_t_30) { 
    80287953 
    80297954    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":170 
     
    80467971 *     intersect = u + intersect_t * v 
    80477972 */ 
    8048   __pyx_t_31 = (0 <= __pyx_v_intersect_t); 
    8049   if (__pyx_t_31) { 
    8050     __pyx_t_31 = (__pyx_v_intersect_t <= 1); 
    8051   } 
    8052   __pyx_t_13 = (!__pyx_t_31); 
     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); 
    80537978  if (__pyx_t_13) { 
    80547979    __Pyx_XDECREF(__pyx_r); 
     
    80818006    __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); 
    80828007    if (unlikely(__pyx_t_11 < 0)) { 
    8083       PyErr_Fetch(&__pyx_t_52, &__pyx_t_53, &__pyx_t_54); 
     8008      PyErr_Fetch(&__pyx_t_51, &__pyx_t_52, &__pyx_t_53); 
    80848009      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_52); 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); 
    80868011        __Pyx_RaiseBufferFallbackError(); 
    80878012      } else { 
    8088         PyErr_Restore(__pyx_t_52, __pyx_t_53, __pyx_t_54); 
     8013        PyErr_Restore(__pyx_t_51, __pyx_t_52, __pyx_t_53); 
    80898014      } 
    80908015    } 
     
    81208045    __Pyx_GOTREF(__pyx_t_1); 
    81218046    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; 
     8047    __pyx_t_54 = __pyx_v_i; 
    81228048    __pyx_t_55 = __pyx_v_i; 
    81238049    __pyx_t_56 = __pyx_v_i; 
    81248050    __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;} 
    81338052    __Pyx_GOTREF(__pyx_t_5); 
    81348053    __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;} 
     
    81418060    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    81428061    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 
    8143     __pyx_t_59 = __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;} 
    81448063    __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; 
    81478066 
    81488067    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":176 
     
    81538072 *             cur_ind[i] = grid_mask.shape[i] - 1 
    81548073 */ 
     8074    __pyx_t_60 = __pyx_v_i; 
    81558075    __pyx_t_61 = __pyx_v_i; 
    81568076    __pyx_t_62 = __pyx_v_i; 
     
    81588078    __pyx_t_64 = __pyx_v_i; 
    81598079    __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))); 
    81618080    __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))); 
    81698082 
    81708083    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":177 
     
    81758088 *         if step[i] > 0: tmax[i] = (((cur_ind[i]+1)*dx[i])+left_edge[i]-u[i])/v[i] 
    81768089 */ 
    8177     __pyx_t_68 = __pyx_v_i; 
    8178     __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_68, __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])); 
    81798092    if (__pyx_t_13) { 
    8180       __pyx_t_69 = __pyx_v_i; 
    8181       __pyx_t_31 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_step.buf, __pyx_t_69, __pyx_bstride_0_step)) < 0); 
    8182       __pyx_t_34 = __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; 
    81838096    } else { 
    8184       __pyx_t_34 = __pyx_t_13; 
    8185     } 
    8186     if (__pyx_t_34) { 
     8097      __pyx_t_33 = __pyx_t_13; 
     8098    } 
     8099    if (__pyx_t_33) { 
    81878100 
    81888101      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":178 
     
    81938106 *         if step[i] < 0: tmax[i] = (((cur_ind[i]+0)*dx[i])+left_edge[i]-u[i])/v[i] 
    81948107 */ 
    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); 
    81978110      goto __pyx_L15; 
    81988111    } 
     
    82068119 *         tdelta[i] = (dx[i]/v[i]) 
    82078120 */ 
    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; 
    82118125      __pyx_t_72 = __pyx_v_i; 
    82128126      __pyx_t_73 = __pyx_v_i; 
    82138127      __pyx_t_74 = __pyx_v_i; 
    82148128      __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))); 
    82168129      __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))); 
    82248131      goto __pyx_L16; 
    82258132    } 
     
    82338140 *         if tdelta[i] < 0: tdelta[i] *= -1 
    82348141 */ 
    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; 
    82388146      __pyx_t_79 = __pyx_v_i; 
    82398147      __pyx_t_80 = __pyx_v_i; 
    82408148      __pyx_t_81 = __pyx_v_i; 
    82418149      __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))); 
    82438150      __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))); 
    82518152      goto __pyx_L17; 
    82528153    } 
     
    82608161 *     # The variable intersect contains the point we first pierce the grid 
    82618162 */ 
     8163    __pyx_t_84 = __pyx_v_i; 
    82628164    __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)); 
    82648165    __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))); 
    82728167 
    82738168    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":182 
     
    82788173 *     enter_t = intersect_t 
    82798174 */ 
    8280     __pyx_t_88 = __pyx_v_i; 
    8281     __pyx_t_34 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_88, __pyx_bstride_0_tdelta)) < 0); 
    8282     if (__pyx_t_34) { 
    8283       __pyx_t_89 = __pyx_v_i; 
    8284       *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tdelta.buf, __pyx_t_89, __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; 
    82858180      goto __pyx_L18; 
    82868181    } 
     
    83058200 */ 
    83068201  while (1) { 
    8307     __pyx_t_34 = 1; 
    8308     if (!__pyx_t_34) break; 
     8202    __pyx_t_33 = 1; 
     8203    if (!__pyx_t_33) break; 
    83098204 
    83108205    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":186 
     
    83158210 *            (not (0 <= cur_ind[2] < grid_mask.shape[2])): 
    83168211 */ 
    8317     __pyx_t_90 = 0; 
    8318     __pyx_t_59 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_90, __pyx_bstride_0_cur_ind)); 
    8319     __pyx_t_34 = (0 <= __pyx_t_59); 
    8320     if (__pyx_t_34) { 
    8321       __pyx_t_34 = (__pyx_t_59 < (__pyx_v_grid_mask->dimensions[0])); 
    8322     } 
    8323     __pyx_t_13 = (!__pyx_t_34); 
     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); 
    83248219    if (!__pyx_t_13) { 
    83258220 
     
    83318226 *             break 
    83328227 */ 
    8333       __pyx_t_91 = 1; 
    8334       __pyx_t_59 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_91, __pyx_bstride_0_cur_ind)); 
    8335       __pyx_t_34 = (0 <= __pyx_t_59); 
    8336       if (__pyx_t_34) { 
    8337         __pyx_t_34 = (__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])); 
    83388233      } 
    8339       __pyx_t_31 = (!__pyx_t_34); 
    8340       if (!__pyx_t_31) { 
     8234      __pyx_t_30 = (!__pyx_t_33); 
     8235      if (!__pyx_t_30) { 
    83418236 
    83428237        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":188 
     
    83478242 *         # Note that we are calculating t on the fly, but we get *negative* t 
    83488243 */ 
    8349         __pyx_t_92 = 2; 
    8350         __pyx_t_59 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_92, __pyx_bstride_0_cur_ind)); 
    8351         __pyx_t_34 = (0 <= __pyx_t_59); 
    8352         if (__pyx_t_34) { 
    8353           __pyx_t_34 = (__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])); 
    83548249        } 
    8355         __pyx_t_33 = (!__pyx_t_34); 
    8356         __pyx_t_34 = __pyx_t_33; 
     8250        __pyx_t_32 = (!__pyx_t_33); 
     8251        __pyx_t_33 = __pyx_t_32; 
    83578252      } else { 
    8358         __pyx_t_34 = __pyx_t_31; 
     8253        __pyx_t_33 = __pyx_t_30; 
    83598254      } 
    8360       __pyx_t_31 = __pyx_t_34; 
     8255      __pyx_t_30 = __pyx_t_33; 
    83618256    } else { 
    8362       __pyx_t_31 = __pyx_t_13; 
    8363     } 
    8364     if (__pyx_t_31) { 
     8257      __pyx_t_30 = __pyx_t_13; 
     8258    } 
     8259    if (__pyx_t_30) { 
    83658260 
    83668261      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":189 
     
    83838278 *             grid_dt[cur_ind[0], cur_ind[1], cur_ind[2]] = 1.0 - enter_t 
    83848279 */ 
    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)); 
    83898285    __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; 
    83928287 
    83938288    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":194 
     
    83988293 *             break 
    83998294 */ 
    8400     __pyx_t_98 = 0; 
    8401     __pyx_t_31 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_98, __pyx_bstride_0_tmax)) > 1.0); 
    8402     if (__pyx_t_31) { 
    8403       __pyx_t_99 = 1; 
    8404       __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_99, __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); 
    84058300      if (__pyx_t_13) { 
    8406         __pyx_t_100 = 2; 
    8407         __pyx_t_34 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_100, __pyx_bstride_0_tmax)) > 1.0); 
    8408         __pyx_t_33 = __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; 
    84098304      } else { 
    8410         __pyx_t_33 = __pyx_t_13; 
     8305        __pyx_t_32 = __pyx_t_13; 
    84118306      } 
    8412       __pyx_t_13 = __pyx_t_33; 
     8307      __pyx_t_13 = __pyx_t_32; 
    84138308    } else { 
    8414       __pyx_t_13 = __pyx_t_31; 
     8309      __pyx_t_13 = __pyx_t_30; 
    84158310    } 
    84168311    if (__pyx_t_13) { 
     
    84238318 *         if tmax[0] < tmax[1]: 
    84248319 */ 
    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)); 
    84288324      __pyx_t_104 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_101, __pyx_bstride_0_cur_ind)); 
    84298325      __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); 
    84328327 
    84338328      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":196 
     
    84508345 *                 grid_t[cur_ind[0], cur_ind[1], cur_ind[2]] = enter_t 
    84518346 */ 
    8452     __pyx_t_107 = 0; 
    8453     __pyx_t_108 = 1; 
    8454     __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_107, __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))); 
    84558350    if (__pyx_t_13) { 
    84568351 
     
    84628357 *                 grid_dt[cur_ind[0], cur_ind[1], cur_ind[2]] = tmax[0] - enter_t 
    84638358 */ 
    8464       __pyx_t_109 = 0; 
    8465       __pyx_t_110 = 2; 
    8466       __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_109, __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))); 
    84678362      if (__pyx_t_13) { 
    84688363 
     
    84748369 *                 enter_t = tmax[0] 
    84758370 */ 
    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)); 
    84798375        __pyx_t_114 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_111, __pyx_bstride_0_cur_ind)); 
    84808376        __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; 
    84838378 
    84848379        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":200 
     
    84898384 *                 tmax[0] += tdelta[0] 
    84908385 */ 
     8386        __pyx_t_116 = 0; 
    84918387        __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)); 
    84958391        __pyx_t_121 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_118, __pyx_bstride_0_cur_ind)); 
    84968392        __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); 
    84998394 
    85008395        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":201 
     
    85058400 *                 cur_ind[0] += step[0] 
    85068401 */ 
    8507         __pyx_t_124 = 0; 
    8508         __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_124, __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)); 
    85098404 
    85108405        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":202 
     
    85158410 *             else: 
    85168411 */ 
     8412        __pyx_t_124 = 0; 
    85178413        __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)); 
    85208415 
    85218416        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":203 
     
    85268421 *                 grid_t[cur_ind[0], cur_ind[1], cur_ind[2]] = enter_t 
    85278422 */ 
     8423        __pyx_t_126 = 0; 
    85288424        __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)); 
    85318426        goto __pyx_L24; 
    85328427      } 
     
    85408435 *                 enter_t = tmax[2] 
    85418436 */ 
    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)); 
    85458441        __pyx_t_132 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_129, __pyx_bstride_0_cur_ind)); 
    85468442        __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; 
    85498444 
    85508445        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":206 
     
    85558450 *                 tmax[2] += tdelta[2] 
    85568451 */ 
    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)); 
    85618457        __pyx_t_139 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_136, __pyx_bstride_0_cur_ind)); 
    85628458        __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); 
    85658460 
    85668461        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":207 
     
    85718466 *                 cur_ind[2] += step[2] 
    85728467 */ 
    8573         __pyx_t_142 = 2; 
    8574         __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_142, __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)); 
    85758470 
    85768471        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":208 
     
    85818476 *         else: 
    85828477 */ 
     8478        __pyx_t_142 = 2; 
    85838479        __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)); 
    85868481 
    85878482        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":209 
     
    85928487 *             if tmax[1] < tmax[2]: 
    85938488 */ 
     8489        __pyx_t_144 = 2; 
    85948490        __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)); 
    85978492      } 
    85988493      __pyx_L24:; 
     
    86088503 *                 grid_dt[cur_ind[0], cur_ind[1], cur_ind[2]] = tmax[1] - enter_t 
    86098504 */ 
    8610       __pyx_t_147 = 1; 
    8611       __pyx_t_148 = 2; 
    8612       __pyx_t_13 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_147, __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))); 
    86138508      if (__pyx_t_13) { 
    86148509 
     
    86208515 *                 enter_t = tmax[1] 
    86218516 */ 
    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)); 
    86258521        __pyx_t_152 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_149, __pyx_bstride_0_cur_ind)); 
    86268522        __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; 
    86298524 
    86308525        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":213 
     
    86358530 *                 tmax[1] += tdelta[1] 
    86368531 */ 
    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)); 
    86418537        __pyx_t_159 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_156, __pyx_bstride_0_cur_ind)); 
    86428538        __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); 
    86458540 
    86468541        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":214 
     
    86518546 *                 cur_ind[1] += step[1] 
    86528547 */ 
    8653         __pyx_t_162 = 1; 
    8654         __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_162, __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)); 
    86558550 
    86568551        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":215 
     
    86618556 *             else: 
    86628557 */ 
     8558        __pyx_t_162 = 1; 
    86638559        __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)); 
    86668561 
    86678562        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":216 
     
    86728567 *                 grid_t[cur_ind[0], cur_ind[1], cur_ind[2]] = enter_t 
    86738568 */ 
     8569        __pyx_t_164 = 1; 
    86748570        __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)); 
    86778572        goto __pyx_L25; 
    86788573      } 
     
    86868581 *                 enter_t = tmax[2] 
    86878582 */ 
    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)); 
    86918587        __pyx_t_170 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_167, __pyx_bstride_0_cur_ind)); 
    86928588        __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; 
    86958590 
    86968591        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":219 
     
    87018596 *                 tmax[2] += tdelta[2] 
    87028597 */ 
    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)); 
    87078603        __pyx_t_177 = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_cur_ind.buf, __pyx_t_174, __pyx_bstride_0_cur_ind)); 
    87088604        __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); 
    87118606 
    87128607        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":220 
     
    87178612 *                 cur_ind[2] += step[2] 
    87188613 */ 
    8719         __pyx_t_180 = 2; 
    8720         __pyx_v_enter_t = (*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_tmax.buf, __pyx_t_180, __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)); 
    87218616 
    87228617        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":221 
     
    87278622 *     return 
    87288623 */ 
     8624        __pyx_t_180 = 2; 
    87298625        __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)); 
    87328627 
    87338628        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":222 
     
    87388633 *  
    87398634 */ 
     8635        __pyx_t_182 = 2; 
    87408636        __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)); 
    87438638      } 
    87448639      __pyx_L25:; 
     
    93769271  int __pyx_t_4; 
    93779272  int __pyx_t_5; 
    9378   __pyx_t_5numpy_float64_t __pyx_t_6; 
     9273  int __pyx_t_6; 
    93799274  int __pyx_t_7; 
    9380   __pyx_t_5numpy_float64_t __pyx_t_8; 
     9275  int __pyx_t_8; 
    93819276  int __pyx_t_9; 
    93829277  int __pyx_t_10; 
     
    94029297  int __pyx_t_30; 
    94039298  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; 
    94079302  long __pyx_t_35; 
    94089303  long __pyx_t_36; 
     
    94129307  long __pyx_t_40; 
    94139308  long __pyx_t_41; 
    9414   long __pyx_t_42; 
     9309  int __pyx_t_42; 
    94159310  int __pyx_t_43; 
    9416   int __pyx_t_44; 
     9311  PyObject *__pyx_t_44 = NULL; 
    94179312  PyObject *__pyx_t_45 = NULL; 
    9418   PyObject *__pyx_t_46 = NULL; 
     9313  int __pyx_t_46; 
    94199314  int __pyx_t_47; 
    94209315  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; 
    94249319  int __pyx_t_52; 
    94259320  int __pyx_t_53; 
     
    94359330  int __pyx_t_63; 
    94369331  int __pyx_t_64; 
    9437   int __pyx_t_65; 
     9332  __pyx_t_5numpy_int64_t __pyx_t_65; 
    94389333  __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; 
    94429337  int __pyx_t_70; 
    94439338  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; 
    94689363  __pyx_t_5numpy_int64_t __pyx_t_96; 
    9469   __pyx_t_5numpy_int64_t __pyx_t_97; 
    94709364  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}; 
    94719365  __Pyx_RefNannySetupContext("integrate_ray"); 
     
    97349628 *         tl = (left_edge[i] - u[i])/v[i] 
    97359629 */ 
    9736     __pyx_v_x = __Pyx_mod_long((__pyx_v_i + 1), 3); 
     9630    __pyx_v_x = ((__pyx_v_i + 1) % 3); 
    97379631 
    97389632    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":280 
     
    97439637 *         tr = (right_edge[i] - u[i])/v[i] 
    97449638 */ 
    9745     __pyx_v_y = __Pyx_mod_long((__pyx_v_i + 2), 3); 
     9639    __pyx_v_y = ((__pyx_v_i + 2) % 3); 
    97469640 
    97479641    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":281 
     
    97549648    __pyx_t_4 = __pyx_v_i; 
    97559649    __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))); 
    97649652 
    97659653    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":282 
     
    97709658 *         temp_y = (u[y] + tl*v[y]) 
    97719659 */ 
     9660    __pyx_t_7 = __pyx_v_i; 
     9661    __pyx_t_8 = __pyx_v_i; 
    97729662    __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))); 
    97829664 
    97839665    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":283 
     
    97889670 *         if (left_edge[x] <= temp_x) and (temp_x <= right_edge[x]) and \ 
    97899671 */ 
    9790     __pyx_t_12 = __pyx_v_x; 
    9791     __pyx_t_13 = __pyx_v_x; 
    9792     __pyx_v_temp_x = ((*__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)))); 
     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)))); 
    97939675 
    97949676    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":284 
     
    97999681 *            (left_edge[y] <= temp_y) and (temp_y <= right_edge[y]) and \ 
    98009682 */ 
    9801     __pyx_t_14 = __pyx_v_y; 
    9802     __pyx_t_15 = __pyx_v_y; 
    9803     __pyx_v_temp_y = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_14, __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)))); 
    98049686 
    98059687    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":285 
     
    98109692 *            (0.0 <= tl) and (tl < intersect_t): 
    98119693 */ 
    9812     __pyx_t_16 = __pyx_v_x; 
    9813     __pyx_t_3 = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_left_edge.buf, __pyx_t_16, __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); 
    98149696    if (__pyx_t_3) { 
    9815       __pyx_t_17 = __pyx_v_x; 
    9816       __pyx_t_18 = (__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_18) { 
     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) { 
    98189700 
    98199701        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":286 
     
    98249706 *             intersect_t = tl 
    98259707 */ 
    9826         __pyx_t_19 = __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_22 = (__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_22) { 
     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) { 
    98329714 
    98339715            /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":287 
     
    98389720 *         temp_x = (u[x] + tr*v[x]) 
    98399721 */ 
    9840             __pyx_t_23 = (0.0 <= __pyx_v_tl); 
    9841             if (__pyx_t_23) { 
    9842               __pyx_t_24 = (__pyx_v_tl < __pyx_v_intersect_t); 
    9843               __pyx_t_25 = __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; 
    98449726            } else { 
    9845               __pyx_t_25 = __pyx_t_23; 
     9727              __pyx_t_23 = __pyx_t_21; 
    98469728            } 
    9847             __pyx_t_23 = __pyx_t_25; 
     9729            __pyx_t_21 = __pyx_t_23; 
    98489730          } else { 
    9849             __pyx_t_23 = __pyx_t_22; 
     9731            __pyx_t_21 = __pyx_t_20; 
    98509732          } 
    9851           __pyx_t_22 = __pyx_t_23; 
     9733          __pyx_t_20 = __pyx_t_21; 
    98529734        } else { 
    9853           __pyx_t_22 = __pyx_t_20; 
     9735          __pyx_t_20 = __pyx_t_18; 
    98549736        } 
    9855         __pyx_t_20 = __pyx_t_22; 
     9737        __pyx_t_18 = __pyx_t_20; 
    98569738      } else { 
    9857         __pyx_t_20 = __pyx_t_18; 
     9739        __pyx_t_18 = __pyx_t_16; 
    98589740      } 
    9859       __pyx_t_18 = __pyx_t_20; 
     9741      __pyx_t_16 = __pyx_t_18; 
    98609742    } else { 
    9861       __pyx_t_18 = __pyx_t_3; 
    9862     } 
    9863     if (__pyx_t_18) { 
     9743      __pyx_t_16 = __pyx_t_3; 
     9744    } 
     9745    if (__pyx_t_16) { 
    98649746 
    98659747      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":288 
     
    98829764 *         if (left_edge[x] <= temp_x) and (temp_x <= right_edge[x]) and \ 
    98839765 */ 
    9884     __pyx_t_26 = __pyx_v_x; 
    9885     __pyx_t_27 = __pyx_v_x; 
    9886     __pyx_v_temp_x = ((*__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)))); 
     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)))); 
    98879769 
    98889770    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":290 
     
    98939775 *            (left_edge[y] <= temp_y) and (temp_y <= right_edge[y]) and \ 
    98949776 */ 
    9895     __pyx_t_28 = __pyx_v_y; 
    9896     __pyx_t_29 = __pyx_v_y; 
    9897     __pyx_v_temp_y = ((*__Pyx_BufPtrStrided1d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_u.buf, __pyx_t_28, __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)))); 
    98989780 
    98999781    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":291 
     
    99049786 *            (0.0 <= tr) and (tr < intersect_t): 
    99059787 */ 
    9906     __pyx_t_30 = __pyx_v_x; 
    9907     __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_x); 
    9908     if (__pyx_t_18) { 
    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))); 
    99119793      if (__pyx_t_3) { 
    99129794 
     
    99189800 *             intersect_t = tr 
    99199801 */ 
    9920         __pyx_t_32 = __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_33 = __pyx_v_y; 
    9924           __pyx_t_22 = (__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_22) { 
     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) { 
    99269808 
    99279809            /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":293 
     
    99329814 *     # if fully enclosed 
    99339815 */ 
    9934             __pyx_t_23 = (0.0 <= __pyx_v_tr); 
    9935             if (__pyx_t_23) { 
    9936               __pyx_t_25 = (__pyx_v_tr < __pyx_v_intersect_t); 
    9937               __pyx_t_24 = __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; 
    99389820            } else { 
    9939               __pyx_t_24 = __pyx_t_23; 
     9821              __pyx_t_22 = __pyx_t_21; 
    99409822            } 
    9941             __pyx_t_23 = __pyx_t_24; 
     9823            __pyx_t_21 = __pyx_t_22; 
    99429824          } else { 
    9943             __pyx_t_23 = __pyx_t_22; 
     9825            __pyx_t_21 = __pyx_t_20; 
    99449826          } 
    9945           __pyx_t_22 = __pyx_t_23; 
     9827          __pyx_t_20 = __pyx_t_21; 
    99469828        } else { 
    9947           __pyx_t_22 = __pyx_t_20; 
     9829          __pyx_t_20 = __pyx_t_18; 
    99489830        } 
    9949         __pyx_t_20 = __pyx_t_22; 
     9831        __pyx_t_18 = __pyx_t_20; 
    99509832      } else { 
    9951         __pyx_t_20 = __pyx_t_3; 
     9833        __pyx_t_18 = __pyx_t_3; 
    99529834      } 
    9953       __pyx_t_3 = __pyx_t_20; 
     9835      __pyx_t_3 = __pyx_t_18; 
    99549836    } else { 
    9955       __pyx_t_3 = __pyx_t_18; 
     9837      __pyx_t_3 = __pyx_t_16; 
    99569838    } 
    99579839    if (__pyx_t_3) { 
     
    99779859 *        (left_edge[2] <= u[2] <= right_edge[2]): 
    99789860 */ 
    9979   __pyx_t_34 = 0; 
    9980   __pyx_t_35 = 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_34, __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); 
    99839865  if (__pyx_t_3) { 
    9984     __pyx_t_36 = 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))); 
    99869868  } 
    99879869  if (__pyx_t_3) { 
     
    99949876 *         intersect_t = 0.0 
    99959877 */ 
     9878    __pyx_t_36 = 1; 
    99969879    __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) { 
    100059887 
    100069888      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":298 
     
    100119893 *     if not (0 <= intersect_t <= 1): 
    100129894 */ 
     9895      __pyx_t_39 = 2; 
    100139896      __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))); 
    100209902      } 
    10021       __pyx_t_22 = __pyx_t_20; 
     9903      __pyx_t_20 = __pyx_t_18; 
    100229904    } else { 
    10023       __pyx_t_22 = __pyx_t_18; 
    10024     } 
    10025     __pyx_t_18 = __pyx_t_22; 
     9905      __pyx_t_20 = __pyx_t_16; 
     9906    } 
     9907    __pyx_t_16 = __pyx_t_20; 
    100269908  } else { 
    10027     __pyx_t_18 = __pyx_t_3; 
    10028   } 
    10029   if (__pyx_t_18) { 
     9909    __pyx_t_16 = __pyx_t_3; 
     9910  } 
     9911  if (__pyx_t_16) { 
    100309912 
    100319913    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":299 
     
    100489930 *         return 
    100499931 */ 
    10050   __pyx_t_18 = (0 <= __pyx_v_intersect_t); 
    10051   if (__pyx_t_18) { 
    10052     __pyx_t_18 = (__pyx_v_intersect_t <= 1); 
    10053   } 
    10054   __pyx_t_3 = (!__pyx_t_18); 
     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); 
    100559937  if (__pyx_t_3) { 
    100569938 
     
    100789960  for (__pyx_t_1 = 0; __pyx_t_1 < 3; __pyx_t_1+=1) { 
    100799961    __pyx_v_i = __pyx_t_1; 
     9962    __pyx_t_42 = __pyx_v_i; 
    100809963    __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)))); 
    100839965  } 
    100849966 
     
    101099991 *         if cur_ind[i] == dims[i] and step[i] < 0: 
    101109992 */ 
    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;} 
    101129996    __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; 
    101169999    __pyx_t_47 = __pyx_v_i; 
    1011710000    __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); 
    1013710010    __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; 
    1013910015 
    1014010016    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":308 
     
    1014510021 *             cur_ind[i] = dims[i] - 1 
    1014610022 */ 
     10023    __pyx_t_51 = __pyx_v_i; 
    1014710024    __pyx_t_52 = __pyx_v_i; 
    1014810025    __pyx_t_53 = __pyx_v_i; 
    1014910026    __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))); 
    1015810028 
    1015910029    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":309 
     
    1016610036    __pyx_t_3 = ((__pyx_v_cur_ind[__pyx_v_i]) == (__pyx_v_dims[__pyx_v_i])); 
    1016710037    if (__pyx_t_3) { 
    10168       __pyx_t_18 = ((__pyx_v_step[__pyx_v_i]) < 0); 
    10169       __pyx_t_22 = __pyx_t_18; 
     10038      __pyx_t_16 = ((__pyx_v_step[__pyx_v_i]) < 0); 
     10039      __pyx_t_20 = __pyx_t_16; 
    1017010040    } else { 
    10171       __pyx_t_22 = __pyx_t_3; 
    10172     } 
    10173     if (__pyx_t_22) { 
     10041      __pyx_t_20 = __pyx_t_3; 
     10042    } 
     10043    if (__pyx_t_20) { 
    1017410044 
    1017510045      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":310 
     
    1019210062 *         tdelta[i] = (dx[i]/v[i]) 
    1019310063 */ 
    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; 
    1019610067      __pyx_t_56 = __pyx_v_i; 
    1019710068      __pyx_t_57 = __pyx_v_i; 
    1019810069      __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))); 
    1020710071      goto __pyx_L18; 
    1020810072    } 
     
    1021610080 *         if tdelta[i] < 0: tdelta[i] *= -1 
    1021710081 */ 
    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; 
    1022010085      __pyx_t_60 = __pyx_v_i; 
    1022110086      __pyx_t_61 = __pyx_v_i; 
    1022210087      __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))); 
    1023110089      goto __pyx_L19; 
    1023210090    } 
     
    1024010098 *     # The variable intersect contains the point we first pierce the grid 
    1024110099 */ 
     10100    __pyx_t_63 = __pyx_v_i; 
    1024210101    __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))); 
    1025110103 
    1025210104    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":314 
     
    1025710109 *     enter_t = intersect_t 
    1025810110 */ 
    10259     __pyx_t_22 = ((__pyx_v_tdelta[__pyx_v_i]) < 0); 
    10260     if (__pyx_t_22) { 
     10111    __pyx_t_20 = ((__pyx_v_tdelta[__pyx_v_i]) < 0); 
     10112    if (__pyx_t_20) { 
    1026110113      (__pyx_v_tdelta[__pyx_v_i]) *= -1; 
    1026210114      goto __pyx_L20; 
     
    1028110133 *        (not (0 <= cur_ind[2] < dims[2])): 
    1028210134 */ 
    10283   __pyx_t_51 = (__pyx_v_cur_ind[0]); 
    10284   __pyx_t_22 = (0 <= __pyx_t_51); 
    10285   if (__pyx_t_22) { 
    10286     __pyx_t_22 = (__pyx_t_51 < (__pyx_v_dims[0])); 
    10287   } 
    10288   __pyx_t_3 = (!__pyx_t_22); 
     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); 
    1028910141  if (!__pyx_t_3) { 
    1029010142 
     
    1029610148 *         #print "Returning: cur_ind", cur_ind[0], cur_ind[1], cur_ind[2] 
    1029710149 */ 
    10298     __pyx_t_51 = (__pyx_v_cur_ind[1]); 
    10299     __pyx_t_22 = (0 <= __pyx_t_51); 
    10300     if (__pyx_t_22) { 
    10301       __pyx_t_22 = (__pyx_t_51 < (__pyx_v_dims[1])); 
    10302     } 
    10303     __pyx_t_18 = (!__pyx_t_22); 
    10304     if (!__pyx_t_18) { 
     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) { 
    1030510157 
    1030610158      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":319 
     
    1031110163 *         #print "  dims:     ", dims[0], dims[1], dims[2] 
    1031210164 */ 
    10313       __pyx_t_51 = (__pyx_v_cur_ind[2]); 
    10314       __pyx_t_22 = (0 <= __pyx_t_51); 
    10315       if (__pyx_t_22) { 
    10316         __pyx_t_22 = (__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])); 
    1031710169      } 
    10318       __pyx_t_20 = (!__pyx_t_22); 
    10319       __pyx_t_22 = __pyx_t_20; 
     10170      __pyx_t_18 = (!__pyx_t_20); 
     10171      __pyx_t_20 = __pyx_t_18; 
    1032010172    } else { 
    10321       __pyx_t_22 = __pyx_t_18; 
    10322     } 
    10323     __pyx_t_18 = __pyx_t_22; 
     10173      __pyx_t_20 = __pyx_t_16; 
     10174    } 
     10175    __pyx_t_16 = __pyx_t_20; 
    1032410176  } else { 
    10325     __pyx_t_18 = __pyx_t_3; 
    10326   } 
    10327   if (__pyx_t_18) { 
     10177    __pyx_t_16 = __pyx_t_3; 
     10178  } 
     10179  if (__pyx_t_16) { 
    1032810180 
    1032910181    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":326 
     
    1034810200 *     while 1: 
    1034910201 */ 
    10350   __pyx_t_51 = (__pyx_v_cur_ind[0]); 
    10351   __pyx_t_66 = (__pyx_v_cur_ind[1]); 
    10352   __pyx_t_67 = (__pyx_v_cur_ind[2]); 
    10353   __pyx_v_dv = (*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_data.buf, __pyx_t_51, __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)); 
    1035410206 
    1035510207  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":330 
     
    1036110213 */ 
    1036210214  while (1) { 
    10363     __pyx_t_18 = 1; 
    10364     if (!__pyx_t_18) break; 
     10215    __pyx_t_16 = 1; 
     10216    if (!__pyx_t_16) break; 
    1036510217 
    1036610218    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":331 
     
    1037210224 */ 
    1037310225    __pyx_t_1 = __pyx_v_ind; 
    10374     __pyx_t_68 = 3; 
    10375     __pyx_t_18 = ((*__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_18) { 
     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) { 
    1037710229      goto __pyx_L23_break; 
    1037810230      goto __pyx_L24; 
     
    1038710239 *            (not (0 <= cur_ind[2] < dims[2])): 
    1038810240 */ 
    10389     __pyx_t_69 = (__pyx_v_cur_ind[0]); 
    10390     __pyx_t_18 = (0 <= __pyx_t_69); 
    10391     if (__pyx_t_18) { 
    10392       __pyx_t_18 = (__pyx_t_69 < (__pyx_v_dims[0])); 
    10393     } 
    10394     __pyx_t_3 = (!__pyx_t_18); 
     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); 
    1039510247    if (!__pyx_t_3) { 
    1039610248 
     
    1040210254 *             break 
    1040310255 */ 
    10404       __pyx_t_69 = (__pyx_v_cur_ind[1]); 
    10405       __pyx_t_18 = (0 <= __pyx_t_69); 
    10406       if (__pyx_t_18) { 
    10407         __pyx_t_18 = (__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])); 
    1040810260      } 
    10409       __pyx_t_22 = (!__pyx_t_18); 
    10410       if (!__pyx_t_22) { 
     10261      __pyx_t_20 = (!__pyx_t_16); 
     10262      if (!__pyx_t_20) { 
    1041110263 
    1041210264        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":334 
     
    1041710269 *         # Do our transfer here 
    1041810270 */ 
    10419         __pyx_t_69 = (__pyx_v_cur_ind[2]); 
    10420         __pyx_t_18 = (0 <= __pyx_t_69); 
    10421         if (__pyx_t_18) { 
    10422           __pyx_t_18 = (__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])); 
    1042310275        } 
    10424         __pyx_t_20 = (!__pyx_t_18); 
    10425         __pyx_t_18 = __pyx_t_20; 
     10276        __pyx_t_18 = (!__pyx_t_16); 
     10277        __pyx_t_16 = __pyx_t_18; 
    1042610278      } else { 
    10427         __pyx_t_18 = __pyx_t_22; 
     10279        __pyx_t_16 = __pyx_t_20; 
    1042810280      } 
    10429       __pyx_t_22 = __pyx_t_18; 
     10281      __pyx_t_20 = __pyx_t_16; 
    1043010282    } else { 
    10431       __pyx_t_22 = __pyx_t_3; 
    10432     } 
    10433     if (__pyx_t_22) { 
     10283      __pyx_t_20 = __pyx_t_3; 
     10284    } 
     10285    if (__pyx_t_20) { 
    1043410286 
    1043510287      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":335 
     
    1045210304 *             if dist < shells[n,1]: 
    1045310305 */ 
    10454     __pyx_t_70 = __pyx_v_nshells; 
    10455     for (__pyx_t_71 = 0; __pyx_t_71 < __pyx_t_70; __pyx_t_71+=1) { 
    10456       __pyx_v_n = __pyx_t_71; 
     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; 
    1045710309 
    1045810310      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":338 
     
    1046310315 *                 dist = exp(-dist/8.0) 
    1046410316 */ 
    10465       __pyx_t_72 = __pyx_v_n; 
    10466       __pyx_t_73 = 0; 
    10467       __pyx_v_dist = ((*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_72, __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); 
    1046810320 
    1046910321      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":339 
     
    1047410326 *                 alpha = (1.0 - shells[n,5])*shells[n,5]#*dt 
    1047510327 */ 
    10476       __pyx_t_74 = __pyx_v_n; 
    10477       __pyx_t_75 = 1; 
    10478       __pyx_t_22 = (__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_22) { 
     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) { 
    1048010332 
    1048110333        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":340 
     
    1049510347 *                 image[ind,1] += alpha*shells[n,3]*dist 
    1049610348 */ 
    10497         __pyx_t_76 = __pyx_v_n; 
    10498         __pyx_t_77 = 5; 
    10499         __pyx_t_78 = __pyx_v_n; 
    10500         __pyx_t_79 = 5; 
    10501         __pyx_v_alpha = ((1.0 - (*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_shells.buf, __pyx_t_76, __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))); 
    1050210354 
    1050310355        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":342 
     
    1050810360 *                 image[ind,2] += alpha*shells[n,4]*dist 
    1050910361 */ 
    10510         __pyx_t_80 = __pyx_v_n; 
    10511         __pyx_t_81 = 2; 
    10512         __pyx_t_82 = __pyx_v_ind; 
    10513         __pyx_t_83 = 0; 
    10514         *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_82, __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); 
    1051510367 
    1051610368        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":343 
     
    1052110373 *                 image[ind,3] += alpha*shells[n,5]*dist 
    1052210374 */ 
    10523         __pyx_t_84 = __pyx_v_n; 
    10524         __pyx_t_85 = 3; 
    10525         __pyx_t_86 = __pyx_v_ind; 
    10526         __pyx_t_87 = 1; 
    10527         *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_86, __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); 
    1052810380 
    1052910381        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":344 
     
    1053410386 *                 #image[ind,i] += rgba[i]*dist*rgba[3]/dt 
    1053510387 */ 
    10536         __pyx_t_88 = __pyx_v_n; 
    10537         __pyx_t_89 = 4; 
    10538         __pyx_t_90 = __pyx_v_ind; 
    10539         __pyx_t_91 = 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); 
    1054110393 
    1054210394        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":345 
     
    1054710399 *                 #print rgba[i], image[ind,i], dist, dt 
    1054810400 */ 
    10549         __pyx_t_92 = __pyx_v_n; 
    10550         __pyx_t_93 = 5; 
    10551         __pyx_t_94 = __pyx_v_ind; 
    10552         __pyx_t_95 = 3; 
    10553         *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_image.buf, __pyx_t_94, __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); 
    1055410406 
    1055510407        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/RayIntegrators.pyx":348 
     
    1057410426 *             break 
    1057510427 */ 
    10576     __pyx_t_22 = ((__pyx_v_tmax[0]) > 1.0); 
    10577     if (__pyx_t_22) { 
     10428    __pyx_t_20 = ((__pyx_v_tmax[0]) > 1.0); 
     10429    if (__pyx_t_20) { 
    1057810430      __pyx_t_3 = ((__pyx_v_tmax[1]) > 1.0); 
    1057910431      if (__pyx_t_3) { 
    10580         __pyx_t_18 = ((__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; 
    1058210434      } else { 
    10583         __pyx_t_20 = __pyx_t_3; 
     10435        __pyx_t_18 = __pyx_t_3; 
    1058410436      } 
     10437      __pyx_t_3 = __pyx_t_18; 
     10438    } else { 
    1058510439      __pyx_t_3 = __pyx_t_20; 
    10586     } else { 
    10587       __pyx_t_3 = __pyx_t_22; 
    1058810440    } 
    1058910441    if (__pyx_t_3) { 
     
    1080310655 *         dv = data[cur_ind[0], cur_ind[1], cur_ind[2]]             # <<<<<<<<<<<<<< 
    1080410656 */ 
    10805     __pyx_t_69 = (__pyx_v_cur_ind[0]); 
    10806     __pyx_t_96 = (__pyx_v_cur_ind[1]); 
    10807     __pyx_t_97 = (__pyx_v_cur_ind[2]); 
    10808     __pyx_v_dv = (*__Pyx_BufPtrStrided3d(__pyx_t_5numpy_float64_t *, __pyx_bstruct_data.buf, __pyx_t_69, __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)); 
    1080910661  } 
    1081010662  __pyx_L23_break:; 
     
    1081310665  goto __pyx_L0; 
    1081410666  __pyx_L1_error:; 
     10667  __Pyx_XDECREF(__pyx_t_44); 
    1081510668  __Pyx_XDECREF(__pyx_t_45); 
    10816   __Pyx_XDECREF(__pyx_t_46); 
    10817   __Pyx_XDECREF(__pyx_t_50); 
     10669  __Pyx_XDECREF(__pyx_t_49); 
    1081810670  { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; 
    1081910671    __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); 
     
    1103310885 *  
    1103410886 * 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 
    1103710889 */ 
    1103810890 
    1103910891static CYTHON_INLINE int __pyx_f_2yt_9amr_utils_iclip(int __pyx_v_i, int __pyx_v_a, int __pyx_v_b) { 
    1104010892  int __pyx_r; 
     10893  int __pyx_t_1; 
    1104110894  __Pyx_RefNannySetupContext("iclip"); 
    1104210895 
     
    1104410897 *  
    1104510898 * 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             # <<<<<<<<<<<<<< 
    1104710930 *  
    1104810931 * cdef inline np.float64_t fclip(np.float64_t f, 
    1104910932 */ 
    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; 
    1105110934  goto __pyx_L0; 
    1105210935 
     
    1105710940} 
    1105810941 
    11059 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":50 
    11060  *     return imin(imax(i, a), b) 
     10942/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":52 
     10943 *     return i 
    1106110944 *  
    1106210945 * cdef inline np.float64_t fclip(np.float64_t f,             # <<<<<<<<<<<<<< 
     
    1106910952  __Pyx_RefNannySetupContext("fclip"); 
    1107010953 
    11071   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":52 
     10954  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":54 
    1107210955 * cdef inline np.float64_t fclip(np.float64_t f, 
    1107310956 *                       np.float64_t a, np.float64_t b): 
     
    1108510968} 
    1108610969 
    11087 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":84 
     10970/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":86 
    1108810971 *     cdef int use_light 
    1108910972 *     cdef public object tf_obj 
     
    1113011013    } 
    1113111014    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 = 84; __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;} 
    1113311016    } 
    1113411017    __pyx_v_tf_obj = values[0]; 
     
    1114011023  goto __pyx_L4_argument_unpacking_done; 
    1114111024  __pyx_L5_argtuple_error:; 
    11142   __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 84; __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;} 
    1114311026  __pyx_L3_error:; 
    1114411027  __Pyx_AddTraceback("yt.amr_utils.TransferFunctionProxy.__cinit__"); 
     
    1115111034  __pyx_bstruct_temp.buf = NULL; 
    1115211035 
    11153   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":85 
     11036  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":87 
    1115411037 *     cdef public object tf_obj 
    1115511038 *     def __cinit__(self, tf_obj): 
     
    1116411047  ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->tf_obj = __pyx_v_tf_obj; 
    1116511048 
    11166   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":87 
     11049  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":89 
    1116711050 *         self.tf_obj = tf_obj 
    1116811051 *         cdef np.ndarray[np.float64_t, ndim=1] temp 
     
    1117111054 *         temp = tf_obj.green.y 
    1117211055 */ 
    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 = 87; __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;} 
    1117411057  __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 = 87; __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;} 
    1117611059  __Pyx_GOTREF(__pyx_t_2); 
    1117711060  __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 = 87; __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;} 
    1117911062  __pyx_t_3 = ((PyArrayObject *)__pyx_t_2); 
    1118011063  { 
     
    1119311076    __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 
    1119411077    __pyx_bshape_0_temp = __pyx_bstruct_temp.shape[0]; 
    11195     if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 87; __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;} 
    1119611079  } 
    1119711080  __pyx_t_3 = 0; 
     
    1120011083  __pyx_t_2 = 0; 
    1120111084 
    11202   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":88 
     11085  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":90 
    1120311086 *         cdef np.ndarray[np.float64_t, ndim=1] temp 
    1120411087 *         temp = tf_obj.red.y 
     
    1120911092  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[0]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 
    1121011093 
    11211   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":89 
     11094  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":91 
    1121211095 *         temp = tf_obj.red.y 
    1121311096 *         self.vs[0] = <np.float64_t *> temp.data 
     
    1121611099 *         temp = tf_obj.blue.y 
    1121711100 */ 
    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;} 
    1121911102  __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;} 
    1122111104  __Pyx_GOTREF(__pyx_t_1); 
    1122211105  __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;} 
    1122411107  __pyx_t_3 = ((PyArrayObject *)__pyx_t_1); 
    1122511108  { 
     
    1123811121    __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 
    1123911122    __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;} 
    1124111124  } 
    1124211125  __pyx_t_3 = 0; 
     
    1124511128  __pyx_t_1 = 0; 
    1124611129 
    11247   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":90 
     11130  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":92 
    1124811131 *         self.vs[0] = <np.float64_t *> temp.data 
    1124911132 *         temp = tf_obj.green.y 
     
    1125411137  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[1]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 
    1125511138 
    11256   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":91 
     11139  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":93 
    1125711140 *         temp = tf_obj.green.y 
    1125811141 *         self.vs[1] = <np.float64_t *> temp.data 
     
    1126111144 *         temp = tf_obj.alpha.y 
    1126211145 */ 
    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 = 91; __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;} 
    1126411147  __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 = 91; __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;} 
    1126611149  __Pyx_GOTREF(__pyx_t_2); 
    1126711150  __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 = 91; __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;} 
    1126911152  __pyx_t_3 = ((PyArrayObject *)__pyx_t_2); 
    1127011153  { 
     
    1128311166    __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 
    1128411167    __pyx_bshape_0_temp = __pyx_bstruct_temp.shape[0]; 
    11285     if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 91; __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;} 
    1128611169  } 
    1128711170  __pyx_t_3 = 0; 
     
    1129011173  __pyx_t_2 = 0; 
    1129111174 
    11292   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":92 
     11175  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":94 
    1129311176 *         self.vs[1] = <np.float64_t *> temp.data 
    1129411177 *         temp = tf_obj.blue.y 
     
    1129911182  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[2]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 
    1130011183 
    11301   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":93 
     11184  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":95 
    1130211185 *         temp = tf_obj.blue.y 
    1130311186 *         self.vs[2] = <np.float64_t *> temp.data 
     
    1130611189 *         self.x_bounds[0] = tf_obj.x_bounds[0] 
    1130711190 */ 
    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 = 93; __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;} 
    1130911192  __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 = 93; __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;} 
    1131111194  __Pyx_GOTREF(__pyx_t_1); 
    1131211195  __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 = 93; __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;} 
    1131411197  __pyx_t_3 = ((PyArrayObject *)__pyx_t_1); 
    1131511198  { 
     
    1132811211    __pyx_bstride_0_temp = __pyx_bstruct_temp.strides[0]; 
    1132911212    __pyx_bshape_0_temp = __pyx_bstruct_temp.shape[0]; 
    11330     if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 93; __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;} 
    1133111214  } 
    1133211215  __pyx_t_3 = 0; 
     
    1133511218  __pyx_t_1 = 0; 
    1133611219 
    11337   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":94 
     11220  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":96 
    1133811221 *         self.vs[2] = <np.float64_t *> temp.data 
    1133911222 *         temp = tf_obj.alpha.y 
     
    1134411227  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->vs[3]) = ((__pyx_t_5numpy_float64_t *)__pyx_v_temp->data); 
    1134511228 
    11346   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":95 
     11229  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":97 
    1134711230 *         temp = tf_obj.alpha.y 
    1134811231 *         self.vs[3] = <np.float64_t *> temp.data 
     
    1135111234 *         self.nbins = tf_obj.nbins 
    1135211235 */ 
    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 = 95; __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;} 
    1135411237  __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 = 95; __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;} 
    1135611239  __Pyx_GOTREF(__pyx_t_2); 
    1135711240  __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 = 95; __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;} 
    1135911242  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1136011243  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[0]) = __pyx_t_8; 
    1136111244 
    11362   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":96 
     11245  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":98 
    1136311246 *         self.vs[3] = <np.float64_t *> temp.data 
    1136411247 *         self.x_bounds[0] = tf_obj.x_bounds[0] 
     
    1136711250 *         self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins 
    1136811251 */ 
    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 = 96; __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;} 
    1137011253  __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 = 96; __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;} 
    1137211255  __Pyx_GOTREF(__pyx_t_1); 
    1137311256  __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 = 96; __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;} 
    1137511258  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1137611259  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->x_bounds[1]) = __pyx_t_8; 
    1137711260 
    11378   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":97 
     11261  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":99 
    1137911262 *         self.x_bounds[0] = tf_obj.x_bounds[0] 
    1138011263 *         self.x_bounds[1] = tf_obj.x_bounds[1] 
    1138111264 *         self.nbins = tf_obj.nbins             # <<<<<<<<<<<<<< 
    1138211265 *         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 = 97; __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;} 
    1138611269  __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 = 97; __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;} 
    1138811271  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1138911272  ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->nbins = __pyx_t_4; 
    1139011273 
    11391   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":98 
     11274  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":100 
    1139211275 *         self.x_bounds[1] = tf_obj.x_bounds[1] 
    1139311276 *         self.nbins = tf_obj.nbins 
    1139411277 *         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             # <<<<<<<<<<<<<< 
    1139511287 *         self.light_color[0] = tf_obj.light_color[0] 
    1139611288 *         self.light_color[1] = tf_obj.light_color[1] 
    1139711289 */ 
    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 
    1140711293 *         self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins 
     11294 *         self.idbin = 1.0/self.dbin 
    1140811295 *         self.light_color[0] = tf_obj.light_color[0]             # <<<<<<<<<<<<<< 
    1140911296 *         self.light_color[1] = tf_obj.light_color[1] 
    1141011297 *         self.light_color[2] = tf_obj.light_color[2] 
    1141111298 */ 
    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;} 
    1141311300  __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;} 
    1141511302  __Pyx_GOTREF(__pyx_t_2); 
    1141611303  __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;} 
    1141811305  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1141911306  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_color[0]) = __pyx_t_8; 
    1142011307 
    11421   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":100 
    11422  *         self.dbin = (self.x_bounds[1] - self.x_bounds[0])/self.nbins 
     11308  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":103 
     11309 *         self.idbin = 1.0/self.dbin 
    1142311310 *         self.light_color[0] = tf_obj.light_color[0] 
    1142411311 *         self.light_color[1] = tf_obj.light_color[1]             # <<<<<<<<<<<<<< 
     
    1142611313 *         self.light_dir[0] = tf_obj.light_dir[0] 
    1142711314 */ 
    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 = 100; __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;} 
    1142911316  __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 = 100; __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;} 
    1143111318  __Pyx_GOTREF(__pyx_t_1); 
    1143211319  __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 = 100; __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;} 
    1143411321  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1143511322  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_color[1]) = __pyx_t_8; 
    1143611323 
    11437   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":101 
     11324  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":104 
    1143811325 *         self.light_color[0] = tf_obj.light_color[0] 
    1143911326 *         self.light_color[1] = tf_obj.light_color[1] 
     
    1144211329 *         self.light_dir[1] = tf_obj.light_dir[1] 
    1144311330 */ 
    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 = 101; __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;} 
    1144511332  __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 = 101; __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;} 
    1144711334  __Pyx_GOTREF(__pyx_t_2); 
    1144811335  __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 = 101; __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;} 
    1145011337  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1145111338  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_color[2]) = __pyx_t_8; 
    1145211339 
    11453   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":102 
     11340  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":105 
    1145411341 *         self.light_color[1] = tf_obj.light_color[1] 
    1145511342 *         self.light_color[2] = tf_obj.light_color[2] 
     
    1145811345 *         self.light_dir[2] = tf_obj.light_dir[2] 
    1145911346 */ 
    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 = 102; __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;} 
    1146111348  __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 = 102; __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;} 
    1146311350  __Pyx_GOTREF(__pyx_t_1); 
    1146411351  __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 = 102; __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;} 
    1146611353  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1146711354  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[0]) = __pyx_t_8; 
    1146811355 
    11469   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":103 
     11356  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":106 
    1147011357 *         self.light_color[2] = tf_obj.light_color[2] 
    1147111358 *         self.light_dir[0] = tf_obj.light_dir[0] 
     
    1147411361 *         cdef np.float64_t normval = 0.0 
    1147511362 */ 
    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 = 103; __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;} 
    1147711364  __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 = 103; __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;} 
    1147911366  __Pyx_GOTREF(__pyx_t_2); 
    1148011367  __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 = 103; __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;} 
    1148211369  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1148311370  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[1]) = __pyx_t_8; 
    1148411371 
    11485   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":104 
     11372  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":107 
    1148611373 *         self.light_dir[0] = tf_obj.light_dir[0] 
    1148711374 *         self.light_dir[1] = tf_obj.light_dir[1] 
     
    1149011377 *         for i in range(3): normval += self.light_dir[i]**2 
    1149111378 */ 
    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 = 104; __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;} 
    1149311380  __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 = 104; __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;} 
    1149511382  __Pyx_GOTREF(__pyx_t_1); 
    1149611383  __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 = 104; __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;} 
    1149811385  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1149911386  (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[2]) = __pyx_t_8; 
    1150011387 
    11501   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":105 
     11388  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":108 
    1150211389 *         self.light_dir[1] = tf_obj.light_dir[1] 
    1150311390 *         self.light_dir[2] = tf_obj.light_dir[2] 
     
    1150811395  __pyx_v_normval = 0.0; 
    1150911396 
    11510   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":106 
     11397  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":109 
    1151111398 *         self.light_dir[2] = tf_obj.light_dir[2] 
    1151211399 *         cdef np.float64_t normval = 0.0 
     
    1151511402 *         for i in range(3): self.light_dir[i] /= normval 
    1151611403 */ 
    11517   __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 106; __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;} 
    1151811405  __Pyx_GOTREF(__pyx_t_1); 
    1151911406  __Pyx_INCREF(__pyx_int_3); 
    1152011407  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_3); 
    1152111408  __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 = 106; __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;} 
    1152311410  __Pyx_GOTREF(__pyx_t_2); 
    1152411411  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
     
    1152611413    __pyx_t_9 = 0; __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); 
    1152711414  } 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 = 106; __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;} 
    1152911416    __Pyx_GOTREF(__pyx_t_1); 
    1153011417  } 
     
    1154011427      __pyx_t_2 = PyIter_Next(__pyx_t_1); 
    1154111428      if (!__pyx_t_2) { 
    11542         if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 106; __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;} 
    1154311430        break; 
    1154411431      } 
     
    1154811435    __pyx_v_i = __pyx_t_2; 
    1154911436    __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 = 106; __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;} 
    1155111438    __pyx_v_normval += pow((((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[__pyx_t_10]), 2); 
    1155211439  } 
    1155311440  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1155411441 
    11555   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":107 
     11442  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":110 
    1155611443 *         cdef np.float64_t normval = 0.0 
    1155711444 *         for i in range(3): normval += self.light_dir[i]**2 
     
    1156211449  __pyx_v_normval = pow(__pyx_v_normval, 0.5); 
    1156311450 
    11564   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":108 
     11451  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":111 
    1156511452 *         for i in range(3): normval += self.light_dir[i]**2 
    1156611453 *         normval = normval**0.5 
     
    1156911456 *  
    1157011457 */ 
    11571   __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 108; __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;} 
    1157211459  __Pyx_GOTREF(__pyx_t_1); 
    1157311460  __Pyx_INCREF(__pyx_int_3); 
    1157411461  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_3); 
    1157511462  __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 = 108; __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;} 
    1157711464  __Pyx_GOTREF(__pyx_t_2); 
    1157811465  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
     
    1158011467    __pyx_t_9 = 0; __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); 
    1158111468  } 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 = 108; __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;} 
    1158311470    __Pyx_GOTREF(__pyx_t_1); 
    1158411471  } 
     
    1159411481      __pyx_t_2 = PyIter_Next(__pyx_t_1); 
    1159511482      if (!__pyx_t_2) { 
    11596         if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 108; __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;} 
    1159711484        break; 
    1159811485      } 
     
    1160211489    __pyx_v_i = __pyx_t_2; 
    1160311490    __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 = 108; __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;} 
    1160511492    (((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->light_dir[__pyx_t_10]) /= __pyx_v_normval; 
    1160611493  } 
    1160711494  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1160811495 
    11609   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":109 
     11496  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":112 
    1161011497 *         normval = normval**0.5 
    1161111498 *         for i in range(3): self.light_dir[i] /= normval 
    1161211499 *         self.use_light = tf_obj.use_light             # <<<<<<<<<<<<<< 
    1161311500 *  
    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 = 109; __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;} 
    1161711504  __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 = 109; __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;} 
    1161911506  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1162011507  ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)__pyx_v_self)->use_light = __pyx_t_4; 
     
    1164311530} 
    1164411531 
    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 
     11540static  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) 
    1164811613 *     cdef void eval_transfer(self, np.float64_t dt, np.float64_t dv,             # <<<<<<<<<<<<<< 
    1164911614 *                                     np.float64_t *rgba, np.float64_t *grad): 
     
    1165311618static  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) { 
    1165411619  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; 
    1166111620  __pyx_t_5numpy_float64_t __pyx_v_ta; 
     11621  __pyx_t_5numpy_float64_t __pyx_v_trgba[4]; 
    1166211622  __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; 
    1166511624  __Pyx_RefNannySetupContext("eval_transfer"); 
    1166611625  __Pyx_INCREF((PyObject *)__pyx_v_self); 
    1166711626 
    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)             # <<<<<<<<<<<<<< 
    1167811631 *         # get source alpha first 
    1167911632 *         # 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 
    1169111638 *         # 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 
    1173111647 *         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 
    1174311656 *         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); 
    1183511683 
    1183611684    /* "/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 
    1185911736  __Pyx_DECREF((PyObject *)__pyx_v_self); 
    1186011737  __Pyx_RefNannyFinishContext(); 
    1186111738} 
    1186211739 
    11863 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":158 
     11740/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":157 
    1186411741 *     cdef np.float64_t *x_vec, *y_vec 
    1186511742 *  
     
    1193411811      if (likely(values[1])) kw_args--; 
    1193511812      else { 
    11936         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __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;} 
    1193711814      } 
    1193811815      case  2: 
     
    1194011817      if (likely(values[2])) kw_args--; 
    1194111818      else { 
    11942         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __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;} 
    1194311820      } 
    1194411821      case  3: 
     
    1194611823      if (likely(values[3])) kw_args--; 
    1194711824      else { 
    11948         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __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;} 
    1194911826      } 
    1195011827      case  4: 
     
    1195211829      if (likely(values[4])) kw_args--; 
    1195311830      else { 
    11954         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 4); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __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;} 
    1195511832      } 
    1195611833      case  5: 
     
    1195811835      if (likely(values[5])) kw_args--; 
    1195911836      else { 
    11960         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 5); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __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;} 
    1196111838      } 
    1196211839      case  6: 
     
    1196411841      if (likely(values[6])) kw_args--; 
    1196511842      else { 
    11966         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, 6); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __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;} 
    1196711844      } 
    1196811845    } 
    1196911846    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 = 158; __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;} 
    1197111848    } 
    1197211849    __pyx_v_vp_pos = ((PyArrayObject *)values[0]); 
     
    1199011867  goto __pyx_L4_argument_unpacking_done; 
    1199111868  __pyx_L5_argtuple_error:; 
    11992   __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 158; __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;} 
    1199311870  __pyx_L3_error:; 
    1199411871  __Pyx_AddTraceback("yt.amr_utils.VectorPlane.__cinit__"); 
     
    1200911886  __pyx_bstruct_x_vec.buf = NULL; 
    1201011887  __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 = 159; __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 = 160; __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 = 161; __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 = 163; __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 = 164; __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 = 165; __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;} 
    1201711894  { 
    1201811895    __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 = 158; __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;} 
    1202011897  } 
    1202111898  __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]; 
     
    1202311900  { 
    1202411901    __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 = 158; __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;} 
    1202611903  } 
    1202711904  __pyx_bstride_0_vp_dir = __pyx_bstruct_vp_dir.strides[0]; 
     
    1202911906  { 
    1203011907    __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 = 158; __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;} 
    1203211909  } 
    1203311910  __pyx_bstride_0_center = __pyx_bstruct_center.strides[0]; 
     
    1203511912  { 
    1203611913    __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 = 158; __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;} 
    1203811915  } 
    1203911916  __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]; 
     
    1204111918  { 
    1204211919    __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 = 158; __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;} 
    1204411921  } 
    1204511922  __pyx_bstride_0_x_vec = __pyx_bstruct_x_vec.strides[0]; 
     
    1204711924  { 
    1204811925    __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 = 158; __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;} 
    1205011927  } 
    1205111928  __pyx_bstride_0_y_vec = __pyx_bstruct_y_vec.strides[0]; 
    1205211929  __pyx_bshape_0_y_vec = __pyx_bstruct_y_vec.shape[0]; 
    1205311930 
    12054   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":167 
     11931  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":166 
    1205511932 *                   np.ndarray[np.float64_t, ndim=1] y_vec): 
    1205611933 *         cdef int i, j 
     
    1206511942  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->avp_pos = ((PyObject *)__pyx_v_vp_pos); 
    1206611943 
    12067   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":168 
     11944  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":167 
    1206811945 *         cdef int i, j 
    1206911946 *         self.avp_pos = vp_pos 
     
    1207811955  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->avp_dir = ((PyObject *)__pyx_v_vp_dir); 
    1207911956 
    12080   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":169 
     11957  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":168 
    1208111958 *         self.avp_pos = vp_pos 
    1208211959 *         self.avp_dir = vp_dir 
     
    1209111968  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->acenter = ((PyObject *)__pyx_v_center); 
    1209211969 
    12093   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":170 
     11970  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":169 
    1209411971 *         self.avp_dir = vp_dir 
    1209511972 *         self.acenter = center 
     
    1210411981  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->aimage = ((PyObject *)__pyx_v_image); 
    1210511982 
    12106   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":171 
     11983  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":170 
    1210711984 *         self.acenter = center 
    1210811985 *         self.aimage = image 
     
    1211711994  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->ax_vec = ((PyObject *)__pyx_v_x_vec); 
    1211811995 
    12119   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":172 
     11996  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":171 
    1212011997 *         self.aimage = image 
    1212111998 *         self.ax_vec = x_vec 
     
    1213012007  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->ay_vec = ((PyObject *)__pyx_v_y_vec); 
    1213112008 
    12132   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":173 
     12009  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":172 
    1213312010 *         self.ax_vec = x_vec 
    1213412011 *         self.ay_vec = y_vec 
     
    1213912016  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->vp_pos = ((__pyx_t_5numpy_float64_t *)__pyx_v_vp_pos->data); 
    1214012017 
    12141   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":174 
     12018  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":173 
    1214212019 *         self.ay_vec = y_vec 
    1214312020 *         self.vp_pos = <np.float64_t *> vp_pos.data 
     
    1214812025  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->vp_dir = ((__pyx_t_5numpy_float64_t *)__pyx_v_vp_dir->data); 
    1214912026 
    12150   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":175 
     12027  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":174 
    1215112028 *         self.vp_pos = <np.float64_t *> vp_pos.data 
    1215212029 *         self.vp_dir = <np.float64_t *> vp_dir.data 
     
    1215712034  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->center = ((__pyx_t_5numpy_float64_t *)__pyx_v_center->data); 
    1215812035 
    12159   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":176 
     12036  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":175 
    1216012037 *         self.vp_dir = <np.float64_t *> vp_dir.data 
    1216112038 *         self.center = <np.float64_t *> center.data 
     
    1216612043  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->image = ((__pyx_t_5numpy_float64_t *)__pyx_v_image->data); 
    1216712044 
    12168   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":177 
     12045  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":176 
    1216912046 *         self.center = <np.float64_t *> center.data 
    1217012047 *         self.image = <np.float64_t *> image.data 
     
    1217512052  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->x_vec = ((__pyx_t_5numpy_float64_t *)__pyx_v_x_vec->data); 
    1217612053 
    12177   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":178 
     12054  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":177 
    1217812055 *         self.image = <np.float64_t *> image.data 
    1217912056 *         self.x_vec = <np.float64_t *> x_vec.data 
     
    1218412061  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->y_vec = ((__pyx_t_5numpy_float64_t *)__pyx_v_y_vec->data); 
    1218512062 
    12186   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":179 
     12063  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":178 
    1218712064 *         self.x_vec = <np.float64_t *> x_vec.data 
    1218812065 *         self.y_vec = <np.float64_t *> y_vec.data 
     
    1219312070  ((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->nv = (__pyx_v_vp_pos->dimensions[0]); 
    1219412071 
    12195   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":180 
     12072  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":179 
    1219612073 *         self.y_vec = <np.float64_t *> y_vec.data 
    1219712074 *         self.nv = vp_pos.shape[0] 
     
    1220212079  for (__pyx_t_1 = 0; __pyx_t_1 < 4; __pyx_t_1+=1) { 
    1220312080    __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 = 180; __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;} 
    1220512082    __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 = 180; __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;} 
    1220712084    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1220812085    (((struct __pyx_obj_2yt_9amr_utils_VectorPlane *)__pyx_v_self)->bounds[__pyx_v_i]) = __pyx_t_3; 
    1220912086  } 
    1221012087 
    12211   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":181 
     12088  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":180 
    1221212089 *         self.nv = vp_pos.shape[0] 
    1221312090 *         for i in range(4): self.bounds[i] = bounds[i] 
     
    1221612093 *  
    1221712094 */ 
    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 
    1222612098 *         for i in range(4): self.bounds[i] = bounds[i] 
    1222712099 *         self.pdx = (self.bounds[1] - self.bounds[0])/self.nv 
    1222812100 *         self.pdy = (self.bounds[3] - self.bounds[2])/self.nv             # <<<<<<<<<<<<<< 
    1222912101 *  
    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); 
    1223812105 
    1223912106  __pyx_r = 0; 
     
    1227312140} 
    1227412141 
    12275 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":184 
    12276  *         self.pdy = (self.bounds[3] - self.bounds[2])/self.nv 
    12277  *  
     12142/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":185 
     12143 *     @cython.boundscheck(False) 
     12144 *     @cython.wraparound(False) 
    1227812145 *     cdef void get_start_stop(self, np.float64_t *ex, int *rv):             # <<<<<<<<<<<<<< 
    1227912146 *         # Extrema need to be re-centered 
     
    1228412151  __pyx_t_5numpy_float64_t __pyx_v_cx; 
    1228512152  __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; 
    1229312155  __Pyx_RefNannySetupContext("get_start_stop"); 
    1229412156  __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 
    1229912159 *         cdef np.float64_t cx, cy 
     12160 *         cdef int i 
    1230012161 *         cx = cy = 0.0             # <<<<<<<<<<<<<< 
    1230112162 *         for i in range(3): 
     
    1230512166  __pyx_v_cy = 0.0; 
    1230612167 
    12307   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":188 
    12308  *         cdef np.float64_t cx, cy 
     12168  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":190 
     12169 *         cdef int i 
    1230912170 *         cx = cy = 0.0 
    1231012171 *         for i in range(3):             # <<<<<<<<<<<<<< 
     
    1231212173 *             cy += self.center[i] * self.y_vec[i] 
    1231312174 */ 
    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 
    1234912179 *         cx = cy = 0.0 
    1235012180 *         for i in range(3): 
     
    1235312183 *         rv[0] = <int> floor((ex[0] - cx - self.bounds[0])/self.pdx) 
    1235412184 */ 
    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 
    1236012188 *         for i in range(3): 
    1236112189 *             cx += self.center[i] * self.x_vec[i] 
     
    1236412192 *         rv[1] = rv[0] + <int> ceil((ex[1] - ex[0])/self.pdx) 
    1236512193 */ 
    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 
    1237312198 *             cx += self.center[i] * self.x_vec[i] 
    1237412199 *             cy += self.center[i] * self.y_vec[i] 
     
    1237712202 *         rv[2] = <int> floor((ex[2] - cy - self.bounds[2])/self.pdy) 
    1237812203 */ 
    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 
    1238712207 *             cy += self.center[i] * self.y_vec[i] 
    1238812208 *         rv[0] = <int> floor((ex[0] - cx - self.bounds[0])/self.pdx) 
     
    1239112211 *         rv[3] = rv[2] + <int> ceil((ex[3] - ex[2])/self.pdy) 
    1239212212 */ 
    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 
    1240112216 *         rv[0] = <int> floor((ex[0] - cx - self.bounds[0])/self.pdx) 
    1240212217 *         rv[1] = rv[0] + <int> ceil((ex[1] - ex[0])/self.pdx) 
     
    1240512220 *  
    1240612221 */ 
    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 
    1241512225 *         rv[1] = rv[0] + <int> ceil((ex[1] - ex[0])/self.pdx) 
    1241612226 *         rv[2] = <int> floor((ex[2] - cy - self.bounds[2])/self.pdy) 
     
    1241912229 *     cdef inline void copy_into(self, np.float64_t *fv, np.float64_t *tv, 
    1242012230 */ 
    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 
    1243512233  __Pyx_DECREF((PyObject *)__pyx_v_self); 
    1243612234  __Pyx_RefNannyFinishContext(); 
    1243712235} 
    1243812236 
    12439 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":196 
     12237/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":198 
    1244012238 *         rv[3] = rv[2] + <int> ceil((ex[3] - ex[2])/self.pdy) 
    1244112239 *  
     
    1245212250  __Pyx_INCREF((PyObject *)__pyx_v_self); 
    1245312251 
    12454   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":201 
     12252  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":203 
    1245512253 *         # to-vector is flat and 'ni' long 
    1245612254 *         cdef int k 
     
    1246312261    __pyx_v_k = __pyx_t_2; 
    1246412262 
    12465     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":202 
     12263    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":204 
    1246612264 *         cdef int k 
    1246712265 *         for k in range(nk): 
     
    1247712275} 
    1247812276 
    12479 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":204 
     12277/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":206 
    1248012278 *             tv[k] = fv[(((k*self.nv)+j)*self.nv+i)] 
    1248112279 *  
     
    1249212290  __Pyx_INCREF((PyObject *)__pyx_v_self); 
    1249312291 
    12494   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":207 
     12292  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":209 
    1249512293 *                         int i, int j, int nk): 
    1249612294 *         cdef int k 
     
    1250312301    __pyx_v_k = __pyx_t_2; 
    1250412302 
    12505     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":208 
     12303    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":210 
    1250612304 *         cdef int k 
    1250712305 *         for k in range(nk): 
     
    1251712315} 
    1251812316 
    12519 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":223 
     12317/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":226 
    1252012318 *     @cython.boundscheck(False) 
    1252112319 *     @cython.wraparound(False) 
     
    1255312351  int __pyx_t_3; 
    1255412352  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; 
    1255812354  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__data,&__pyx_n_s__left_edge,&__pyx_n_s__right_edge,&__pyx_n_s__dims,0}; 
    1255912355  __Pyx_RefNannySetupContext("__cinit__"); 
     
    1257812374      if (likely(values[1])) kw_args--; 
    1257912375      else { 
    12580         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 223; __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;} 
    1258112377      } 
    1258212378      case  2: 
     
    1258412380      if (likely(values[2])) kw_args--; 
    1258512381      else { 
    12586         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 223; __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;} 
    1258712383      } 
    1258812384      case  3: 
     
    1259012386      if (likely(values[3])) kw_args--; 
    1259112387      else { 
    12592         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 3); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 223; __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;} 
    1259312389      } 
    1259412390    } 
    1259512391    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 = 223; __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;} 
    1259712393    } 
    1259812394    __pyx_v_data = ((PyArrayObject *)values[0]); 
     
    1261012406  goto __pyx_L4_argument_unpacking_done; 
    1261112407  __pyx_L5_argtuple_error:; 
    12612   __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 223; __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;} 
    1261312409  __pyx_L3_error:; 
    1261412410  __Pyx_AddTraceback("yt.amr_utils.PartitionedGrid.__cinit__"); 
     
    1262412420  __pyx_bstruct_right_edge.buf = NULL; 
    1262512421  __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 = 224; __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 = 225; __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 = 226; __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 = 227; __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;} 
    1263012426  { 
    1263112427    __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 = 223; __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;} 
    1263312429  } 
    1263412430  __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]; 
     
    1263612432  { 
    1263712433    __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 = 223; __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;} 
    1263912435  } 
    1264012436  __pyx_bstride_0_left_edge = __pyx_bstruct_left_edge.strides[0]; 
     
    1264212438  { 
    1264312439    __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 = 223; __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;} 
    1264512441  } 
    1264612442  __pyx_bstride_0_right_edge = __pyx_bstruct_right_edge.strides[0]; 
     
    1264812444  { 
    1264912445    __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 = 223; __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;} 
    1265112447  } 
    1265212448  __pyx_bstride_0_dims = __pyx_bstruct_dims.strides[0]; 
    1265312449  __pyx_bshape_0_dims = __pyx_bstruct_dims.shape[0]; 
    1265412450 
    12655   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":230 
     12451  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":233 
    1265612452 *         # The data is likely brought in via a slice, so we copy it 
    1265712453 *         cdef int i, j, k, size 
     
    1266612462  ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->LeftEdge = ((PyObject *)__pyx_v_left_edge); 
    1266712463 
    12668   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":231 
     12464  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":234 
    1266912465 *         cdef int i, j, k, size 
    1267012466 *         self.LeftEdge = left_edge 
     
    1267912475  ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->RightEdge = ((PyObject *)__pyx_v_right_edge); 
    1268012476 
    12681   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":232 
     12477  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":235 
    1268212478 *         self.LeftEdge = left_edge 
    1268312479 *         self.RightEdge = right_edge 
     
    1268912485    __pyx_v_i = __pyx_t_1; 
    1269012486 
    12691     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":233 
     12487    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":236 
    1269212488 *         self.RightEdge = right_edge 
    1269312489 *         for i in range(3): 
     
    1269912495    (((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)); 
    1270012496 
    12701     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":234 
     12497    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":237 
    1270212498 *         for i in range(3): 
    1270312499 *             self.left_edge[i] = left_edge[i] 
     
    1270912505    (((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)); 
    1271012506 
    12711     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":235 
     12507    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":238 
    1271212508 *             self.left_edge[i] = left_edge[i] 
    1271312509 *             self.right_edge[i] = right_edge[i] 
    1271412510 *             self.dims[i] = dims[i]             # <<<<<<<<<<<<<< 
    1271512511 *             self.dds[i] = (self.right_edge[i] - self.left_edge[i])/dims[i] 
    12716  *         self.my_data = data 
     12512 *             self.idds[i] = 1.0/self.dds[i] 
    1271712513 */ 
    1271812514    __pyx_t_4 = __pyx_v_i; 
    1271912515    (((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)); 
    1272012516 
    12721     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":236 
     12517    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":239 
    1272212518 *             self.right_edge[i] = right_edge[i] 
    1272312519 *             self.dims[i] = dims[i] 
    1272412520 *             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]             # <<<<<<<<<<<<<< 
    1272512531 *         self.my_data = data 
    1272612532 *         self.data = <np.float64_t*> data.data 
    1272712533 */ 
    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 
    1274012538 *             self.dds[i] = (self.right_edge[i] - self.left_edge[i])/dims[i] 
     12539 *             self.idds[i] = 1.0/self.dds[i] 
    1274112540 *         self.my_data = data             # <<<<<<<<<<<<<< 
    1274212541 *         self.data = <np.float64_t*> data.data 
     
    1274912548  ((struct __pyx_obj_2yt_9amr_utils_PartitionedGrid *)__pyx_v_self)->my_data = ((PyObject *)__pyx_v_data); 
    1275012549 
    12751   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":238 
    12752  *             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] 
    1275312552 *         self.my_data = data 
    1275412553 *         self.data = <np.float64_t*> data.data             # <<<<<<<<<<<<<< 
     
    1278612585} 
    1278712586 
    12788 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":242 
     12587/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":246 
    1278912588 *     @cython.boundscheck(False) 
    1279012589 *     @cython.wraparound(False) 
     
    1283212631      if (likely(values[1])) kw_args--; 
    1283312632      else { 
    12834         __Pyx_RaiseArgtupleInvalid("cast_plane", 1, 2, 2, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 242; __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;} 
    1283512634      } 
    1283612635    } 
    1283712636    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 = 242; __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;} 
    1283912638    } 
    1284012639    __pyx_v_tf = ((struct __pyx_obj_2yt_9amr_utils_TransferFunctionProxy *)values[0]); 
     
    1284812647  goto __pyx_L4_argument_unpacking_done; 
    1284912648  __pyx_L5_argtuple_error:; 
    12850   __Pyx_RaiseArgtupleInvalid("cast_plane", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 242; __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;} 
    1285112650  __pyx_L3_error:; 
    1285212651  __Pyx_AddTraceback("yt.amr_utils.PartitionedGrid.cast_plane"); 
     
    1285612655  __Pyx_INCREF((PyObject *)__pyx_v_tf); 
    1285712656  __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 = 242; __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 = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
    12860  
    12861   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":249 
     12657  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 
    1286212661 *         cdef int iter[4] 
    1286312662 *         cdef np.float64_t v_pos[3], v_dir[3], rgba[4], extrema[4] 
     
    1286812667  ((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); 
    1286912668 
    12870   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":250 
     12669  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":254 
    1287112670 *         cdef np.float64_t v_pos[3], v_dir[3], rgba[4], extrema[4] 
    1287212671 *         self.calculate_extent(vp, extrema) 
     
    1287712676  ((struct __pyx_vtabstruct_2yt_9amr_utils_VectorPlane *)__pyx_v_vp->__pyx_vtab)->get_start_stop(__pyx_v_vp, __pyx_v_extrema, __pyx_v_iter); 
    1287812677 
    12879   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":251 
     12678  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":255 
    1288012679 *         self.calculate_extent(vp, extrema) 
    1288112680 *         vp.get_start_stop(extrema, iter) 
     
    1288912688  } 
    1289012689 
    12891   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":252 
     12690  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":256 
    1289212691 *         vp.get_start_stop(extrema, iter) 
    1289312692 *         for i in range(4): iter[i] = iclip(iter[i], 0, vp.nv) 
     
    1289812697  __pyx_v_hit = 0; 
    1289912698 
    12900   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":253 
     12699  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":257 
    1290112700 *         for i in range(4): iter[i] = iclip(iter[i], 0, vp.nv) 
    1290212701 *         hit = 0 
     
    1290912708    __pyx_v_vj = __pyx_t_2; 
    1291012709 
    12911     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":254 
     12710    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":258 
    1291212711 *         hit = 0 
    1291312712 *         for vj in range(iter[0], iter[1]): 
     
    1292012719      __pyx_v_vi = __pyx_t_4; 
    1292112720 
    12922       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":255 
     12721      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":259 
    1292312722 *         for vj in range(iter[0], iter[1]): 
    1292412723 *             for vi in range(iter[2], iter[3]): 
     
    1292912728      ((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); 
    1293012729 
    12931       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":256 
     12730      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":260 
    1293212731 *             for vi in range(iter[2], iter[3]): 
    1293312732 *                 vp.copy_into(vp.vp_pos, v_pos, vi, vj, 3) 
     
    1293812737      ((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); 
    1293912738 
    12940       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":257 
     12739      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":261 
    1294112740 *                 vp.copy_into(vp.vp_pos, v_pos, vi, vj, 3) 
    1294212741 *                 vp.copy_into(vp.image, rgba, vi, vj, 4) 
     
    1294712746      ((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); 
    1294812747 
    12949       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":258 
     12748      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":262 
    1295012749 *                 vp.copy_into(vp.image, rgba, vi, vj, 4) 
    1295112750 *                 self.integrate_ray(v_pos, vp.vp_dir, rgba, tf) 
     
    1295812757  } 
    1295912758 
    12960   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":259 
     12759  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":263 
    1296112760 *                 self.integrate_ray(v_pos, vp.vp_dir, rgba, tf) 
    1296212761 *                 vp.copy_back(rgba, vp.image, vi, vj, 4) 
     
    1296612765 */ 
    1296712766  __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 = 259; __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;} 
    1296912768  __Pyx_GOTREF(__pyx_t_5); 
    1297012769  __pyx_r = __pyx_t_5; 
     
    1298712786} 
    1298812787 
    12989 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":263 
     12788/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":267 
    1299012789 *     @cython.boundscheck(False) 
    1299112790 *     @cython.wraparound(False) 
     
    1301012809  __Pyx_INCREF((PyObject *)__pyx_v_vp); 
    1301112810 
    13012   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":267 
     12811  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":271 
    1301312812 *         # We do this for all eight corners 
    1301412813 *         cdef np.float64_t *edges[2], temp 
     
    1301912818  (__pyx_v_edges[0]) = __pyx_v_self->left_edge; 
    1302012819 
    13021   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":268 
     12820  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":272 
    1302212821 *         cdef np.float64_t *edges[2], temp 
    1302312822 *         edges[0] = self.left_edge 
     
    1302812827  (__pyx_v_edges[1]) = __pyx_v_self->right_edge; 
    1302912828 
    13030   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":269 
     12829  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":273 
    1303112830 *         edges[0] = self.left_edge 
    1303212831 *         edges[1] = self.right_edge 
     
    1304112840  (__pyx_v_extrema[3]) = __pyx_t_1; 
    1304212841 
    13043   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":271 
     12842  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":275 
    1304412843 *         extrema[0] = extrema[2] = 1e300; extrema[1] = extrema[3] = -1e300 
    1304512844 *         cdef int i, j, k 
     
    1305112850    __pyx_v_i = __pyx_t_2; 
    1305212851 
    13053     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":272 
     12852    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":276 
    1305412853 *         cdef int i, j, k 
    1305512854 *         for i in range(2): 
     
    1306112860      __pyx_v_j = __pyx_t_3; 
    1306212861 
    13063       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":273 
     12862      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":277 
    1306412863 *         for i in range(2): 
    1306512864 *             for j in range(2): 
     
    1307112870        __pyx_v_k = __pyx_t_4; 
    1307212871 
    13073         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":275 
     12872        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":279 
    1307412873 *                 for k in range(2): 
    1307512874 *                     # This should rotate it into the vector plane 
     
    1308012879        __pyx_v_temp = (((__pyx_v_edges[__pyx_v_i])[0]) * (__pyx_v_vp->x_vec[0])); 
    1308112880 
    13082         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":276 
     12881        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":280 
    1308312882 *                     # This should rotate it into the vector plane 
    1308412883 *                     temp  = edges[i][0] * vp.x_vec[0] 
     
    1308912888        __pyx_v_temp += (((__pyx_v_edges[__pyx_v_j])[1]) * (__pyx_v_vp->x_vec[1])); 
    1309012889 
    13091         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":277 
     12890        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":281 
    1309212891 *                     temp  = edges[i][0] * vp.x_vec[0] 
    1309312892 *                     temp += edges[j][1] * vp.x_vec[1] 
     
    1309812897        __pyx_v_temp += (((__pyx_v_edges[__pyx_v_k])[2]) * (__pyx_v_vp->x_vec[2])); 
    1309912898 
    13100         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":278 
     12899        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":282 
    1310112900 *                     temp += edges[j][1] * vp.x_vec[1] 
    1310212901 *                     temp += edges[k][2] * vp.x_vec[2] 
     
    1311212911        __pyx_L9:; 
    1311312912 
    13114         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":279 
     12913        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":283 
    1311512914 *                     temp += edges[k][2] * vp.x_vec[2] 
    1311612915 *                     if temp < extrema[0]: extrema[0] = temp 
     
    1312612925        __pyx_L10:; 
    1312712926 
    13128         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":280 
     12927        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":284 
    1312912928 *                     if temp < extrema[0]: extrema[0] = temp 
    1313012929 *                     if temp > extrema[1]: extrema[1] = temp 
     
    1313512934        __pyx_v_temp = (((__pyx_v_edges[__pyx_v_i])[0]) * (__pyx_v_vp->y_vec[0])); 
    1313612935 
    13137         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":281 
     12936        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":285 
    1313812937 *                     if temp > extrema[1]: extrema[1] = temp 
    1313912938 *                     temp  = edges[i][0] * vp.y_vec[0] 
     
    1314412943        __pyx_v_temp += (((__pyx_v_edges[__pyx_v_j])[1]) * (__pyx_v_vp->y_vec[1])); 
    1314512944 
    13146         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":282 
     12945        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":286 
    1314712946 *                     temp  = edges[i][0] * vp.y_vec[0] 
    1314812947 *                     temp += edges[j][1] * vp.y_vec[1] 
     
    1315312952        __pyx_v_temp += (((__pyx_v_edges[__pyx_v_k])[2]) * (__pyx_v_vp->y_vec[2])); 
    1315412953 
    13155         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":283 
     12954        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":287 
    1315612955 *                     temp += edges[j][1] * vp.y_vec[1] 
    1315712956 *                     temp += edges[k][2] * vp.y_vec[2] 
     
    1316712966        __pyx_L11:; 
    1316812967 
    13169         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":284 
     12968        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":288 
    1317012969 *                     temp += edges[k][2] * vp.y_vec[2] 
    1317112970 *                     if temp < extrema[2]: extrema[2] = temp 
     
    1318912988} 
    1319012989 
    13191 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":289 
     12990/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":293 
    1319212991 *     @cython.boundscheck(False) 
    1319312992 *     @cython.wraparound(False) 
     
    1321013009  __pyx_t_5numpy_float64_t __pyx_v_tdelta[3]; 
    1321113010  __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; 
    1321313012  __pyx_t_5numpy_float64_t __pyx_v_tr; 
    1321413013  __pyx_t_5numpy_float64_t __pyx_v_tl; 
     
    1321813017  int __pyx_t_1; 
    1321913018  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; 
    1322213021  int __pyx_t_5; 
    1322313022  int __pyx_t_6; 
    1322413023  int __pyx_t_7; 
    1322513024  int __pyx_t_8; 
    13226   int __pyx_t_9; 
    13227   int __pyx_t_10; 
    1322813025  __Pyx_RefNannySetupContext("integrate_ray"); 
    1322913026  __Pyx_INCREF((PyObject *)__pyx_v_self); 
    1323013027  __Pyx_INCREF((PyObject *)__pyx_v_tf); 
    1323113028 
    13232   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":294 
     13029  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":298 
    1323313030 *                                  TransferFunctionProxy tf): 
    1323413031 *         cdef int cur_ind[3], step[3], x, y, i, n, flat_ind, hit, direction 
    1323513032 *         cdef np.float64_t intersect_t = 1.0             # <<<<<<<<<<<<<< 
    1323613033 *         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 
    1323813035 */ 
    1323913036  __pyx_v_intersect_t = 1.0; 
    1324013037 
    13241   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":298 
    13242  *         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 
    1324313040 *         cdef np.float64_t tr, tl, temp_x, temp_y, dv 
    1324413041 *         for i in range(3):             # <<<<<<<<<<<<<< 
     
    1324913046    __pyx_v_i = __pyx_t_1; 
    1325013047 
    13251     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":299 
     13048    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":303 
    1325213049 *         cdef np.float64_t tr, tl, temp_x, temp_y, dv 
    1325313050 *         for i in range(3): 
     
    1325913056    if (__pyx_t_2) { 
    1326013057 
    13261       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":300 
     13058      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":304 
    1326213059 *         for i in range(3): 
    1326313060 *             if (v_dir[i] < 0): 
     
    1327113068    /*else*/ { 
    1327213069 
    13273       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":302 
     13070      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":306 
    1327413071 *                 step[i] = -1 
    1327513072 *             else: 
     
    1328213079    __pyx_L5:; 
    1328313080 
    13284     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":303 
     13081    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":307 
    1328513082 *             else: 
    1328613083 *                 step[i] = 1 
     
    1328913086 *             tl = (self.left_edge[i] - v_pos[i])/v_dir[i] 
    1329013087 */ 
    13291     __pyx_v_x = __Pyx_mod_long((__pyx_v_i + 1), 3); 
    13292  
    13293     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":304 
     13088    __pyx_v_x = ((__pyx_v_i + 1) % 3); 
     13089 
     13090    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":308 
    1329413091 *                 step[i] = 1 
    1329513092 *             x = (i+1) % 3 
     
    1329813095 *             tr = (self.right_edge[i] - v_pos[i])/v_dir[i] 
    1329913096 */ 
    13300     __pyx_v_y = __Pyx_mod_long((__pyx_v_i + 2), 3); 
    13301  
    13302     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":305 
     13097    __pyx_v_y = ((__pyx_v_i + 2) % 3); 
     13098 
     13099    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":309 
    1330313100 *             x = (i+1) % 3 
    1330413101 *             y = (i+2) % 3 
     
    1330713104 *             temp_x = (v_pos[x] + tl*v_dir[x]) 
    1330813105 */ 
    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 
    1331813109 *             y = (i+2) % 3 
    1331913110 *             tl = (self.left_edge[i] - v_pos[i])/v_dir[i] 
     
    1332213113 *             temp_y = (v_pos[y] + tl*v_dir[y]) 
    1332313114 */ 
    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 
    1333313118 *             tl = (self.left_edge[i] - v_pos[i])/v_dir[i] 
    1333413119 *             tr = (self.right_edge[i] - v_pos[i])/v_dir[i] 
     
    1333913124    __pyx_v_temp_x = ((__pyx_v_v_pos[__pyx_v_x]) + (__pyx_v_tl * (__pyx_v_v_dir[__pyx_v_x]))); 
    1334013125 
    13341     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":308 
     13126    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":312 
    1334213127 *             tr = (self.right_edge[i] - v_pos[i])/v_dir[i] 
    1334313128 *             temp_x = (v_pos[x] + tl*v_dir[x]) 
     
    1334813133    __pyx_v_temp_y = ((__pyx_v_v_pos[__pyx_v_y]) + (__pyx_v_tl * (__pyx_v_v_dir[__pyx_v_y]))); 
    1334913134 
    13350     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":309 
     13135    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":313 
    1335113136 *             temp_x = (v_pos[x] + tl*v_dir[x]) 
    1335213137 *             temp_y = (v_pos[y] + tl*v_dir[y]) 
     
    1335713142    __pyx_t_2 = ((__pyx_v_self->left_edge[__pyx_v_x]) <= __pyx_v_temp_x); 
    1335813143    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":310 
     13144      __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 
    1336313148 *             temp_y = (v_pos[y] + tl*v_dir[y]) 
    1336413149 *             if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ 
     
    1336713152 *                 direction = i 
    1336813153 */ 
    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":311 
     13154        __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 
    1337513160 *             if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ 
    1337613161 *                self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ 
     
    1337913164 *                 intersect_t = tl 
    1338013165 */ 
    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; 
    1338513170            } else { 
    13386               __pyx_t_10 = __pyx_t_8; 
     13171              __pyx_t_8 = __pyx_t_6; 
    1338713172            } 
    13388             __pyx_t_8 = __pyx_t_10; 
     13173            __pyx_t_6 = __pyx_t_8; 
    1338913174          } else { 
    13390             __pyx_t_8 = __pyx_t_7; 
     13175            __pyx_t_6 = __pyx_t_5; 
    1339113176          } 
    13392           __pyx_t_7 = __pyx_t_8; 
     13177          __pyx_t_5 = __pyx_t_6; 
    1339313178        } else { 
    13394           __pyx_t_7 = __pyx_t_6; 
     13179          __pyx_t_5 = __pyx_t_4; 
    1339513180        } 
    13396         __pyx_t_6 = __pyx_t_7; 
     13181        __pyx_t_4 = __pyx_t_5; 
    1339713182      } else { 
    13398         __pyx_t_6 = __pyx_t_5; 
     13183        __pyx_t_4 = __pyx_t_3; 
    1339913184      } 
    13400       __pyx_t_5 = __pyx_t_6; 
     13185      __pyx_t_3 = __pyx_t_4; 
    1340113186    } 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":312 
     13187      __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 
    1340713192 *                self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ 
    1340813193 *                0.0 <= tl and tl < intersect_t: 
     
    1341313198      __pyx_v_direction = __pyx_v_i; 
    1341413199 
    13415       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":313 
     13200      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":317 
    1341613201 *                0.0 <= tl and tl < intersect_t: 
    1341713202 *                 direction = i 
     
    1342513210    __pyx_L6:; 
    1342613211 
    13427     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":314 
     13212    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":318 
    1342813213 *                 direction = i 
    1342913214 *                 intersect_t = tl 
     
    1343413219    __pyx_v_temp_x = ((__pyx_v_v_pos[__pyx_v_x]) + (__pyx_v_tr * (__pyx_v_v_dir[__pyx_v_x]))); 
    1343513220 
    13436     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":315 
     13221    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":319 
    1343713222 *                 intersect_t = tl 
    1343813223 *             temp_x = (v_pos[x] + tr*v_dir[x]) 
     
    1344313228    __pyx_v_temp_y = ((__pyx_v_v_pos[__pyx_v_y]) + (__pyx_v_tr * (__pyx_v_v_dir[__pyx_v_y]))); 
    1344413229 
    13445     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":316 
     13230    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":320 
    1344613231 *             temp_x = (v_pos[x] + tr*v_dir[x]) 
    1344713232 *             temp_y = (v_pos[y] + tr*v_dir[y]) 
     
    1345013235 *                0.0 <= tr and tr < intersect_t: 
    1345113236 */ 
    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) { 
    1345413239      __pyx_t_2 = (__pyx_v_temp_x <= (__pyx_v_self->right_edge[__pyx_v_x])); 
    1345513240      if (__pyx_t_2) { 
    1345613241 
    13457         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":317 
     13242        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":321 
    1345813243 *             temp_y = (v_pos[y] + tr*v_dir[y]) 
    1345913244 *             if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ 
     
    1346213247 *                 direction = i 
    1346313248 */ 
    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":318 
     13249        __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 
    1347013255 *             if self.left_edge[x] <= temp_x and temp_x <= self.right_edge[x] and \ 
    1347113256 *                self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ 
     
    1347413259 *                 intersect_t = tr 
    1347513260 */ 
    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; 
    1348013265            } else { 
    13481               __pyx_t_9 = __pyx_t_8; 
     13266              __pyx_t_7 = __pyx_t_6; 
    1348213267            } 
    13483             __pyx_t_8 = __pyx_t_9; 
     13268            __pyx_t_6 = __pyx_t_7; 
    1348413269          } else { 
    13485             __pyx_t_8 = __pyx_t_7; 
     13270            __pyx_t_6 = __pyx_t_5; 
    1348613271          } 
    13487           __pyx_t_7 = __pyx_t_8; 
     13272          __pyx_t_5 = __pyx_t_6; 
    1348813273        } else { 
    13489           __pyx_t_7 = __pyx_t_6; 
     13274          __pyx_t_5 = __pyx_t_4; 
    1349013275        } 
    13491         __pyx_t_6 = __pyx_t_7; 
     13276        __pyx_t_4 = __pyx_t_5; 
    1349213277      } else { 
    13493         __pyx_t_6 = __pyx_t_2; 
     13278        __pyx_t_4 = __pyx_t_2; 
    1349413279      } 
    13495       __pyx_t_2 = __pyx_t_6; 
     13280      __pyx_t_2 = __pyx_t_4; 
    1349613281    } else { 
    13497       __pyx_t_2 = __pyx_t_5; 
     13282      __pyx_t_2 = __pyx_t_3; 
    1349813283    } 
    1349913284    if (__pyx_t_2) { 
    1350013285 
    13501       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":319 
     13286      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":323 
    1350213287 *                self.left_edge[y] <= temp_y and temp_y <= self.right_edge[y] and \ 
    1350313288 *                0.0 <= tr and tr < intersect_t: 
     
    1350813293      __pyx_v_direction = __pyx_v_i; 
    1350913294 
    13510       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":320 
     13295      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":324 
    1351113296 *                0.0 <= tr and tr < intersect_t: 
    1351213297 *                 direction = i 
     
    1352113306  } 
    1352213307 
    13523   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":321 
     13308  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":325 
    1352413309 *                 direction = i 
    1352513310 *                 intersect_t = tr 
     
    1353013315  __pyx_t_2 = ((__pyx_v_self->left_edge[0]) <= (__pyx_v_v_pos[0])); 
    1353113316  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":322 
     13317    __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 
    1353613321 *                 intersect_t = tr 
    1353713322 *         if self.left_edge[0] <= v_pos[0] and v_pos[0] <= self.right_edge[0] and \ 
     
    1354013325 *             intersect_t = 0.0 
    1354113326 */ 
    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":323 
     13327      __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 
    1354813333 *         if self.left_edge[0] <= v_pos[0] and v_pos[0] <= self.right_edge[0] and \ 
    1354913334 *            self.left_edge[1] <= v_pos[1] and v_pos[1] <= self.right_edge[1] and \ 
     
    1355213337 *         if not ((0.0 <= intersect_t) and (intersect_t < 1.0)): return 0 
    1355313338 */ 
    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; 
    1355813343          } else { 
    13559             __pyx_t_10 = __pyx_t_8; 
     13344            __pyx_t_8 = __pyx_t_6; 
    1356013345          } 
    13561           __pyx_t_8 = __pyx_t_10; 
     13346          __pyx_t_6 = __pyx_t_8; 
    1356213347        } else { 
    13563           __pyx_t_8 = __pyx_t_7; 
     13348          __pyx_t_6 = __pyx_t_5; 
    1356413349        } 
    13565         __pyx_t_7 = __pyx_t_8; 
     13350        __pyx_t_5 = __pyx_t_6; 
    1356613351      } else { 
    13567         __pyx_t_7 = __pyx_t_6; 
     13352        __pyx_t_5 = __pyx_t_4; 
    1356813353      } 
    13569       __pyx_t_6 = __pyx_t_7; 
     13354      __pyx_t_4 = __pyx_t_5; 
    1357013355    } 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; 
    1357413359  } 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":324 
     13360    __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 
    1358013365 *            self.left_edge[1] <= v_pos[1] and v_pos[1] <= self.right_edge[1] and \ 
    1358113366 *            self.left_edge[2] <= v_pos[2] and v_pos[2] <= self.right_edge[2]: 
     
    1358913374  __pyx_L8:; 
    1359013375 
    13591   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":325 
     13376  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":329 
    1359213377 *            self.left_edge[2] <= v_pos[2] and v_pos[2] <= self.right_edge[2]: 
    1359313378 *             intersect_t = 0.0 
     
    1359613381 *             intersect[i] = v_pos[i] + intersect_t * v_dir[i] 
    1359713382 */ 
    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) { 
    1360013385    __pyx_t_2 = (__pyx_v_intersect_t < 1.0); 
    13601     __pyx_t_6 = __pyx_t_2; 
     13386    __pyx_t_4 = __pyx_t_2; 
    1360213387  } 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) { 
    1360713392    __pyx_r = 0; 
    1360813393    goto __pyx_L0; 
     
    1361113396  __pyx_L9:; 
    1361213397 
    13613   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":326 
     13398  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":330 
    1361413399 *             intersect_t = 0.0 
    1361513400 *         if not ((0.0 <= intersect_t) and (intersect_t < 1.0)): return 0 
     
    1362113406    __pyx_v_i = __pyx_t_1; 
    1362213407 
    13623     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":327 
     13408    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":331 
    1362413409 *         if not ((0.0 <= intersect_t) and (intersect_t < 1.0)): return 0 
    1362513410 *         for i in range(3): 
     
    1363013415    (__pyx_v_intersect[__pyx_v_i]) = ((__pyx_v_v_pos[__pyx_v_i]) + (__pyx_v_intersect_t * (__pyx_v_v_dir[__pyx_v_i]))); 
    1363113416 
    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 
    1364713418 *         for i in range(3): 
    1364813419 *             intersect[i] = v_pos[i] + intersect_t * v_dir[i] 
    1364913420 *             cur_ind[i] = <int> floor((intersect[i] +             # <<<<<<<<<<<<<< 
    1365013421 *                                       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 
    1367013427 *                                       step[i]*1e-8*self.dds[i] - 
    13671  *                                       self.left_edge[i])/self.dds[i]) 
     13428 *                                       self.left_edge[i])*self.idds[i]) 
    1367213429 *             tmax[i] = (((cur_ind[i]+step[i])*self.dds[i])+             # <<<<<<<<<<<<<< 
    1367313430 *                         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":333 
    13679  *             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. 
    1368113438 *             if cur_ind[i] == self.dims[i] and step[i] < 0:             # <<<<<<<<<<<<<< 
    1368213439 *                 cur_ind[i] = self.dims[i] - 1 
    1368313440 *             if cur_ind[i] < 0 or cur_ind[i] >= self.dims[i]: return 0 
    1368413441 */ 
    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; 
    1368913446    } else { 
    13690       __pyx_t_2 = __pyx_t_5; 
     13447      __pyx_t_2 = __pyx_t_3; 
    1369113448    } 
    1369213449    if (__pyx_t_2) { 
    1369313450 
    13694       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":334 
    13695  *                         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. 
    1369613453 *             if cur_ind[i] == self.dims[i] and step[i] < 0: 
    1369713454 *                 cur_ind[i] = self.dims[i] - 1             # <<<<<<<<<<<<<< 
     
    1370413461    __pyx_L12:; 
    1370513462 
    13706     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":335 
     13463    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":342 
    1370713464 *             if cur_ind[i] == self.dims[i] and step[i] < 0: 
    1370813465 *                 cur_ind[i] = self.dims[i] - 1 
     
    1371313470    __pyx_t_2 = ((__pyx_v_cur_ind[__pyx_v_i]) < 0); 
    1371413471    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; 
    1371713474    } 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) { 
    1372113478      __pyx_r = 0; 
    1372213479      goto __pyx_L0; 
     
    1372513482    __pyx_L13:; 
    1372613483 
    13727     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":336 
     13484    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":343 
    1372813485 *                 cur_ind[i] = self.dims[i] - 1 
    1372913486 *             if cur_ind[i] < 0 or cur_ind[i] >= self.dims[i]: return 0 
     
    1373213489 *                             +self.left_edge[i]-v_pos[i])/v_dir[i] 
    1373313490 */ 
    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 
    1375213495 *             if cur_ind[i] < 0 or cur_ind[i] >= self.dims[i]: return 0 
    1375313496 *             if step[i] > 0: 
     
    1375613499 *             if step[i] < 0: 
    1375713500 */ 
    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])); 
    1375913502      goto __pyx_L14; 
    1376013503    } 
    1376113504    __pyx_L14:; 
    1376213505 
    13763     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":339 
     13506    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":346 
    1376413507 *                 tmax[i] = (((cur_ind[i]+1)*self.dds[i]) 
    1376513508 *                             +self.left_edge[i]-v_pos[i])/v_dir[i] 
     
    1376813511 *                             +self.left_edge[i]-v_pos[i])/v_dir[i] 
    1376913512 */ 
    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 
    1378813517 *                             +self.left_edge[i]-v_pos[i])/v_dir[i] 
    1378913518 *             if step[i] < 0: 
     
    1379213521 *             tdelta[i] = (self.dds[i]/v_dir[i]) 
    1379313522 */ 
    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])); 
    1379513524      goto __pyx_L15; 
    1379613525    } 
    1379713526    __pyx_L15:; 
    1379813527 
    13799     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":342 
     13528    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":349 
    1380013529 *                 tmax[i] = (((cur_ind[i]+0)*self.dds[i]) 
    1380113530 *                             +self.left_edge[i]-v_pos[i])/v_dir[i] 
     
    1380413533 *         # We have to jumpstart our calculation 
    1380513534 */ 
    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 
    1381513538 *                             +self.left_edge[i]-v_pos[i])/v_dir[i] 
    1381613539 *             tdelta[i] = (self.dds[i]/v_dir[i]) 
     
    1381913542 *         enter_t = intersect_t 
    1382013543 */ 
    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) { 
    1382313546      (__pyx_v_tdelta[__pyx_v_i]) *= -1; 
    1382413547      goto __pyx_L16; 
     
    1382713550  } 
    1382813551 
    13829   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":345 
     13552  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":352 
    1383013553 *             if tdelta[i] < 0: tdelta[i] *= -1 
    1383113554 *         # We have to jumpstart our calculation 
     
    1383613559  __pyx_v_enter_t = __pyx_v_intersect_t; 
    1383713560 
    13838   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":346 
     13561  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":353 
    1383913562 *         # We have to jumpstart our calculation 
    1384013563 *         enter_t = intersect_t 
     
    1384413567 */ 
    1384513568  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":349 
     13569    __pyx_t_4 = 1; 
     13570    if (!__pyx_t_4) break; 
     13571 
     13572    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":356 
    1385013573 *             # dims here is one less than the dimensions of the data, 
    1385113574 *             # but we are tracing on the grid, not on the data... 
     
    1385513578 */ 
    1385613579    __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); 
    1386213585    if (!__pyx_t_2) { 
    1386313586 
    13864       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":350 
     13587      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":357 
    1386513588 *             # but we are tracing on the grid, not on the data... 
    1386613589 *             if (not (0 <= cur_ind[0] < self.dims[0])) or \ 
     
    1387013593 */ 
    1387113594      __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])); 
    1387513598      } 
    13876       __pyx_t_5 = (!__pyx_t_6); 
    13877       if (!__pyx_t_5) { 
    13878  
    13879         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":351 
     13599      __pyx_t_3 = (!__pyx_t_4); 
     13600      if (!__pyx_t_3) { 
     13601 
     13602        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":358 
    1388013603 *             if (not (0 <= cur_ind[0] < self.dims[0])) or \ 
    1388113604 *                (not (0 <= cur_ind[1] < self.dims[1])) or \ 
     
    1388513608 */ 
    1388613609        __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])); 
    1389013613        } 
    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; 
    1389313616      } else { 
    13894         __pyx_t_6 = __pyx_t_5; 
     13617        __pyx_t_4 = __pyx_t_3; 
    1389513618      } 
    13896       __pyx_t_5 = __pyx_t_6; 
     13619      __pyx_t_3 = __pyx_t_4; 
    1389713620    } 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":352 
     13621      __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 
    1390313626 *                (not (0 <= cur_ind[1] < self.dims[1])) or \ 
    1390413627 *                (not (0 <= cur_ind[2] < self.dims[2])): 
     
    1391213635    __pyx_L19:; 
    1391313636 
    13914     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":353 
     13637    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":360 
    1391513638 *                (not (0 <= cur_ind[2] < self.dims[2])): 
    1391613639 *                 break 
     
    1392113644    __pyx_v_hit += 1; 
    1392213645 
    13923     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":354 
     13646    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":361 
    1392413647 *                 break 
    1392513648 *             hit += 1 
    1392613649 *             if tmax[0] < tmax[1]:             # <<<<<<<<<<<<<< 
    1392713650 *                 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":355 
     13651 *                     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 
    1393413657 *             hit += 1 
    1393513658 *             if tmax[0] < tmax[1]: 
    1393613659 *                 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, 
    1393813671 *                                        rgba, tf) 
    1393913672 */ 
    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, 
    1394613678 *                                        rgba, tf)             # <<<<<<<<<<<<<< 
    1394713679 *                     cur_ind[0] += step[0] 
    13948  *                     dt = fmin(tmax[0], 1.0) - enter_t 
    13949  */ 
    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":358 
    13953  *                     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, 
    1395413686 *                                        rgba, tf) 
    1395513687 *                     cur_ind[0] += step[0]             # <<<<<<<<<<<<<< 
    13956  *                     dt = fmin(tmax[0], 1.0) - enter_t 
    1395713688 *                     enter_t = tmax[0] 
     13689 *                     tmax[0] += tdelta[0] 
    1395813690 */ 
    1395913691        (__pyx_v_cur_ind[0]) += (__pyx_v_step[0]); 
    1396013692 
    13961         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":359 
     13693        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":367 
    1396213694 *                                        rgba, tf) 
    1396313695 *                     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":360 
    13971  *                     cur_ind[0] += step[0] 
    13972  *                     dt = fmin(tmax[0], 1.0) - enter_t 
    1397313696 *                     enter_t = tmax[0]             # <<<<<<<<<<<<<< 
    1397413697 *                     tmax[0] += tdelta[0] 
     
    1397713700        __pyx_v_enter_t = (__pyx_v_tmax[0]); 
    1397813701 
    13979         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":361 
    13980  *                     dt = fmin(tmax[0], 1.0) - enter_t 
     13702        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":368 
     13703 *                     cur_ind[0] += step[0] 
    1398113704 *                     enter_t = tmax[0] 
    1398213705 *                     tmax[0] += tdelta[0]             # <<<<<<<<<<<<<< 
    1398313706 *                 else: 
    13984  *                     self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind, 
     13707 *                     exit_t = fmin(tmax[2], 1.0) 
    1398513708 */ 
    1398613709        (__pyx_v_tmax[0]) += (__pyx_v_tdelta[0]); 
     
    1398913712      /*else*/ { 
    1399013713 
    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] 
    1399213716 *                 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, 
    1399413726 *                                        rgba, tf)             # <<<<<<<<<<<<<< 
    1399513727 *                     cur_ind[2] += step[2] 
    13996  *                     dt = fmin(tmax[2], 1.0) - enter_t 
    13997  */ 
    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":365 
    14001  *                     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, 
    1400213734 *                                        rgba, tf) 
    1400313735 *                     cur_ind[2] += step[2]             # <<<<<<<<<<<<<< 
    14004  *                     dt = fmin(tmax[2], 1.0) - enter_t 
    1400513736 *                     enter_t = tmax[2] 
     13737 *                     tmax[2] += tdelta[2] 
    1400613738 */ 
    1400713739        (__pyx_v_cur_ind[2]) += (__pyx_v_step[2]); 
    1400813740 
    14009         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":366 
     13741        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":374 
    1401013742 *                                        rgba, tf) 
    1401113743 *                     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":367 
    14019  *                     cur_ind[2] += step[2] 
    14020  *                     dt = fmin(tmax[2], 1.0) - enter_t 
    1402113744 *                     enter_t = tmax[2]             # <<<<<<<<<<<<<< 
    1402213745 *                     tmax[2] += tdelta[2] 
     
    1402513748        __pyx_v_enter_t = (__pyx_v_tmax[2]); 
    1402613749 
    14027         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":368 
    14028  *                     dt = fmin(tmax[2], 1.0) - enter_t 
     13750        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":375 
     13751 *                     cur_ind[2] += step[2] 
    1402913752 *                     enter_t = tmax[2] 
    1403013753 *                     tmax[2] += tdelta[2]             # <<<<<<<<<<<<<< 
     
    1403913762    /*else*/ { 
    1404013763 
    14041       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":370 
     13764      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":377 
    1404213765 *                     tmax[2] += tdelta[2] 
    1404313766 *             else: 
    1404413767 *                 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, 
    1404613779 *                                        rgba, tf) 
    1404713780 */ 
    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, 
    1405413786 *                                        rgba, tf)             # <<<<<<<<<<<<<< 
    1405513787 *                     cur_ind[1] += step[1] 
    14056  *                     dt = fmin(tmax[1], 1.0) - enter_t 
    14057  */ 
    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":373 
    14061  *                     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, 
    1406213794 *                                        rgba, tf) 
    1406313795 *                     cur_ind[1] += step[1]             # <<<<<<<<<<<<<< 
    14064  *                     dt = fmin(tmax[1], 1.0) - enter_t 
    1406513796 *                     enter_t = tmax[1] 
     13797 *                     tmax[1] += tdelta[1] 
    1406613798 */ 
    1406713799        (__pyx_v_cur_ind[1]) += (__pyx_v_step[1]); 
    1406813800 
    14069         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":374 
     13801        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":382 
    1407013802 *                                        rgba, tf) 
    1407113803 *                     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":375 
    14079  *                     cur_ind[1] += step[1] 
    14080  *                     dt = fmin(tmax[1], 1.0) - enter_t 
    1408113804 *                     enter_t = tmax[1]             # <<<<<<<<<<<<<< 
    1408213805 *                     tmax[1] += tdelta[1] 
     
    1408513808        __pyx_v_enter_t = (__pyx_v_tmax[1]); 
    1408613809 
    14087         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":376 
    14088  *                     dt = fmin(tmax[1], 1.0) - enter_t 
     13810        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":383 
     13811 *                     cur_ind[1] += step[1] 
    1408913812 *                     enter_t = tmax[1] 
    1409013813 *                     tmax[1] += tdelta[1]             # <<<<<<<<<<<<<< 
    1409113814 *                 else: 
    14092  *                     self.sample_values(v_pos, v_dir, enter_t, tmax[2], cur_ind, 
     13815 *                     exit_t = fmin(tmax[2], 1.0) 
    1409313816 */ 
    1409413817        (__pyx_v_tmax[1]) += (__pyx_v_tdelta[1]); 
     
    1409713820      /*else*/ { 
    1409813821 
    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] 
    1410013824 *                 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, 
    1410213834 *                                        rgba, tf)             # <<<<<<<<<<<<<< 
    1410313835 *                     cur_ind[2] += step[2] 
    14104  *                     dt = fmin(tmax[2], 1.0) - enter_t 
    14105  */ 
    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":380 
    14109  *                     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, 
    1411013842 *                                        rgba, tf) 
    1411113843 *                     cur_ind[2] += step[2]             # <<<<<<<<<<<<<< 
    14112  *                     dt = fmin(tmax[2], 1.0) - enter_t 
    1411313844 *                     enter_t = tmax[2] 
     13845 *                     tmax[2] += tdelta[2] 
    1411413846 */ 
    1411513847        (__pyx_v_cur_ind[2]) += (__pyx_v_step[2]); 
    1411613848 
    14117         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":381 
     13849        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":389 
    1411813850 *                                        rgba, tf) 
    1411913851 *                     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":382 
    14127  *                     cur_ind[2] += step[2] 
    14128  *                     dt = fmin(tmax[2], 1.0) - enter_t 
    1412913852 *                     enter_t = tmax[2]             # <<<<<<<<<<<<<< 
    1413013853 *                     tmax[2] += tdelta[2] 
     
    1413313856        __pyx_v_enter_t = (__pyx_v_tmax[2]); 
    1413413857 
    14135         /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":383 
    14136  *                     dt = fmin(tmax[2], 1.0) - enter_t 
     13858        /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":390 
     13859 *                     cur_ind[2] += step[2] 
    1413713860 *                     enter_t = tmax[2] 
    1413813861 *                     tmax[2] += tdelta[2]             # <<<<<<<<<<<<<< 
     
    1414613869    __pyx_L20:; 
    1414713870 
    14148     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":384 
     13871    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":391 
    1414913872 *                     enter_t = tmax[2] 
    1415013873 *                     tmax[2] += tdelta[2] 
     
    1415313876 *  
    1415413877 */ 
    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) { 
    1415713880      goto __pyx_L18_break; 
    1415813881      goto __pyx_L23; 
     
    1416213885  __pyx_L18_break:; 
    1416313886 
    14164   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":385 
     13887  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":392 
    1416513888 *                     tmax[2] += tdelta[2] 
    1416613889 *             if enter_t > 1.0: break 
    1416713890 *         return hit             # <<<<<<<<<<<<<< 
    1416813891 *  
    14169  *     cdef void sample_values(self, 
     13892 *     @cython.boundscheck(False) 
    1417013893 */ 
    1417113894  __pyx_r = __pyx_v_hit; 
    1417213895  goto __pyx_L0; 
    1417313896 
    14174   __pyx_r = 0; 
    14175   goto __pyx_L0; 
    14176   __pyx_L1_error:; 
    14177   __Pyx_WriteUnraisable("yt.amr_utils.PartitionedGrid.integrate_ray"); 
    1417813897  __pyx_r = 0; 
    1417913898  __pyx_L0:; 
     
    1418413903} 
    1418513904 
    14186 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":387 
    14187  *         return hit 
    14188  *  
     13905/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":396 
     13906 *     @cython.boundscheck(False) 
     13907 *     @cython.wraparound(False) 
    1418913908 *     cdef void sample_values(self,             # <<<<<<<<<<<<<< 
    1419013909 *                             np.float64_t v_pos[3], 
     
    1419313912 
    1419413913static  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]; 
    1419613914  __pyx_t_5numpy_float64_t __pyx_v_dp[3]; 
     13915  __pyx_t_5numpy_float64_t __pyx_v_temp; 
    1419713916  __pyx_t_5numpy_float64_t __pyx_v_dt; 
    14198   __pyx_t_5numpy_float64_t __pyx_v_t; 
    1419913917  __pyx_t_5numpy_float64_t __pyx_v_dv; 
    1420013918  __pyx_t_5numpy_float64_t __pyx_v_grad[3]; 
     13919  __pyx_t_5numpy_float64_t __pyx_v_ds[3]; 
    1420113920  int __pyx_v_dti; 
    1420213921  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; 
    1420513924  int __pyx_t_3; 
    1420613925  int __pyx_t_4; 
    14207   double __pyx_t_5; 
     13926  int __pyx_t_5; 
    1420813927  int __pyx_t_6; 
    1420913928  __Pyx_RefNannySetupContext("sample_values"); 
     
    1421113930  __Pyx_INCREF((PyObject *)__pyx_v_tf); 
    1421213931 
    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             # <<<<<<<<<<<<<< 
    1421513936 *         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 
    1422913945 *         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): 
    1423313994 *             for i in range(3): 
    1423413995 */ 
    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):             # <<<<<<<<<<<<<< 
    1424314003 *             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): 
    1425114013 *             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":402 
    14259  *             t = enter_t + dt * dti 
     14014 *                 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): 
    1426014022 *             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]             # <<<<<<<<<<<<<< 
    1426314024 *             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 
    1426814031 *             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] 
    1427114041 *             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 
    1427214044 *             if tf.use_light == 1: 
    1427314045 */ 
    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             # <<<<<<<<<<<<<< 
    1428714060 *             if tf.use_light == 1: 
    1428814061 *                 eval_gradient(self.dims, ci, dp, self.data, grad) 
    1428914062 */ 
    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 
    1429514071 *             if tf.use_light == 1:             # <<<<<<<<<<<<<< 
    1429614072 *                 eval_gradient(self.dims, ci, dp, self.data, grad) 
    1429714073 *             tf.eval_transfer(dt, dv, rgba, grad) 
    1429814074 */ 
    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":406 
    14303  *             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 
    1430414080 *             if tf.use_light == 1: 
    1430514081 *                 eval_gradient(self.dims, ci, dp, self.data, grad)             # <<<<<<<<<<<<<< 
     
    1430814084 */ 
    1430914085      eval_gradient(__pyx_v_self->dims, __pyx_v_ci, __pyx_v_dp, __pyx_v_self->data, __pyx_v_grad); 
    14310       goto __pyx_L7; 
    14311     } 
    14312     __pyx_L7:; 
    14313  
    14314     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":407 
     14086      goto __pyx_L10; 
     14087    } 
     14088    __pyx_L10:; 
     14089 
     14090    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":422 
    1431514091 *             if tf.use_light == 1: 
    1431614092 *                 eval_gradient(self.dims, ci, dp, self.data, grad) 
     
    1432014096 */ 
    1432114097    ((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 
    1432814101  __Pyx_DECREF((PyObject *)__pyx_v_self); 
    1432914102  __Pyx_DECREF((PyObject *)__pyx_v_tf); 
     
    1433114104} 
    1433214105 
    14333 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":417 
     14106/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":432 
    1433414107 *     @cython.boundscheck(False) 
    1433514108 *     @cython.wraparound(False) 
     
    1437214145      if (likely(values[1])) kw_args--; 
    1437314146      else { 
    14374         __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 417; __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;} 
    1437514148      } 
    1437614149      case  2: 
     
    1437814151      if (likely(values[2])) kw_args--; 
    1437914152      else { 
    14380         __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 417; __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;} 
    1438114154      } 
    1438214155    } 
    1438314156    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 = 417; __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;} 
    1438514158    } 
    1438614159    __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 = 417; __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 = 417; __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;} 
    1438914162  } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { 
    1439014163    goto __pyx_L5_argtuple_error; 
    1439114164  } else { 
    1439214165    __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 = 417; __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 = 417; __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;} 
    1439514168  } 
    1439614169  goto __pyx_L4_argument_unpacking_done; 
    1439714170  __pyx_L5_argtuple_error:; 
    14398   __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 417; __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;} 
    1439914172  __pyx_L3_error:; 
    1440014173  __Pyx_AddTraceback("yt.amr_utils.GridFace.__init__"); 
     
    1440414177  __Pyx_INCREF(__pyx_v_grid); 
    1440514178 
    14406   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":418 
     14179  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":433 
    1440714180 *     @cython.wraparound(False) 
    1440814181 *     def __init__(self, grid, int direction, int left): 
     
    1441314186  ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->direction = __pyx_v_direction; 
    1441414187 
    14415   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":419 
     14188  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":434 
    1441614189 *     def __init__(self, grid, int direction, int left): 
    1441714190 *         self.direction = direction 
     
    1442314196  if (__pyx_t_1) { 
    1442414197 
    14425     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":420 
     14198    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":435 
    1442614199 *         self.direction = direction 
    1442714200 *         if left == 1: 
     
    1443014203 *             self.coord = grid.RightEdge[direction] 
    1443114204 */ 
    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 = 420; __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;} 
    1443314206    __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 = 420; __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;} 
    1443514208    __Pyx_GOTREF(__pyx_t_3); 
    1443614209    __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 = 420; __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;} 
    1443814211    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 
    1443914212    ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->coord = __pyx_t_4; 
     
    1444214215  /*else*/ { 
    1444314216 
    14444     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":422 
     14217    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":437 
    1444514218 *             self.coord = grid.LeftEdge[direction] 
    1444614219 *         else: 
     
    1444914222 *         for i in range(3): 
    1445014223 */ 
    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 = 422; __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;} 
    1445214225    __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 = 422; __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;} 
    1445414227    __Pyx_GOTREF(__pyx_t_2); 
    1445514228    __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 = 422; __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;} 
    1445714230    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1445814231    ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->coord = __pyx_t_4; 
     
    1446014233  __pyx_L6:; 
    1446114234 
    14462   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":424 
     14235  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":439 
    1446314236 *             self.coord = grid.RightEdge[direction] 
    1446414237 *         cdef int i 
     
    1447014243    __pyx_v_i = __pyx_t_5; 
    1447114244 
    14472     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":425 
     14245    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":440 
    1447314246 *         cdef int i 
    1447414247 *         for i in range(3): 
     
    1447714250 *         self.left_edge[direction] = self.right_edge[direction] = self.coord 
    1447814251 */ 
    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 = 425; __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;} 
    1448014253    __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 = 425; __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;} 
    1448214255    __Pyx_GOTREF(__pyx_t_3); 
    1448314256    __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 = 425; __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;} 
    1448514258    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 
    1448614259    (((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->left_edge[__pyx_v_i]) = __pyx_t_4; 
    1448714260 
    14488     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":426 
     14261    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":441 
    1448914262 *         for i in range(3): 
    1449014263 *             self.left_edge[i] = grid.LeftEdge[i] 
     
    1449314266 *  
    1449414267 */ 
    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 = 426; __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;} 
    1449614269    __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 = 426; __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;} 
    1449814271    __Pyx_GOTREF(__pyx_t_2); 
    1449914272    __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 = 426; __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;} 
    1450114274    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1450214275    (((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_v_self)->right_edge[__pyx_v_i]) = __pyx_t_4; 
    1450314276  } 
    1450414277 
    14505   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":427 
     14278  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":442 
    1450614279 *             self.left_edge[i] = grid.LeftEdge[i] 
    1450714280 *             self.right_edge[i] = grid.RightEdge[i] 
     
    1452714300} 
    1452814301 
    14529 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":431 
     14302/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":446 
    1453014303 *     @cython.boundscheck(False) 
    1453114304 *     @cython.wraparound(False) 
     
    1454314316  __Pyx_INCREF((PyObject *)__pyx_v_self); 
    1454414317 
    14545   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":433 
     14318  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":448 
    1454614319 *     cdef int proj_overlap(self, np.float64_t *left_edge, np.float64_t *right_edge): 
    1454714320 *         cdef int xax, yax 
     
    1455014323 *         if left_edge[xax] >= self.right_edge[xax]: return 0 
    1455114324 */ 
    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":434 
     14325  __pyx_v_xax = ((__pyx_v_self->direction + 1) % 3); 
     14326 
     14327  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":449 
    1455514328 *         cdef int xax, yax 
    1455614329 *         xax = (self.direction + 1) % 3 
     
    1455914332 *         if right_edge[xax] <= self.left_edge[xax]: return 0 
    1456014333 */ 
    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":435 
     14334  __pyx_v_yax = ((__pyx_v_self->direction + 2) % 3); 
     14335 
     14336  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":450 
    1456414337 *         xax = (self.direction + 1) % 3 
    1456514338 *         yax = (self.direction + 2) % 3 
     
    1457614349  __pyx_L3:; 
    1457714350 
    14578   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":436 
     14351  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":451 
    1457914352 *         yax = (self.direction + 2) % 3 
    1458014353 *         if left_edge[xax] >= self.right_edge[xax]: return 0 
     
    1459114364  __pyx_L4:; 
    1459214365 
    14593   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":437 
     14366  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":452 
    1459414367 *         if left_edge[xax] >= self.right_edge[xax]: return 0 
    1459514368 *         if right_edge[xax] <= self.left_edge[xax]: return 0 
     
    1460614379  __pyx_L5:; 
    1460714380 
    14608   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":438 
     14381  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":453 
    1460914382 *         if right_edge[xax] <= self.left_edge[xax]: return 0 
    1461014383 *         if left_edge[yax] >= self.right_edge[yax]: return 0 
     
    1462114394  __pyx_L6:; 
    1462214395 
    14623   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":439 
     14396  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":454 
    1462414397 *         if left_edge[yax] >= self.right_edge[yax]: return 0 
    1462514398 *         if right_edge[yax] <= self.left_edge[yax]: return 0 
     
    1463814411} 
    1463914412 
    14640 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":447 
     14413/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":462 
    1464114414 *     cdef public object RightEdge 
    1464214415 *     cdef public object subgrid_faces 
     
    1468414457      if (likely(values[1])) kw_args--; 
    1468514458      else { 
    14686         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 447; __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;} 
    1468714460      } 
    1468814461      case  2: 
     
    1469014463      if (likely(values[2])) kw_args--; 
    1469114464      else { 
    14692         __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, 2); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 447; __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;} 
    1469314466      } 
    1469414467    } 
    1469514468    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 = 447; __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;} 
    1469714470    } 
    1469814471    __pyx_v_left_edge = ((PyArrayObject *)values[0]); 
     
    1470814481  goto __pyx_L4_argument_unpacking_done; 
    1470914482  __pyx_L5_argtuple_error:; 
    14710   __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 447; __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;} 
    1471114484  __pyx_L3_error:; 
    1471214485  __Pyx_AddTraceback("yt.amr_utils.ProtoPrism.__cinit__"); 
     
    1471914492  __pyx_bstruct_left_edge.buf = NULL; 
    1472014493  __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 = 447; __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 = 448; __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;} 
    1472314496  { 
    1472414497    __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 = 447; __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;} 
    1472614499  } 
    1472714500  __pyx_bstride_0_left_edge = __pyx_bstruct_left_edge.strides[0]; 
     
    1472914502  { 
    1473014503    __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 = 447; __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;} 
    1473214505  } 
    1473314506  __pyx_bstride_0_right_edge = __pyx_bstruct_right_edge.strides[0]; 
    1473414507  __pyx_bshape_0_right_edge = __pyx_bstruct_right_edge.shape[0]; 
    1473514508 
    14736   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":451 
     14509  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":466 
    1473714510 *                        subgrid_faces): 
    1473814511 *         cdef int i 
     
    1474714520  ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge = ((PyObject *)__pyx_v_left_edge); 
    1474814521 
    14749   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":452 
     14522  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":467 
    1475014523 *         cdef int i 
    1475114524 *         self.LeftEdge = left_edge 
     
    1476014533  ((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge = ((PyObject *)__pyx_v_right_edge); 
    1476114534 
    14762   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":453 
     14535  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":468 
    1476314536 *         self.LeftEdge = left_edge 
    1476414537 *         self.RightEdge = right_edge 
     
    1477014543    __pyx_v_i = __pyx_t_1; 
    1477114544 
    14772     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":454 
     14545    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":469 
    1477314546 *         self.RightEdge = right_edge 
    1477414547 *         for i in range(3): 
     
    1478514558    if (unlikely(__pyx_t_3 != -1)) { 
    1478614559      __Pyx_RaiseBufferIndexError(__pyx_t_3); 
    14787       {__pyx_filename = __pyx_f[2]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
     14560      {__pyx_filename = __pyx_f[2]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
    1478814561    } 
    1478914562    (((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)); 
    1479014563 
    14791     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":455 
     14564    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":470 
    1479214565 *         for i in range(3): 
    1479314566 *             self.left_edge[i] = left_edge[i] 
     
    1480414577    if (unlikely(__pyx_t_4 != -1)) { 
    1480514578      __Pyx_RaiseBufferIndexError(__pyx_t_4); 
    14806       {__pyx_filename = __pyx_f[2]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
     14579      {__pyx_filename = __pyx_f[2]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
    1480714580    } 
    1480814581    (((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)); 
    1480914582  } 
    1481014583 
    14811   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":456 
     14584  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":471 
    1481214585 *             self.left_edge[i] = left_edge[i] 
    1481314586 *             self.right_edge[i] = right_edge[i] 
     
    1484514618} 
    1484614619 
    14847 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":460 
     14620/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":475 
    1484814621 *     @cython.boundscheck(False) 
    1484914622 *     @cython.wraparound(False) 
     
    1489714670    } 
    1489814671    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 = 460; __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;} 
    1490014673    } 
    1490114674    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 = 460; __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;} 
    1490314676    } else { 
    1490414677      __pyx_v_direction = ((int)0); 
    1490514678    } 
    1490614679    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 = 460; __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;} 
    1490814681    } else { 
    1490914682      __pyx_v_stack = ((int)0); 
     
    1491314686    __pyx_v_stack = ((int)0); 
    1491414687    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 = 460; __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 = 460; __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;} 
    1491714690      case  0: break; 
    1491814691      default: goto __pyx_L5_argtuple_error; 
     
    1492114694  goto __pyx_L4_argument_unpacking_done; 
    1492214695  __pyx_L5_argtuple_error:; 
    14923   __Pyx_RaiseArgtupleInvalid("sweep", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 460; __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;} 
    1492414697  __pyx_L3_error:; 
    1492514698  __Pyx_AddTraceback("yt.amr_utils.ProtoPrism.sweep"); 
     
    1493314706  __pyx_v_RC = Py_None; __Pyx_INCREF(Py_None); 
    1493414707 
    14935   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":464 
     14708  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":479 
    1493614709 *         cdef GridFace face 
    1493714710 *         cdef np.float64_t proto_split[3] 
     
    1494514718  } 
    1494614719 
    14947   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":465 
     14720  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":480 
    1494814721 *         cdef np.float64_t proto_split[3] 
    1494914722 *         for i in range(3): proto_split[i] = self.right_edge[i] 
     
    1495214725 *             if proto_split[direction] <= self.left_edge[direction]: 
    1495314726 */ 
    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 = 465; __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;} 
    1495514728  __Pyx_GOTREF(__pyx_t_3); 
    1495614729  if (PyList_CheckExact(__pyx_t_3) || PyTuple_CheckExact(__pyx_t_3)) { 
    1495714730    __pyx_t_2 = 0; __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); 
    1495814731  } 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 = 465; __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;} 
    1496014733    __Pyx_GOTREF(__pyx_t_4); 
    1496114734  } 
     
    1497114744      __pyx_t_3 = PyIter_Next(__pyx_t_4); 
    1497214745      if (!__pyx_t_3) { 
    14973         if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 465; __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;} 
    1497414747        break; 
    1497514748      } 
    1497614749      __Pyx_GOTREF(__pyx_t_3); 
    1497714750    } 
    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 = 465; __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;} 
    1497914752    __Pyx_DECREF(((PyObject *)__pyx_v_face)); 
    1498014753    __pyx_v_face = ((struct __pyx_obj_2yt_9amr_utils_GridFace *)__pyx_t_3); 
    1498114754    __pyx_t_3 = 0; 
    1498214755 
    14983     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":466 
     14756    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":481 
    1498414757 *         for i in range(3): proto_split[i] = self.right_edge[i] 
    1498514758 *         for face in self.subgrid_faces[direction]: 
     
    1499014763    (__pyx_v_proto_split[__pyx_v_direction]) = __pyx_v_face->coord; 
    1499114764 
    14992     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":467 
     14765    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":482 
    1499314766 *         for face in self.subgrid_faces[direction]: 
    1499414767 *             proto_split[direction] = face.coord 
     
    1500014773    if (__pyx_t_5) { 
    1500114774 
    15002       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":468 
     14775      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":483 
    1500314776 *             proto_split[direction] = face.coord 
    1500414777 *             if proto_split[direction] <= self.left_edge[direction]: 
     
    1501214785    __pyx_L10:; 
    1501314786 
    15014     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":469 
     14787    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":484 
    1501514788 *             if proto_split[direction] <= self.left_edge[direction]: 
    1501614789 *                 continue 
     
    1502214795    if (__pyx_t_5) { 
    1502314796 
    15024       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":470 
     14797      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":485 
    1502514798 *                 continue 
    1502614799 *             if proto_split[direction] == self.right_edge[direction]: 
     
    1503214805      if (__pyx_t_5) { 
    1503314806        __Pyx_XDECREF(__pyx_r); 
    15034         __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 470; __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;} 
    1503514808        __Pyx_GOTREF(((PyObject *)__pyx_t_3)); 
    1503614809        __Pyx_INCREF(__pyx_v_self); 
     
    1504514818      __pyx_L12:; 
    1504614819 
    15047       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":471 
     14820      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":486 
    1504814821 *             if proto_split[direction] == self.right_edge[direction]: 
    1504914822 *                 if stack == 2: return [self] 
     
    1505314826 */ 
    1505414827      __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 = 471; __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;} 
    1505614829      __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;} 
    1505814831      __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 = 471; __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;} 
    1506014833      __Pyx_GOTREF(__pyx_t_7); 
    15061       __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 471; __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;} 
    1506214835      __Pyx_GOTREF(__pyx_t_8); 
    1506314836      PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); 
     
    1506714840      __pyx_t_6 = 0; 
    1506814841      __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 = 471; __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;} 
    1507014843      __Pyx_GOTREF(__pyx_t_7); 
    1507114844      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 
     
    1507914852    __pyx_L11:; 
    1508014853 
    15081     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":472 
     14854    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":487 
    1508214855 *                 if stack == 2: return [self] 
    1508314856 *                 return self.sweep((direction + 1) % 3, stack + 1) 
     
    1508914862    if (__pyx_t_5) { 
    1509014863 
    15091       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":473 
     14864      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":488 
    1509214865 *                 return self.sweep((direction + 1) % 3, stack + 1) 
    1509314866 *             if face.proj_overlap(self.left_edge, proto_split) == 1: 
     
    1509614869 *                 RC = right.sweep(direction) 
    1509714870 */ 
    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 = 473; __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;} 
    1509914872      __Pyx_GOTREF(__pyx_t_7); 
    1510014873      if (PyTuple_CheckExact(__pyx_t_7) && likely(PyTuple_GET_SIZE(__pyx_t_7) == 2)) { 
     
    1511014883        __pyx_t_3 = 0; 
    1511114884      } else { 
    15112         __pyx_t_6 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 473; __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;} 
    1511314886        __Pyx_GOTREF(__pyx_t_6); 
    1511414887        __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 = 473; __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;} 
    1511614889        __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 = 473; __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;} 
    1511814891        __Pyx_GOTREF(__pyx_t_3); 
    15119         if (__Pyx_EndUnpack(__pyx_t_6) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 473; __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;} 
    1512014893        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; 
    1512114894        __Pyx_DECREF(__pyx_v_left); 
     
    1512714900      } 
    1512814901 
    15129       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":474 
     14902      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":489 
    1513014903 *             if face.proj_overlap(self.left_edge, proto_split) == 1: 
    1513114904 *                 left, right = self.split(proto_split, direction) 
     
    1513414907 *                 return LC + RC 
    1513514908 */ 
    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 = 474; __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;} 
    1513714910      __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;} 
    1513914912      __Pyx_GOTREF(__pyx_t_3); 
    15140       __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 474; __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;} 
    1514114914      __Pyx_GOTREF(__pyx_t_8); 
    1514214915      PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3); 
    1514314916      __Pyx_GIVEREF(__pyx_t_3); 
    1514414917      __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 = 474; __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;} 
    1514614919      __Pyx_GOTREF(__pyx_t_3); 
    1514714920      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; 
     
    1515114924      __pyx_t_3 = 0; 
    1515214925 
    15153       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":475 
     14926      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":490 
    1515414927 *                 left, right = self.split(proto_split, direction) 
    1515514928 *                 LC = left.sweep((direction + 1) % 3) 
     
    1515814931 *         raise RuntimeError 
    1515914932 */ 
    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 = 475; __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;} 
    1516114934      __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 = 475; __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;} 
    1516314936      __Pyx_GOTREF(__pyx_t_8); 
    15164       __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 475; __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;} 
    1516514938      __Pyx_GOTREF(__pyx_t_7); 
    1516614939      PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); 
    1516714940      __Pyx_GIVEREF(__pyx_t_8); 
    1516814941      __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 = 475; __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;} 
    1517014943      __Pyx_GOTREF(__pyx_t_8); 
    1517114944      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; 
     
    1517514948      __pyx_t_8 = 0; 
    1517614949 
    15177       /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":476 
     14950      /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":491 
    1517814951 *                 LC = left.sweep((direction + 1) % 3) 
    1517914952 *                 RC = right.sweep(direction) 
     
    1518314956 */ 
    1518414957      __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 = 476; __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;} 
    1518614959      __Pyx_GOTREF(__pyx_t_8); 
    1518714960      __pyx_r = __pyx_t_8; 
     
    1519614969  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; 
    1519714970 
    15198   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":477 
     14971  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":492 
    1519914972 *                 RC = right.sweep(direction) 
    1520014973 *                 return LC + RC 
     
    1520414977 */ 
    1520514978  __Pyx_Raise(__pyx_builtin_RuntimeError, 0, 0); 
    15206   {__pyx_filename = __pyx_f[2]; __pyx_lineno = 477; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
     14979  {__pyx_filename = __pyx_f[2]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
    1520714980 
    1520814981  __pyx_r = Py_None; __Pyx_INCREF(Py_None); 
     
    1522815001} 
    1522915002 
    15230 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":481 
     15003/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":496 
    1523115004 *     @cython.boundscheck(False) 
    1523215005 *     @cython.wraparound(False) 
     
    1525115024  __pyx_v_right = Py_None; __Pyx_INCREF(Py_None); 
    1525215025 
    15253   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":483 
     15026  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":498 
    1525415027 *     cdef object split(self, np.float64_t *sp, int direction): 
    1525515028 *         cdef int i 
     
    1525815031 *  
    1525915032 */ 
    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 = 483; __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;} 
    1526115034  __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 = 483; __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;} 
    1526315036  __Pyx_GOTREF(__pyx_t_2); 
    1526415037  __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 = 483; __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;} 
    1526615039  __pyx_v_split_left = ((PyArrayObject *)__pyx_t_2); 
    1526715040  __pyx_t_2 = 0; 
    1526815041 
    15269   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":484 
     15042  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":499 
    1527015043 *         cdef int i 
    1527115044 *         cdef np.ndarray split_left = self.LeftEdge.copy() 
     
    1527415047 *         for i in range(3): split_left[i] = self.right_edge[i] 
    1527515048 */ 
    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 = 484; __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;} 
    1527715050  __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 = 484; __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;} 
    1527915052  __Pyx_GOTREF(__pyx_t_1); 
    1528015053  __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 = 484; __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;} 
    1528215055  __pyx_v_split_right = ((PyArrayObject *)__pyx_t_1); 
    1528315056  __pyx_t_1 = 0; 
    1528415057 
    15285   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":486 
     15058  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":501 
    1528615059 *         cdef np.ndarray split_right = self.RightEdge.copy() 
    1528715060 *  
     
    1529215065  for (__pyx_t_3 = 0; __pyx_t_3 < 3; __pyx_t_3+=1) { 
    1529315066    __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;} 
    1529515068    __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;} 
    1529715070    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1529815071  } 
    1529915072 
    15300   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":487 
     15073  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":502 
    1530115074 *  
    1530215075 *         for i in range(3): split_left[i] = self.right_edge[i] 
     
    1530515078 *  
    1530615079 */ 
    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;} 
    1530815081  __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;} 
    1531015083  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
    1531115084 
    15312   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":488 
     15085  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":503 
    1531315086 *         for i in range(3): split_left[i] = self.right_edge[i] 
    1531415087 *         split_left[direction] = sp[direction] 
     
    1531715090 *         for i in range(3): split_right[i] = self.left_edge[i] 
    1531815091 */ 
    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;} 
    1532015093  __Pyx_GOTREF(__pyx_t_1); 
    1532115094  __Pyx_INCREF(__pyx_v_self->LeftEdge); 
     
    1532815101  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_self->subgrid_faces); 
    1532915102  __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;} 
    1533115104  __Pyx_GOTREF(__pyx_t_2); 
    1533215105  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; 
     
    1533515108  __pyx_t_2 = 0; 
    1533615109 
    15337   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":490 
     15110  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":505 
    1533815111 *         left = ProtoPrism(self.LeftEdge, split_left, self.subgrid_faces) 
    1533915112 *  
     
    1534415117  for (__pyx_t_3 = 0; __pyx_t_3 < 3; __pyx_t_3+=1) { 
    1534515118    __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;} 
    1534715120    __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;} 
    1534915122    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1535015123  } 
    1535115124 
    15352   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":491 
     15125  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":506 
    1535315126 *  
    1535415127 *         for i in range(3): split_right[i] = self.left_edge[i] 
     
    1535715130 *  
    1535815131 */ 
    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;} 
    1536015133  __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;} 
    1536215135  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
    1536315136 
    15364   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":492 
     15137  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":507 
    1536515138 *         for i in range(3): split_right[i] = self.left_edge[i] 
    1536615139 *         split_right[direction] = sp[direction] 
     
    1536915142 *         return (left, right) 
    1537015143 */ 
    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;} 
    1537215145  __Pyx_GOTREF(__pyx_t_2); 
    1537315146  __Pyx_INCREF(((PyObject *)__pyx_v_split_right)); 
     
    1538015153  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_self->subgrid_faces); 
    1538115154  __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;} 
    1538315156  __Pyx_GOTREF(__pyx_t_1); 
    1538415157  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; 
     
    1538715160  __pyx_t_1 = 0; 
    1538815161 
    15389   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":494 
     15162  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":509 
    1539015163 *         right = ProtoPrism(split_right, self.RightEdge, self.subgrid_faces) 
    1539115164 *  
     
    1539515168 */ 
    1539615169  __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;} 
    1539815171  __Pyx_GOTREF(__pyx_t_1); 
    1539915172  __Pyx_INCREF(__pyx_v_left); 
     
    1542515198} 
    1542615199 
    15427 /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":498 
     15200/* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":513 
    1542815201 *     @cython.boundscheck(False) 
    1542915202 *     @cython.wraparound(False) 
     
    1547215245  int __pyx_t_1; 
    1547315246  int __pyx_t_2; 
    15474   __pyx_t_5numpy_float64_t __pyx_t_3; 
     15247  int __pyx_t_3; 
    1547515248  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; 
    1547915252  PyObject *__pyx_t_8 = NULL; 
    1548015253  PyObject *__pyx_t_9 = NULL; 
    15481   PyObject *__pyx_t_10 = NULL; 
    15482   PyObject *__pyx_t_11 = NULL; 
     15254  int __pyx_t_10; 
     15255  PyArrayObject *__pyx_t_11 = NULL; 
    1548315256  int __pyx_t_12; 
    15484   PyArrayObject *__pyx_t_13 = NULL; 
    15485   int __pyx_t_14; 
     15257  PyObject *__pyx_t_13 = NULL; 
     15258  PyArrayObject *__pyx_t_14 = NULL; 
    1548615259  PyObject *__pyx_t_15 = NULL; 
    15487   PyArrayObject *__pyx_t_16 = NULL; 
     15260  PyObject *__pyx_t_16 = NULL; 
    1548815261  PyObject *__pyx_t_17 = NULL; 
    15489   PyObject *__pyx_t_18 = NULL; 
    15490   PyObject *__pyx_t_19 = NULL; 
    1549115262  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}; 
    1549215263  __Pyx_RefNannySetupContext("get_brick"); 
     
    1551115282      if (likely(values[1])) kw_args--; 
    1551215283      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;} 
    1551415285      } 
    1551515286      case  2: 
     
    1551715288      if (likely(values[2])) kw_args--; 
    1551815289      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;} 
    1552015291      } 
    1552115292      case  3: 
     
    1552315294      if (likely(values[3])) kw_args--; 
    1552415295      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;} 
    1552615297      } 
    1552715298    } 
    1552815299    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;} 
    1553015301    } 
    1553115302    __pyx_v_grid_left_edge = ((PyArrayObject *)values[0]); 
     
    1554315314  goto __pyx_L4_argument_unpacking_done; 
    1554415315  __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;} 
    1554615317  __pyx_L3_error:; 
    1554715318  __Pyx_AddTraceback("yt.amr_utils.ProtoPrism.get_brick"); 
     
    1556015331  __pyx_bstruct_grid_dds.buf = NULL; 
    1556115332  __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 = 500; __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;} 
    1556515336  { 
    1556615337    __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;} 
    1556815339  } 
    1556915340  __pyx_bstride_0_grid_left_edge = __pyx_bstruct_grid_left_edge.strides[0]; 
     
    1557115342  { 
    1557215343    __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;} 
    1557415345  } 
    1557515346  __pyx_bstride_0_grid_dds = __pyx_bstruct_grid_dds.strides[0]; 
     
    1557715348  { 
    1557815349    __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;} 
    1558015351  } 
    1558115352  __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]; 
    1558215353  __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]; 
    1558315354 
    15584   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":506 
     15355  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":521 
    1558515356 *         cdef PartitionedGrid PG 
    1558615357 *         cdef int li[3], ri[3], idims[3], i 
     
    1559215363    __pyx_v_i = __pyx_t_1; 
    1559315364 
    15594     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":507 
     15365    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":522 
    1559515366 *         cdef int li[3], ri[3], idims[3], i 
    1559615367 *         for i in range(3): 
     
    1560015371 */ 
    1560115372    __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 
    1561215377 *         for i in range(3): 
    1561315378 *             li[i] = lrint((self.left_edge[i] - grid_left_edge[i])/grid_dds[i]) 
     
    1561615381 *         if child_mask[li[0], li[1], li[2]] == 0: return [] 
    1561715382 */ 
    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 
    1562915388 *             li[i] = lrint((self.left_edge[i] - grid_left_edge[i])/grid_dds[i]) 
    1563015389 *             ri[i] = lrint((self.right_edge[i] - grid_left_edge[i])/grid_dds[i]) 
     
    1563615395  } 
    1563715396 
    15638   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":510 
     15397  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":525 
    1563915398 *             ri[i] = lrint((self.right_edge[i] - grid_left_edge[i])/grid_dds[i]) 
    1564015399 *             idims[i] = ri[i] - li[i] 
     
    1564315402 *         for i in range(3): 
    1564415403 */ 
    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;} 
    1564615409  __Pyx_GOTREF(__pyx_t_8); 
    15647   __pyx_t_9 = PyInt_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;} 
    1564815411  __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_GOTREF(__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_GOTREF(__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); 
    1565415417  __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; 
    1565915420  __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) { 
    1567115430    __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; 
    1567615435    goto __pyx_L0; 
    1567715436    goto __pyx_L8; 
     
    1567915438  __pyx_L8:; 
    1568015439 
    15681   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":511 
     15440  /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":526 
    1568215441 *             idims[i] = ri[i] - li[i] 
    1568315442 *         if child_mask[li[0], li[1], li[2]] == 0: return [] 
     
    1568615445 *             dims[i] = idims[i] 
    1568715446 */ 
    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); 
    1569515454  __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); 
    1569715456  __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_13 = ((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); 
    1570815467  { 
    1570915468    __Pyx_BufFmt_StackElem __pyx_stack[1]; 
    15710     if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_bstruct_dims, (PyObject*)__pyx_t_13, &__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)) { 
    1571115470      __pyx_v_dims = ((PyArrayObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_bstruct_dims.buf = NULL; 
    15712       {__pyx_filename = __pyx_f[2]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
     15471      {__pyx_filename = __pyx_f[2]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
    1571315472    } else {__pyx_bstride_0_dims = __pyx_bstruct_dims.strides[0]; 
    1571415473      __pyx_bshape_0_dims = __pyx_bstruct_dims.shape[0]; 
    1571515474    } 
    1571615475  } 
    15717   __pyx_t_13 = 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":512 
     15476  __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 
    1572215481 *         if child_mask[li[0], li[1], li[2]] == 0: return [] 
    1572315482 *         cdef np.ndarray[np.int64_t, ndim=1] dims = np.empty(3, dtype='int64') 
     
    1572915488    __pyx_v_i = __pyx_t_1; 
    1573015489 
    15731     /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":513 
     15490    /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":528 
    1573215491 *         cdef np.ndarray[np.int64_t, ndim=1] dims = np.empty(3, dtype='int64') 
    1573315492 *         for i in range(3): 
     
    1573615495 *         new_data = data[li[0]:ri[0]+1,li[1]:ri[1]+1,li[2]:ri[2]+1].copy() 
    1573715496 */ 
    15738     __pyx_t_14 = __pyx_v_i; 
    15739     *__Pyx_BufPtrStrided1d(__pyx_t_5numpy_int64_t *, __pyx_bstruct_dims.buf, __pyx_t_14, __pyx_bstride_0_dims) = (__pyx_v_idims[__pyx_v_i]); 
    15740   } 
    15741  
    15742   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":515 
     15497    __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 
    1574315502 *             dims[i] = idims[i] 
    1574415503 *         cdef np.ndarray[np.float64_t, ndim=3] new_data 
     
    1574715506 *         return [PG] 
    1574815507 */ 
    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;} 
    1575015521  __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); 
    1579515554  { 
    1579615555    __Pyx_BufFmt_StackElem __pyx_stack[1]; 
    1579715556    __Pyx_SafeReleaseBuffer(&__pyx_bstruct_new_data); 
    15798     __pyx_t_1 = __Pyx_GetBufferAndValidate(&__pyx_bstruct_new_data, (PyObject*)__pyx_t_16, &__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); 
    1579915558    if (unlikely(__pyx_t_1 < 0)) { 
    15800       PyErr_Fetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19); 
     15559      PyErr_Fetch(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17); 
    1580115560      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_17); 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); 
    1580315562        __Pyx_RaiseBufferFallbackError(); 
    1580415563      } else { 
    15805         PyErr_Restore(__pyx_t_17, __pyx_t_18, __pyx_t_19); 
     15564        PyErr_Restore(__pyx_t_15, __pyx_t_16, __pyx_t_17); 
    1580615565      } 
    1580715566    } 
    1580815567    __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]; 
    1580915568    __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 = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
    15811   } 
    15812   __pyx_t_16 = 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; 
    1581315572  __Pyx_DECREF(((PyObject *)__pyx_v_new_data)); 
    15814   __pyx_v_new_data = ((PyArrayObject *)__pyx_t_15); 
    15815   __pyx_t_15 = 0; 
    15816  
    15817   /* "/Users/matthewturk/Development/yt/trunk/yt/_amr_utils/VolumeIntegrator.pyx":516 
     15573  __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 
    1581815577 *         cdef np.ndarray[np.float64_t, ndim=3] new_data 
    1581915578 *         new_data = data[li[0]:ri[0]+1,li[1]:ri[1]+1,li[2]:ri[2]+1].copy() 
     
    1582115580 *         return [PG] 
    1582215581 */ 
    15823   __pyx_t_15 = 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_15); 
     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); 
    1582515584  __Pyx_INCREF(((PyObject *)__pyx_v_new_data)); 
    15826   PyTuple_SET_ITEM(__pyx_t_15, 0, ((PyObject *)__pyx_v_new_data)); 
     15585  PyTuple_SET_ITEM(__pyx_t_13, 0, ((PyObject *)__pyx_v_new_data)); 
    1582715586  __Pyx_GIVEREF(((PyObject *)__pyx_v_new_data)); 
    1582815587  __Pyx_INCREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge); 
    15829   PyTuple_SET_ITEM(__pyx_t_15, 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); 
    1583015589  __Pyx_GIVEREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->LeftEdge); 
    1583115590  __Pyx_INCREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge); 
    15832   PyTuple_SET_ITEM(__pyx_t_15, 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); 
    1583315592  __Pyx_GIVEREF(((struct __pyx_obj_2yt_9amr_utils_ProtoPrism *)__pyx_v_self)->RightEdge); 
    1583415593  __Pyx_INCREF(((PyObject *)__pyx_v_dims)); 
    15835   PyTuple_SET_ITEM(__pyx_t_15, 3, ((PyObject *)__pyx_v_dims)); 
     15594  PyTuple_SET_ITEM(__pyx_t_13, 3, ((PyObject *)__pyx_v_dims)); 
    1583615595  __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_15); __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; 
    1584015599  __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":517 
     15600  __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 
    1584515604 *         new_data = data[li[0]:ri[0]+1,li[1]:ri[1]+1,li[2]:ri[2]+1].copy() 
    1584615605 *         PG = PartitionedGrid(new_data, self.LeftEdge, self.RightEdge, dims) 
     
    1584815607 */ 
    1584915608  __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)); 
    1585215611  __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)); 
    1585415613  __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; 
    1585715616  goto __pyx_L0; 
    1585815617 
     
    1586015619  goto __pyx_L0; 
    1586115620  __pyx_L1_error:; 
     15621  __Pyx_XDECREF(__pyx_t_6); 
     15622  __Pyx_XDECREF(__pyx_t_7); 
    1586215623  __Pyx_XDECREF(__pyx_t_8); 
    1586315624  __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); 
    1586715626  { PyObject *__pyx_type, *__pyx_value, *__pyx_tb; 
    1586815627    __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb); 
     
    1621015969 *     le0 = leftEdge[0] 
    1621115970 */ 
    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   } 
    1621615971  __pyx_v_fact = (1.0 / __pyx_v_cellSize); 
    1621715972 
     
    2133021085  {&__pyx_n_s__i_i, __pyx_k__i_i, sizeof(__pyx_k__i_i), 0, 0, 1, 1}, 
    2133121086  {&__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}, 
    2133221089  {&__pyx_n_s__image, __pyx_k__image, sizeof(__pyx_k__image), 0, 0, 1, 1}, 
    2133321090  {&__pyx_n_s__imax, __pyx_k__imax, sizeof(__pyx_k__imax), 0, 0, 1, 1}, 
     
    2133821095  {&__pyx_n_s__int8, __pyx_k__int8, sizeof(__pyx_k__int8), 0, 0, 1, 1}, 
    2133921096  {&__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}, 
    2134021098  {&__pyx_n_s__istride, __pyx_k__istride, sizeof(__pyx_k__istride), 0, 0, 1, 1}, 
    2134121099  {&__pyx_n_s__itemsize, __pyx_k__itemsize, sizeof(__pyx_k__itemsize), 0, 0, 1, 1}, 
     
    2143121189  __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;} 
    2143221190  #endif 
    21433   __pyx_builtin_RuntimeError = __Pyx_GetName(__pyx_b, __pyx_n_s__RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 477; __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;} 
    2143421192  __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;} 
    2143521193  return 0; 
     
    2152821286  *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_VectorPlane.copy_back = (void(*)(void))__pyx_f_2yt_9amr_utils_11VectorPlane_copy_back; 
    2152921287  #endif 
    21530   if (PyType_Ready(&__pyx_type_2yt_9amr_utils_VectorPlane) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 150; __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 = 150; __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 = 150; __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;} 
    2153321291  __pyx_ptype_2yt_9amr_utils_VectorPlane = &__pyx_type_2yt_9amr_utils_VectorPlane; 
    2153421292  __pyx_vtabptr_2yt_9amr_utils_TransferFunctionProxy = &__pyx_vtable_2yt_9amr_utils_TransferFunctionProxy; 
    2153521293  #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; 
    2153621295  __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; 
    2153721296  #else 
     21297  *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_TransferFunctionProxy.interpolate = (void(*)(void))__pyx_f_2yt_9amr_utils_21TransferFunctionProxy_interpolate; 
    2153821298  *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_TransferFunctionProxy.eval_transfer = (void(*)(void))__pyx_f_2yt_9amr_utils_21TransferFunctionProxy_eval_transfer; 
    2153921299  #endif 
    21540   if (PyType_Ready(&__pyx_type_2yt_9amr_utils_TransferFunctionProxy) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 74; __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 = 74; __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 = 74; __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;} 
    2154321303  __pyx_ptype_2yt_9amr_utils_TransferFunctionProxy = &__pyx_type_2yt_9amr_utils_TransferFunctionProxy; 
    2154421304  __pyx_vtabptr_2yt_9amr_utils_PartitionedGrid = &__pyx_vtable_2yt_9amr_utils_PartitionedGrid; 
     
    2155221312  *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_PartitionedGrid.sample_values = (void(*)(void))__pyx_f_2yt_9amr_utils_15PartitionedGrid_sample_values; 
    2155321313  #endif 
    21554   if (PyType_Ready(&__pyx_type_2yt_9amr_utils_PartitionedGrid) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 210; __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 = 210; __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 = 210; __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;} 
    2155721317  __pyx_ptype_2yt_9amr_utils_PartitionedGrid = &__pyx_type_2yt_9amr_utils_PartitionedGrid; 
    2155821318  __pyx_vtabptr_2yt_9amr_utils_GridFace = &__pyx_vtable_2yt_9amr_utils_GridFace; 
     
    2156221322  *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_GridFace.proj_overlap = (void(*)(void))__pyx_f_2yt_9amr_utils_8GridFace_proj_overlap; 
    2156321323  #endif 
    21564   if (PyType_Ready(&__pyx_type_2yt_9amr_utils_GridFace) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 409; __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 = 409; __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 = 409; __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;} 
    2156721327  __pyx_ptype_2yt_9amr_utils_GridFace = &__pyx_type_2yt_9amr_utils_GridFace; 
    2156821328  __pyx_vtabptr_2yt_9amr_utils_ProtoPrism = &__pyx_vtable_2yt_9amr_utils_ProtoPrism; 
     
    2157221332  *(void(**)(void))&__pyx_vtable_2yt_9amr_utils_ProtoPrism.split = (void(*)(void))__pyx_f_2yt_9amr_utils_10ProtoPrism_split; 
    2157321333  #endif 
    21574   if (PyType_Ready(&__pyx_type_2yt_9amr_utils_ProtoPrism) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 441; __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 = 441; __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 = 441; __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;} 
    2157721337  __pyx_ptype_2yt_9amr_utils_ProtoPrism = &__pyx_type_2yt_9amr_utils_ProtoPrism; 
    2157821338  /*--- Type import code ---*/ 
     
    2237822138} 
    2237922139 
    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 } 
    2238622140static void __Pyx_RaiseBufferIndexError(int axis) { 
    2238722141  PyErr_Format(PyExc_IndexError, 
     
    2337823132        Py_DECREF(tmp); 
    2337923133        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 < 3 
    23388     ctx = PyString_FromString(name); 
    23389     #else 
    23390     ctx = PyUnicode_FromString(name); 
    23391     #endif 
    23392     __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); 
    2339823134    } 
    2339923135}