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
Parameterobjects. -
Product systems: Returns a list of
ParameterRedefobjects (parameter redefinitions).
| JSON-RPC | REST | Parameters | Returns |
|---|---|---|---|
data/get/parameters | GET data/{type}/{id}/parameters | @type, @id | List[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
# ...