manifest
tit.opt.flex.manifest ¶
Flex-search output manifest (flex_meta.json).
Every flex-search run writes a manifest alongside its outputs. This is the single source of truth for run metadata -- downstream consumers (simulator, GUI) read this instead of parsing folder names.
Public API¶
write_manifest
Serialize run metadata to flex_meta.json.
read_manifest
Load and parse an existing manifest.
MANIFEST_FILENAME
Canonical filename ("flex_meta.json").
MANIFEST_VERSION
Integer schema version for forward compatibility.
See Also¶
tit.opt.flex.flex.run_flex_search : Writes a manifest after each run.
write_manifest ¶
write_manifest(output_folder: str, config: FlexConfig, result: FlexResult, label: str, pareto_data: dict | None = None) -> str
Write flex_meta.json to output_folder.
Parameters¶
output_folder : str Directory to write the manifest into. config : FlexConfig The configuration used for this run. result : FlexResult The result from the completed run. label : str Human-readable summary label for GUI display. pareto_data : dict or None Optional dict with Pareto sweep summary (for sweep runs).
Returns¶
str Absolute path to the written manifest file.
See Also¶
read_manifest : Load a previously written manifest.
Source code in tit/opt/flex/manifest.py
read_manifest ¶
Read flex_meta.json from a folder.
Parameters¶
output_folder : str Directory that should contain the manifest.
Returns¶
dict or None
Parsed manifest dict, or None if missing or invalid.
See Also¶
write_manifest : Create a new manifest.