bw2data.backends.iotable
#
Module Contents#
Classes#
Iterable of |
|
Non-mutable dictionary which mimics |
- class bw2data.backends.iotable.IOTableActivity[source]#
Bases:
bw2data.backends.proxies.Activity
- technosphere() IOTableExchanges [source]#
- class bw2data.backends.iotable.IOTableExchanges(datapackage: bw_processing.Datapackage, target: Optional[bw2data.backends.proxies.Activity] = None, biosphere: bool = True, technosphere: bool = True, production: bool = True)[source]#
Bases:
collections.abc.Iterable
Iterable of
ReadOnlyExchange
objects drawn from Datapackage arrays.In the technosphere matrix, all positive exchanges are considered production, and all negative exchanges are technosphere, i.e. consumption, and we use this convention to label the edges. However, to be consistent with SQLite database results, we don’t flip signs in the returned dataframe.
The order of returned edges are production, technosphere, biosphere.
This function will draw from all resources with the correct matrix types (i.e.
'biosphere_matrix'
,'technosphere_matrix'
). Normally each IO Table database is stored in only one datapackage, and each datapackage only has one such database.datapackage
: The datapackage object.target
: Limit exchanges to those with the column indextarget
. Target must be an instance ofIOTableActivity
.biosphere
,technosphere
,production
: Return these types of edges.