Skip to main content

KernelDB.info_metakernel()

Show detailed information about a tracked metakernel, as skd show does (#47).

Usage

Source

KernelDB.info_metakernel(
    name,
    kernel_type=None,
    mission=None,
)

Displays the registry row and, for each kernel the metakernel lists, its status (in db or missing) with kernel type and size.

Parameters

name: str

Any form resolve_metakernel accepts, or the path of a .tm file that is not tracked. For an untracked file the row fields in the result are None and the file is read directly.

kernel_type: str | None = None

Limit the printed kernel table to one type. The counts stay whole.

mission: str | None = None
Narrow the registry lookup to one mission.

Returns

dict
With the keys filename, mission, source_url, acquired_at, mk_path, official, kernels, n_kernels, n_in_db and n_missing. kernels is a list of dicts with filename, kernel_type, size_bytes and status.

Raises

MetakernelNotTracked

name matches no registry row and is not a file on disk.

AmbiguousMetakernel
name matches several registry rows.