Exchange simple proxy

class bw2simple.exchange.Exchange(exc, activity)

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 simple proxy, 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"}, my_activity_proxy)

Properties:

random_sample(n=100)

Draw a random sample from this exchange.

Exchanges: list of Exchange proxies

class bw2simple.exchange.Exchanges(exchanges, activity=None, as_exchanges=False)

Proxy for a list of Exchange objects.