Activity simple proxy¶
-
class
bw2simple.activity.
Activity
(key)¶ Simple proxy for an activity dataset. 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.
Instantiate a activity proxy with its key, e.g.
("foo", "bar")
:activity = Activity(("foo", "bar"))
Properties:
code
database
exchanges
(returns a list of Exchange simple proxy objects.)
See also the descriptions of each method below.
-
lca
(method=None, amount=1.0)¶ Shortcut to construct an LCA object for this activity.
-
open_in_webbrowser
()¶ Open this activity in the web UI.
Requires bw2-web to be running.