Skip to content

mecfs_bio.figures.key_scripts.regenerate_figures

Use the build system to generate the figure assets, then copy them to the figure directory. All figure-generating tasks are forced to rerun. This script is useful when there have been updates to plotting code, and we wish to propagate these updates to all tasks.

Functions:

  • regenerate_figures

    Use the build system to generate the figure assets, then copy them to the figure directory.

Attributes:

FIGURE_EXPORTER module-attribute

FIGURE_EXPORTER = FigureExporter(
    runner=_runner_func, tracer=_imo_hasher_128
)

regenerate_figures

regenerate_figures(tasks: list[Task])

Use the build system to generate the figure assets, then copy them to the figure directory.

Source code in mecfs_bio/figures/key_scripts/regenerate_figures.py
def regenerate_figures(tasks: list[Task]):
    """
    Use the build system to generate the figure assets, then copy them to the figure directory.
    """
    FIGURE_EXPORTER.export(tasks, fig_dir=FIGURE_DIRECTORY)