Run
Since each scenario corresponds to a probability distribution, performing a sensitivity analysis helps to explore uncertainty for a given scenario.
Sensitivity analysis involves tweaking different variables e.g. technology costs for a scenario and performing a new run. It will become possible to use the TransitionZero platform to conduct sensitivity analysis using runs and but for now runs data for existing scenarios can be accessed via the
To access data for runs, you can use this Jupyter Notebook on Github.
Bases: RunBase
Source code in tz/client/run.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
|
id: str
property
The ID of the run. A combination of the model, scenario, and run slugs.
model: Optional[Model]
property
The model associated with this run.
scenario: Optional[Scenario]
property
The scenario associated with this run.
from_id(id)
classmethod
Initialize the Run object from an ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
A run ID, e.g. |
required |
Returns:
Name | Type | Description |
---|---|---|
Run |
Run
|
A Run object. |
Source code in tz/client/run.py
154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
search(slug=None, model_slug=None, scenario_slug=None, owner_id=None, featured=None, includes=None, public=None, limit=5, page=0)
classmethod
Search for runs using various filters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
slug |
str
|
The slug of the run. |
None
|
model_slug |
str
|
The slug of the model to filter by. |
None
|
scenario_slug |
str
|
The slug of the scenario to filter by. |
None
|
owner_id |
str
|
The ID of the owner. |
None
|
featured |
bool
|
Filter by whether the run is featured. |
None
|
includes |
str
|
Additional fields to include in the search results. |
None
|
public |
bool
|
Filter by whether the run is public. |
None
|
limit |
int
|
The maximum number of search results to return per page. |
5
|
page |
int
|
The page number of search results to return. |
0
|
Returns:
Type | Description |
---|---|
List[Run]
|
List[Run]: A list of Run objects. |
Source code in tz/client/run.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
|