I'm trying to get an Impact Matrix in Climada from an impact object using the below codes:
Calculating impact matrix for present
from climada.engine import Impact
imp1 = Impact()
imp1.calc(exp, imp_set_xlsx, ts_fl, save_mat=True)
When I tried to print the impact matrix << print( imp1.mat)) >>, I received the following error:
ValueError: Attribute imp_mat is empty. Recalculate Impactinstance with parameter save_mat=True.
However, I made sure save_mat
is set True.