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:
input
: Returns Activity simple proxyto
: Returns Activity simple proxyamount
uncertainty
: Returns dictionary of uncertainty datauncertainty_type
: Returnsstats_arrays
uncertainty typeunit
-
random_sample
(n=100)¶ Draw a random sample from this exchange.