message_ix_models.model.material.util.update_macro_calib_file

message_ix_models.model.material.util.update_macro_calib_file(scenario: Scenario, fname: str, extrapolate=True) None[source]

Function to automate manual steps in MACRO calibration.

Tries to open a xlsx file with the given “fname” and writes cost_ref and price_ref values derived from scenario variables COST_NODAL_NET and PRICE_COMMODITY to the respective xlsx sheets.

Parameters:
  • scenario – Scenario instance to be calibrated

  • fname – file name of MACRO file used for calibration