bw2calc.grid#

Classes#

TwoDimensionalGrid

A Mapping is a generic container for associating key/value

Module Contents#

class bw2calc.grid.TwoDimensionalGrid(keys: Sequence[tuple[Any, Any]], values: Sequence[Any])[source]#

Bases: collections.abc.Mapping

A Mapping is a generic container for associating key/value pairs.

This class provides concrete generic implementations of all methods except for __getitem__, __iter__, and __len__.

Read-only dictionary wrapper for a strictly 2-dimensional grid.

Supports a very limited type of slicing - only foo[“something”, …].

dict_[source]#