示例#1
0
文件: warmer.py 项目: fidlej/jakybyt
def createWarmPicture(analyses):
    bounds = locality.GEO_BOUNDS
    gridData = getGridData(analyses, IMAGE_SIZE, bounds)
    pixels = _getPixels(gridData)

    buffer = StringIO.StringIO()
    _createPng(buffer, IMAGE_SIZE, pixels, has_alpha=True)
    disk.storeAtomicData(OUTPUT_FILENAME, buffer.getvalue())
示例#2
0
文件: redate.py 项目: fidlej/jakybyt
def save(map, path):
    data = cPickle.dumps(map, protocol=2)
    disk.storeAtomicData(path, data)
示例#3
0
文件: storage.py 项目: fidlej/jakybyt
def _storeData(url, basename, data):
    path = _getStoragePath(url, basename)
    disk.storeAtomicData(path, data)