bw2data.backends.single_file.proxies#

Module Contents#

Classes#

Activity

A MutableMapping is a generic container for associating

Exchange

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

Inheritance diagram of bw2data.backends.single_file.proxies.Activity

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__.

biosphere()[source]#
exchanges()[source]#
save()[source]#
technosphere()[source]#
upstream(*args, **kwargs)[source]#
class bw2data.backends.single_file.proxies.Exchange(data, *args, **kwargs)[source]#

Bases: bw2data.proxies.ExchangeProxyBase

Inheritance diagram of bw2data.backends.single_file.proxies.Exchange

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 activity

  • output: Returns activity

  • amount

  • uncertainty: Returns dictionary of uncertainty data

  • uncertainty_type: Returns stats_arrays uncertainty type

  • unit

save()[source]#