lc_archive
Interim classes with useful building blocks
LcArchive
Bases: BasicArchive
A class meant for storing and managing LCA data collections. Adds processes as a supported entity type (contrast with LcForeground which adds fragments).
To support processes, adds inventory, background, and configure interfaces.
load_from_dict(j, _check=True, jsonfile=None)
Archives loaded from JSON files are considered static.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
j |
|
required | |
_check |
|
True
|
Returns:
Type | Description |
---|---|
|
serialize(exchanges=False, characterizations=False, values=False, domesticate=False)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exchanges |
|
False
|
|
characterizations |
|
False
|
|
values |
|
False
|
|
domesticate |
[False] if True, omit entities' origins so that they will appear to be from the new archive upon serialization |
False
|
Returns:
Type | Description |
---|---|
|