Skip to content

mecfs_bio.analysis.runner.default_runner

Code configuring the default runner, which is used to run the main standard analysis

Some of the default runner options can bet overridden by adding a yaml file at _DEFAULT_RUNNER_CONFIG_PATH.yaml

Functions:

Attributes:

ASSET_ROOT module-attribute

ASSET_ROOT = Path('assets') / 'base_asset_store'

DEFAULT_RUNNER module-attribute

DEFAULT_RUNNER = SimpleRunner(
    tracer=_imo_hasher_128,
    info_store=_get_info_store_path(),
    asset_root=_get_asset_root_path(),
)

IMO_128_INFO_STORE_PATH module-attribute

IMO_128_INFO_STORE_PATH = (
    Path("build_system")
    / "verifying_trace_imo_xxh_128_info.yaml"
)

logger module-attribute

logger = get_logger(__name__)

load_runner_config cached

load_runner_config() -> dict | None
Source code in mecfs_bio/analysis/runner/default_runner.py
@functools.cache
def load_runner_config() -> dict | None:
    if not _DEFAULT_RUNNER_CONFIG_PATH.exists():
        logger.debug(
            f"No default runner config file found at {_DEFAULT_RUNNER_CONFIG_PATH}"
        )
        return None
    with open(_DEFAULT_RUNNER_CONFIG_PATH) as infile:
        config = yaml.load(infile, Loader=yaml.FullLoader)
        logger.debug(
            f"Loading default runner config from {_DEFAULT_RUNNER_CONFIG_PATH}"
        )
        logger.debug(f"config: \n {config}")
        return config