Parameter

In openLCA, parameters can be defined in different scopes: global, process, or LCIA method. The parameter name can be used in formulas and, thus, need to conform to a specific syntax. Within a scope the parameter name should be unique (otherwise the evaluation is not deterministic). There are two types of parameters in openLCA: input parameters and dependent parameters. An input parameter can have an optional uncertainty distribution but not a formula. A dependent parameter can (should) have a formula (where also other parameters can be used) but no uncertainty distribution.

Properties

@type

Inherited from Entity.@type

@id

Inherited from RefEntity.@id

name

Inherited from RefEntity.name

description

Inherited from RefEntity.description

category

Inherited from RootEntity.category

lastChange

Inherited from RootEntity.lastChange

tags

Inherited from RootEntity.tags

version

Inherited from RootEntity.version

formula

A mathematical expression to calculate the parameter value.

isInputParameter

Indicates whether the parameter is an input parameter (true) or a dependent/calculated parameter (false). A parameter can have a formula if it is not an input parameter.

parameterScope

The scope where the parameter is valid.

uncertainty

An uncertainty distribution of the parameter value. This is only valid for input parameters.

value

The parameter value.

Python class stub

The snippet below shows the names of the properties of the corresponding Python class of the olca-schema package. Note that this is not the full class definition but just shows the names of the class and its properties.


@dataclass
class Parameter:
  id: str
  category: str
  description: str
  formula: str
  is_input_parameter: bool
  last_change: str
  name: str
  parameter_scope: ParameterScope
  tags: List[str]
  uncertainty: Uncertainty
  value: float
  version: str