示例#1
0
def final(adict):
    """
    Runs everything. Updates README.txt

    adict - the automation dictionary
        keys:
            version - the current project version
            generated_dirs - a dictionaries containing the directories
                                 produced by `automate_everything.py`
            tif_path - relative path to raw_tif files
    """
    reset_system.delete_directories(adict["generated_dirs"])
    how_many_apps, images_per_app = prepare_png_images(adict)
    create_web_app_population(adict, how_many_apps, images_per_app)
    print "\n    Finished, now updating readme...\n"
    curr_dir = os.path.dirname(t_d.resolve_relative_path(__file__, "scripts"))
    update_readme.update_readme(curr_dir)
    return None
示例#2
0
def discover_how_many_tifs(tif_dir):
    """Discovers how many tiffs are intended to be processed."""
    dir_list = os.listdir(t_d.resolve_relative_path(__file__, tif_dir))
    number_images_to_process = len(dir_list)
    return number_images_to_process