Import HESTIA data directly into Brightway
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bw_hestia_bridge-0.2.0.tar.gz
.
File metadata
- Download URL: bw_hestia_bridge-0.2.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc8ca1c7dfe710bb251e5c730389c55d2e6613bc34bff655b50ccc870b78bd6 |
|
MD5 | 8fec645fb502bbf8a544ee9c374e0e0a |
|
BLAKE2b-256 | 65f9ca4362fbda37c55145f1f57a258fc9f203f2d3e0f2403d2385ffe469a72a |
File details
Details for the file bw_hestia_bridge-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: bw_hestia_bridge-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1b70c2b1d1f4c2dc6aed3d83b5852ac385cab3663d2ee872f3255651210af6 |
|
MD5 | 891a05111d11db2633d9c9cfb5aa61d8 |
|
BLAKE2b-256 | b4d0931a962ff63b996546f32bd680a1017879bd02e876b6adc30fd6ac6434b3 |