original_docstring:  
      Returns 2D image with the size of view_lut and contents of coordinate mappings for vectorized solution.
      
      Parameters:
          image_vec (): image values
          voxel_coords (): image indices
          view_lut (): image shape
      
docstring: Returns 2D image with the size of view_lut and contents of coordinate mappings for vectorized solution.
docstring_tokens: Returns 2D image with the size of view_lut and contents of coordinate mappings for vectorized solution .
code: def map_to_grid(image_vec, voxel_coords, view_lut):
      ''' 
      Returns 2D image with the size of view_lut and contents of coordinate mappings for vectorized solution.
      
      Parameters:
          image_vec (): image values
          voxel_coords (): image indices
          view_lut (): image shape
      '''
      #initialize the image to nans
      new_image = np.empty(view_lut.shape)
      new_image[:] = np.nan
      for i in range(image_vec.shape[0]):
          new_image[voxel_coords[i,0], voxel_coords[i,1]] = image_vec[i]
      return new_image
code_tokens: def map_to_grid ( image_vec , voxel_coords , view_lut ) : new_image = np . empty ( view_lut . shape ) new_image [ : ] = np . nan for i in range ( image_vec . shape [ 0 ] ) : new_image [ voxel_coords [ i , 0 ] , voxel_coords [ i , 1 ] ] = image_vec [ i ] return new_image
short_docstring: Returns 2D image with the size of view_lut and contents of coordinate mappings for vectorized solution.
short_docstring_tokens: Returns 2D image with the size of view_lut and contents of coordinate mappings for vectorized solution .
comment: ''' 
      Returns 2D image with the size of view_lut and contents of coordinate mappings for vectorized solution.
      
      Parameters:
          image_vec (): image values
          voxel_coords (): image indices
          view_lut (): image shape
      '''$SEP$#initialize the image to nans