Files
TJWaterServerBinary/app/services/globals.py
T
jiang fa188af0b1 refactor(db)!: adopt project-routed pooled databases
Reorganize WNDB by responsibility and remove legacy scheme endpoints.\n\nRoute analysis and time-series access through project pools, preserve transactional realtime replacement, and refresh GIS materialized views after writes.\n\nAdd database architecture documentation, live pooling coverage, API contract updates, and executable container verification.\n\nBREAKING CHANGE: legacy scheme APIs and flat app.native.wndb module imports are removed.
2026-08-25 18:35:05 +08:00

15 lines
491 B
Python

"""Mutable state used by the legacy synchronous simulation runner."""
RESERVOIR_BASIC_HEIGHT = 250.35
PATTERN_TIME_STEP: float | None = None
hydraulic_timestep: str | None = None
# Element ID -> SCADA api_query_id, loaded per project before simulation.
reservoirs_id: dict[str, str] = {}
tanks_id: dict[str, str] = {}
fixed_pumps_id: dict[str, str] = {}
variable_pumps_id: dict[str, str] = {}
pressure_id: dict[str, str] = {}
demand_id: dict[str, str] = {}
quality_id: dict[str, str] = {}