check()
skd check as data: the verdicts and their evidence.
Usage
check(
ref,
*,
mission=None,
hash_=False,
remote=False,
spice=False,
)Opens the database named in the config read-only, does one thing and closes it. This function calls KernelDB.check_report, whose documentation describes the verdicts and the result in full.
Parameters
ref: str | Path-
The metakernel: a path, or any reference resolve_metakernel accepts.
mission: str | None = None-
Mission name for preferred-mission resolution.
hash_: bool = False-
Verify SHA-256 hashes: recompute them for the
resolvesverdict and, with remote, compare them against the server. remote: bool = False-
Compare the local kernels with the server. This is the one network path.
spice: bool = False- With remote, also furnsh each local kernel in an isolated kernel pool and report what SPICE refuses to read. Needs SpiceyPy.
Returns
dict-
With the keys
mk_path,present,resolves,remote,newer,verdicts(three{bit, ok, line}rows) and exit_code, the sum of the failed verdicts’ bits.
Raises
MetakernelNotTracked-
ref matches nothing.
AmbiguousMetakernel- ref matches several registry rows.