From 739c058c171353d0318ec7c18e49c16cda2e4784 Mon Sep 17 00:00:00 2001 From: Fridolin Glatter Date: Fri, 17 May 2024 12:52:43 +0200 Subject: [PATCH] Remove forgotten lines --- message_ix/tests/test_feature_price_emission.py | 3 --- tutorial/westeros/westeros_emissions_taxes.ipynb | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/message_ix/tests/test_feature_price_emission.py b/message_ix/tests/test_feature_price_emission.py index 830abc790..902763c2a 100644 --- a/message_ix/tests/test_feature_price_emission.py +++ b/message_ix/tests/test_feature_price_emission.py @@ -34,7 +34,6 @@ def add_two_tecs(scen, years): for y in years: # the dirty technology is free (no costs) but has emissions - tec_specs = ["node", "dirty_tec", y, y, "mode"] scen.add_par( "output", make_df( @@ -69,7 +68,6 @@ def add_two_tecs(scen, years): ) # the clean technology has variable costs but no emissions - tec_specs = ["node", "clean_tec", y, y, "mode"] scen.add_par( "output", make_df( @@ -88,7 +86,6 @@ def add_two_tecs(scen, years): unit="GWa", ), ) - scen.add_par("var_cost", tec_specs + ["year"], 1, "USD/GWa") scen.add_par( "var_cost", make_df( diff --git a/tutorial/westeros/westeros_emissions_taxes.ipynb b/tutorial/westeros/westeros_emissions_taxes.ipynb index f6920ccca..c89445b27 100644 --- a/tutorial/westeros/westeros_emissions_taxes.ipynb +++ b/tutorial/westeros/westeros_emissions_taxes.ipynb @@ -33,6 +33,8 @@ "metadata": {}, "outputs": [], "source": [ + "import message_ix\n", + "\n", "model = \"Westeros Electrified\"\n", "base = message_ix.Scenario(mp, model=model, scenario=\"baseline\")" ] @@ -136,6 +138,8 @@ "metadata": {}, "outputs": [], "source": [ + "from message_ix.util import make_df\n", + "\n", "horizon = [700, 710, 720]\n", "\n", "bd_emission = make_df(\n",