No project description provided
Project description
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, 3.3, and 3.4. 100% test coverage. Source code on bitbucket, 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
bw2parameters-0.6.2.1.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file bw2parameters-0.6.2.1.tar.gz
.
File metadata
- Download URL: bw2parameters-0.6.2.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60ccd6344fc9892edad35cd7fc93c8e3b44a5138033e94bae761493f4dc708f5 |
|
MD5 | cddcd4f3a32d36f15bbb93b8f43dd60d |
|
BLAKE2b-256 | a3ed3e420067d6b0e092325d699bc68b9fc057cf9ee23b5f6be09255c2607f9f |
File details
Details for the file bw2parameters-0.6.2.1-py3-none-any.whl
.
File metadata
- Download URL: bw2parameters-0.6.2.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a81d8b53e272c65958f194b22c0279f2bdac428ae2bc87d25eb96f7f86fb3ccb |
|
MD5 | 8c18bbbf834e58bea188f1b6a895c977 |
|
BLAKE2b-256 | 40a2cf8480089e1f04eb74bf305d5edb41e9567f1894ceb6b8db84acc2b11468 |