Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Get the parameters of a data set

Returns the local parameters defined for the specified root entity:

  • Processes and impact categories: Returns a list of Parameter objects.

  • Product systems: Returns a list of ParameterRedef objects (parameter redefinitions).

JSON-RPCRESTParametersReturns
data/get/parametersGET data/{type}/{id}/parameters@type, @idList[Parameter] or List[ParameterRedef]

Try it

You can edit and execute the example below. Just make sure an openLCA IPC server is running on port 8080:

// You need to change the ID of the product system for which you want to get the
// possible parameters. You can also change the type to Process or
// ImpactCategory to get defined parameters of these types.
const v = await call("data/get/parameters", {
  "@type": "ProductSystem",
  "@id": "eb00c506-35d1-4046-8018-f70573d67e60",
});
console.log(v);

Python IPC

import olca_ipc as ipc
import olca_schema as o

client = ipc.Client()
params = client.get_parameters(
    o.ProductSystem, "0db1eda6-a34e-4c82-b06b-19f27c92495a"
)
for p in params:
    print(f"{p.name}: {p.value}")
# param1: 42
# param2: 21
# ...