File size: 654 Bytes
dbf7a0e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | """Pre-compute the MTA Subway Entrances flood-exposure register.
Run: python scripts/build_mta_entrances_register.py
Resume-safe: re-running picks up after a network blip.
"""
from __future__ import annotations
import sys
import warnings
from pathlib import Path
warnings.filterwarnings("ignore")
ROOT = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(ROOT))
from app.assets import mta_entrances # noqa: E402
from app.register_builder import build_register # noqa: E402
if __name__ == "__main__":
build_register("mta_entrances", mta_entrances.load,
meta_keys=("name", "address", "borough", "entrance_type"))
|