def compress_array(array, compress):
   if len(array) % compress != 0:
      print( 'Warning compress must be integer divisor of array length')
      return None

   temp = np.resize(array, (len(array)/compress, compress))
   return np.sum(temp, 1)/compress
Updates the user profile's image to the given image url
dataset/ETHPy150Open xraypy/xraylarch/plugins/xrf/xrf_bgr.py/compress_array--crossover with--dataset/ETHPy150Open tschellenbach/Django-facebook/django_facebook/connect.py/_update_image