message_ix_models.tests.project.ssp.test_transport

Module Attributes

SPECIES

Emissions species codes appearing in the IAMC-structured / reported data; these are different from those internal to the model.

SPECIES_WITHOUT_EF

Species for which no aviation-specific emission factor values are available.

Functions

check(df_in, df_out, method)

Common checks for test_process_df() and test_process_file().

expected_variables(flag, method)

Set of expected ‘Variable’ codes according to flag and method.

input_csv_path()

input_xlsx_path(tmp_path_factory, input_csv_path)

insert_nans(df, variable_expr, year_cond)

Replace zeros with np.nan in df.

test_cli(tmp_path, mix_models_cli, ...)

Code can be invoked from the command-line.

test_get_scenario_code(expected_id, ...)

test_process_df(pytestconfig, test_context, ...)

Test process_df().

test_process_file(tmp_path, test_context, ...)

Code can be called from Python.

test_track_GAINS()

Coverage-only test of track_GAINS().

test_v_to_emi_coords(value, exp)

test_v_to_fe_coords(value, exp)