empyrean.KernelRecord

class KernelRecord(kind, provenance, path=None, sha256=None, bytes=None, name=None)[source]

Bases: object

One entry of the kernel-identity manifest a handle captured at construction. Names the provenance of each loaded data file — never any tuning rationale.

Only the fields the provenance variant supplies are populated; the rest are None (a FILE record carries path / sha256 / bytes; a BUILT_IN record carries name).

Methods

__init__(kind, provenance[, path, sha256, ...])

Attributes

bytes

Hashed file size in bytes (FILE only).

name

Human-readable model name (BUILT_IN only).

path

Absolute path the kernel was loaded from (FILE only).

sha256

Lowercase-hex SHA-256 of the file's bytes, 64 chars (FILE only).

kind

provenance

Parameters:
  • kind (KernelKind)

  • provenance (KernelProvenance)

  • path (str | None)

  • sha256 (str | None)

  • bytes (int | None)

  • name (str | None)

kind: KernelKind
provenance: KernelProvenance
path: str | None = None

Absolute path the kernel was loaded from (FILE only).

sha256: str | None = None

Lowercase-hex SHA-256 of the file’s bytes, 64 chars (FILE only).

bytes: int | None = None

Hashed file size in bytes (FILE only).

name: str | None = None

Human-readable model name (BUILT_IN only).