This repo is for modeling platform crowding and alighting and boarding of trains,
specifically at NY Penn Station.
vce_two_trains_alight_and_board.py
models a single island platform with two tracks.
To run, we use the Python package manager uv,
which can be installed easily with
curl -LsSf https://astral.sh/uv/install.sh | shWith uv installed, you can then just run the script directly:
./vce_two_trains_alight_and_board.pyIn doing so, uv will also install dependencies and set up a virtual environment.
We also use ruff for formatting and linting and mypy for type checking.
To run these, which are also checked in CI,
you can run
uv run ruff format # format
uv run ruff check # lint
uv run mypy . # type check