Skip to content

Commit 0a65f4c

Browse files
committed
update workflow
1 parent 9f49432 commit 0a65f4c

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,27 @@ new model components that have been added by the ActivitySim consortium over the
2020
past few years.
2121

2222
See https://activitysim.github.io for more information.
23+
24+
# Installation
25+
26+
The following short Python script will download and prepare the example data
27+
for the `prototype_mtc_extended` example model.
28+
29+
```python
30+
from pathlib import Path
31+
from activitysim.examples.external import registered_external_example
32+
33+
example_dir = registered_external_example(
34+
name="prototype_mtc_extended",
35+
working_dir=Path.cwd()
36+
)
37+
```
38+
39+
# Benchmarking
40+
41+
The `prototype_mtc` example model is run using the `activitysim` command line tool.
42+
A quick and easy way to run the model for benchmarking is to use the following command:
43+
44+
```shell
45+
activitysim workflow performance-benchmarking
46+
```

performance-benchmarking.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# This workflow runs the Prototype MTC extended model using full skims (1454 zones),
3+
# in a single process runner. It is well suited for conducting timing and
4+
# memory usage studies, as well as smaller model quality and validation
5+
# studies.
6+
#
7+
8+
context_parser: pypyr.parser.keyvaluepairs
9+
steps:
10+
11+
- description: Setting default workflow parameters
12+
name: pypyr.steps.default
13+
in:
14+
defaults:
15+
example_name: .
16+
workflow_name: performance-benchmarking/mtc-extended
17+
workspace: ..
18+
create: False
19+
compile: True
20+
sharrow: True
21+
legacy: True
22+
reference: False
23+
memory_profile: True
24+
tag:
25+
resume_after: _
26+
fast: False
27+
compile_n_households: 1000
28+
main_n_households: 0
29+
config_dirs: [ext-configs, configs]
30+
data_dir: data_full
31+
instrument: False
32+
workplace_zone_agg:
33+
caption: Workplaces by County
34+
district_id: county_id
35+
distance_skim: DIST
36+
household_income: income
37+
trace_hh_id:
38+
trace_od:
39+
chunk_method: hybrid_uss
40+
chunk_training_mode: disabled
41+
42+
- name: activitysim.workflows.steps.pype
43+
in:
44+
pype:
45+
name: sharrow-contrast/_contrast_runner

0 commit comments

Comments
 (0)