atomica.cascade.get_cascade_vals(result, cascade, pops=None, year=None)[source]

Get values for a cascade

If the population list :param result: A single Result instance :param cascade: A cascade representation supported by sanitize_cascade() :param pops: A population representation supported by sanitize_pops() :param year: Optionally specify a subset of years to retrieve values for.

Can be a scalar, list, or array. If None, all time points in the result will be used

Return type



A tuple with (cascade_vals,t) where cascade_vals is the form {stage_name:np.array} and t is a np.array with the year values