Skip to content

mecfs_bio.figures.key_scripts.prune_orphan_figures

Remove figure-manifest entries that no task in ALL_FIGURE_TASKS produces.

Refuses to prune when the docs still reference the orphan. Run as a standalone tool, or rely on publish_figures which calls the same function between generate_new_figures and push_figures.

Functions:

main

main() -> None
Source code in mecfs_bio/figures/key_scripts/prune_orphan_figures.py
def main() -> None:
    prune_orphan_figures(
        manifest_path=FIGURE_MANIFEST_PATH,
        docs_dir=DOCS_DIRECTORY,
        fig_dir=FIGURE_DIRECTORY,
        figure_tasks=ALL_FIGURE_TASKS,
    )