bw2data.backends.single_file.proxies
#
Module Contents#
Classes#
A MutableMapping is a generic container for associating |
|
Simple proxy for an exchange between activity datasets. Makes manipulation and use in command line more convenient. |
- class bw2data.backends.single_file.proxies.Activity(key, data={})[source]#
Bases:
bw2data.proxies.ActivityProxyBase
A MutableMapping is a generic container for associating key/value pairs.
This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.
- class bw2data.backends.single_file.proxies.Exchange(data, *args, **kwargs)[source]#
Bases:
bw2data.proxies.ExchangeProxyBase
Simple proxy for an exchange between activity datasets. Makes manipulation and use in command line more convenient.
Warning
This proxy is read only! To save changes to a dataset, you will need to work with the raw database data.
Usually these proxies are created by the activity, but you can instantiate one with the dictionary of exchange data and an Activity proxy of the consuming activity:
exchange = Exchange({"my exchange data": "goes here"})
Properties:
input
: Returns activityoutput
: Returns activityamount
uncertainty
: Returns dictionary of uncertainty datauncertainty_type
: Returnsstats_arrays
uncertainty typeunit