parameters: (total_tilepixel_length, user_width, user_height)
docstring: Calculate the center info of the tile.
  
    Args:
      total_tilepixel_length: Total tile length.
      user_width: The user-requested width of the image.
      user_height: The user-requested height of the image.
docstring_summary: Calculate the center info of the tile.
docstring_tokens: Calculate the center info of the tile .
function: def _DumpCenterInfo(total_tilepixel_length, user_width, user_height):
    """Calculate the center info of the tile.
  
    Args:
      total_tilepixel_length: Total tile length.
      user_width: The user-requested width of the image.
      user_height: The user-requested height of the image.
    """
    # debugging - should be in the center of the tiles
    c_tilex = total_tilepixel_length / 2
    c_tiley = total_tilepixel_length / 2
    c_tilew = user_width / 2
    c_tileh = user_height / 2
    centered_tilepixel_rect = geom.Rect(c_tilex - c_tilew, c_tiley - c_tileh,
                                        c_tilex + c_tilew, c_tiley + c_tileh)
    logger.debug("Centered pixels would be: ~ %s",
                 str(centered_tilepixel_rect))
  
    centered_rect = centered_tilepixel_rect / _TILE_PIXEL_SIZE
    logger.debug("Centered tile rect would be: ~ %s", str(centered_rect))
    centered_rect.x1 += 1
    centered_rect.y1 += 1
    logger.debug("High-exclusive centered tile rect would be: ~ %s",
                 str(centered_rect))
function_tokens: def _DumpCenterInfo ( total_tilepixel_length , user_width , user_height ) : # debugging - should be in the center of the tiles c_tilex = total_tilepixel_length / 2 c_tiley = total_tilepixel_length / 2 c_tilew = user_width / 2 c_tileh = user_height / 2 centered_tilepixel_rect = geom . Rect ( c_tilex - c_tilew , c_tiley - c_tileh , c_tilex + c_tilew , c_tiley + c_tileh ) logger . debug ( "Centered pixels would be: ~ %s" , str ( centered_tilepixel_rect ) ) centered_rect = centered_tilepixel_rect / _TILE_PIXEL_SIZE logger . debug ( "Centered tile rect would be: ~ %s" , str ( centered_rect ) ) centered_rect . x1 += 1 centered_rect . y1 += 1 logger . debug ( "High-exclusive centered tile rect would be: ~ %s" , str ( centered_rect ) )