

def render_index_maps(s3, runs):
    ' Render index maps and upload them to S3.\n    '
    dirname = mkdtemp(prefix='index-maps-')
    try:
        good_runs = [run for run in runs if (run.state or {
            
        }).get('processed')]
        good_sources = _prepare_render_sources(good_runs, dirname)
        _render_and_upload_maps(s3, good_sources, '/', dirname)
    finally:
        rmtree(dirname)

dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py render_index_maps/original