Asset
Assets are a subset of Nodes. They correspond to physical plants and equipment like different types of power stations and steelworks.
To access data for assets, you can use this Jupyter Notebook on Github.
Bases: NodeBase
Source code in tz/client/asset.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
from_id(id)
classmethod
Initialise Asset from id
as a positional argument
Source code in tz/client/asset.py
13 14 15 16 17 |
|
search(alias, threshold=0.5, node_type=None, sector=None, limit=10, page=0)
classmethod
Search for nodes using an alias.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alias |
str
|
The target alias to search. |
required |
threshold |
float
|
The desired confidence in the search result. |
0.5
|
node_type |
str
|
filter search to a specific node type. |
None
|
sector |
str
|
the industrial sector to filter assets for |
None
|
limit |
int
|
The maximum number of search results to return per page. |
10
|
page |
int
|
The page number of search results to return. |
0
|
Returns:
Type | Description |
---|---|
list[Node]
|
list[schemas.Node]: A list of Node objects. |
Source code in tz/client/asset.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|