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_refandprice_refvalues derived from scenario variablesCOST_NODAL_NETandPRICE_COMMODITYto the respective xlsx sheets.- Parameters:
scenario – Scenario instance to be calibrated
fname – file name of MACRO file used for calibration