Skip to content

Latest commit

 

History

History
92 lines (65 loc) · 2.32 KB

File metadata and controls

92 lines (65 loc) · 2.32 KB

10 - Getting Started

This is the shortest path from a clone to a local dashboard.

1. Install

From the repository root:

uv sync --locked

If Windows reports a hardlink problem:

uv sync --locked --link-mode=copy

2. Create A Small Config

Create local_config.yaml. This file defines both the inputs and what the run should produce:

root: artifacts

pipeline:
  steps: [prepare, summarize, dashboard]
  dashboard_mode: live
  overwrite: false

runs:
  - dir: C:\models\base\output
    label: Base
  - dir: C:\models\build\output
    label: Build

zones:
  use_maz: false
  maz_col: zone_id
  taz_col: TAZ

dashboard:
  title: Regional Model Comparison
  export:
    output_path: exports/dashboard.html

Change the two dir values to real ActivitySim output folders. The default input names are final_households, final_persons, final_tours, final_trips, final_joint_tour_participants, and final_land_use; each may be CSV or Parquet.

If your files have different names, read File Names.

root is the visualizer's artifact location. Summary caches are written below it, and relative export paths resolve below it. Keep the export path configured even for a live workflow; switching from a live dashboard to an HTML file then requires changing only pipeline.dashboard_mode from live to export.

3. Run The Config

uv run activitysim-viz --config local_config.yaml

The first run prepares data, builds summaries, and starts the dashboard at http://localhost:5006. Later runs reuse valid caches.

Stop the server with Ctrl+C.

Use this same command for live dashboards, HTML exports, and processor-only workflows. Change the pipeline and dashboard sections in the config instead of maintaining different launch commands.

If The First Run Fails

Check these first:

  1. each runs[*].dir exists;
  2. the expected tables are present as .csv or .parquet;
  3. zones.use_maz, maz_col, and taz_col match the model; and
  4. the log names the missing file or column.

Then use Troubleshooting.

Next