Skip to content

Commit

Permalink
Remove .tools.gfei_fuel_economy
Browse files Browse the repository at this point in the history
migrated and improved in #162
  • Loading branch information
khaeru committed Jul 30, 2024
1 parent 1cd6472 commit dbdf979
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions message_ix_models/tests/model/transport/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from message_data.model.transport.testing import MARK
from message_data.projects.navigate import T35_POLICY
from message_data.testing import assert_units
from message_data.tools.gfei_fuel_economy import get_gfei_data


@pytest.mark.parametrize("file", files.FILES, ids=lambda f: "-".join(f.parts))
Expand Down Expand Up @@ -128,41 +127,6 @@ def test_get_non_ldv_data(test_context, regions, years="B"):
assert_units(data["output"][mask], {"[passenger]": 1, "[length]": 1})


def test_get_gfei_data(test_context):
test_context.model.regions = "R11"

df = get_gfei_data(test_context)

# Data have the expected size
assert 307 == len(df)

# Data covers all historical periods from the Roadmap model
assert {2017} == set(df["year"].unique())
# Modes match the list below
assert {
"ICAe_ffv",
"ICAm_ptrp",
"ICH_chyb",
"ICE_conv",
"ELC_100",
"ICE_lpg",
"PHEV_ptrp",
"ICE_nga",
"HFC_ptrp",
} == set(df["technology"].unique())

# Data have the expected dimensions
assert {
"technology",
"value",
"ISO_code",
"region",
"year",
"units",
"variable",
} == set(df.columns)


@pytest.mark.skip("Pending https://github.com/transportenergy/database/issues/75")
def test_get_chn_ind_data():
df = get_chn_ind_data()
Expand Down

0 comments on commit dbdf979

Please sign in to comment.