Module metadata

Module metadata 

Source
Expand description

Write run, build and platform metadata to a TOML file.

This module collects information about the current run (model path and start time), build information provided by the built script, and basic platform details. The aggregated metadata is written as metadata.toml in the output directory.

Modulesยง

built_info ๐Ÿ”’
Build-time information included by the build script (via the built crate).

Structsยง

Metadata ๐Ÿ”’
Top-level metadata structure serialized to TOML.
PlatformMetadata ๐Ÿ”’
Information about the platform on which MUSE is running.
ProgramMetadata ๐Ÿ”’
RunMetadata ๐Ÿ”’
Information about the model run

Constantsยง

METADATA_FILE_NAME ๐Ÿ”’
The output filename used for metadata.

Functionsยง

get_git_hash ๐Ÿ”’
Return a short git commit hash for the build, or "unknown" when not available. If the source tree was dirty at build time, -dirty is appended.
write_metadata
Write metadata to metadata.toml in the given output directory.