dapper.utils package

Submodules

dapper.utils.elm_utils module

dapper.utils.find_duplicates module

dapper.utils.find_duplicates.func_blocks(path)
Parameters:

path (Path)

dapper.utils.find_duplicates.norm_source(src)
Parameters:

src (str)

Return type:

str

dapper.utils.gee_utils module

dapper.utils.utils module

dapper.utils.utils.display_image_gh_notebook(image_file, alt='default')

This creates an image to embed into Jupyter notebooks since live links are not displaying on Github, presumably due to the fact that the repo is private. Since it will remain private for the near future, I imagine this function will get plenty of use.

Provide the image name as it appears in the notebooks/notebook_data/images directory.

dapper.utils.utils.get_git_commit_hash()

Attempts to fetch the latest commit hash for the dapper repo. This is a bit hacky and not robust. It looks in the current working directory and works its way up directories until it finds a .git/ folder.

dapper.utils.utils.make_directory(path, delete_all_contents=False)
dapper.utils.utils.remove_directory_contents(path, remove_directory=False)

Module contents