Brightway-Hestia bridge
bw_hestia_bridge is a library to interact with Hestia and create brightway databases from its data.
Installation
You can install bw_hestia_bridge via pip from PyPI:
$ pip install bw_hestia_bridge
Mapping Hestia cycles to the Brightway mental model
Hestia is not a linked network of unit processes, but detailed data on specific production systems. As they are agricultural, almost all of these systems have multiple outputs, and many of these outputs require further treatment. For example, in the pig system, there are three types of excreta produced, which go to deep bedding, which go to composting. Hestia doesn't seem to have a waste treatment for the final processed excreta.
Because these follow-on activities (Hestia calls them Transformations) are multi-input and multi-output, and because there is no guarantee that the respective ratios of these outputs align with the next stage inputs, we will do the following:
For each transformation, we create a new unit process. The reference product of this process will be the output with the highest mass.
For the other outputs, we will create proxy treatment activities. These proxies will handle any potential stoichiometric disparities.
If a transformation is a leaf node, i.e. it has inputs but no consumers for each outputs, we will create proxy consumers for each output other than the reference product.
We then go back to the original unit process, and add proxy consumers for each output which is not the reference product (i.e. marked "primary": true) or the reference product of a waste treatment.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, bw_hestia_bridge is free and open source software.
Issues
If you encounter any problems, please [file an issue] along with a detailed description.
Metadata
Release files for bw-hestia-bridge 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bw_hestia_bridge-0.3.1.tar.gz | 25.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bw_hestia_bridge-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.2 kB
Release files / bw_hestia_bridge-0.3.1.tar.gz
| Download URL | bw_hestia_bridge-0.3.1.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6da5a3353fd6a232446fcab01f0ac38bc7b425ac4b153a4fc17e8621e484d0ae
|
|
BLAKE2b-256 checksum How to use checksums |
57c0235ea95864144e908e1f893451b17f146d1f1b777cb8b5eb5ac68e535b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / bw_hestia_bridge-0.3.1-py3-none-any.whl
| Download URL | bw_hestia_bridge-0.3.1-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85464df30363ac4163128da622c4978cea6fae8676a1e94b8f7b37a49797d4b3
|
|
BLAKE2b-256 checksum How to use checksums |
7e7595d30064437ed8354f011c36925bce5dd57c208986520755a2fea21b26c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|