def test_without_units(magicc7_variable): obs = guess_parameter_type(magicc7_variable["name"], "") exp = (ParameterType.AVERAGE_TIMESERIES if magicc7_variable["contains_time_dim"] else ParameterType.POINT_TIMESERIES) assert obs == exp
def test_rcp26_emis(rcp26): for v in rcp26["variable"].unique(): assert "Emissions" in v assert guess_parameter_type(v, "") == ParameterType.AVERAGE_TIMESERIES
def test_guess(variable, expected): assert guess_parameter_type(variable, "") == expected