message_ix_models.model.buildings.build.get_prices_B

message_ix_models.model.buildings.build.get_prices_B(s: Scenario, base_path: Path) DataFrame[source]

Retrieve PRICE_COMMODITY for certain quantities and merge with reference data.

This function uses two sources of data:

  1. Reference data is located at base_path/input_prices_R12_default.csv.

  2. Scenario data for PRICE_COMMODITY is retrieved using get_prices().

The data are then merged, as follows:

  • For commodity="electr", (2) is always used.

  • For other commodities, the (2) is used only if it is equal to or greater than (1). In other words, (1) are treated as price ‘floor’ for these commodities.