cf.Data.get_cached_elements¶
- Data.get_cached_elements()[source]¶
Get the cache of selected array elements.
If the cache is empty, then
cache_elementsmay used to populate it.Added in version (cfdm): 1.13.0.0
See also
- Returns:
dictThe existing cached elements. The cache can not be modified by adding or removing keys to this dictionary.
Examples
>>> d = cf.Data([[1, 2, 3, 4]]) >>> d.get_cached_elements() {0: array(1), -1: array(4)}