Skip to main content

Module types

Module types 

Source
Expand description

Types: what flows between ops and what is stored (standard §1).

One type system for both: a port says table; the result it produced says table in parquet. This merges kitchen-pipeline’s port types and kitchen-artifacts’ kinds (zarr/ome, table/parquet), which named the same things at two moments (from_kind reads the old kinds).

  • Shared types have bare names, defined by the standard (shared).
  • App types are namespaced, <namespace>:<name> (dspk:sorting, lucem:cells).
  • An output of type T feeds an input of type T, or of any. There is no inheritance.

Structs§

Axis
An axis of an array type, and the kind of unit along it. The values (a recording’s 30 kHz, a slide’s 0.25 µm per pixel) come from each result’s metadata, never from the type.
Format
How a stored result is encoded: ome-zarr, nwb-zarr, parquet, csv, svg, png.
Type
A type’s name: image, signal, or an app’s dspk:sorting. any accepts every type.
TypeDescription
A type, described once: what an agent reads to write an op that takes it correctly (standard §1.5).

Functions§

from_kind
The type and format of an old artifact kind (family/format, kitchen-artifacts), as the contract names them; None for a kind no type covers.
shared
The shared types (standard §1.3).