atomica.cascade.get_cascade_vals

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

Get values for a cascade

If the population list :type result: :param result: A single Result instance :type cascade: :param cascade: A cascade representation supported by sanitize_cascade() :type pops: :param pops: A population representation supported by sanitize_pops() :type year: :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:

tuple

Returns:

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