UNKNOWN
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.4.tar.gz
(7.0 kB
view hashes)
Built Distributions
Close
Hashes for bw2parameters-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5e4dc329cece3e573deaa1cabc8ced5ba403aa7775771dc349ec7576bfedff |
|
MD5 | d33e2f076da8460be7d3ba5b7450a7af |
|
BLAKE2b-256 | f28683a56f80be6250bb308c2f036c7c3180ceca9c72439e4020fcbf66a2f3a9 |
Close
Hashes for bw2parameters-0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7138af8b26617e34a44676c4530c10b5ae8d4aa92977abae4299fc9847f2b6 |
|
MD5 | d9c4c5ce69d359e4dd44a4fb1829ef75 |
|
BLAKE2b-256 | 081aaeda089f2867aa2c1c701391afc78eb809f4c5d63f6546f261595e582454 |