Closed chrisroadmap closed 5 years ago
When running in CO2-only mode, FAIR generates an error when the scale keyword is a scalar. MWE:
>>> from fair.RCPs import rcp85 >>> from fair.forward import fair_scm >>> output = fair_scm( emissions=rcp85.Emissions.co2, useMultigas=False, scale=1.0) AttributeError: 'float' object has no attribute 'ndim'
This will be fixed in the next patch; a temporary workaround is to use an array which is the same length as the emissions input:
import numpy as np output = fair_scm( emissions=rcp85.Emissions.co2, useMultigas=False, scale=1.0*np.ones_like(rcp85.Emissions.co2))
When running in CO2-only mode, FAIR generates an error when the scale keyword is a scalar. MWE:
This will be fixed in the next patch; a temporary workaround is to use an array which is the same length as the emissions input: