message_ix_models.model.material.util

Functions

add_region_column(df, parts[, iso_column])

Convenience function to add R12 region column to dataframe.

cost_fit(df)

Python implementation of cost_ref parameter estimation.

exponential(x, b, m)

Emulates Excels GROWTH function

get_ssp_from_context(context)

Get selected SSP from context

invert_dictionary(original_dict)

Create inverted dictionary from existing dictionary, where values turn into keys and vice versa

maybe_remove_water_tec(scenario, results)

Helper to rename deprecated water supply technology name.

path_fallback(context_or_regions, *parts)

Return a Path constructed from parts.

prepare_xlsx_for_explorer(filepath)

Post-processing to make timeseries comply with IIASA Scenario Explorer standard.

price_fit(df)

price_ref parameter estimation emulation in MACRO calibration files.

read_config()

Read configuration from set.yaml.

remove_from_list_if_exists(element, _list)

Utility function removing element from list if it is part of the list :param element: element to remove :param _list: list that potentially contains element

update_macro_calib_file(scenario, fname[, ...])

Function to automate manual steps in MACRO calibration.