IORegistry

class flexops.core.registration.IORegistry(io_variables: list[IOVariableRecord] = <factory>, parameters: list[ParameterRecord] = <factory>, power: list[PowerRecord] = <factory>, fuel: list[FuelUsageRecord] = <factory>, intensity_basis: dict[~flexcore.nomenclature.PowerKind, str]=<factory>, relations: list[RelationRecord] = <factory>, boundary: list[BoundaryRecord] = <factory>, applied_surrogates: dict[str, ~typing.Any]=<factory>)

Container for everything a unit block registers.

io_variables

Registered process IO variables.

Type:

list[flexops.core.registration.IOVariableRecord]

parameters

Registered design/regression parameters.

Type:

list[flexops.core.registration.ParameterRecord]

power

Registered power-draw variables (kW).

Type:

list[flexops.core.registration.PowerRecord]

fuel

Registered fuel-usage variables (volumetric).

Type:

list[flexops.core.registration.FuelUsageRecord]

intensity_basis

Per PowerKind, the local name of the product flow the unit’s constant-intensity relation meters against. FlexParameterize reads it to regress the intensity against the same stream the model divides by; without it a unit with several flows would have to be guessed at.

Type:

dict[flexcore.nomenclature.PowerKind, str]

relations

Registered swappable relationships (see RelationRecord).

Type:

list[flexops.core.registration.RelationRecord]

boundary

Registered boundary flows (feeds and products).

Type:

list[flexops.core.registration.BoundaryRecord]

applied_surrogates

Per relation name, the surrogate applied without a swap (a constant_intensity that sets the unit’s own intensity), so its spec can be read back; swapped surrogates live on their RelationRecord instead.

Type:

dict[str, Any]

is_empty() → bool

Return True if nothing has been registered on this block.