def _iterate_coronal_slices(array, limits=None):
 shape = array.shape[2]
 for ind in range(shape):
  if (limits and (ind not in limits)):
   continue
  (yield (ind, np.flipud(np.rot90(array[:, :, ind]))))

def _iterate_coronal_slices ( array , limits = None ) : shape = array . shape [ 2 ] for ind in range ( shape ) : if ( limits and ( ind not in limits ) ) : continue ( yield ( ind , np . flipud ( np . rot90 ( array [ : , : , ind ] ) ) ) )
iterate coronal slices .