mecfs_bio.figures.key_scripts.pull_figures
Make the local figure directory match the manifest committed to git.
For each entry path -> sha256 in the manifest, the corresponding blob is
fetched from the GitHub release (asset name = sha256) only if the local file
is missing or has a different hash. Files under the figure directory that are
not listed in the manifest are left alone unless prune=True is passed.
Functions:
-
pull_figures–Sync the local figure directory with the manifest by downloading any
Attributes:
pull_figures
pull_figures(
tag: str = FIGURE_GITHUB_RELEASE_TAG,
repo_name: str = GH_REPO_NAME,
fig_dir: Path = FIGURE_DIRECTORY,
manifest_path: Path = FIGURE_MANIFEST_PATH,
use_gh_cli: bool = True,
prune: bool = False,
max_workers: int = DEFAULT_DOWNLOAD_WORKERS,
)
Sync the local figure directory with the manifest by downloading any missing or out-of-date blobs from the GitHub release.
If prune is True, files under fig_dir that are not listed in the
manifest are deleted.