cf.GatheredArray.get_list¶
-
GatheredArray.
get_list
(default=ValueError())[source]¶ Return the list variable for a compressed array.
New in version 1.7.0.
Parameters: - default: optional
Return the value of the default parameter if the list variable has not been set. If set to an
Exception
instance then it will be raised instead.
Returns: List
The list variable.
Examples:
>>> l = g.get_list()
>>> l = g.get_list(default=None)