corelay.base

Module containing basic Sprincl classes, such as Param

Classes

Param

A single parameter, which instances are to be tracked by a MetaTracker.

class corelay.base.Param(dtype, default=None, mandatory=False, positional=False, identifier=False)[source]

Bases: Slot

A single parameter, which instances are to be tracked by a MetaTracker.

dtype

Allowed type(s) of the parameter.

Type

type or tuple of type

default

Default parameter value, should be an instance of (one of) dtype.

Type

dtype

positional

Optional, whether the Parameter can also be set as a positional Parameter.

Type

bool

identifier

Optional, whether the Parameter should be used to identify a Processor.

Type

bool