No project description provided
Project description
# Brightway2 parameters
- [![Coverage Status](https://coveralls.io/repos/bitbucket/cmutel/brightway2-parameters/badge.svg?branch=master)](https://coveralls.io/bitbucket/cmutel/brightway2-parameters?branch=master) [![Build status](https://ci.appveyor.com/api/projects/status/9ynu6gd9nk26mx2i?svg=true)](https://ci.appveyor.com/project/cmutel/brightway2-parameters)
[![Documentation Status](https://readthedocs.org/projects/brightway2-parameters/badge/?version=latest)](http://brightway2-parameters.readthedocs.io/?badge=latest)
Library for storing, validating, and calculating with parameters. Designed to work with the [Brightway2 life cycle assessment framework](https://brightwaylca.org), 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](https://bitbucket.org/cmutel/brightway2-parameters), documentation on [Read the Docs](https://brightway2-parameters.readthedocs.io/).
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
Hashes for bw2parameters-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a434de41cef36a42ea3618d1590e3df143e8b11c2eaabcab04076f9d7cc6dd |
|
MD5 | 17255d60db529b194b14c9c05dddb468 |
|
BLAKE2b-256 | 60f1bff2d1025fdbaedca84a41fac501a3096e2ace9cbca5594d04888f8d4850 |