client.l2cache
Note
The functionality described here will be accurate if the datastack you are using is using the most up-to-date version of the L2 cache. If something seems wrong with the documentation here, try checking the version of the L2 cache returned by your client:
type(client.l2cache)
server_version: Optional[Version]
property
¶
The version of the service running on the remote server. Note that this refers to the software running on the server and has nothing to do with the version of the datastack itself.
cache_metadata()
¶
Retrieves the meta data for the cache
Returns:
Type | Description |
---|---|
dict
|
keys are attribute names, values are datatypes |
get_l2data(l2_ids, attributes=None)
¶
Gets the attributed statistics data for L2 ids.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
l2_ids |
list or ndarray
|
a list of level 2 ids |
required |
attributes |
list
|
a list of attributes to retrieve. Defaults to None which will return all that are available. Available stats are ['area_nm2', 'chunk_intersect_count', 'max_dt_nm', 'mean_dt_nm', 'pca', 'pca_val', 'rep_coord_nm', 'size_nm3']. See docs for more description. |
None
|
Returns:
Type | Description |
---|---|
dict
|
keys are l2 ids, values are data |
has_cache(datastack_name=None)
¶
raise_for_status(r, log_warning=True)
staticmethod
¶
Raises requests.HTTPError, if one occurred.