def compute_average(imlist):
    
    # open first image and make into array of type float
    averageim = array(Image.open(imlist[0]), 'f') 

    skipped = 0
    
    for imname in imlist[1:]:
        try: 
            averageim += array(Image.open(imname))
        except:
            print imname + "...skipped"  
            skipped += 1

    averageim /= (len(imlist) - skipped)
    
    # return average as uint8
    return array(averageim, 'uint8')
Gets a fixed ip from the pool.
dataset/ETHPy150Open jesolem/PCV/PCV/tools/imtools.py/compute_average--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/manager.py/VlanManager.allocate_fixed_ip