Scenario
All TransitionZero models employ scenario analysis to investigate different assumptions about the technical and economic conditions at play. Scenarios are designed to be used as a set to explore and navigate what might happen, not what should happen or what we want to happen.
For example, in the Indonesia JETP model currently available in the TransitionZero platform, we have four scenarios:
- Coal Phaseout
- Current Policies
- Least Cost
- NetZero 2060
To access data for these scenarios, you can use this Jupyter Notebook on Github.
Bases: ScenarioBase
Source code in tz/client/scenario.py
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 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 |
|
featured_run: Optional[Run]
property
The featured run associated with this scenario.
id: str
property
The ID of the scenario. A combination of the model slug and scenario slug.
model: Optional[Model]
property
The model associated with this scenario.
runs: list[Run]
property
The featured run associated with this scenario.
from_id(id)
classmethod
Initialize the Scenario object from an ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
A scenario ID, e.g. |
required |
Returns:
Name | Type | Description |
---|---|---|
Scenario |
Scenario
|
A Scenario object. |
Source code in tz/client/scenario.py
12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
search(scenario_slug=None, model_slug=None, includes=None, owner_id=None, featured=None, public=None, limit=5, page=0)
classmethod
Search for scenarios based on various filters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scenario_slug |
str | None
|
The slug of the scenario to search for. |
None
|
model_slug |
str | None
|
The slug of the model to filter scenarios by. |
None
|
includes |
str | None
|
Related resources to be included in the search result. |
None
|
owner_id |
str | None
|
The ID of the owner to filter scenarios by. |
None
|
featured |
bool | None
|
Whether to filter scenarios by featured status. |
None
|
public |
bool | None
|
Whether to filter scenarios by public status. |
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[Scenario]
|
List[Scenario]: A list of Scenario objects matching the search criteria. |
Source code in tz/client/scenario.py
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 |
|