bw2io.strategies.ecospold1_allocation
#
Module Contents#
Functions#
Take a dataset, which has multiple outputs, and return a list of allocated datasets. |
|
|
Convert integer activity codes to strings and delete integer codes from exchanges (they can't be believed). |
|
Delete integer codes completely from extracted ecospold1 datasets |
|
This strategy allocates multioutput datasets to new datasets. |
|
- bw2io.strategies.ecospold1_allocation.allocate_exchanges(ds)[source]#
Take a dataset, which has multiple outputs, and return a list of allocated datasets.
The allocation data structure looks like:
{ 'exchanges': [integer codes for biosphere flows, ...], 'fraction': out of 100, 'reference': integer codes }
We assume that the allocation factor for each coproduct is always 100 percent.
- bw2io.strategies.ecospold1_allocation.clean_integer_codes(data)[source]#
Convert integer activity codes to strings and delete integer codes from exchanges (they can’t be believed).
- bw2io.strategies.ecospold1_allocation.delete_integer_codes(data)[source]#
Delete integer codes completely from extracted ecospold1 datasets
- bw2io.strategies.ecospold1_allocation.es1_allocate_multioutput(data)[source]#
This strategy allocates multioutput datasets to new datasets.
This deletes the multioutput dataset, breaking any existing linking. This shouldn’t be a concern, as you shouldn’t link to a multioutput dataset in any case.
Note that multiple allocations for the same product and input will result in undefined behavior.