CosmoTech_Acceleration_Library.Modelops.core.io.model_metadata
ModelMetadata
Bases: RedisHandler
Model Metadata management class for cached data
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
get_graph_name()
Get the graph's name :return: the graph's name
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
37 38 39 40 41 42 |
|
get_graph_rotation()
Get the graph rotation of the graph :return: the graph rotation of the graph
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
51 52 53 54 55 56 |
|
get_graph_source_url()
Get the datasource of the graph :return: the datasource of the graph
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
44 45 46 47 48 49 |
|
get_last_graph_version()
Get the current last version of the graph :return: the graph last version
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
30 31 32 33 34 35 |
|
get_last_modified_date()
Get the last modified date of the graph :return: the last modified date of the graph
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
58 59 60 61 62 63 64 |
|
get_metadata()
Get the metadata of the graph :return: the dict containing all graph metadata
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
23 24 25 26 27 28 |
|
set_all_metadata(metadata)
Set the metadata of the graph :param metadata the metadata to set :raise Exception if the current version is greater than the new one
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
set_graph_rotation(graph_rotation)
Set the graph rotation of the graph :param graph_rotation the graph rotation
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
125 126 127 128 129 130 131 132 |
|
set_graph_source_url(graph_source_url)
Set the datasource of the graph :param graph_source_url the source url
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
116 117 118 119 120 121 122 123 |
|
set_last_graph_version(last_graph_version)
Set the current last version of the graph :param last_graph_version the new version
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
107 108 109 110 111 112 113 114 |
|
set_metadata(last_graph_version, graph_source_url, graph_rotation)
Set the metadata of the graph :param last_graph_version the new version :param graph_source_url the source url :param graph_rotation the graph rotation :return the metadata set :raise Exception if the current version is greater than the new one
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
update_last_modified_date()
Update the last modified date of the graph
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
134 135 136 137 138 |
|
update_last_version()
Update the last version of the graph
Source code in CosmoTech_Acceleration_Library/Modelops/core/io/model_metadata.py
140 141 142 143 144 145 146 147 148 149 150 151 152 |
|