bw2io.strategies
#
Submodules#
bw2io.strategies.biosphere
bw2io.strategies.csv
bw2io.strategies.ecospold1_allocation
bw2io.strategies.ecospold2
bw2io.strategies.exiobase
bw2io.strategies.generic
bw2io.strategies.json_ld
bw2io.strategies.json_ld_allocation
bw2io.strategies.json_ld_lcia
bw2io.strategies.lcia
bw2io.strategies.locations
bw2io.strategies.migrations
bw2io.strategies.parameterization
bw2io.strategies.simapro
bw2io.strategies.special
bw2io.strategies.useeio
Package Contents#
Functions#
|
Add 'code' field to characterization factors using 'activity_hash', if 'code' not already present. |
|
Add CPC classification to a dataset's classifications if it has only one |
|
Adds a database name to each dataset in a list of datasets. |
|
Assign only product as reference product. |
|
Assign the activity of a dataset to the 'activity' field of the production |
|
Change datasets with the string "electricity" in their name from units of MJ to kilowatt hour. |
|
Convert integer activity codes to strings and delete integer codes from exchanges. |
|
" |
|
Convert uncertainty types in a list of datasets to integers. |
|
Generate a composite code for each dataset in the given database using the |
|
Add an empty exchanges section to any dictionary in data that doesn't already have one. |
|
Remove any keys whose values are (Unknown). |
|
Convert string values to float or int where possible |
|
Convert boolean-like strings to booleans where possible. |
|
Convert tuple-like strings to actual tuples. |
|
Remove exchanges that are missing the "activityLinkId" attribute and have |
|
Remove ghost exchanges from the given database. A ghost exchange is one |
|
Delete integer codes from the input data dictionary. |
|
Remove None values from the 'synonyms' list of each dataset. |
|
Drop uncertainty fields that are falsey (e.g. '', None, False) but keep zero and NaN. |
|
Removes exchanges with specific temporary biosphere flow names from the |
|
Remove all exchanges in a given database that don't have inputs. |
|
Drop characterization factors (CFs) that don't have an 'input' attribute. |
|
Drop subcategories if they are in the following: |
|
Convert dataset categories to tuples in the given database, if they are not already tuples. |
|
This strategy allocates multioutput datasets to new datasets. |
|
If a multioutput process has one product with a non-zero amount, this |
|
Apply the 'fix-ecoinvent-flows-pre-35' migration to the given database if |
|
Change water flows with location information to generic water flows. |
|
Replace unreasonably high lognormal uncertainties in the given database |
|
Fix datasets with a single production exchange and zero allocation factors. |
|
Add units to activities in the given database from their reference products. |
|
" |
|
Perform allocation on multifunctional datasets in a given database according to the specified allocation method. |
|
Convert the units in the given database to their reference units and simplify the format. |
|
Fix process type information in the given database. |
|
Return a list of processes from raw data. |
|
Normalize exchange location strings to match those given in the process or the master metadata. |
|
Normalize the unit strings in the exchanges to match the Brightway units. |
|
Add exchange type labels to each exchange in a given life cycle inventory represented as a list of activities and their exchanges. |
|
Add metadata of the Life Cycle Impact Assessment (LCIA) method to the corresponding impact categories. |
|
Convert the Life Cycle Impact Assessment (LCIA) categories in the given data to a list. |
|
Reformat the impact factors of Life Cycle Impact Assessment (LCIA) methods as exchanges. |
|
Update the metadata of Life Cycle Impact Assessment (LCIA) methods in the given data. |
|
Update location information in the given database. |
|
Update exchange information in the given database to prepare for linking. |
|
Remove specified fields from the given database. |
|
Change metadata field names in the given database to match the Brightway schema. |
|
Link the exchanges in the given list of datasets to the specified |
|
Link internal technosphere inputs in the database by their composite code. |
|
Link objects in |
|
Link technosphere exchanges based on name, unit, and location. |
|
Link technosphere exchanges using the activity_hash function. |
|
Add CFs for biosphere flows with the same top-level categories as a given characterization. |
|
|
|
|
|
Normalize biosphere categories to ecoinvent 3.1 standard in the given database. |
|
Normalize biosphere flow names to ecoinvent 3.1 standard in the given database. |
|
Normalize biosphere categories in a dataset to the ecoinvent standard. |
|
Normalize biosphere flow names in a dataset to the ecoinvent standard. |
|
Normalize units in datasets and their exchanges. |
|
Remove most inputs to make the US EEIO have a structure more like other LCA databases |
|
Address cases where basic uncertainty and pedigree matrix are applied blindly, |
|
Iterate through datasets in the given database and remove unnamed parameters |
|
Remove products from US EEIO and collapse to only activities |
|
Iterate through datasets in the given database. Filter out coproducts with |
|
Filter out technosphere exchanges with zero amounts and no uncertainty from |
|
For lognormal distributions, choose the mean of the underlying normal distribution |
|
Set characterization factor (CF) types to 'biosphere' for compatibility with LCI strategies. |
|
Set the dataset code for each dataset in the given database using activity_hash. |
|
Ensure loc value is correct for lognormal uncertainty distributions. |
|
Allocate products in a SimaPro dataset by creating a separate dataset for each product. |
|
Split unlinked exchanges in |
|
Split a name like 'foo/CH U' into name and geo components in a dataset. |
|
Remove locations from biosphere exchanges in the given database, as biosphere exchanges are not geographically specific. |
|
Convert the "categories" fields in a given database and its exchanges to tuples. |
|
Update location names in ecoinvent database to fix inconsistencies and standardize naming. |
|
Update the UUIDs of specific biosphere flows with the category 'social' in older consequential datasets. |