Reference
avenir_goals_scenario.generate_scenarios(dest_path)
¶
Generate a scenarios file.
Docs to do, what format of input will this take?
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dest_path
|
Path | str
|
Path where the generated scenarios file will be saved. |
required |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If the destination directory does not exist. |
Source code in src/avenir_goals_scenario/scenarios.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
avenir_goals_scenario.run_scenario_analysis(pjnz_dir, scenarios_path, output_path)
¶
Run scenario analysis across a directory of PJNZ files.
For each combination of PJNZ file and scenario, applies the scenario, runs the model, and saves output.
What output format are we using?
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pjnz_dir
|
Path | str
|
Path to directory containing PJNZ files. |
required |
scenarios_path
|
Path | str
|
Path to the scenarios file (generated by generate_scenarios). |
required |
output_path
|
Path | str
|
Path where results will be saved. |
required |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If pjnz_dir or scenarios_path do not exist. |
Source code in src/avenir_goals_scenario/runner.py
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 | |