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 bysanitize_cascade()
:type pops: :param pops: A population representation supported bysanitize_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:
- Returns:
A tuple with
(cascade_vals,t)
wherecascade_vals
is the form{stage_name:np.array}
andt
is anp.array
with the year values