bw2io.strategies.json_ld_allocation
#
Module Contents#
Functions#
|
|
|
|
|
|
|
|
|
|
|
Perform allocation on multifunctional datasets. |
Attributes#
- bw2io.strategies.json_ld_allocation.json_ld_allocate_datasets(db, preferred_allocation=None)[source]#
Perform allocation on multifunctional datasets.
Uses the
preferred_allocation
method if available; otherwise, the default method.Here are the allocation methods listed in the JSON-LD spec:
PHYSICAL_ALLOCATION
ECONOMIC_ALLOCATION
CAUSAL_ALLOCATION (Can be exchange-specific)
USE_DEFAULT_ALLOCATION
NO_ALLOCATION
We can’t use
@id
values as codes after allocation, so we combine the process id and the flow id for the allocated dataset.