Skip to content

Commit

Permalink
Adapt import to current location
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed May 8, 2024
1 parent c7a685a commit 96c5cd1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions message_ix/util/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
from functools import partial

from message_ix import Scenario
from message_ix.report import Key, Reporter, computations
from message_ix.report import Key, Reporter, operator

log = logging.getLogger(__name__)

PLOTS = [
("activity", computations.stacked_bar, "out:nl-t-ya", "GWa"),
("capacity", computations.stacked_bar, "CAP:nl-t-ya", "GW"),
("cdr capacity", computations.stacked_bar, "CAP:nl-t-ya", "tCO2/yr"),
("demand", computations.stacked_bar, "demand:n-c-y", "GWa"),
("emission", computations.stacked_bar, "emi:nl-t-ya", "tCO2"),
("extraction", computations.stacked_bar, "EXT:n-c-g-y", "GW"),
("new capacity", computations.stacked_bar, "CAP_NEW:nl-t-yv", "GWa"),
("prices", computations.stacked_bar, "PRICE_COMMODITY:n-c-y", "¢/kW·h"),
("activity", operator.stacked_bar, "out:nl-t-ya", "GWa"),
("capacity", operator.stacked_bar, "CAP:nl-t-ya", "GW"),
("cdr capacity", operator.stacked_bar, "CAP:nl-t-ya", "tCO2/yr"),
("demand", operator.stacked_bar, "demand:n-c-y", "GWa"),
("emission", operator.stacked_bar, "emi:nl-t-ya", "tCO2"),
("extraction", operator.stacked_bar, "EXT:n-c-g-y", "GW"),
("new capacity", operator.stacked_bar, "CAP_NEW:nl-t-yv", "GWa"),
("prices", operator.stacked_bar, "PRICE_COMMODITY:n-c-y", "¢/kW·h"),
]


Expand Down Expand Up @@ -72,7 +72,7 @@ def prepare_plots(rep: Reporter, input_costs="$/GWa") -> None:
"plot fossil supply curve",
(
partial(
computations.plot_cumulative,
operator.plot_cumulative,
labels=("Fossil supply", "Resource volume", "Cost"),
),
"resource_volume:n-g",
Expand Down

0 comments on commit 96c5cd1

Please sign in to comment.