larray.Session.values

Session.values() ValuesView[Any][source]

Return a view on the session’s values.

Returns
View on the session’s values.

Examples

>>> axis1 = Axis("a=a0..a2")
>>> group1 = axis1['a0,a1'] >> 'a01'
>>> arr1, arr2 = ndtest((2, 2)), ndtest(4)
>>> s = Session({'arr2': arr2, 'arr1': arr1, 'group1': group1, 'axis1': axis1})
>>> # assuming you know the order of objects stored in the session
>>> arr2, arr1, group1, axis1 = s.values()
>>> # otherwise, prefer the following syntax
>>> arr1, arr2, axis1, group1 = s['arr1', 'arr2', 'axis1', 'group1']
>>> arr1
a\b  b0  b1
 a0   0   1
 a1   2   3
>>> axis1
Axis(['a0', 'a1', 'a2'], 'a')