Download grid_map/models.py from build-small-hackathon/phantom-grid: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/phantom-grid/resolve/4f670ea00a0db95a9e7dc6d80aa620e07d0e048f/grid_map/models.py
- Command line
-
hf download hf://spaces/build-small-hackathon/phantom-grid@4f670ea00a0db95a9e7dc6d80aa620e07d0e048f/grid_map/models.py
-
curl -L -o models.py https://huggingface.co/spaces/build-small-hackathon/phantom-grid/resolve/4f670ea00a0db95a9e7dc6d80aa620e07d0e048f/grid_map/models.py
442 Bytes
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| class Junction: | |
| junction_id: int | |
| x: int | |
| y: int | |
| radius: int | |
| modes_present: tuple[str, ...] | |
| class TransportEdge: | |
| source: int | |
| target: int | |
| modes: tuple[str, ...] | |
| class LegalMove: | |
| destination: int | |
| via: tuple[int, int] | |
| mode: str | |
| blocked: bool = False | |