Contains all the python boilerplate you need to create a Brightway ecosystem package.
Project description
Brightway2 parameters
Library for storing, validating, and calculating with parameters. Designed to work with the Brightway2 life cycle assessment framework, but is generic enough to work in other use cases.
In [1]: from bw2parameters import ParameterSet
In [2]: parameters = {
...: 'Deep_Thought': {'amount': 42},
...: 'East_River_Creature': {'formula': '2 * Deep_Thought + 16'},
...: 'Elders_of_Krikkit': {'formula': 'sqrt(East_River_Creature)'},
...: }
In [3]: ParameterSet(parameters).evaluate()
Out[3]: {'Deep_Thought': 42, 'East_River_Creature': 100, 'Elders_of_Krikkit': 10.0}
Compatible with Python 2.7 and 3.3+. 100% test coverage. Source code on Github, documentation on Read the Docs.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bw2parameters-1.1.0.tar.gz.
File metadata
- Download URL: bw2parameters-1.1.0.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37d2e242334c7c688444296048257616e4b03580929c18faf6c2286e122b2b79
|
|
| MD5 |
7a9c693e829c245c4255240dfffb44d6
|
|
| BLAKE2b-256 |
72b6c57ebdbe3026187e409aedf4903e8c5d2a17fd010f9cd093dd0fb791bb60
|
File details
Details for the file bw2parameters-1.1.0-py3-none-any.whl.
File metadata
- Download URL: bw2parameters-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea32c262a45a58f51cc97bc88595d4d23e6a936a476087b3fbf22a0227ebd1d8
|
|
| MD5 |
1ff0e7107b9c0589c0f0fc9f9719f877
|
|
| BLAKE2b-256 |
15163ceaa904610155a49cc984dc575c93437d6f69757f4ebf05decc19ed88e2
|