KernelDB.resolve_metakernel()
The on-disk path of the metakernel ref names (#45).
Usage
KernelDB.resolve_metakernel(
ref,
mission=None,
)ref can be a path that exists, a registry filename, a registry mk_path, the source_url the metakernel was fetched from, or a version-stripped base name (juice_crema_5_2.tm for juice_crema_5_2_v473_20260819_001.tm). Names are case-insensitive, with or without .tm. A path that exists is returned as it is. Anything else goes through registry_row.
Every command that reads a metakernel resolves through this method, so a name that works for check works for show and rewrite too (#41).
Parameters
ref: str | Path-
The metakernel reference.
mission: str | None = None- Narrow the registry to one mission (case-insensitive prefix match).
Returns
Path- The metakernel file on disk.
Raises
MetakernelNotTracked-
Nothing matches, or the matched file is gone.
AmbiguousMetakernel- Several registry rows match. The method never picks the first of several.
Examples
>>> db.resolve_metakernel("juice_crema_5_2.tm")PosixPath(‘…/JUICE/mk/juice_crema_5_2_v473_20260819_001.tm’)