Skip to content

mecfs_bio.figures.key_scripts.validate_manifest

Check that the figure manifest committed to git stays a subset of the figures produced by ALL_FIGURE_TASKS.

Run as a standalone script (e.g. in CI) to catch drift between the two sources of truth before it reaches the documentation build.

Functions:

Attributes:

logger module-attribute

logger = get_logger()

main

main() -> None
Source code in mecfs_bio/figures/key_scripts/validate_manifest.py
def main() -> None:
    manifest = FigureManifest.load(FIGURE_MANIFEST_PATH)
    validate_manifest_subset_of_tasks(
        manifest=manifest, tasks=ALL_FIGURE_TASKS, fig_dir=FIGURE_DIRECTORY
    )
    logger.info(
        f"Manifest {FIGURE_MANIFEST_PATH} is a subset of figures produced by "
        f"ALL_FIGURE_TASKS ({len(manifest.figures)} entries checked)."
    )