Ingredient

class openmsimodel.entity.base.ingredient.Ingredient(name: str, *, notes: str | None = None)

Bases: BaseElement

Base element for ingredients.

property spec: IngredientSpec

The underlying process spec.

property run: IngredientRun

The underlying process run.

classmethod from_spec_or_run(name: str, *, notes: str | None = None, spec: IngredientSpec = None, run: IngredientRun = None) Process

Instantiate a Process from a spec or run with appropriate validation.

Note that the spec’s template will be set to the class template, and the run’s spec will be set to this spec.